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.

58 lines
1.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000.
  5. //
  6. // File: U H B A S E . H
  7. //
  8. // Contents: Base include file for upnphost.dll. Defines globals.
  9. //
  10. // Notes:
  11. //
  12. // Author: mbend 8 Aug 2000
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. //#include "netcon.h"
  17. //#include "netconp.h"
  18. #include <atlbase.h>
  19. class CServiceModule : public CComModule
  20. {
  21. public:
  22. VOID DllProcessAttach (HINSTANCE hinst);
  23. VOID DllProcessDetach (VOID);
  24. VOID ServiceMain (DWORD argc, PWSTR argv[]);
  25. DWORD DwHandler (DWORD dwControl, DWORD dwEventType,
  26. PVOID pEventData, PVOID pContext);
  27. VOID Run ();
  28. VOID SetServiceStatus (DWORD dwState);
  29. VOID UpdateServiceStatus (BOOL fUpdateCheckpoint = TRUE);
  30. DWORD DwServiceStatus () { return m_status.dwCurrentState; }
  31. private:
  32. static
  33. DWORD
  34. WINAPI
  35. _DwHandler (
  36. DWORD dwControl,
  37. DWORD dwEventType,
  38. PVOID pEventData,
  39. PVOID pContext);
  40. public:
  41. DWORD m_dwThreadID;
  42. SERVICE_STATUS_HANDLE m_hStatus;
  43. SERVICE_STATUS m_status;
  44. };
  45. extern CServiceModule _Module;
  46. #include <atlcom.h>
  47. #include "ncatl.h"
  48. #include "ncstring.h"
  49. #include "uhclsid.h"