Lines Matching refs:hnd
40 * @param hnd the HANDLE to read from
47 _dbus_file_read (HANDLE hnd,
71 result = ReadFile (hnd, data, count, &bytes_read, NULL);
76 "Failed to read from 0x%x: %s", hnd, emsg);
111 HANDLE hnd;
122 hnd = CreateFileA (filename_c, GENERIC_READ,
125 if (hnd == INVALID_HANDLE_VALUE)
134 _dbus_verbose ("file %s hnd %p opened\n", filename_c, hnd);
136 fsize = GetFileSize (hnd, &fsize_hi);
147 CloseHandle (hnd);
158 CloseHandle (hnd);
170 bytes_read = _dbus_file_read (hnd, str, fsize - total, error);
182 CloseHandle (hnd);
190 CloseHandle (hnd);
195 CloseHandle (hnd);
217 HANDLE hnd;
229 hnd = INVALID_HANDLE_VALUE;
265 hnd = CreateFileA (tmp_filename_c, GENERIC_WRITE,
269 if (hnd == INVALID_HANDLE_VALUE)
283 _dbus_verbose ("tmp file %s hnd %p opened\n", tmp_filename_c, hnd);
296 res = WriteFile (hnd, str_c + total, bytes_to_write - total,
311 if (CloseHandle (hnd) == 0)
320 hnd = INVALID_HANDLE_VALUE;
341 if (hnd != INVALID_HANDLE_VALUE)
342 CloseHandle (hnd);
371 HANDLE hnd;
378 hnd = CreateFileA (filename_c, GENERIC_WRITE,
382 if (hnd == INVALID_HANDLE_VALUE)
392 _dbus_verbose ("exclusive file %s hnd %p opened\n", filename_c, hnd);
394 if (CloseHandle (hnd) == 0)