Source code of Windows XP (NT5)
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.

90 lines
1.3 KiB

  1. #ifdef __cplusplus
  2. extern "C" {
  3. #endif
  4. BOOL
  5. RegisterWithSsdp(
  6. const IN_ADDR *IpAddress,
  7. SOCKET *listenSocket,
  8. HANDLE *SsdpHandle,
  9. DWORD dwPort
  10. );
  11. #if 0
  12. BOOL
  13. RegisterWithSsdp(
  14. const SOCKADDR_IN *IpAddress,
  15. SOCKET *listenSocket,
  16. HANDLE *SsdpHandle,
  17. DWORD dwPort
  18. );
  19. #endif
  20. VOID
  21. UnregisterWithSsdp(
  22. HANDLE SsdpHandle
  23. );
  24. HANDLE
  25. CreateSsdpDiscoveryObject(
  26. LPSTR Service,
  27. HWND hWnd,
  28. UINT Msg
  29. );
  30. VOID
  31. CloseSsdpDiscoveryObject(
  32. HANDLE Context
  33. );
  34. LONG
  35. GetSsdpDevices(
  36. HANDLE Context,
  37. POBEX_DEVICE_LIST DeviceList,
  38. ULONG *ListLength
  39. );
  40. LONG
  41. RefreshSsdp(
  42. VOID
  43. );
  44. VOID
  45. UnRegisterForAdhocNetworksNotification(
  46. HANDLE RegistrationHandle
  47. );
  48. typedef BOOL (*NEW_ADDRESS_CALLBACK)(
  49. HANDLE Context,
  50. SOCKET ListenSocket,
  51. HANDLE *NewAddressContext
  52. );
  53. typedef VOID (*ADDRESS_GONE_CALLBACK)(
  54. HANDLE RegistraitionContext,
  55. HANDLE AddressContext
  56. );
  57. HANDLE
  58. RegisterForAdhocNetworksNotification(
  59. HANDLE RegistrationContext,
  60. NEW_ADDRESS_CALLBACK NewAddressCallback,
  61. ADDRESS_GONE_CALLBACK AddressGoneCallback
  62. );
  63. #ifdef __cplusplus
  64. }
  65. #endif