Returns the size, in bytes, of a page allocated by AllocPage.
#include "scnsm.h"
BOOL DeviceIoControl(
HANDLE hDevice,
// handle to SCNSM driver
DWORD dwControlCode,
// control code of operation to perform
LPVOID pInBuffer
// (Unused) pointer to input data buffer
DWORD cbInBuffer
// (Unused) size of input buffer
LPVOID pOutBuffer
// pointer to output data buffer
DWORD cbOutBuffer
// size of output buffer
LPDWORD pcbReturned
// (Optional) pointer to receive output byte count
LPOVERLAPPED pOverlapped
// (Unused)
);
include scnsm.inc
mov
ax, dwControlCode
lea
bx, pOutBuffer
mov
cx, cbOutBuffer
call
[hDevice]
Uses EAX, EBX, ECX, Flags.
If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError for error codes defined below.
If the function succeeds, the EAX register is zero. If the function fails, the EAX register holds an error code defined below.