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

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1999 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'StdVCL.pas' rev: 4.00
  6.  
  7. #ifndef StdVCLHPP
  8. #define StdVCLHPP
  9.  
  10. #pragma delphiheader begin
  11. #pragma option push -w-
  12. #include <SysInit.hpp>    // Pascal unit
  13. #include <System.hpp>    // Pascal unit
  14.  
  15. //-- user supplied -----------------------------------------------------------
  16. // The following was extracted from OAIDL.H and brought in here to avoid bringing
  17. // in OAIDL.H itself. It was conveniently guarded in the said header, which makes
  18. // it ideal to be plucked out and replicated.
  19. // 
  20. #ifndef __IDispatch_INTERFACE_DEFINED__
  21. #define __IDispatch_INTERFACE_DEFINED__
  22.  
  23. // Forward ref. OLE structures
  24. struct    tagDISPPARAMS;
  25. struct    tagEXCEPINFO;
  26.  
  27. // OAIDL.H would have declared DISPID as a typedef of a LONG but we don
  28. // assume it has been included. Hence, we use a macro
  29. //
  30. #define DISPID LONG
  31.  
  32. /****************************************
  33.  * Generated header for interface: IDispatch
  34.  * at Sat Jul 13 21:56:52 1996
  35.  * using MIDL 3.00.39
  36.  ****************************************/
  37. /* [unique][uuid][object] */ 
  38.  
  39.  
  40. typedef /* [unique] */ IDispatch __RPC_FAR *LPDISPATCH;
  41.  
  42. /* DISPID reserved to indicate an "unknown" name */
  43. /* only reserved for data members (properties); reused as a method dispid below */
  44. #define DISPID_UNKNOWN  ( -1 )
  45.  
  46. /* DISPID reserved for the "value" property */
  47. #define DISPID_VALUE  ( 0 )
  48.  
  49. /* The following DISPID is reserved to indicate the param
  50.  * that is the right-hand-side (or "put" value) of a PropertyPut
  51.  */
  52. #define DISPID_PROPERTYPUT  ( -3 )
  53.  
  54. /* DISPID reserved for the standard "NewEnum" method */
  55. #define DISPID_NEWENUM  ( -4 )
  56.  
  57. /* DISPID reserved for the standard "Evaluate" method */
  58. #define DISPID_EVALUATE ( -5 )
  59.  
  60. #define DISPID_CONSTRUCTOR  ( -6 )
  61.  
  62. #define DISPID_DESTRUCTOR ( -7 )
  63.  
  64. #define DISPID_COLLECT  ( -8 )
  65.  
  66. /* The range -500 through -999 is reserved for Controls */
  67. /* The range 0x80010000 through 0x8001FFFF is reserved for Controls */
  68. /* The range -5000 through -5499 is reserved for ActiveX Accessability */
  69. /* The remainder of the negative DISPIDs are reserved for future use */
  70.  
  71. EXTERN_C const IID IID_IDispatch;
  72.  
  73.     
  74.     interface IDispatch : public IUnknown
  75.     {
  76.     public:
  77.         virtual HRESULT STDMETHODCALLTYPE GetTypeInfoCount( 
  78.             /* [out] */ UINT __RPC_FAR *pctinfo) = 0;
  79.         
  80.         virtual HRESULT STDMETHODCALLTYPE GetTypeInfo( 
  81.             /* [in] */ UINT iTInfo,
  82.             /* [in] */ LCID lcid,
  83.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo) = 0;
  84.         
  85.         virtual HRESULT STDMETHODCALLTYPE GetIDsOfNames( 
  86.             /* [in] */ REFIID riid,
  87.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  88.             /* [in] */ UINT cNames,
  89.             /* [in] */ LCID lcid,
  90.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId) = 0;
  91.         
  92.         virtual /* [local] */ HRESULT STDMETHODCALLTYPE Invoke( 
  93.             /* [in] */ DISPID dispIdMember,
  94.             /* [in] */ REFIID riid,
  95.             /* [in] */ LCID lcid,
  96.             /* [in] */ WORD wFlags,
  97.             /* [out][in] */ tagDISPPARAMS __RPC_FAR *pDispParams,
  98.             /* [out] */ tagVARIANT __RPC_FAR *pVarResult,
  99.             /* [out] */ tagEXCEPINFO __RPC_FAR *pExcepInfo,
  100.             /* [out] */ UINT __RPC_FAR *puArgErr) = 0;
  101.     };
  102.     
  103.  
  104. HRESULT STDMETHODCALLTYPE IDispatch_GetTypeInfoCount_Proxy( 
  105.     IDispatch __RPC_FAR * This,
  106.     /* [out] */ UINT __RPC_FAR *pctinfo);
  107.  
  108. void __RPC_STUB IDispatch_GetTypeInfoCount_Stub(
  109.     IRpcStubBuffer *This,
  110.     IRpcChannelBuffer *_pRpcChannelBuffer,
  111.     PRPC_MESSAGE _pRpcMessage,
  112.     DWORD *_pdwStubPhase);
  113.  
  114. HRESULT STDMETHODCALLTYPE IDispatch_GetTypeInfo_Proxy( 
  115.     IDispatch __RPC_FAR * This,
  116.     /* [in] */ UINT iTInfo,
  117.     /* [in] */ LCID lcid,
  118.     /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  119.  
  120. void __RPC_STUB IDispatch_GetTypeInfo_Stub(
  121.     IRpcStubBuffer *This,
  122.     IRpcChannelBuffer *_pRpcChannelBuffer,
  123.     PRPC_MESSAGE _pRpcMessage,
  124.     DWORD *_pdwStubPhase);
  125.  
  126. HRESULT STDMETHODCALLTYPE IDispatch_GetIDsOfNames_Proxy( 
  127.     IDispatch __RPC_FAR * This,
  128.     /* [in] */ REFIID riid,
  129.     /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  130.     /* [in] */ UINT cNames,
  131.     /* [in] */ LCID lcid,
  132.     /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  133.  
  134. void __RPC_STUB IDispatch_GetIDsOfNames_Stub(
  135.     IRpcStubBuffer *This,
  136.     IRpcChannelBuffer *_pRpcChannelBuffer,
  137.     PRPC_MESSAGE _pRpcMessage,
  138.     DWORD *_pdwStubPhase);
  139.  
  140. /* [call_as] */ HRESULT STDMETHODCALLTYPE IDispatch_RemoteInvoke_Proxy( 
  141.     IDispatch __RPC_FAR * This,
  142.     /* [in] */ DISPID dispIdMember,
  143.     /* [in] */ REFIID riid,
  144.     /* [in] */ LCID lcid,
  145.     /* [in] */ DWORD dwFlags,
  146.     /* [in] */ tagDISPPARAMS __RPC_FAR *pDispParams,
  147.     /* [out] */ tagVARIANT __RPC_FAR *pVarResult,
  148.     /* [out] */ tagEXCEPINFO __RPC_FAR *pExcepInfo,
  149.     /* [out] */ UINT __RPC_FAR *pArgErr,
  150.     /* [in] */ UINT cVarRef,
  151.     /* [size_is][in] */ UINT __RPC_FAR *rgVarRefIdx,
  152.     /* [size_is][out][in] */ tagVARIANT __RPC_FAR *rgVarRef);
  153.  
  154.  
  155. void __RPC_STUB IDispatch_RemoteInvoke_Stub(
  156.     IRpcStubBuffer *This,
  157.     IRpcChannelBuffer *_pRpcChannelBuffer,
  158.     PRPC_MESSAGE _pRpcMessage,
  159.     DWORD *_pdwStubPhase);
  160.  
  161. // Remove DISPID macro defined if OAIDL was not included
  162. //
  163. #if defined(DISPID)
  164. #undef DISPID
  165. #endif
  166.  
  167. #endif  /* __IDispatch_INTERFACE_DEFINED__ */
  168.  
  169.  
  170. namespace Stdvcl
  171. {
  172. //-- type declarations -------------------------------------------------------
  173. __interface IProvider;
  174. typedef System::DelphiInterface<IProvider> _di_IProvider;
  175. __interface IProvider  : public IDispatch /* __guid="{6E644935-51F7-11D0-8D41-00A0248E4B9A}" */
  176. {
  177.     
  178. public:
  179.     virtual HRESULT __safecall Get_Data(OleVariant &Get_Data_result) = 0 ;
  180.     virtual HRESULT __safecall ApplyUpdates(const OleVariant Delta, int MaxErrors, /* out */ int &ErrorCount
  181.         , OleVariant &ApplyUpdates_result) = 0 ;
  182.     virtual HRESULT __safecall GetMetaData(OleVariant &GetMetaData_result) = 0 ;
  183.     virtual HRESULT __safecall GetRecords(int Count, /* out */ int &RecsOut, OleVariant &GetRecords_result
  184.         ) = 0 ;
  185.     virtual HRESULT __safecall DataRequest(const OleVariant Input, OleVariant &DataRequest_result) = 0 
  186.         ;
  187.     virtual HRESULT __safecall Get_Constraints(Word &Get_Constraints_result) = 0 ;
  188.     virtual HRESULT __safecall Set_Constraints(Word Value) = 0 ;
  189.     virtual HRESULT __safecall Reset(Word MetaData) = 0 ;
  190.     virtual HRESULT __safecall SetParams(const OleVariant Values) = 0 ;
  191.     #pragma option push -w-inl
  192.     /* safecall wrapper */ inline OleVariant _scw_Get_Data() { OleVariant r; HRESULT hr = Get_Data(r); System::CheckSafecallResult(hr); return r; }
  193.         
  194.     #pragma option pop
  195.     __property OleVariant Data = {read=_scw_Get_Data};
  196.     #pragma option push -w-inl
  197.     /* safecall wrapper */ inline Word _scw_Get_Constraints() { Word r; HRESULT hr = Get_Constraints(r); System::CheckSafecallResult(hr); return r; }
  198.         
  199.     #pragma option pop
  200.     __property Word Constraints = {read=_scw_Get_Constraints, write=Set_Constraints};
  201. };
  202.  
  203. __dispinterface IProviderDisp;
  204. typedef System::DelphiInterface<IProviderDisp> _di_IProviderDisp;
  205. __dispinterface IProviderDisp : public IDispatch /* __guid="{6E644935-51F7-11D0-8D41-00A0248E4B9A}" */
  206.     
  207. {
  208.     
  209. };
  210.  
  211. __interface IStrings;
  212. typedef System::DelphiInterface<IStrings> _di_IStrings;
  213. __interface IStrings  : public IDispatch /* __guid="{EE05DFE2-5549-11D0-9EA9-0020AF3D82DA}" */
  214. {
  215.     
  216. public:
  217.     virtual HRESULT __safecall Get_ControlDefault(int Index, OleVariant &Get_ControlDefault_result) = 0 
  218.         ;
  219.     virtual HRESULT __safecall Set_ControlDefault(int Index, const OleVariant Value) = 0 ;
  220.     virtual HRESULT __safecall Count(int &Count_result) = 0 ;
  221.     virtual HRESULT __safecall Get_Item(int Index, OleVariant &Get_Item_result) = 0 ;
  222.     virtual HRESULT __safecall Set_Item(int Index, const OleVariant Value) = 0 ;
  223.     virtual HRESULT __safecall Remove(int Index) = 0 ;
  224.     virtual HRESULT __safecall Clear(void) = 0 ;
  225.     virtual HRESULT __safecall Add(const OleVariant Item, int &Add_result) = 0 ;
  226.     virtual HRESULT __safecall _NewEnum(_di_IUnknown &_NewEnum_result) = 0 ;
  227.     #pragma option push -w-inl
  228.     /* safecall wrapper */ inline OleVariant _scw_Get_ControlDefault(int Index) { OleVariant r; HRESULT hr = Get_ControlDefault(
  229.         Index, r); System::CheckSafecallResult(hr); return r; }
  230.     #pragma option pop
  231.     __property OleVariant ControlDefault[int Index] = {read=_scw_Get_ControlDefault, write=Set_ControlDefault
  232.         /*, default*/};
  233.     #pragma option push -w-inl
  234.     /* safecall wrapper */ inline OleVariant _scw_Get_Item(int Index) { OleVariant r; HRESULT hr = Get_Item(
  235.         Index, r); System::CheckSafecallResult(hr); return r; }
  236.     #pragma option pop
  237.     __property OleVariant Item[int Index] = {read=_scw_Get_Item, write=Set_Item};
  238. };
  239.  
  240. __dispinterface IStringsDisp;
  241. typedef System::DelphiInterface<IStringsDisp> _di_IStringsDisp;
  242. __dispinterface IStringsDisp : public IDispatch /* __guid="{EE05DFE2-5549-11D0-9EA9-0020AF3D82DA}" */
  243.     
  244. {
  245.     
  246. };
  247.  
  248. __interface IDataBroker;
  249. typedef System::DelphiInterface<IDataBroker> _di_IDataBroker;
  250. __interface IDataBroker  : public IDispatch /* __guid="{6539BF65-6FE7-11D0-9E8C-00A02457621F}" */
  251. {
  252.     
  253. public:
  254.     virtual HRESULT __safecall GetProviderNames(OleVariant &GetProviderNames_result) = 0 ;
  255. };
  256.  
  257. __dispinterface IDataBrokerDisp;
  258. typedef System::DelphiInterface<IDataBrokerDisp> _di_IDataBrokerDisp;
  259. __dispinterface IDataBrokerDisp : public IDispatch /* __guid="{6539BF65-6FE7-11D0-9E8C-00A02457621F}" */
  260.     
  261. {
  262.     
  263. };
  264.  
  265. //-- var, const, procedure ---------------------------------------------------
  266. extern PACKAGE GUID LIBID_StdVCL;
  267.  
  268. }    /* namespace Stdvcl */
  269. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  270. using namespace Stdvcl;
  271. #endif
  272. #pragma option pop    // -w-
  273.  
  274. #pragma delphiheader end.
  275. //-- end unit ----------------------------------------------------------------
  276. #endif    // StdVCL
  277.