IOCTL_QUERY_PEW_SIZE
This command is used to query Programmable Early Warning size.
#define IOCTL_QUERY_PEW_SIZE
CTL_CODE(IOCTL_TAPE_BASE, 0x082B, METHOD_BUFFERED, FILE_READ_ACCESS )
The structure that is used to query PEW size is
typedef struct _PEW_SIZE{
USHORT value;
} PEW_SIZE, *PPEW_SIZE;
An example of the IOCTL_QUERY_PEW_SIZE command
is
DWORD cb;
PEW_SIZE pew_size;
...
DeviceIoControl(gp->ddHandle0,
IOCTL_QUERY_PEW_SIZE,
NULL,
0,
&pew_size,
(long)sizeof(PEW_SIZE),
&cb,
(LPOVERLAPPED) NULL);