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.
 
 
 
 
 
 

34 lines
759 B

#ifndef _DRVBASE_H
#define _DRVBASE_H
#include "namellst.h"
#include <objbase.h>
#include <devioctl.h>
class CDisk : public CNamedElem
{
public:
HRESULT Init(LPCWSTR pszElemName);
HRESULT GetDeviceNumber(ULONG* puldeviceNumber);
HRESULT GetDeviceType(DEVICE_TYPE* pdevtype);
protected:
HRESULT _Init();
protected:
CDisk();
public:
static HRESULT Create(CNamedElem** ppelem);
static HRESULT GetFillEnum(CFillEnum** ppfillenum);
protected:
DEVICE_TYPE _devtype;
ULONG _ulDeviceNumber;
ULONG _ulPartitionNumber;
BOOL _fDeviceNumberInited;
};
#endif //_DRVBASE_H