Programming, System Programming, Win32, C.
FILE_END); if (!WriteFile(hFile, "ankara", 6, &dwWritten, NULL) ) ExitSys("WriteFile", EXIT_FAILURE); CloseHandle(hFile); return 0; } void ExitSys(LPCTSTR lpszMsg, int status) { DWORD dwLastError = GetLastError(); LPTSTR lpszErr; if (FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |