errrec.idl
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:3k
源码类别:

模拟服务器

开发平台:

C/C++

  1. //-----------------------------------------------------------------------------
  2. // File: errrec.idl
  3. //
  4. // Copyright: Copyright (c) Microsoft Corporation          
  5. //
  6. // Contents:  OLE DB interface definition
  7. //
  8. // Comments: 
  9. //
  10. //-----------------------------------------------------------------------------
  11. #include "idlmulti.h"
  12. //
  13.     REMOTED_INTERFACE(0c733a67-2a1c-11ce-ade5-00aa0044773d)
  14. interface IErrorRecords : IUnknown {
  15. cpp_quote("#define IDENTIFIER_SDK_MASK 0xF0000000")
  16. cpp_quote("#define IDENTIFIER_SDK_ERROR 0x10000000")
  17. typedef struct tagERRORINFO {
  18. HRESULT hrError;
  19. DWORD dwMinor;
  20. CLSID clsid;
  21. IID iid;
  22. DISPID dispid;
  23. } ERRORINFO;
  24. [local]
  25. HRESULT AddErrorRecord(
  26. [in] ERRORINFO * pErrorInfo,
  27. [in] DWORD dwLookupID,
  28. [in] DISPPARAMS * pdispparams,
  29. [in] IUnknown * punkCustomError,
  30. [in] DWORD dwDynamicErrorID
  31. );
  32. [call_as(AddErrorRecord)]
  33. HRESULT RemoteAddErrorRecord(
  34. [in] ERRORINFO * pErrorInfo,
  35. [in] DWORD dwLookupID,
  36. [in] DISPPARAMS * pdispparams,
  37. [in] IUnknown * punkCustomError,
  38. [in] DWORD dwDynamicErrorID,
  39. [out] IErrorInfo ** ppErrorInfoRem
  40. );
  41. [local]
  42. HRESULT GetBasicErrorInfo(
  43. [in] ULONG ulRecordNum,
  44. [out] ERRORINFO * pErrorInfo
  45. );
  46. [call_as(GetBasicErrorInfo)]
  47. HRESULT RemoteGetBasicErrorInfo(
  48. [in] ULONG ulRecordNum,
  49. [out] ERRORINFO * pErrorInfo,
  50. [out] IErrorInfo ** ppErrorInfoRem
  51. );
  52. [local]
  53. HRESULT GetCustomErrorObject(
  54. [in] ULONG ulRecordNum,
  55. [in] REFIID riid,
  56. [out, iid_is(riid)] IUnknown ** ppObject
  57. );
  58. [call_as(GetCustomErrorObject)]
  59. HRESULT RemoteGetCustomErrorObject(
  60. [in] ULONG ulRecordNum,
  61. [in] REFIID riid,
  62. [out, iid_is(riid)] IUnknown ** ppObject,
  63. [out] IErrorInfo ** ppErrorInfoRem
  64. );
  65. [local]
  66. HRESULT GetErrorInfo(
  67. [in] ULONG ulRecordNum,
  68. [in] LCID lcid,
  69. [out] IErrorInfo ** ppErrorInfo
  70. );
  71. [call_as(GetErrorInfo)]
  72. HRESULT RemoteGetErrorInfo(
  73. [in] ULONG ulRecordNum,
  74. [in] LCID lcid,
  75. [out] IErrorInfo ** ppErrorInfo,
  76. [out] IErrorInfo ** ppErrorInfoRem
  77. );
  78. [local]
  79. HRESULT GetErrorParameters(
  80. [in] ULONG ulRecordNum,
  81. [out] DISPPARAMS * pdispparams
  82. );
  83. [call_as(GetErrorParameters)]
  84. HRESULT RemoteGetErrorParameters(
  85. [in] ULONG ulRecordNum,
  86. [out] DISPPARAMS * pdispparams,
  87. [out] IErrorInfo ** ppErrorInfoRem
  88. );
  89. [local]
  90. HRESULT GetRecordCount(
  91. [out] ULONG * pcRecords
  92. );
  93. [call_as(GetRecordCount)]
  94. HRESULT RemoteGetRecordCount(
  95. [out] ULONG * pcRecords,
  96. [out] IErrorInfo ** ppErrorInfoRem
  97. );
  98. }