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.

51 lines
1.8 KiB

  1. /*******************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORP., 2000
  4. *
  5. * TITLE: wiasvc.h
  6. *
  7. * VERSION: 1.0
  8. *
  9. * AUTHOR: ByronC
  10. *
  11. * DATE: 10 May, 2000
  12. *
  13. * DESCRIPTION:
  14. * Class definition for WIA Service manager. This class controls the
  15. * lifetime of the Wia Service.
  16. *
  17. *******************************************************************************/
  18. #ifndef __WIASVC_H__
  19. #define __WIASVC_H__
  20. //
  21. // All the members of this class are static. This is because they are essentially
  22. // accessed as global functions (for example, ANY component that exposes an interface
  23. // would call AddRef and Release), but the methods and field values are grouped into
  24. // this class for better containment and maintainability.
  25. //
  26. class CWiaSvc {
  27. public:
  28. static HRESULT Initialize();
  29. static bool CanShutdown();
  30. static unsigned long AddRef();
  31. static unsigned long Release();
  32. static void ShutDown();
  33. static bool ADeviceIsInstalled();
  34. private:
  35. static long s_cActiveInterfaces; // Ref count on no. of outstanding interface pointers
  36. static bool s_bEventDeviceExists; // Indicates whether there are any devices capable
  37. // of generating events installed on the system.
  38. /* static HANDLE s_hIdleEvent; // Event handle used to detect idle time. This is the amount of
  39. // time the service will stay running, even though it has no
  40. // devices or connections. Once this expires, it will shutdown,
  41. // unless a device arrived or a connection was made.
  42. static DWORD s_dwIdleTimeout; // Specifies the length of the timeout (dw)
  43. */
  44. };
  45. #endif