Lines Matching refs:log_file
56 HANDLE log_file = NULL;
82 if (log_file)
95 log_file = CreateFile(log_file_name, GENERIC_WRITE,
98 if (log_file == INVALID_HANDLE_VALUE || log_file == NULL) {
100 log_file = CreateFile(_T(".\\debug.log"), GENERIC_WRITE,
103 if (log_file == INVALID_HANDLE_VALUE || log_file == NULL) {
104 log_file = NULL;
108 SetFilePointer(log_file, 0, 0, FILE_END);
125 if (log_file) {
128 CloseHandle(log_file);
129 log_file = NULL;
323 SetFilePointer(log_file, 0, 0, SEEK_END);
325 WriteFile(log_file, (void*)str_newline.c_str(), (DWORD)str_newline.length(), &num_written, NULL);
357 if (!log_file)
360 CloseHandle(log_file);
361 log_file = NULL;