FILETYPE 0x2L
FILESUBTYPE 0x0L
BEGIN
BLOCK 'StringFileInfo'
BEGIN
BLOCK '080904b0'
BEGIN
VALUE 'Comments', 'Chris Cant '
VALUE 'CompanyName', 'PHD Computer Consultants Ltd '
VALUE 'FileDescription', 'Wdm1 '
VALUE 'FileVersion', '1, 0, 5, 0 '
VALUE 'InternalName', 'Wdm1 driver '
VALUE 'LegalCopyright', 'Copyright © 1998,1999 PHD Computer Consultants Ltd '
VALUE 'OriginalFilename', 'Wdm1.sys '
VALUE 'ProductName', 'WDM Book '
VALUE 'ProductVersion', '1, 0, 0, 0 '
END
END
BLOCK 'VarFileInfo'
BEGIN
VALUE 'Translation', 0x809, 1200
END
END
#endif // !_MAC
#endif // English (U.S.) resources
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
// English (U.K.) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENG)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
#pragma codepage(1252)
#endif //_WIN32
#ifdef APSTUDIO_INVOKED
///////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE DISCARDABLE
BEGIN
'resource.h '
END
2 TEXTINCLUDE DISCARDABLE
BEGIN
'#include ''afxres.h''
' ' '
END
3 TEXTINCLUDE DISCARDABLE
BEGIN
'
' ' '
END
#endif // APSTUDIO_INVOKED
#endif // English (U.K.) resources
///////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
///////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
///////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED
Listing 4.12 Ioctl.h
//DeviceIoControl IOCTL codes supported by Wdm1
#define IOCTL_WDM1_ZERO_BUFFER CTL_CODE(
FILE_DEVICE_UNKNOWN,
0x801,
METHOD_BUFFERED,
FILE_ANY_ACCESS)
#define IOCTL_WDM1_REMOVE_BUFFER CTL_CODE(
FILE_DEVICE_UNKNOWN,
0x802,
METHOD_BUFFERED,
FILE_ANY_ACCESS)
#define IOCTL_WDM1_GET_BUFFER_SIZE CTL_CODE(
FILE_DEVICE_UNKNOWN,
0x803,
METHOD_BUFFERED,
FILE_ANY_ACCESS)
#define IOCTL_WDM1_GET_BUFFER CTL_CODE(
FILE_DEVICE_UNKNOWN,
0x804,
METHOD_BUFFERED,
FILE_ANY_ACCESS)
#define IOCTL_WDM1_UNRECOGNISED CTL_CODE(