obex.idl
来自「Windows CE 6.0 Server 源码」· IDL 代码 · 共 602 行 · 第 1/2 页
IDL
602 行
[helpstring("method SetPassword")]
HRESULT SetPassword([in] LPCWSTR pszPassword);
[helpstring("method BindToStorage")]
HRESULT BindToStorage([in] DWORD dwCapability, [out] IStorage **ppStorage);
};
[
object,
uuid(6561D66B-8CC1-49F9-8071-632D288EDAF3),
helpstring("IHeaderCollection Interface"),
pointer_default(unique)
]
interface IHeaderCollection : IUnknown
{
[helpstring("method Add a header of type byte array")]
HRESULT AddByteArray ([in] byte Id, [in] unsigned long ulSize, [in, size_is(ulSize)] byte * pData);
[helpstring("method Add a header of type byte")]
HRESULT AddLong ([in] byte Id, [in] unsigned long ulData);
[helpstring("method Add a header of type byte")]
HRESULT AddByte ([in] byte Id, [in] byte pData);
[helpstring("method Add a header of type byte")]
HRESULT AddUnicodeString ([in] byte Id, [in] LPCWSTR pszData);
[helpstring("method Remove")]
HRESULT Remove ([in] byte Id);
[helpstring("method Remove")]
HRESULT RemoveAll ();
[helpstring("Add a Count header to the collection.")]
HRESULT AddCount([in] unsigned long ulCount);
[helpstring("Add a Name header to the collection.")]
HRESULT AddName([in] LPCWSTR pszName);
[helpstring("Add a Type header to the collection.")]
HRESULT AddType([in] unsigned long ulSize, [in, size_is(ulSize)] byte * pData);
[helpstring("Add a Length header to the collection.")]
HRESULT AddLength([in] unsigned long ulLength);
[helpstring("Add a old style time header to the collection.")]
HRESULT AddTimeOld([in] unsigned long ulTime);
[helpstring("Add a time (preferred--ISO8601) header to the collection.")]
HRESULT AddTime([in] FILETIME * pFiletime);
[helpstring("Add a Description header to the collection.")]
HRESULT AddDescription([in] LPCWSTR pszDescription);
[helpstring("Add a Target header to the collection.")]
HRESULT AddTarget([in] unsigned long ulSize, [in, size_is(ulSize)] byte * pData);
[helpstring("Add an HTTP header to the collection.")]
HRESULT AddHTTP([in] unsigned long ulSize, [in, size_is(ulSize)] byte * pData);
[helpstring("Add a Body header to the collection.")]
HRESULT AddBody([in] unsigned long ulSize, [in, size_is(ulSize)] byte * pData);
[helpstring("Add an End of Body header to the collection.")]
HRESULT AddEndOfBody([in] unsigned long ulSize, [in, size_is(ulSize)] byte * pData);
[helpstring("Add a who header to the collection.")]
HRESULT AddWho([in] unsigned long ulSize, [in, size_is(ulSize)] byte * pData);
[helpstring("Add a Connection Id header to the collection.")]
HRESULT AddConnectionId([in] unsigned long ulConnectionId);
[helpstring("Add an App Params header to the collection.")]
HRESULT AddAppParams([in] unsigned long ulSize, [in, size_is(ulSize)] byte * pData);
[helpstring("Add an Object Class header to the collection.")]
HRESULT AddObjectClass([in] unsigned long ulSize, [in, size_is(ulSize)] byte * pData);
[helpstring("Enum the headers")]
HRESULT EnumHeaders([out] IHeaderEnum **pHeaderEnum);
};
[
object,
uuid(80DFC5AB-BF07-4612-BACE-AEBC0129590A),
helpstring("IObexSink Interface"),
pointer_default(unique)
]
interface IObexSink : IUnknown
{
[helpstring("method Notify")]
HRESULT Notify([in] OBEX_EVENT Event, [in] IUnknown * pUnk1, [in] IUnknown * pUnk2);
};
[
object,
uuid(9B00990A-010D-4F19-AE6C-D60DA9B3783E),
helpstring("IObexService Interface"),
pointer_default(unique)
]
interface IObexService : IUnknown
{
[helpstring("method GetConnection")]
HRESULT GetConnection([out] IObexServiceConnection **ppConnection, [in] boolean fWait);
[helpstring("method Close")]
HRESULT Close();
[helpstring("method SetPassword")]
HRESULT SetPassword([in] LPCWSTR pszPassword);
};
[
object,
uuid(CB258BBB-678B-414A-81A3-CB98B669EDD7),
helpstring("IObexServiceConnection Interface"),
pointer_default(unique)
]
interface IObexServiceConnection : IUnknown
{
[helpstring("Accept this connection.")]
HRESULT Accept([in] IHeaderCollection * pHeaders);
[helpstring("Close the connection")]
HRESULT Close([in] IHeaderCollection * pExtraHeaders);
[helpstring("Get incomming commands.")]
HRESULT GetCommand([in, out] OBEX_REQUEST * pRequest, [in] boolean fWait);
[helpstring("Send a response to a command.")]
HRESULT SendResponse([in] DWORD dwResponse, [in] IHeaderCollection * pHeaders);
[helpstring("Connection properties (ie, who is connecting).")]
HRESULT EnumProperties([in] REFIID riid, [out, iid_is(riid)] void **ppv);
[helpstring("Enum headers sent in the connect of this connection.")]
HRESULT EnumHeaders([out] IHeaderEnum **ppEnum);
};
[
object,
uuid(5335417D-96D5-4AB4-9EF0-8F29C82232A3),
helpstring("IInboxSink Interface"),
pointer_default(unique)
]
interface IInboxSink : IUnknown
{
[helpstring("method Notify")]
HRESULT Notify([in] INBOX_EVENT_DATA * pInboxData);
};
[
object,
uuid(5507423D-0DD6-443D-A3CF-756D8E725C77),
helpstring("IHeaderEnum Interface"),
pointer_default(unique)
]
interface IHeaderEnum : IUnknown
{
HRESULT Next (
[in] ULONG celt,
[out, size_is(celt), length_is(pceltFetched ? *pceltFetched : 1)]
OBEX_HEADER **rgelt,
[in, out, unique] ULONG* pceltFetched);
HRESULT Skip (
[in] ULONG celt);
HRESULT Reset ();
HRESULT Clone (
[out] IHeaderEnum **ppenum);
};
[
object,
uuid(6194770D-2B61-47DE-8628-33C42E091181),
helpstring("IPropertyBagEnum Interface"),
pointer_default(unique)
]
interface IPropertyBagEnum : IUnknown
{
HRESULT Next (
[in] ULONG celt,
[out, size_is(celt), length_is(pceltFetched ? *pceltFetched : 1)]
LPPROPERTYBAG2 * rgelt,
[in, out, unique] ULONG* pceltFetched);
HRESULT Skip (
[in] ULONG celt);
HRESULT Reset ();
HRESULT Clone (
[out] IPropertyBagEnum** ppenum);
};
[
object,
uuid(53B5F567-DFE3-46DF-985A-BB993AE1AB00),
helpstring("IDeviceEnum Interface"),
pointer_default(unique)
]
interface IDeviceEnum : IUnknown
{
HRESULT Next (
[in] ULONG celt,
[out, size_is(celt), length_is(pceltFetched ? *pceltFetched : 1)]
IObexDevice **rgelt,
[in, out, unique] ULONG* pceltFetched);
HRESULT Skip (
[in] ULONG celt);
HRESULT Reset ();
HRESULT Clone (
[out] IDeviceEnum** ppenum);
};
[
object,
uuid(265CB2AB-EEDE-4f0e-A2D9-DF03C067EE56),
helpstring("IObexCaps Interface"),
pointer_default(unique)
]
interface IObexCaps : IUnknown
{
[helpstring("method Notify")]
HRESULT SetCaps([in] DWORD dwCaps);
};
[
object,
uuid(dddc1a8f-1e12-46d8-856c-d238a85ad10f),
helpstring("IObexResponse"),
pointer_default(unique)
]
interface IObexResponse : IUnknown
{
[helpstring("Returns last response code from last packet received by server")]
HRESULT GetLastResponseCode([out, size_is(sizeof(BYTE))] BYTE *pResponseCode);
}
[
uuid(077b9ee1-78f0-4541-8ff4-ebbdb4c497a6),
version(1.0),
helpstring("OBEX 1.0 Type Library")
]
library OBEXLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(30a7bc00-59b6-40bb-aa2b-89eb49ef274e),
helpstring("OBEX Class")
]
coclass Obex
{
[default] interface IObex;
interface IObex;
};
[
uuid(30a7bc01-59b6-40bb-aa2b-89eb49ef274e),
helpstring("HeaderCollection Class")
]
coclass HeaderCollection
{
[default] interface IHeaderCollection;
interface IHeaderCollection;
};
[
uuid(30a7bc05-59b6-40bb-aa2b-89eb49ef274e),
helpstring("PropertyBag Class")
]
coclass PropertyBag
{
[default] interface IPropertyBag;
interface IPropertyBag;
};
[
uuid(30A7BC02-59B6-40BB-AA2B-89EB49EF274E),
]
coclass IrdaTransport
{
[default] interface IUnknown;
};
[
uuid(30A7BC03-59B6-40BB-AA2B-89EB49EF274E),
]
coclass BthTransport
{
[default] interface IUnknown;
};
[
uuid(30A7BC04-59B6-40BB-AA2B-89EB49EF274E),
]
coclass IpTransport
{
[default] interface IUnknown;
};
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?