Use DeviceIoControl to call a driver from the Win32 environment.
BOOL
DeviceIoControl(
HANDLE hDevice,
DWORD dwIoControlCode,
LPVOID lpInBuffer,
DWORD nInBufferSize,
LPVOID lpOutBuffer,
DWORD nOutBufferSize,
LPDWORD lpBytesReturned,
LPOVERLAPPED lpOverlapped
);
Refer to the Platform SDK for more information and descriptions of the remaining parameters.