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.

265 lines
7.8 KiB

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2. /* File created by MIDL compiler version 6.00.0361 */
  3. /* Compiler settings for bthserv.idl:
  4. Oicf, W1, Zp8, env=Win32 (32b run)
  5. protocol : dce , ms_ext, c_ext, robust
  6. error checks: allocation ref bounds_check enum stub_data
  7. VC __declspec() decoration level:
  8. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  9. DECLSPEC_UUID(), MIDL_INTERFACE()
  10. */
  11. //@@MIDL_FILE_HEADING( )
  12. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  13. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  14. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  15. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  16. #endif
  17. #include "rpc.h"
  18. #include "rpcndr.h"
  19. #ifndef __RPCNDR_H_VERSION__
  20. #error this stub requires an updated version of <rpcndr.h>
  21. #endif // __RPCNDR_H_VERSION__
  22. #ifndef __bthserv_h__
  23. #define __bthserv_h__
  24. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  25. #pragma once
  26. #endif
  27. /* Forward Declarations */
  28. /* header files for imported files */
  29. #include "wtypes.h"
  30. #ifdef __cplusplus
  31. extern "C"{
  32. #endif
  33. void * __RPC_USER MIDL_user_allocate(size_t);
  34. void __RPC_USER MIDL_user_free( void * );
  35. #ifndef __BthServRPCService_INTERFACE_DEFINED__
  36. #define __BthServRPCService_INTERFACE_DEFINED__
  37. /* interface BthServRPCService */
  38. /* [strict_context_handle][explicit_handle][unique][version][uuid] */
  39. typedef ULONGLONG BTH_ADDR;
  40. #if !defined( BLUETOOTH_ADDRESS )
  41. typedef BTH_ADDR BLUETOOTH_ADDRESS;
  42. #endif
  43. typedef ULONG BTH_COD;
  44. typedef struct _BTHSERV_DEVICE_INFO
  45. {
  46. ULONG flags;
  47. BTH_ADDR address;
  48. BTH_COD classOfDevice;
  49. CHAR name[ 248 ];
  50. SYSTEMTIME lastSeen;
  51. SYSTEMTIME lastUsed;
  52. } BTHSERV_DEVICE_INFO;
  53. typedef struct _BTHSERV_DEVICE_INFO *PBTHSERV_DEVICE_INFO;
  54. #if !defined( BLUETOOTH_DEVICE_INFO )
  55. typedef struct _BLUETOOTH_DEVICE_INFO
  56. {
  57. DWORD dwSize;
  58. BLUETOOTH_ADDRESS Address;
  59. ULONG ulClassofDevice;
  60. BOOL fConnected;
  61. BOOL fRemembered;
  62. BOOL fAuthenticated;
  63. SYSTEMTIME stLastSeen;
  64. SYSTEMTIME stLastUsed;
  65. WCHAR szName[ 248 ];
  66. } BLUETOOTH_DEVICE_INFO;
  67. #endif
  68. typedef BLUETOOTH_DEVICE_INFO *PBLUETOOTH_DEVICE_INFO;
  69. typedef struct _BTHSERV_DEVICE_INFO_LIST
  70. {
  71. ULONG numOfDevices;
  72. BTHSERV_DEVICE_INFO deviceList[ 1 ];
  73. } BTHSERV_DEVICE_INFO_LIST;
  74. typedef struct _BTHSERV_DEVICE_INFO_LIST *PBTHSERV_DEVICE_INFO_LIST;
  75. typedef struct _AttributeRange
  76. {
  77. USHORT minAttribute;
  78. USHORT maxAttribute;
  79. } AttributeRange;
  80. typedef struct _RPC_CLIENT_ID
  81. {
  82. ULONG UniqueProcess;
  83. ULONG UniqueThread;
  84. } RPC_CLIENT_ID;
  85. typedef struct _RPC_CLIENT_ID *PRPC_CLIENT_ID;
  86. typedef struct _RPC_PIN_INFO
  87. {
  88. BTH_ADDR BthAddr;
  89. DWORD_PTR PinCookie;
  90. } RPC_PIN_INFO;
  91. typedef struct _RPC_PIN_INFO *PRPC_PIN_INFO;
  92. typedef /* [public][public] */
  93. enum __MIDL_BthServRPCService_0001
  94. { L2CapSdpRecord = 0,
  95. PnPSdpRecord = L2CapSdpRecord + 1
  96. } BTHSERV_SDP_TYPE;
  97. typedef enum __MIDL_BthServRPCService_0001 *PBTHSERV_SDP_TYPE;
  98. typedef /* [public][public][public] */
  99. enum __MIDL_BthServRPCService_0002
  100. { FromCache = 0,
  101. FromDevice = FromCache + 1,
  102. FromCacheOrDevice = FromDevice + 1
  103. } BTHSERV_QUERY_TYPE;
  104. typedef enum __MIDL_BthServRPCService_0002 *PBTHSERV_QUERY_TYPE;
  105. typedef /* [context_handle] */ void *PCONTEXT_HANDLE_TYPE;
  106. typedef /* [ref] */ PCONTEXT_HANDLE_TYPE *PPCONTEXT_HANDLE_TYPE;
  107. /* [fault_status][comm_status] */ error_status_t BthServOpen(
  108. /* [in] */ handle_t IDL_handle,
  109. /* [out] */ PPCONTEXT_HANDLE_TYPE PPHContext,
  110. /* [out] */ HRESULT *PResult,
  111. /* [in] */ RPC_CLIENT_ID ClientId);
  112. /* [fault_status][comm_status] */ error_status_t BthServClose(
  113. /* [out][in] */ PPCONTEXT_HANDLE_TYPE PPHContext,
  114. /* [out] */ HRESULT *PResult);
  115. /* [fault_status][comm_status] */ error_status_t BthServRegisterPinEvent(
  116. /* [in] */ PCONTEXT_HANDLE_TYPE PHContext,
  117. /* [out] */ HRESULT *PResult,
  118. /* [in] */ BTH_ADDR *PRemoteAddr,
  119. /* [in] */ DWORD_PTR EventHandle);
  120. /* [fault_status][comm_status] */ error_status_t BthServDeregisterPinEvent(
  121. /* [in] */ PCONTEXT_HANDLE_TYPE PHContext,
  122. /* [out] */ HRESULT *PResult,
  123. /* [in] */ BTH_ADDR *PRemoteAddr);
  124. error_status_t BthServGetPinAddrs(
  125. /* [in] */ PCONTEXT_HANDLE_TYPE PHContext,
  126. /* [out] */ HRESULT *PResult,
  127. /* [out][in] */ DWORD *PPinAddrSize,
  128. /* [size_is][out][in] */ BTH_ADDR PPinAddrs[ ],
  129. /* [out] */ DWORD *PPinAddrCount);
  130. /* [fault_status][comm_status] */ error_status_t BthServGetDeviceInfo(
  131. /* [in] */ PCONTEXT_HANDLE_TYPE PHContext,
  132. /* [out] */ HRESULT *PResult,
  133. /* [in] */ BTHSERV_QUERY_TYPE QueryType,
  134. /* [in] */ BTH_ADDR *PRemoteAddr,
  135. /* [out][in] */ BLUETOOTH_DEVICE_INFO *PDevInfo);
  136. /* [fault_status][comm_status] */ error_status_t BthServSetDeviceName(
  137. /* [in] */ PCONTEXT_HANDLE_TYPE PHContext,
  138. /* [out] */ HRESULT *PResult,
  139. /* [in] */ BTH_ADDR *PRemoteAddr,
  140. /* [in] */ WCHAR DevName[ 248 ]);
  141. /* [fault_status][comm_status] */ error_status_t BthServGetDeviceList(
  142. /* [in] */ PCONTEXT_HANDLE_TYPE PHContext,
  143. /* [out] */ HRESULT *PResult,
  144. /* [in] */ BOOL DoInquiry,
  145. /* [in] */ UCHAR TimeoutMultiplier,
  146. /* [in] */ DWORD cbSize,
  147. /* [size_is][out] */ UCHAR PDevInfo[ ],
  148. /* [out] */ DWORD *PBytesTransferred);
  149. /* [fault_status][comm_status] */ error_status_t BthServActivateService(
  150. /* [in] */ PCONTEXT_HANDLE_TYPE PHContext,
  151. /* [out] */ HRESULT *PResult,
  152. /* [in] */ BTH_ADDR *PRemoteAddr,
  153. /* [in] */ DWORD BufferSize,
  154. /* [size_is][in] */ UCHAR PBuffer[ ]);
  155. /* [fault_status][comm_status] */ error_status_t BthServUpdateService(
  156. /* [in] */ PCONTEXT_HANDLE_TYPE PHContext,
  157. /* [out] */ HRESULT *PResult,
  158. /* [in] */ DWORD BufferSize,
  159. /* [size_is][in] */ UCHAR PDevUpdate[ ]);
  160. /* [fault_status][comm_status] */ error_status_t BthServGetSdpRecord(
  161. /* [in] */ PCONTEXT_HANDLE_TYPE PHContext,
  162. /* [out] */ HRESULT *PResult,
  163. /* [in] */ BTH_ADDR *PRemoteAddr,
  164. /* [in] */ BTHSERV_SDP_TYPE Type,
  165. /* [in] */ BTHSERV_QUERY_TYPE QueryType,
  166. /* [in] */ DWORD BufferSize,
  167. /* [size_is][out] */ UCHAR PBuffer[ ],
  168. /* [out] */ DWORD *PBytesTransferred);
  169. /* [fault_status][comm_status] */ error_status_t BthServSetSdpRecord(
  170. /* [in] */ PCONTEXT_HANDLE_TYPE PHContext,
  171. /* [out] */ HRESULT *PResult,
  172. /* [in] */ DWORD BufferSize,
  173. /* [size_is][in] */ UCHAR PBuffer[ ],
  174. /* [out] */ DWORD_PTR *PCookie);
  175. /* [fault_status][comm_status] */ error_status_t BthServSetSdpRecordWithInfo(
  176. /* [in] */ PCONTEXT_HANDLE_TYPE PHContext,
  177. /* [out] */ HRESULT *PResult,
  178. /* [in] */ ULONG FSecurity,
  179. /* [in] */ ULONG FOptions,
  180. /* [in] */ ULONG FCodService,
  181. /* [in] */ ULONG RecordLength,
  182. /* [size_is][in] */ UCHAR PRecord[ ],
  183. /* [out] */ DWORD_PTR *PCookie);
  184. /* [fault_status][comm_status] */ error_status_t BthServRemoveSdpRecord(
  185. /* [in] */ PCONTEXT_HANDLE_TYPE PHContext,
  186. /* [out] */ HRESULT *PResult,
  187. /* [in] */ DWORD_PTR Cookie);
  188. /* [fault_status][comm_status] */ error_status_t BthServTestRegisterPinEvent(
  189. /* [in] */ PCONTEXT_HANDLE_TYPE PHContext,
  190. /* [out] */ HRESULT *PResult,
  191. /* [in] */ BTH_ADDR *PRemoteAddr,
  192. /* [in] */ DWORD_PTR Cookie);
  193. extern RPC_IF_HANDLE BthServRPCService_v1_0_c_ifspec;
  194. extern RPC_IF_HANDLE BthServRPCService_v1_0_s_ifspec;
  195. #endif /* __BthServRPCService_INTERFACE_DEFINED__ */
  196. /* Additional Prototypes for ALL interfaces */
  197. void __RPC_USER PCONTEXT_HANDLE_TYPE_rundown( PCONTEXT_HANDLE_TYPE );
  198. /* end of Additional Prototypes */
  199. #ifdef __cplusplus
  200. }
  201. #endif
  202. #endif