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.

82 lines
2.6 KiB

  1. #ifndef _SSDPAPI_H
  2. #define _SSDPAPI_H
  3. #include "client.h"
  4. #include "../inc/ssdperror.h"
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. // DO NOT REORDER THIS ENUMERATION. ADD NEW VALUES TO THE END.
  9. // if you do, change the necessary code in upnpdevicefinder.cpp
  10. typedef enum _SSDP_CALLBACK_TYPE {
  11. SSDP_FOUND = 0,
  12. SSDP_ALIVE = 1,
  13. SSDP_BYEBYE = 2,
  14. SSDP_DONE = 3,
  15. SSDP_EVENT = 4,
  16. SSDP_DEAD = 5,
  17. } SSDP_CALLBACK_TYPE, *PSSDP_CALLBACK_TYPE;
  18. typedef void (WINAPI *SERVICE_CALLBACK_FUNC)(SSDP_CALLBACK_TYPE CallbackType,
  19. CONST SSDP_MESSAGE *pSsdpService,
  20. void *pContext);
  21. VOID WINAPI FreeSsdpMessage(PSSDP_MESSAGE pSsdpMessage);
  22. HANDLE WINAPI RegisterService(PSSDP_MESSAGE pSsdpMessage, DWORD flags);
  23. BOOL WINAPI DeregisterService(HANDLE hRegister, BOOL fByebye);
  24. BOOL WINAPI DeregisterServiceByUSN(char * szUSN, BOOL fByebye);
  25. HANDLE WINAPI RegisterNotification (NOTIFY_TYPE nt, char * szType, char *szEventUrl, SERVICE_CALLBACK_FUNC fnCallback,void *pContext);
  26. BOOL WINAPI DeregisterNotification(HANDLE hNotification);
  27. BOOL WINAPI RegisterUpnpEventSource(LPCSTR szRequestUri, DWORD cProps,
  28. UPNP_PROPERTY *rgProps);
  29. BOOL WINAPI DeregisterUpnpEventSource(LPCSTR szRequestUri);
  30. BOOL WINAPI SubmitUpnpPropertyEvent(LPCSTR szEventSourceUri, DWORD dwFlags,
  31. DWORD cProps, UPNP_PROPERTY *rgProps);
  32. BOOL WINAPI SubmitEvent(LPCSTR szEventSourceUri, DWORD dwFlags,
  33. LPCSTR szHeaders, LPCSTR szEventBody);
  34. BOOL WINAPI GetEventSourceInfo(LPCSTR szEventSourceUri, EVTSRC_INFO **ppinfo);
  35. HANDLE WINAPI FindServices (char* szType, void *pReserved , BOOL fForceSearch);
  36. HANDLE WINAPI FindServicesCallback (char * szType,
  37. void * pReserved ,
  38. BOOL fForceSearch,
  39. SERVICE_CALLBACK_FUNC fnCallback,
  40. void *Context
  41. );
  42. BOOL WINAPI GetFirstService (HANDLE hFindServices, PSSDP_MESSAGE *ppSsdpService);
  43. BOOL WINAPI GetNextService (HANDLE hFindServices, PSSDP_MESSAGE *ppSsdpService);
  44. BOOL WINAPI FindServicesClose(HANDLE hSearch);
  45. BOOL WINAPI FindServicesCancel(HANDLE hSearch);
  46. BOOL WINAPI CleanupCache();
  47. BOOL WINAPI SsdpStartup();
  48. void WINAPI SsdpCleanup();
  49. void WINAPI DHEnableDeviceHost();
  50. void WINAPI DHDisableDeviceHost();
  51. void WINAPI DHSetICSInterfaces(long nCount, GUID * arInterfaces);
  52. void WINAPI DHSetICSOff();
  53. #ifdef __cplusplus
  54. } /* ... extern "C" */
  55. #endif
  56. #endif // _SSDPAPI_H