home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 27 / IOPROG_27.ISO / SOFT / ADSDK.ZIP / ResourceKit / SDK / ADsRAS.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-04-13  |  10.0 KB  |  327 lines

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2.  
  3.  
  4. /* File created by MIDL compiler version 5.01.0164 */
  5. /* at Tue Apr 13 11:18:46 1999
  6.  */
  7. /* Compiler settings for C:\projects\RTK\ADsRAS\ADsRAS.idl:
  8.     Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
  9.     error checks: allocation ref bounds_check enum stub_data 
  10. */
  11. //@@MIDL_FILE_HEADING(  )
  12.  
  13.  
  14. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  15. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  16. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  17. #endif
  18.  
  19. #include "rpc.h"
  20. #include "rpcndr.h"
  21.  
  22. #ifndef __RPCNDR_H_VERSION__
  23. #error this stub requires an updated version of <rpcndr.h>
  24. #endif // __RPCNDR_H_VERSION__
  25.  
  26. #ifndef COM_NO_WINDOWS_H
  27. #include "windows.h"
  28. #include "ole2.h"
  29. #endif /*COM_NO_WINDOWS_H*/
  30.  
  31. #ifndef __ADsRAS_h__
  32. #define __ADsRAS_h__
  33.  
  34. #ifdef __cplusplus
  35. extern "C"{
  36. #endif 
  37.  
  38. /* Forward Declarations */ 
  39.  
  40. #ifndef __IADsRas_FWD_DEFINED__
  41. #define __IADsRas_FWD_DEFINED__
  42. typedef interface IADsRas IADsRas;
  43. #endif     /* __IADsRas_FWD_DEFINED__ */
  44.  
  45.  
  46. #ifndef __ADsRas_FWD_DEFINED__
  47. #define __ADsRas_FWD_DEFINED__
  48.  
  49. #ifdef __cplusplus
  50. typedef class ADsRas ADsRas;
  51. #else
  52. typedef struct ADsRas ADsRas;
  53. #endif /* __cplusplus */
  54.  
  55. #endif     /* __ADsRas_FWD_DEFINED__ */
  56.  
  57.  
  58. /* header files for imported files */
  59. #include "oaidl.h"
  60. #include "ocidl.h"
  61.  
  62. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  63. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  64.  
  65. #ifndef __IADsRas_INTERFACE_DEFINED__
  66. #define __IADsRas_INTERFACE_DEFINED__
  67.  
  68. /* interface IADsRas */
  69. /* [unique][helpstring][dual][uuid][object] */ 
  70.  
  71.  
  72. EXTERN_C const IID IID_IADsRas;
  73.  
  74. #if defined(__cplusplus) && !defined(CINTERFACE)
  75.     
  76.     MIDL_INTERFACE("F1F533EF-F118-11D2-BC88-00C04FD430AF")
  77.     IADsRas : public IDispatch
  78.     {
  79.     public:
  80.         virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_DialinPrivilege( 
  81.             /* [retval][out] */ BOOL __RPC_FAR *pVal) = 0;
  82.         
  83.         virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_DialinPrivilege( 
  84.             /* [in] */ BOOL newVal) = 0;
  85.         
  86.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetRasCallBack( 
  87.             /* [in] */ long lCallBack,
  88.             /* [optional][in] */ BSTR szPhoneNumber) = 0;
  89.         
  90.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetRasCallBack( 
  91.             /* [retval][out] */ long __RPC_FAR *lPrivilege) = 0;
  92.         
  93.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetRasPhoneNumber( 
  94.             /* [retval][out] */ BSTR __RPC_FAR *pszPhoneNumber) = 0;
  95.         
  96.     };
  97.     
  98. #else     /* C style interface */
  99.  
  100.     typedef struct IADsRasVtbl
  101.     {
  102.         BEGIN_INTERFACE
  103.         
  104.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  105.             IADsRas __RPC_FAR * This,
  106.             /* [in] */ REFIID riid,
  107.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  108.         
  109.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  110.             IADsRas __RPC_FAR * This);
  111.         
  112.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  113.             IADsRas __RPC_FAR * This);
  114.         
  115.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  116.             IADsRas __RPC_FAR * This,
  117.             /* [out] */ UINT __RPC_FAR *pctinfo);
  118.         
  119.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  120.             IADsRas __RPC_FAR * This,
  121.             /* [in] */ UINT iTInfo,
  122.             /* [in] */ LCID lcid,
  123.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  124.         
  125.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  126.             IADsRas __RPC_FAR * This,
  127.             /* [in] */ REFIID riid,
  128.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  129.             /* [in] */ UINT cNames,
  130.             /* [in] */ LCID lcid,
  131.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  132.         
  133.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  134.             IADsRas __RPC_FAR * This,
  135.             /* [in] */ DISPID dispIdMember,
  136.             /* [in] */ REFIID riid,
  137.             /* [in] */ LCID lcid,
  138.             /* [in] */ WORD wFlags,
  139.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  140.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  141.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  142.             /* [out] */ UINT __RPC_FAR *puArgErr);
  143.         
  144.         /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *get_DialinPrivilege )( 
  145.             IADsRas __RPC_FAR * This,
  146.             /* [retval][out] */ BOOL __RPC_FAR *pVal);
  147.         
  148.         /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *put_DialinPrivilege )( 
  149.             IADsRas __RPC_FAR * This,
  150.             /* [in] */ BOOL newVal);
  151.         
  152.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *SetRasCallBack )( 
  153.             IADsRas __RPC_FAR * This,
  154.             /* [in] */ long lCallBack,
  155.             /* [optional][in] */ BSTR szPhoneNumber);
  156.         
  157.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetRasCallBack )( 
  158.             IADsRas __RPC_FAR * This,
  159.             /* [retval][out] */ long __RPC_FAR *lPrivilege);
  160.         
  161.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetRasPhoneNumber )( 
  162.             IADsRas __RPC_FAR * This,
  163.             /* [retval][out] */ BSTR __RPC_FAR *pszPhoneNumber);
  164.         
  165.         END_INTERFACE
  166.     } IADsRasVtbl;
  167.  
  168.     interface IADsRas
  169.     {
  170.         CONST_VTBL struct IADsRasVtbl __RPC_FAR *lpVtbl;
  171.     };
  172.  
  173.     
  174.  
  175. #ifdef COBJMACROS
  176.  
  177.  
  178. #define IADsRas_QueryInterface(This,riid,ppvObject)    \
  179.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  180.  
  181. #define IADsRas_AddRef(This)    \
  182.     (This)->lpVtbl -> AddRef(This)
  183.  
  184. #define IADsRas_Release(This)    \
  185.     (This)->lpVtbl -> Release(This)
  186.  
  187.  
  188. #define IADsRas_GetTypeInfoCount(This,pctinfo)    \
  189.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  190.  
  191. #define IADsRas_GetTypeInfo(This,iTInfo,lcid,ppTInfo)    \
  192.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  193.  
  194. #define IADsRas_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)    \
  195.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  196.  
  197. #define IADsRas_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)    \
  198.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  199.  
  200.  
  201. #define IADsRas_get_DialinPrivilege(This,pVal)    \
  202.     (This)->lpVtbl -> get_DialinPrivilege(This,pVal)
  203.  
  204. #define IADsRas_put_DialinPrivilege(This,newVal)    \
  205.     (This)->lpVtbl -> put_DialinPrivilege(This,newVal)
  206.  
  207. #define IADsRas_SetRasCallBack(This,lCallBack,szPhoneNumber)    \
  208.     (This)->lpVtbl -> SetRasCallBack(This,lCallBack,szPhoneNumber)
  209.  
  210. #define IADsRas_GetRasCallBack(This,lPrivilege)    \
  211.     (This)->lpVtbl -> GetRasCallBack(This,lPrivilege)
  212.  
  213. #define IADsRas_GetRasPhoneNumber(This,pszPhoneNumber)    \
  214.     (This)->lpVtbl -> GetRasPhoneNumber(This,pszPhoneNumber)
  215.  
  216. #endif /* COBJMACROS */
  217.  
  218.  
  219. #endif     /* C style interface */
  220.  
  221.  
  222.  
  223. /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE IADsRas_get_DialinPrivilege_Proxy( 
  224.     IADsRas __RPC_FAR * This,
  225.     /* [retval][out] */ BOOL __RPC_FAR *pVal);
  226.  
  227.  
  228. void __RPC_STUB IADsRas_get_DialinPrivilege_Stub(
  229.     IRpcStubBuffer *This,
  230.     IRpcChannelBuffer *_pRpcChannelBuffer,
  231.     PRPC_MESSAGE _pRpcMessage,
  232.     DWORD *_pdwStubPhase);
  233.  
  234.  
  235. /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE IADsRas_put_DialinPrivilege_Proxy( 
  236.     IADsRas __RPC_FAR * This,
  237.     /* [in] */ BOOL newVal);
  238.  
  239.  
  240. void __RPC_STUB IADsRas_put_DialinPrivilege_Stub(
  241.     IRpcStubBuffer *This,
  242.     IRpcChannelBuffer *_pRpcChannelBuffer,
  243.     PRPC_MESSAGE _pRpcMessage,
  244.     DWORD *_pdwStubPhase);
  245.  
  246.  
  247. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IADsRas_SetRasCallBack_Proxy( 
  248.     IADsRas __RPC_FAR * This,
  249.     /* [in] */ long lCallBack,
  250.     /* [optional][in] */ BSTR szPhoneNumber);
  251.  
  252.  
  253. void __RPC_STUB IADsRas_SetRasCallBack_Stub(
  254.     IRpcStubBuffer *This,
  255.     IRpcChannelBuffer *_pRpcChannelBuffer,
  256.     PRPC_MESSAGE _pRpcMessage,
  257.     DWORD *_pdwStubPhase);
  258.  
  259.  
  260. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IADsRas_GetRasCallBack_Proxy( 
  261.     IADsRas __RPC_FAR * This,
  262.     /* [retval][out] */ long __RPC_FAR *lPrivilege);
  263.  
  264.  
  265. void __RPC_STUB IADsRas_GetRasCallBack_Stub(
  266.     IRpcStubBuffer *This,
  267.     IRpcChannelBuffer *_pRpcChannelBuffer,
  268.     PRPC_MESSAGE _pRpcMessage,
  269.     DWORD *_pdwStubPhase);
  270.  
  271.  
  272. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IADsRas_GetRasPhoneNumber_Proxy( 
  273.     IADsRas __RPC_FAR * This,
  274.     /* [retval][out] */ BSTR __RPC_FAR *pszPhoneNumber);
  275.  
  276.  
  277. void __RPC_STUB IADsRas_GetRasPhoneNumber_Stub(
  278.     IRpcStubBuffer *This,
  279.     IRpcChannelBuffer *_pRpcChannelBuffer,
  280.     PRPC_MESSAGE _pRpcMessage,
  281.     DWORD *_pdwStubPhase);
  282.  
  283.  
  284.  
  285. #endif     /* __IADsRas_INTERFACE_DEFINED__ */
  286.  
  287.  
  288.  
  289. #ifndef __ADSRASLib_LIBRARY_DEFINED__
  290. #define __ADSRASLib_LIBRARY_DEFINED__
  291.  
  292. /* library ADSRASLib */
  293. /* [helpstring][version][uuid] */ 
  294.  
  295.  
  296. enum ADS_RAS_CALLBACK_ENUM
  297.     {    ADS_RAS_NOCALLBACK    = 0x1,
  298.     ADS_RAS_ADMIN_SETCALLBACK    = 0x2,
  299.     ADS_RAS_CALLER_SETCALLBACK    = 0x4
  300.     };
  301.  
  302. EXTERN_C const IID LIBID_ADSRASLib;
  303.  
  304. EXTERN_C const CLSID CLSID_ADsRas;
  305.  
  306. #ifdef __cplusplus
  307.  
  308. class DECLSPEC_UUID("F1F533F0-F118-11D2-BC88-00C04FD430AF")
  309. ADsRas;
  310. #endif
  311. #endif /* __ADSRASLib_LIBRARY_DEFINED__ */
  312.  
  313. /* Additional Prototypes for ALL interfaces */
  314.  
  315. unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long __RPC_FAR *, unsigned long            , BSTR __RPC_FAR * ); 
  316. unsigned char __RPC_FAR * __RPC_USER  BSTR_UserMarshal(  unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
  317. unsigned char __RPC_FAR * __RPC_USER  BSTR_UserUnmarshal(unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
  318. void                      __RPC_USER  BSTR_UserFree(     unsigned long __RPC_FAR *, BSTR __RPC_FAR * ); 
  319.  
  320. /* end of Additional Prototypes */
  321.  
  322. #ifdef __cplusplus
  323. }
  324. #endif
  325.  
  326. #endif
  327.