opccomn.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:6k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* opccomn.h generated by WIDL Version 2.2.1 on 06-Dec-01 at 11:53:54 AM */
  2. #include "comBase.h"
  3. #ifndef __INCopccomn_h
  4. #define __INCopccomn_h
  5. #include "vxidl.h"
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. int include_opccomn (void);
  10. #ifndef __IOPCShutdown_FWD_DEFINED__
  11. #define __IOPCShutdown_FWD_DEFINED__
  12. typedef interface IOPCShutdown IOPCShutdown;
  13. #endif /* __IOPCShutdown_FWD_DEFINED__ */
  14. #ifndef __IOPCCommon_FWD_DEFINED__
  15. #define __IOPCCommon_FWD_DEFINED__
  16. typedef interface IOPCCommon IOPCCommon;
  17. #endif /* __IOPCCommon_FWD_DEFINED__ */
  18. #ifndef __IOPCServerList_FWD_DEFINED__
  19. #define __IOPCServerList_FWD_DEFINED__
  20. typedef interface IOPCServerList IOPCServerList;
  21. #endif /* __IOPCServerList_FWD_DEFINED__ */
  22. typedef struct
  23.     {
  24.     COM_VTBL_BEGIN
  25.     COM_VTBL_ENTRY (HRESULT, QueryInterface, (IUnknown* pThis, REFIID riid, void** ppvObject));
  26. #define IUnknown_QueryInterface(pThis, riid, ppvObject) pThis->lpVtbl->QueryInterface(COM_ADJUST_THIS(pThis), riid, ppvObject)
  27.     COM_VTBL_ENTRY (ULONG, AddRef, (IUnknown* pThis));
  28. #define IUnknown_AddRef(pThis) pThis->lpVtbl->AddRef(COM_ADJUST_THIS(pThis))
  29.     COM_VTBL_ENTRY (ULONG, Release, (IUnknown* pThis));
  30. #define IUnknown_Release(pThis) pThis->lpVtbl->Release(COM_ADJUST_THIS(pThis))
  31.     COM_VTBL_ENTRY (HRESULT, ShutdownRequest, (IOPCShutdown* pThis, LPCWSTR szReason));
  32. #define IOPCShutdown_ShutdownRequest(pThis, szReason) pThis->lpVtbl->ShutdownRequest(COM_ADJUST_THIS(pThis), szReason)
  33.     COM_VTBL_END
  34.     } IOPCShutdownVtbl;
  35. #ifdef __cplusplus
  36. interface IOPCShutdown : public IUnknown
  37. {
  38. virtual HRESULT ShutdownRequest (LPCWSTR szReason) =0;
  39. };
  40. #else
  41. /* C interface definition for IOPCShutdown */
  42. interface IOPCShutdown
  43.     {
  44.     const IOPCShutdownVtbl *  lpVtbl;
  45.     };
  46. #endif /* __cplusplus */
  47. EXTERN_C const IID IID_IOPCShutdown;
  48. typedef struct
  49.     {
  50.     COM_VTBL_BEGIN
  51.     COM_VTBL_ENTRY (HRESULT, QueryInterface, (IUnknown* pThis, REFIID riid, void** ppvObject));
  52. #define IUnknown_QueryInterface(pThis, riid, ppvObject) pThis->lpVtbl->QueryInterface(COM_ADJUST_THIS(pThis), riid, ppvObject)
  53.     COM_VTBL_ENTRY (ULONG, AddRef, (IUnknown* pThis));
  54. #define IUnknown_AddRef(pThis) pThis->lpVtbl->AddRef(COM_ADJUST_THIS(pThis))
  55.     COM_VTBL_ENTRY (ULONG, Release, (IUnknown* pThis));
  56. #define IUnknown_Release(pThis) pThis->lpVtbl->Release(COM_ADJUST_THIS(pThis))
  57.     COM_VTBL_ENTRY (HRESULT, SetLocaleID, (IOPCCommon* pThis, LCID dwLcid));
  58. #define IOPCCommon_SetLocaleID(pThis, dwLcid) pThis->lpVtbl->SetLocaleID(COM_ADJUST_THIS(pThis), dwLcid)
  59.     COM_VTBL_ENTRY (HRESULT, GetLocaleID, (IOPCCommon* pThis, LCID* pdwLcid));
  60. #define IOPCCommon_GetLocaleID(pThis, pdwLcid) pThis->lpVtbl->GetLocaleID(COM_ADJUST_THIS(pThis), pdwLcid)
  61.     COM_VTBL_ENTRY (HRESULT, QueryAvailableLocaleIDs, (IOPCCommon* pThis, DWORD* pdwCount, LCID** pdwLcid));
  62. #define IOPCCommon_QueryAvailableLocaleIDs(pThis, pdwCount, pdwLcid) pThis->lpVtbl->QueryAvailableLocaleIDs(COM_ADJUST_THIS(pThis), pdwCount, pdwLcid)
  63.     COM_VTBL_ENTRY (HRESULT, GetErrorString, (IOPCCommon* pThis, HRESULT dwError, LPWSTR* ppString));
  64. #define IOPCCommon_GetErrorString(pThis, dwError, ppString) pThis->lpVtbl->GetErrorString(COM_ADJUST_THIS(pThis), dwError, ppString)
  65.     COM_VTBL_ENTRY (HRESULT, SetClientName, (IOPCCommon* pThis, LPCWSTR szName));
  66. #define IOPCCommon_SetClientName(pThis, szName) pThis->lpVtbl->SetClientName(COM_ADJUST_THIS(pThis), szName)
  67.     COM_VTBL_END
  68.     } IOPCCommonVtbl;
  69. #ifdef __cplusplus
  70. interface IOPCCommon : public IUnknown
  71. {
  72. virtual HRESULT SetLocaleID (LCID dwLcid) =0;
  73. virtual HRESULT GetLocaleID (LCID* pdwLcid) =0;
  74. virtual HRESULT QueryAvailableLocaleIDs (DWORD* pdwCount, LCID** pdwLcid) =0;
  75. virtual HRESULT GetErrorString (HRESULT dwError, LPWSTR* ppString) =0;
  76. virtual HRESULT SetClientName (LPCWSTR szName) =0;
  77. };
  78. #else
  79. /* C interface definition for IOPCCommon */
  80. interface IOPCCommon
  81.     {
  82.     const IOPCCommonVtbl *  lpVtbl;
  83.     };
  84. #endif /* __cplusplus */
  85. EXTERN_C const IID IID_IOPCCommon;
  86. typedef struct
  87.     {
  88.     COM_VTBL_BEGIN
  89.     COM_VTBL_ENTRY (HRESULT, QueryInterface, (IUnknown* pThis, REFIID riid, void** ppvObject));
  90. #define IUnknown_QueryInterface(pThis, riid, ppvObject) pThis->lpVtbl->QueryInterface(COM_ADJUST_THIS(pThis), riid, ppvObject)
  91.     COM_VTBL_ENTRY (ULONG, AddRef, (IUnknown* pThis));
  92. #define IUnknown_AddRef(pThis) pThis->lpVtbl->AddRef(COM_ADJUST_THIS(pThis))
  93.     COM_VTBL_ENTRY (ULONG, Release, (IUnknown* pThis));
  94. #define IUnknown_Release(pThis) pThis->lpVtbl->Release(COM_ADJUST_THIS(pThis))
  95.     COM_VTBL_ENTRY (HRESULT, EnumClassesOfCategories, (IOPCServerList* pThis, ULONG cImplemented, CATID* rgcatidImpl, ULONG cRequired, CATID* rgcatidReq, IEnumGUID** ppenumClsid));
  96. #define IOPCServerList_EnumClassesOfCategories(pThis, cImplemented, rgcatidImpl, cRequired, rgcatidReq, ppenumClsid) pThis->lpVtbl->EnumClassesOfCategories(COM_ADJUST_THIS(pThis), cImplemented, rgcatidImpl, cRequired, rgcatidReq, ppenumClsid)
  97.     COM_VTBL_ENTRY (HRESULT, GetClassDetails, (IOPCServerList* pThis, REFCLSID clsid, LPOLESTR* ppszProgID, LPOLESTR* ppszUserType));
  98. #define IOPCServerList_GetClassDetails(pThis, clsid, ppszProgID, ppszUserType) pThis->lpVtbl->GetClassDetails(COM_ADJUST_THIS(pThis), clsid, ppszProgID, ppszUserType)
  99.     COM_VTBL_ENTRY (HRESULT, CLSIDFromProgID, (IOPCServerList* pThis, LPCOLESTR szProgId, LPCLSID clsid));
  100. #define IOPCServerList_CLSIDFromProgID(pThis, szProgId, clsid) pThis->lpVtbl->CLSIDFromProgID(COM_ADJUST_THIS(pThis), szProgId, clsid)
  101.     COM_VTBL_END
  102.     } IOPCServerListVtbl;
  103. #ifdef __cplusplus
  104. interface IOPCServerList : public IUnknown
  105. {
  106. virtual HRESULT EnumClassesOfCategories (ULONG cImplemented, CATID* rgcatidImpl, ULONG cRequired, CATID* rgcatidReq, IEnumGUID** ppenumClsid) =0;
  107. virtual HRESULT GetClassDetails (REFCLSID clsid, LPOLESTR* ppszProgID, LPOLESTR* ppszUserType) =0;
  108. virtual HRESULT CLSIDFromProgID (LPCOLESTR szProgId, LPCLSID clsid) =0;
  109. };
  110. #else
  111. /* C interface definition for IOPCServerList */
  112. interface IOPCServerList
  113.     {
  114.     const IOPCServerListVtbl *  lpVtbl;
  115.     };
  116. #endif /* __cplusplus */
  117. EXTERN_C const IID IID_IOPCServerList;
  118. #ifdef __cplusplus
  119. }
  120. #endif
  121. #endif /* __INCopccomn_h */