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.
 
 
 
 
 
 

39 lines
912 B

///////////////////////////////////////////////////////////////////////////////
// HW Device
///////////////////////////////////////////////////////////////////////////////
#ifndef _DEVINFO_H
#define _DEVINFO_H
#include "unk.h"
#include <shpriv.h>
//extern const CLSID CLSID_HWDevice;
class CHWDeviceImpl : public CCOMBase, public IHWDevice
{
public:
// Interface IHWDevice
STDMETHODIMP Init(LPCWSTR pszDeviceID);
STDMETHODIMP GetDeviceString(DWORD dwType,
LPWSTR* ppsz);
STDMETHODIMP GetDeviceEventString(LPCWSTR pszEventType, DWORD dwType,
LPWSTR* ppsz);
STDMETHODIMP AutoplayHandler(LPCWSTR pszEventType,
LPCWSTR pszHandler);
public:
CHWDeviceImpl();
~CHWDeviceImpl();
private:
LPWSTR _pszDeviceID;
BOOL _fInited;
};
typedef CUnkTmpl<CHWDeviceImpl> CHWDevice;
#endif // _DEVINFO_H