wdsbp.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef _INC_WDSBP
  7. #define _INC_WDSBP
  8. #if (_WIN32_WINNT >= 0x0600)
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #ifndef WDSBPAPI
  13. #define WDSBPAPI WINAPI
  14. #endif
  15. /* Wdsbp.dll is missing an implib because Vista clients don't have the dll to generate it from */
  16. HRESULT WDSBPAPI WdsBpAddOption(
  17. HANDLE hHandle,
  18. ULONG uOption,
  19. ULONG uValueLen,
  20. PVOID pValue
  21. );
  22. HRESULT WDSBPAPI WdsBpCloseHandle(
  23. HANDLE hHandle
  24. );
  25. HRESULT WDSBPAPI WdsBpGetOptionBuffer(
  26. HANDLE hHandle,
  27. ULONG uBufferLen,
  28. PVOID pBuffer,
  29. PULONG puBytes
  30. );
  31. #define WDSBP_PK_TYPE_DHCP 1
  32. #define WDSBP_PK_TYPE_WDSNBP 2
  33. #define WDSBP_PK_TYPE_BCD 4
  34. HRESULT WDSBPAPI WdsBpInitialize(
  35. BYTE bPacketType,
  36. HANDLE *phHandle
  37. );
  38. HRESULT WDSBPAPI WdsBpParseInitialize(
  39. PVOID pPacket,
  40. ULONG uPacketLen,
  41. PBYTE pbPacketType,
  42. HANDLE *phHandle
  43. );
  44. HRESULT WDSBPAPI WdsBpQueryOption(
  45. HANDLE hHandle,
  46. ULONG uOption,
  47. ULONG uValueLen,
  48. PVOID pValue,
  49. PULONG puBytes
  50. );
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54. #endif /*(_WIN32_WINNT >= 0x0600)*/
  55. #endif /*_INC_WDSBP*/