mirror of https://github.com/lianthony/NT4.0
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.
71 lines
1.2 KiB
71 lines
1.2 KiB
|
|
#ifndef _QIC117_
|
|
#define _QIC117_
|
|
|
|
|
|
#include "rescan.h"
|
|
#include "reg.h"
|
|
|
|
|
|
class QIC117 : public REG_KEY
|
|
{
|
|
private:
|
|
|
|
BOOL Detect;
|
|
|
|
|
|
inline BOOL
|
|
GetRegDeviceName(
|
|
PCHAR DeviceName,
|
|
DWORD DeviceNameLen)
|
|
{
|
|
return(GetValue(TAPE_DEVICE_STRING,
|
|
DeviceName,DeviceNameLen));
|
|
}
|
|
|
|
BOOL
|
|
GetRegDeviceDriverName(
|
|
PCHAR DriverName,
|
|
DWORD DriverNameLen);
|
|
|
|
|
|
BOOL
|
|
GetTapeHandleInfo(
|
|
PDEVICEINFO TapeDeviceInfo);
|
|
|
|
public:
|
|
QIC117()
|
|
{Detect = FALSE;};
|
|
|
|
inline BOOL
|
|
Open(
|
|
DWORD Device,
|
|
BOOL aDetect)
|
|
{
|
|
|
|
Detect = aDetect;
|
|
|
|
return(OpenEx(HKEY_LOCAL_MACHINE,
|
|
NON_SCSI_TAPE_STRING, Device));
|
|
|
|
}
|
|
|
|
BOOL
|
|
GetRegTapeInfo(
|
|
PDEVICEINFO TapeDeviceInfo);
|
|
|
|
inline BOOL
|
|
GetRegDeviceIdentifier(
|
|
PCHAR DeviceIdentifier,
|
|
DWORD DeviceIdentifierLen)
|
|
{
|
|
return(GetValue(TAPE_IDENTIFIER_STRING,
|
|
DeviceIdentifier,DeviceIdentifierLen));
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
#endif
|