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.

38 lines
912 B

  1. ///////////////////////////////////////////////////////////////////////////////
  2. // HW Device
  3. ///////////////////////////////////////////////////////////////////////////////
  4. #ifndef _DEVINFO_H
  5. #define _DEVINFO_H
  6. #include "unk.h"
  7. #include <shpriv.h>
  8. //extern const CLSID CLSID_HWDevice;
  9. class CHWDeviceImpl : public CCOMBase, public IHWDevice
  10. {
  11. public:
  12. // Interface IHWDevice
  13. STDMETHODIMP Init(LPCWSTR pszDeviceID);
  14. STDMETHODIMP GetDeviceString(DWORD dwType,
  15. LPWSTR* ppsz);
  16. STDMETHODIMP GetDeviceEventString(LPCWSTR pszEventType, DWORD dwType,
  17. LPWSTR* ppsz);
  18. STDMETHODIMP AutoplayHandler(LPCWSTR pszEventType,
  19. LPCWSTR pszHandler);
  20. public:
  21. CHWDeviceImpl();
  22. ~CHWDeviceImpl();
  23. private:
  24. LPWSTR _pszDeviceID;
  25. BOOL _fInited;
  26. };
  27. typedef CUnkTmpl<CHWDeviceImpl> CHWDevice;
  28. #endif // _DEVINFO_H