Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

198 lines
5.7 KiB

  1. //---------------------------------------------------------------------------
  2. // MSR2C.h : Main header file for Viaduct phase II
  3. //
  4. // Copyright (c) 1996, 1997 Microsoft Corporation, All Rights Reserved
  5. // Developed by Sheridan Software Systems, Inc.
  6. //---------------------------------------------------------------------------
  7. /////////////////////////////////////////////////////////////////////////
  8. // NOTE - you must define VD_INCLUDE_ROWPOSITION before including this //
  9. // header for ICursorFromRowPosition to be defined in your code //
  10. /////////////////////////////////////////////////////////////////////////
  11. #ifndef __MSR2C_H__
  12. #define __MSR2C_H__
  13. // {5B5E7E70-E653-11cf-84A5-0000C08C00C4}
  14. const GUID CLSID_CCursorFromRowset =
  15. { 0x5b5e7e70, 0xe653, 0x11cf, { 0x84, 0xa5, 0x0, 0x0, 0xc0, 0x8c, 0x0, 0xc4 } };
  16. // {5B5E7E72-E653-11cf-84A5-0000C08C00C4}
  17. const IID IID_ICursorFromRowset =
  18. { 0x5b5e7e72, 0xe653, 0x11cf, { 0x84, 0xa5, 0x0, 0x0, 0xc0, 0x8c, 0x0, 0xc4 } };
  19. #ifdef VD_INCLUDE_ROWPOSITION
  20. // {5B5E7E73-E653-11cf-84A5-0000C08C00C4}
  21. const IID IID_ICursorFromRowPosition =
  22. { 0x5b5e7e73, 0xe653, 0x11cf, { 0x84, 0xa5, 0x0, 0x0, 0xc0, 0x8c, 0x0, 0xc4 } };
  23. #endif //VD_INCLUDE_ROWPOSITION
  24. #if defined(__cplusplus) && !defined(CINTERFACE)
  25. interface ICursorFromRowset : public IUnknown
  26. {
  27. public:
  28. virtual HRESULT STDMETHODCALLTYPE GetCursor(
  29. /* [in] */ IRowset __RPC_FAR *pRowset,
  30. /* [out] */ ICursor __RPC_FAR **ppCursor,
  31. /* [in] */ LCID lcid) = 0;
  32. };
  33. #ifdef VD_INCLUDE_ROWPOSITION
  34. interface ICursorFromRowPosition : public IUnknown
  35. {
  36. public:
  37. virtual HRESULT STDMETHODCALLTYPE GetCursor(
  38. /* [in] */ IRowPosition __RPC_FAR *pRowPosition,
  39. /* [out] */ ICursor __RPC_FAR **ppCursor,
  40. /* [in] */ LCID lcid) = 0;
  41. };
  42. #endif //VD_INCLUDE_ROWPOSITION
  43. #else /* C style interface */
  44. typedef struct ICursorFromRowset
  45. {
  46. BEGIN_INTERFACE
  47. HRESULT (STDMETHODCALLTYPE __RPC_FAR *QueryInterface)(
  48. ICursorFromRowset __RPC_FAR *This,
  49. /* [in] */ REFIID riid,
  50. /* [out] */ void __RPC_FAR **ppvObject);
  51. ULONG (STDMETHODCALLTYPE __RPC_FAR *AddRef)(
  52. ICursorFromRowset __RPC_FAR *This);
  53. ULONG (STDMETHODCALLTYPE __RPC_FAR *Release)(
  54. ICursorFromRowset __RPC_FAR *This);
  55. HRESULT (STDMETHODCALLTYPE __RPC_FAR *GetCursor)(
  56. ICursorFromRowset __RPC_FAR *This,
  57. /* [in] */ IRowset __RPC_FAR *pRowset,
  58. /* [out] */ ICursor __RPC_FAR **ppCursor,
  59. /* [in] */ LCID lcid);
  60. END_INTERFACE
  61. } ICursorFromRowsetVtbl;
  62. interface ICursorFromRowset
  63. {
  64. CONST_VTBL struct ICursorFromRowsetVtbl __RPC_FAR *lpVtbl;
  65. };
  66. #ifdef VD_INCLUDE_ROWPOSITION
  67. typedef struct ICursorFromRowPosition
  68. {
  69. BEGIN_INTERFACE
  70. HRESULT (STDMETHODCALLTYPE __RPC_FAR *QueryInterface)(
  71. ICursorFromRowPosition __RPC_FAR *This,
  72. /* [in] */ REFIID riid,
  73. /* [out] */ void __RPC_FAR **ppvObject);
  74. ULONG (STDMETHODCALLTYPE __RPC_FAR *AddRef)(
  75. ICursorFromRowPosition __RPC_FAR *This);
  76. ULONG (STDMETHODCALLTYPE __RPC_FAR *Release)(
  77. ICursorFromRowPosition __RPC_FAR *This);
  78. HRESULT (STDMETHODCALLTYPE __RPC_FAR *GetCursor)(
  79. ICursorFromRowPosition __RPC_FAR *This,
  80. /* [in] */ IRowPosition __RPC_FAR *pRowPosition,
  81. /* [out] */ ICursor __RPC_FAR **ppCursor,
  82. /* [in] */ LCID lcid);
  83. END_INTERFACE
  84. } ICursorFromRowPositionVtbl;
  85. interface ICursorFromRowPosition
  86. {
  87. CONST_VTBL struct ICursorFromRowPositionVtbl __RPC_FAR *lpVtbl;
  88. };
  89. #endif //VD_INCLUDE_ROWPOSITION
  90. #endif /* C style interface */
  91. #ifdef __cplusplus
  92. extern "C" {
  93. #endif
  94. // old entry point
  95. HRESULT WINAPI VDGetICursorFromIRowset(IRowset * pRowset,
  96. ICursor ** ppCursor,
  97. LCID lcid);
  98. #ifdef __cplusplus
  99. }
  100. #endif
  101. //
  102. // MessageId: VD_E_CANNOTGETMANDATORYINTERFACE
  103. //
  104. // MessageText:
  105. //
  106. // Unable to get required interface
  107. //
  108. #define VD_E_CANNOTGETMANDATORYINTERFACE ((HRESULT)0x80050E00L)
  109. //
  110. // MessageId: VD_E_CANNOTCONNECTIROWSETNOTIFY
  111. //
  112. // MessageText:
  113. //
  114. // Unable to connect IRowsetNotify
  115. //
  116. #define VD_E_CANNOTCONNECTIROWSETNOTIFY ((HRESULT)0x80050E31L)
  117. //
  118. // MessageId: VD_E_CANNOTGETCOLUMNINFO
  119. //
  120. // MessageText:
  121. //
  122. // Unable to get column information
  123. //
  124. #define VD_E_CANNOTGETCOLUMNINFO ((HRESULT)0x80050E32L)
  125. //
  126. // MessageId: VD_E_CANNOTCREATEBOOKMARKACCESSOR
  127. //
  128. // MessageText:
  129. //
  130. // Unable to create bookmark accessor
  131. //
  132. #define VD_E_CANNOTCREATEBOOKMARKACCESSOR ((HRESULT)0x80050E33L)
  133. //
  134. // MessageId: VD_E_REQUIREDPROPERTYNOTSUPPORTED
  135. //
  136. // MessageText:
  137. //
  138. // Require rowset property is not supported
  139. //
  140. #define VD_E_REQUIREDPROPERTYNOTSUPPORTED ((HRESULT)0x80050E34L)
  141. //
  142. // MessageId: VD_E_CANNOTGETROWSETINTERFACE
  143. //
  144. // MessageText:
  145. //
  146. // Unable to get rowset interface
  147. //
  148. #define VD_E_CANNOTGETROWSETINTERFACE ((HRESULT)0x80050E35L)
  149. //
  150. // MessageId: VD_E_CANNOTCONNECTIROWPOSITIONCHANGE
  151. //
  152. // MessageText:
  153. //
  154. // Unable to connect IRowPositionChange
  155. //
  156. #define VD_E_CANNOTCONNECTIROWPOSITIONCHANGE ((HRESULT)0x80050E36L)
  157. #endif //__MSR2C_H__
  158. /////////////////////////////////////////////////////////////////////////////