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.

84 lines
2.7 KiB

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