other-licenses/7zstub/src/7zip/IPassword.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/other-licenses/7zstub/src/7zip/IPassword.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,26 @@
     1.4 +// IPassword.h
     1.5 +
     1.6 +#ifndef __IPASSWORD_H
     1.7 +#define __IPASSWORD_H
     1.8 +
     1.9 +#include "../Common/MyUnknown.h"
    1.10 +#include "../Common/Types.h"
    1.11 +
    1.12 +// MIDL_INTERFACE("23170F69-40C1-278A-0000-000500xx0000")
    1.13 +#define PASSWORD_INTERFACE(i, x) \
    1.14 +DEFINE_GUID(IID_ ## i, \
    1.15 +0x23170F69, 0x40C1, 0x278A, 0x00, 0x00, 0x00, 0x05, 0x00, x, 0x00, 0x00); \
    1.16 +struct i: public IUnknown
    1.17 +
    1.18 +PASSWORD_INTERFACE(ICryptoGetTextPassword, 0x10)
    1.19 +{
    1.20 +  STDMETHOD(CryptoGetTextPassword)(BSTR *password) PURE;
    1.21 +};
    1.22 +
    1.23 +PASSWORD_INTERFACE(ICryptoGetTextPassword2, 0x11)
    1.24 +{
    1.25 +  STDMETHOD(CryptoGetTextPassword2)(Int32 *passwordIsDefined, BSTR *password) PURE;
    1.26 +};
    1.27 +
    1.28 +#endif
    1.29 +

mercurial