home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / Runimage / Cbuilder4 / Include / MSDASQL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-26  |  8.4 KB  |  262 lines

  1. //--------------------------------------------------------------------
  2. // Microsoft OLE DB Provider for ODBC data 
  3. // (C) Copyright 1994 - 1996 By Microsoft Corporation.
  4. //
  5. // @doc
  6. //
  7. // @module MSDASQL.H | Provider Specific definitions
  8. //
  9. //--------------------------------------------------------------------
  10.  
  11. #ifndef  _MSDASQL_H_
  12. #pragma option push -b -a8 -pc -A- /*P_O_Push_S*/
  13. #define  _MSDASQL_H_
  14.  
  15. // Provider Class Id
  16. #ifdef DBINITCONSTANTS
  17. // @msg IID_IRowsetChangeExtInfo | {0c733a8f-2a1c-11ce-ade5-00aa0044773d}
  18. extern const GUID IID_IRowsetChangeExtInfo    = {0x0C733A8FL,0x2A1C,0x11CE,{0xAD,0xE5,0x00,0xAA,0x00,0x44,0x77,0x3D}};
  19. extern const GUID CLSID_MSDASQL               = {0xC8B522CBL,0x5CF3,0x11CE,{0xAD,0xE5,0x00,0xAA,0x00,0x44,0x77,0x3D}};
  20. extern const GUID CLSID_MSDASQL_ENUMERATOR    = {0xC8B522CDL,0x5CF3,0x11CE,{0xAD,0xE5,0x00,0xAA,0x00,0x44,0x77,0x3D}};
  21. #else // !DBINITCONSTANTS
  22. extern const GUID IID_IRowsetChangeExtInfo;
  23. extern const GUID CLSID_MSDASQL;
  24. extern const GUID CLSID_MSDASQL_ENUMERATOR;
  25. #endif // DBINITCONSTANTS
  26.  
  27. //----------------------------------------------------------------------------
  28. // MSDASQL specific properties
  29. #ifdef DBINITCONSTANTS
  30. extern const GUID DBPROPSET_PROVIDERDATASOURCEINFO    = {0x497c60e0,0x7123,0x11cf,{0xb1,0x71,0x0,0xaa,0x0,0x57,0x59,0x9e}};
  31. extern const GUID DBPROPSET_PROVIDERROWSET          = {0x497c60e1,0x7123,0x11cf,{0xb1,0x71,0x0,0xaa,0x0,0x57,0x59,0x9e}};
  32. #else // !DBINITCONSTANTS
  33. extern const GUID DBPROPSET_PROVIDERDATASOURCEINFO;
  34. extern const GUID DBPROPSET_PROVIDERROWSET;
  35. #endif // DBINITCONSTANTS
  36.  
  37. // PropIds under DBPROPSET_PROVIDERROWSET 
  38. #define KAGPROP_QUERYBASEDUPDATES            2
  39. #define KAGPROP_MARSHALLABLE                3
  40. #define KAGPROP_POSITIONONNEWROW            4
  41. #define    KAGPROP_IRowsetChangeExtInfo        5
  42. #define KAGPROP_CURSOR                        6
  43. #define KAGPROP_CONCURRENCY                    7
  44. #define KAGPROP_BLOBSONFOCURSOR                8
  45. #define KAGPROP_INCLUDENONEXACT                9
  46.  
  47. // PropIds under DPBROPSET_PRIVIDERDATASOURCEINFO
  48. #define KAGPROP_ACCESSIBLEPROCEDURES        2
  49. #define KAGPROP_ACCESSIBLETABLES            3
  50. #define KAGPROP_ODBCSQLOPTIEF                4
  51. #define KAGPROP_OJCAPABILITY                5
  52. #define KAGPROP_PROCEDURES                    6
  53. #define KAGPROP_DRIVERNAME                    7
  54. #define KAGPROP_DRIVERVER                    8
  55. #define KAGPROP_DRIVERODBCVER                9
  56. #define KAGPROP_LIKEESCAPECLAUSE            10
  57. #define KAGPROP_SPECIALCHARACTERS            11
  58. #define KAGPROP_MAXCOLUMNSINGROUPBY            12
  59. #define KAGPROP_MAXCOLUMNSININDEX            13
  60. #define KAGPROP_MAXCOLUMNSINORDERBY            14
  61. #define KAGPROP_MAXCOLUMNSINSELECT            15
  62. #define KAGPROP_MAXCOLUMNSINTABLE            16
  63. #define KAGPROP_NUMERICFUNCTIONS            17
  64. #define KAGPROP_ODBCSQLCONFORMANCE            18
  65. #define KAGPROP_OUTERJOINS                    19
  66. #define KAGPROP_STRINGFUNCTIONS                20
  67. #define KAGPROP_SYSTEMFUNCTIONS                21
  68. #define KAGPROP_TIMEDATEFUNCTIONS            22
  69. #define KAGPROP_FILEUSAGE                    23
  70. #define KAGPROP_ACTIVESTATEMENTS            24
  71.  
  72.  
  73. // Bitmask values for KAGPROP_CONCURRENCY
  74. #define KAGPROPVAL_CONCUR_ROWVER            0x00000001
  75. #define KAGPROPVAL_CONCUR_VALUES            0x00000002
  76. #define KAGPROPVAL_CONCUR_LOCK                0x00000004
  77. #define KAGPROPVAL_CONCUR_READ_ONLY            0x00000008
  78.  
  79.  
  80. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  81.  
  82.  
  83. /* File created by MIDL compiler version 3.00.15 */
  84. /* at Tue Sep 24 13:38:00 1996
  85.  */
  86. /* Compiler settings for rstcei.idl:
  87.     Os, W1, Zp8, env=Win32, ms_ext, c_ext
  88.     error checks: none
  89. */
  90. //@@MIDL_FILE_HEADING(  )
  91. #include "rpc.h"
  92. #include "rpcndr.h"
  93. #ifndef COM_NO_WINDOWS_H
  94. #include "windows.h"
  95. #include "ole2.h"
  96. #endif /*COM_NO_WINDOWS_H*/
  97.  
  98. #ifndef __rstcei_h__
  99. #define __rstcei_h__
  100.  
  101. #ifdef __cplusplus
  102. extern "C"{
  103. #endif 
  104.  
  105. /* Forward Declarations */ 
  106.  
  107. #ifndef __IRowsetChangeExtInfo_FWD_DEFINED__
  108. #define __IRowsetChangeExtInfo_FWD_DEFINED__
  109. typedef interface IRowsetChangeExtInfo IRowsetChangeExtInfo;
  110. #endif     /* __IRowsetChangeExtInfo_FWD_DEFINED__ */
  111.  
  112. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  113. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  114.  
  115. #ifndef __IRowsetChangeExtInfo_INTERFACE_DEFINED__
  116. #define __IRowsetChangeExtInfo_INTERFACE_DEFINED__
  117.  
  118. /****************************************
  119.  * Generated header for interface: IRowsetChangeExtInfo
  120.  * at Tue Sep 24 13:38:00 1996
  121.  * using MIDL 3.00.15
  122.  ****************************************/
  123. /* [unique][uuid][object][local] */ 
  124.  
  125.  
  126.  
  127. EXTERN_C const IID IID_IRowsetChangeExtInfo;
  128.  
  129. #if defined(__cplusplus) && !defined(CINTERFACE)
  130.     
  131.     interface IRowsetChangeExtInfo : public IUnknown
  132.     {
  133.     public:
  134.         virtual HRESULT STDMETHODCALLTYPE GetOriginalRow( 
  135.             /* [in] */ HCHAPTER hReserved,
  136.             /* [in] */ HROW hRow,
  137.             /* [out] */ HROW __RPC_FAR *phRowOriginal) = 0;
  138.         
  139.         virtual HRESULT STDMETHODCALLTYPE GetPendingColumns( 
  140.             /* [in] */ HCHAPTER hReserved,
  141.             /* [in] */ HROW hRow,
  142.             /* [in] */ ULONG cColumnOrdinals,
  143.             /* [size_is][in] */ const ULONG __RPC_FAR rgiOrdinals[  ],
  144.             /* [size_is][out] */ DBPENDINGSTATUS __RPC_FAR rgColumnStatus[  ]) = 0;
  145.         
  146.     };
  147.     
  148. #else     /* C style interface */
  149.  
  150.     typedef struct IRowsetChangeExtInfoVtbl
  151.     {
  152.         BEGIN_INTERFACE
  153.         
  154.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  155.             IRowsetChangeExtInfo __RPC_FAR * This,
  156.             /* [in] */ REFIID riid,
  157.             /* [out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  158.         
  159.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  160.             IRowsetChangeExtInfo __RPC_FAR * This);
  161.         
  162.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  163.             IRowsetChangeExtInfo __RPC_FAR * This);
  164.         
  165.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetOriginalRow )( 
  166.             IRowsetChangeExtInfo __RPC_FAR * This,
  167.             /* [in] */ HCHAPTER hReserved,
  168.             /* [in] */ HROW hRow,
  169.             /* [out] */ HROW __RPC_FAR *phRowOriginal);
  170.         
  171.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetPendingColumns )( 
  172.             IRowsetChangeExtInfo __RPC_FAR * This,
  173.             /* [in] */ HCHAPTER hReserved,
  174.             /* [in] */ HROW hRow,
  175.             /* [in] */ ULONG cColumnOrdinals,
  176.             /* [size_is][in] */ const ULONG __RPC_FAR rgiOrdinals[  ],
  177.             /* [size_is][out] */ DBPENDINGSTATUS __RPC_FAR rgColumnStatus[  ]);
  178.         
  179.         END_INTERFACE
  180.     } IRowsetChangeExtInfoVtbl;
  181.  
  182.     interface IRowsetChangeExtInfo
  183.     {
  184.         CONST_VTBL struct IRowsetChangeExtInfoVtbl __RPC_FAR *lpVtbl;
  185.     };
  186.  
  187.     
  188.  
  189. #ifdef COBJMACROS
  190.  
  191.  
  192. #define IRowsetChangeExtInfo_QueryInterface(This,riid,ppvObject)    \
  193.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  194.  
  195. #define IRowsetChangeExtInfo_AddRef(This)    \
  196.     (This)->lpVtbl -> AddRef(This)
  197.  
  198. #define IRowsetChangeExtInfo_Release(This)    \
  199.     (This)->lpVtbl -> Release(This)
  200.  
  201.  
  202. #define IRowsetChangeExtInfo_GetOriginalRow(This,hReserved,hRow,phRowOriginal)    \
  203.     (This)->lpVtbl -> GetOriginalRow(This,hReserved,hRow,phRowOriginal)
  204.  
  205. #define IRowsetChangeExtInfo_GetPendingColumns(This,hReserved,hRow,cColumnOrdinals,rgiOrdinals,rgColumnStatus)    \
  206.     (This)->lpVtbl -> GetPendingColumns(This,hReserved,hRow,cColumnOrdinals,rgiOrdinals,rgColumnStatus)
  207.  
  208. #endif /* COBJMACROS */
  209.  
  210.  
  211. #endif     /* C style interface */
  212.  
  213.  
  214.  
  215. HRESULT STDMETHODCALLTYPE IRowsetChangeExtInfo_GetOriginalRow_Proxy( 
  216.     IRowsetChangeExtInfo __RPC_FAR * This,
  217.     /* [in] */ HCHAPTER hReserved,
  218.     /* [in] */ HROW hRow,
  219.     /* [out] */ HROW __RPC_FAR *phRowOriginal);
  220.  
  221.  
  222. void __RPC_STUB IRowsetChangeExtInfo_GetOriginalRow_Stub(
  223.     IRpcStubBuffer *This,
  224.     IRpcChannelBuffer *_pRpcChannelBuffer,
  225.     PRPC_MESSAGE _pRpcMessage,
  226.     DWORD *_pdwStubPhase);
  227.  
  228.  
  229. HRESULT STDMETHODCALLTYPE IRowsetChangeExtInfo_GetPendingColumns_Proxy( 
  230.     IRowsetChangeExtInfo __RPC_FAR * This,
  231.     /* [in] */ HCHAPTER hReserved,
  232.     /* [in] */ HROW hRow,
  233.     /* [in] */ ULONG cColumnOrdinals,
  234.     /* [size_is][in] */ const ULONG __RPC_FAR rgiOrdinals[  ],
  235.     /* [size_is][out] */ DBPENDINGSTATUS __RPC_FAR rgColumnStatus[  ]);
  236.  
  237.  
  238. void __RPC_STUB IRowsetChangeExtInfo_GetPendingColumns_Stub(
  239.     IRpcStubBuffer *This,
  240.     IRpcChannelBuffer *_pRpcChannelBuffer,
  241.     PRPC_MESSAGE _pRpcMessage,
  242.     DWORD *_pdwStubPhase);
  243.  
  244.  
  245.  
  246. #endif     /* __IRowsetChangeExtInfo_INTERFACE_DEFINED__ */
  247.  
  248.  
  249. /* Additional Prototypes for ALL interfaces */
  250.  
  251. /* end of Additional Prototypes */
  252.  
  253. #ifdef __cplusplus
  254. }
  255. #endif
  256.  
  257. #endif
  258.  
  259. #pragma option pop /*P_O_Pop*/
  260. #endif
  261. //----
  262.