Programming, System Programming, Win32, C.
ExitSys(LPCTSTR lpszMsg, int status); int main(void) { HANDLE hFile; DWORD dwWritten; if ((hFile = CreateFile("test.dat", GENERIC_READ|GENERIC_WRITE, 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL)) == INVALID_HANDLE_VALUE) ExitSys("CreateFile", EXIT_FAILURE); SetFilePointer(hFile, 0, 0,