Does anybody know what are the names of the Win32 system calls for
direct reading and writing of disk sectors, rather than the NTFS
routines?
Do you mean write file into hard drive with a file name?
Look at the following sample, I am not sure whether this is what you
want.
HANDLE hFile;
DWORD wmWritten;
char strData[] = "Test data written to explain the win32 file sample";
hFile = CreateFile("C:\\test.txt",GENERIC_READ|GENERIC_WRITE,
FILE_SHARE_READ,NULL,OPEN_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL);
WriteFile(hFile,strData,(DWORD)(sizeof(strData)),&wmWritten,NULL);
CloseHandle(hFile);
PS: I don't think this is an off topic thread.