Hans Leidekker hans@it.vu.nl writes:
- status = NtDeviceIoControlFile( device, NULL, NULL, NULL, &io,
IOCTL_TAPE_CREATE_PARTITION, &part, sizeof(TAPE_CREATE_PARTITION), NULL, 0 );
- return FALSE;
- return (DWORD)status;
}
All these functions should return Win32 error codes, not NT status codes. You probably want to set last error too.