urlmon.idl
来自「本源码是vc环境下的usb程序」· IDL 代码 · 共 1,612 行 · 第 1/5 页
IDL
1,612 行
cpp_quote("#define INET_E_REDIRECT_TO_DIR _HRESULT_TYPEDEF_(0x800C0015L) ")
//
// HResult range returned in OnStopBinding
//
//
// Data can not be locked
//
cpp_quote("#define INET_E_CANNOT_LOCK_REQUEST _HRESULT_TYPEDEF_(0x800C0016L) ")
cpp_quote("#define INET_E_USE_EXTEND_BINDING _HRESULT_TYPEDEF_(0x800C0017L) ")
cpp_quote("#define INET_E_TERMINATED_BIND _HRESULT_TYPEDEF_(0x800C0018L) ")
cpp_quote("#define INET_E_ERROR_FIRST _HRESULT_TYPEDEF_(0x800C0002L) ")
// User declined download of component
cpp_quote("#define INET_E_CODE_DOWNLOAD_DECLINED _HRESULT_TYPEDEF_(0x800C0100L) ")
cpp_quote("#define INET_E_RESULT_DISPATCHED _HRESULT_TYPEDEF_(0x800C0200L) ")
// Exact code download version requested not found
cpp_quote("#define INET_E_CANNOT_REPLACE_SFP_FILE _HRESULT_TYPEDEF_(0x800C0300L) ")
// Authenticode prompt UI was not shown because the page is not in the ActiveX permissive state
cpp_quote("#define INET_E_CODE_INSTALL_SUPPRESSED _HRESULT_TYPEDEF_(0x800C0400L) ")
// NOTE: Please update INET_E_ERROR_LAST if you add an error code with a higher number:
cpp_quote("#define INET_E_ERROR_LAST INET_E_CANNOT_REPLACE_SFP_FILE")
//+---------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation, 1995-1998.
//
// Contents: IPersistMoniker interface definition
//
//----------------------------------------------------------------------------
cpp_quote("#ifndef _LPPERSISTMONIKER_DEFINED")
cpp_quote("#define _LPPERSISTMONIKER_DEFINED")
[
object,
uuid(79eac9c9-baf9-11ce-8c82-00aa004ba90b),
pointer_default(unique)
]
interface IPersistMoniker : IUnknown
{
typedef [unique] IPersistMoniker *LPPERSISTMONIKER;
HRESULT GetClassID(
[out] CLSID *pClassID
);
HRESULT IsDirty(void);
HRESULT Load(
[in] BOOL fFullyAvailable,
[in] IMoniker * pimkName,
[in] LPBC pibc,
[in] DWORD grfMode
);
HRESULT Save(
[in] IMoniker * pimkName,
[in] LPBC pbc,
[in] BOOL fRemember);
HRESULT SaveCompleted(
[in] IMoniker * pimkName,
[in] LPBC pibc);
HRESULT GetCurMoniker(
[out] IMoniker ** ppimkName);
}
cpp_quote("#endif")
//+---------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation, 1995-1998.
//
// Contents: IMonikerProp interface definition
//
//----------------------------------------------------------------------------
cpp_quote("#ifndef _LPMONIKERPROP_DEFINED")
cpp_quote("#define _LPMONIKERPROP_DEFINED")
[
object,
uuid(a5ca5f7f-1847-4d87-9c5b-918509f7511d),
pointer_default(unique)
]
interface IMonikerProp : IUnknown
{
typedef [unique] IMonikerProp *LPMONIKERPROP;
typedef enum {
MIMETYPEPROP = 0x00000000,
USE_SRC_URL = 0X00000001,
CLASSIDPROP = 0x00000002,
TRUSTEDDOWNLOADPROP = 0x00000003,
POPUPLEVELPROP = 0x00000004,
} MONIKERPROPERTY;
HRESULT PutProperty (
[in] MONIKERPROPERTY mkp,
[in] LPCWSTR val
);
}
cpp_quote("#endif")
//+---------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation, 1995-1998.
//
// Contents: IBindProtocol interface definition
//
//----------------------------------------------------------------------------
cpp_quote("#ifndef _LPBINDPROTOCOL_DEFINED")
cpp_quote("#define _LPBINDPROTOCOL_DEFINED")
[
local,
object,
uuid(79eac9cd-baf9-11ce-8c82-00aa004ba90b),
pointer_default(unique)
]
interface IBindProtocol : IUnknown
{
typedef [unique] IBindProtocol *LPBINDPROTOCOL;
HRESULT CreateBinding(
[in] LPCWSTR szUrl,
[in] IBindCtx *pbc,
[out] IBinding ** ppb);
}
cpp_quote("#endif")
//+---------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation, 1995-1998.
//
// Contents: IBinding interface definition
//
//----------------------------------------------------------------------------
cpp_quote("#ifndef _LPBINDING_DEFINED")
cpp_quote("#define _LPBINDING_DEFINED")
[
object,
uuid(79eac9c0-baf9-11ce-8c82-00aa004ba90b),
pointer_default(unique)
]
interface IBinding: IUnknown
{
typedef [unique] IBinding *LPBINDING;
HRESULT Abort();
HRESULT Suspend();
HRESULT Resume();
HRESULT SetPriority(
[in] LONG nPriority);
HRESULT GetPriority(
[out] LONG * pnPriority);
[local]
HRESULT GetBindResult(
[out] CLSID *pclsidProtocol,
[out] DWORD *pdwResult,
[out] LPOLESTR *pszResult,
[in, out] DWORD *pdwReserved);
[call_as(GetBindResult)]
HRESULT RemoteGetBindResult(
[out] CLSID *pclsidProtocol,
[out] DWORD *pdwResult,
[out] LPOLESTR *pszResult,
[in] DWORD dwReserved);
}
cpp_quote("#endif")
//+---------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation, 1995-1998.
//
// Contents: IBindStatusCallback interface definition
//
//----------------------------------------------------------------------------
cpp_quote("#ifndef _LPBINDSTATUSCALLBACK_DEFINED")
cpp_quote("#define _LPBINDSTATUSCALLBACK_DEFINED")
[
object,
uuid(79eac9c1-baf9-11ce-8c82-00aa004ba90b),
pointer_default(unique)
]
interface IBindStatusCallback: IUnknown
{
typedef [unique] IBindStatusCallback *LPBINDSTATUSCALLBACK;
typedef enum
{
BINDVERB_GET = 0x00000000, // default action
BINDVERB_POST = 0x00000001, // post verb
BINDVERB_PUT = 0x00000002, // put verb
BINDVERB_CUSTOM = 0x00000003, // custom verb
} BINDVERB;
typedef enum
{
BINDINFOF_URLENCODESTGMEDDATA = 0x00000001, // url encode the stgmed data
BINDINFOF_URLENCODEDEXTRAINFO = 0x00000002, // url encode the extra info
} BINDINFOF;
// flags that describe the type of transaction that caller wants
typedef enum
{
BINDF_ASYNCHRONOUS = 0x00000001
,BINDF_ASYNCSTORAGE = 0x00000002
,BINDF_NOPROGRESSIVERENDERING = 0x00000004
,BINDF_OFFLINEOPERATION = 0x00000008
,BINDF_GETNEWESTVERSION = 0x00000010
,BINDF_NOWRITECACHE = 0x00000020
,BINDF_NEEDFILE = 0x00000040
,BINDF_PULLDATA = 0x00000080
,BINDF_IGNORESECURITYPROBLEM = 0x00000100
,BINDF_RESYNCHRONIZE = 0x00000200
,BINDF_HYPERLINK = 0x00000400
,BINDF_NO_UI = 0x00000800
,BINDF_SILENTOPERATION = 0x00001000
,BINDF_PRAGMA_NO_CACHE = 0x00002000
,BINDF_GETCLASSOBJECT = 0x00004000
,BINDF_RESERVED_1 = 0x00008000
// bindstatus callback from client is free threaded
,BINDF_FREE_THREADED = 0x00010000
// client does not need to know excat size of data available
// hence the read goes directly to e.g. socket
,BINDF_DIRECT_READ = 0x00020000
// is the transaction a forms submit.
,BINDF_FORMS_SUBMIT = 0x00040000
,BINDF_GETFROMCACHE_IF_NET_FAIL = 0x00080000
// binding is from UrlMoniker
,BINDF_FROMURLMON = 0x00100000
,BINDF_FWD_BACK = 0x00200000
,BINDF_PREFERDEFAULTHANDLER = 0x00400000
,BINDF_ENFORCERESTRICTED = 0x00800000
// Note:
// the highest byte 0x??000000 is used internally
// see other documentation
} BINDF;
typedef enum
{
URL_ENCODING_NONE = 0x00000000
,URL_ENCODING_ENABLE_UTF8 = 0x10000000
,URL_ENCODING_DISABLE_UTF8 = 0x20000000
} URL_ENCODING;
typedef struct _tagBINDINFO
{
ULONG cbSize;
LPWSTR szExtraInfo; // e.g. string added to the URL string [range byte]
STGMEDIUM stgmedData; // e.g. put or post data
DWORD grfBindInfoF; // e.g. how meddata should be treaded
DWORD dwBindVerb; // e.g. put, post, ...
LPWSTR szCustomVerb; // e.g. custom verb
DWORD cbstgmedData; // size of data in stgmedData
DWORD dwOptions; // additional option
DWORD dwOptionsFlags; // options flags
DWORD dwCodePage; // the code used to convert the url
SECURITY_ATTRIBUTES securityAttributes;
IID iid; // iid of pUnk
IUnknown *pUnk; // pUnk - whatever
DWORD dwReserved; // should be null
} BINDINFO;
typedef struct _REMSECURITY_ATTRIBUTES
{
DWORD nLength;
DWORD lpSecurityDescriptor;
BOOL bInheritHandle;
} REMSECURITY_ATTRIBUTES, *PREMSECURITY_ATTRIBUTES, *LPREMSECURITY_ATTRIBUTES;
typedef struct _tagRemBINDINFO
{
ULONG cbSize;
LPWSTR szExtraInfo; // e.g. string added to the URL string [range byte]
DWORD grfBindInfoF; // e.g. how meddata should be treaded
DWORD dwBindVerb; // e.g. put, post, ...
LPWSTR szCustomVerb; // e.g. custom verb
DWORD cbstgmedData; // size of data in stgmedData
DWORD dwOptions; // additional options
DWORD dwOptionsFlags; // options flags
DWORD dwCodePage; // the code used to convert the url
REMSECURITY_ATTRIBUTES securityAttributes;
IID iid; // iid of pUnk
IUnknown *pUnk; // pUnk - whatever
DWORD dwReserved; // should be null
} RemBINDINFO;
typedef struct tagRemFORMATETC {
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?