RemUnknown.h
上传用户:baixin
上传日期:2008-03-13
资源大小:4795k
文件大小:3k
开发平台:

MultiPlatform

  1. /* RemUnknown.h generated by WIDL Version 2.2.1 on 06-Dec-01 at 11:54:11 AM */
  2. #include "comBase.h"
  3. #ifndef __INCRemUnknown_h
  4. #define __INCRemUnknown_h
  5. #include "orpc.h"
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. int include_RemUnknown (void);
  10. #ifndef __IRemUnknown_FWD_DEFINED__
  11. #define __IRemUnknown_FWD_DEFINED__
  12. typedef interface IRemUnknown IRemUnknown;
  13. #endif /* __IRemUnknown_FWD_DEFINED__ */
  14. struct tagREMQIRESULT
  15. {
  16. HRESULT hResult;
  17. STDOBJREF std;
  18. };
  19. typedef struct tagREMQIRESULT REMQIRESULT;
  20. struct tagREMINTERFACEREF
  21. {
  22. IPID ipid;
  23. unsigned long cPublicRefs;
  24. unsigned long cPrivateRefs;
  25. };
  26. typedef struct tagREMINTERFACEREF REMINTERFACEREF;
  27. typedef struct
  28.     {
  29.     COM_VTBL_BEGIN
  30.     COM_VTBL_ENTRY (HRESULT, QueryInterface, (IUnknown* pThis, REFIID riid, void** ppvObject));
  31. #define IUnknown_QueryInterface(pThis, riid, ppvObject) pThis->lpVtbl->QueryInterface(COM_ADJUST_THIS(pThis), riid, ppvObject)
  32.     COM_VTBL_ENTRY (ULONG, AddRef, (IUnknown* pThis));
  33. #define IUnknown_AddRef(pThis) pThis->lpVtbl->AddRef(COM_ADJUST_THIS(pThis))
  34.     COM_VTBL_ENTRY (ULONG, Release, (IUnknown* pThis));
  35. #define IUnknown_Release(pThis) pThis->lpVtbl->Release(COM_ADJUST_THIS(pThis))
  36.     COM_VTBL_ENTRY (HRESULT, RemQueryInterface, (IRemUnknown* pThis, REFIPID ipid, unsigned long cRefs, unsigned short cIids, const IID* iids, REMQIRESULT** ppQIResults));
  37. #define IRemUnknown_RemQueryInterface(pThis, ipid, cRefs, cIids, iids, ppQIResults) pThis->lpVtbl->RemQueryInterface(COM_ADJUST_THIS(pThis), ipid, cRefs, cIids, iids, ppQIResults)
  38.     COM_VTBL_ENTRY (HRESULT, RemAddRef, (IRemUnknown* pThis, unsigned short cInterfaceRefs, REMINTERFACEREF* InterfaceRefs, HRESULT* pResults));
  39. #define IRemUnknown_RemAddRef(pThis, cInterfaceRefs, InterfaceRefs, pResults) pThis->lpVtbl->RemAddRef(COM_ADJUST_THIS(pThis), cInterfaceRefs, InterfaceRefs, pResults)
  40.     COM_VTBL_ENTRY (HRESULT, RemRelease, (IRemUnknown* pThis, unsigned short cInterfaceRefs, REMINTERFACEREF* InterfaceRefs));
  41. #define IRemUnknown_RemRelease(pThis, cInterfaceRefs, InterfaceRefs) pThis->lpVtbl->RemRelease(COM_ADJUST_THIS(pThis), cInterfaceRefs, InterfaceRefs)
  42.     COM_VTBL_END
  43.     } IRemUnknownVtbl;
  44. #ifdef __cplusplus
  45. interface IRemUnknown : public IUnknown
  46. {
  47. virtual HRESULT RemQueryInterface (REFIPID ipid, unsigned long cRefs, unsigned short cIids, const IID* iids, REMQIRESULT** ppQIResults) =0;
  48. virtual HRESULT RemAddRef (unsigned short cInterfaceRefs, REMINTERFACEREF* InterfaceRefs, HRESULT* pResults) =0;
  49. virtual HRESULT RemRelease (unsigned short cInterfaceRefs, REMINTERFACEREF* InterfaceRefs) =0;
  50. };
  51. #else
  52. /* C interface definition for IRemUnknown */
  53. interface IRemUnknown
  54.     {
  55.     const IRemUnknownVtbl *  lpVtbl;
  56.     };
  57. #endif /* __cplusplus */
  58. EXTERN_C const IID IID_IRemUnknown;
  59. #ifdef __cplusplus
  60. }
  61. #endif
  62. #endif /* __INCRemUnknown_h */