• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/ntfs-3g-2009.3.8/libntfs-3g/

Lines Matching defs:handle

90 	HANDLE handle;
255 * @handle: pointer the a HANDLE in which to put the result
262 * -1 if not, and errno set. In this case handle is trashed.
265 HANDLE *handle, int flags, BOOL locking)
267 *handle = CreateFile(filename,
271 if (*handle == INVALID_HANDLE_VALUE) {
281 * @handle: a win32 HANDLE for a volume to lock
289 static int ntfs_device_win32_lock(HANDLE handle)
293 if (!DeviceIoControl(handle, FSCTL_LOCK_VOLUME, NULL, 0, NULL, 0, &i,
305 * @handle: the win32 HANDLE which the volume was locked with
310 static int ntfs_device_win32_unlock(HANDLE handle)
314 if (!DeviceIoControl(handle, FSCTL_UNLOCK_VOLUME, NULL, 0, NULL, 0, &i,
326 * @handle: a win32 HANDLE for a volume to dismount
337 static int ntfs_device_win32_dismount(HANDLE handle)
341 if (!DeviceIoControl(handle, FSCTL_DISMOUNT_VOLUME, NULL, 0, NULL, 0,
353 * @handle: pointer the file HANDLE obtained via open
360 static s64 ntfs_device_win32_getsize(HANDLE handle)
364 loword = GetFileSize(handle, &hiword);
375 * @handle: pointer the file HANDLE obtained via open
383 static s64 ntfs_device_win32_getdisklength(HANDLE handle)
388 if (!DeviceIoControl(handle, IOCTL_DISK_GET_LENGTH_INFO, NULL, 0, &buf,
400 * @handle: pointer the file HANDLE obtained via open
408 * volume handle.
413 static s64 ntfs_device_win32_getntfssize(HANDLE handle)
420 if (!DeviceIoControl(handle, FSCTL_GET_NTFS_VOLUME_DATA, NULL, 0, &buf,
437 * @handle: an open handle to the PhysicalDevice
451 static int ntfs_device_win32_getgeo(HANDLE handle, win32_fd *fd)
458 rvl = DeviceIoControl(handle, IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, NULL,
487 rvl = DeviceIoControl(handle, IOCTL_DISK_GET_DRIVE_GEOMETRY, NULL, 0,
518 HANDLE handle;
520 if (ntfs_device_win32_simple_open_file(filename, &handle, flags,
526 fd->handle = handle;
528 fd->part_length = ntfs_device_win32_getsize(handle);
548 HANDLE handle;
553 if ((err = ntfs_device_win32_simple_open_file(filename, &handle, flags,
559 ntfs_device_win32_getgeo(handle, fd);
562 fd->geo_size = ntfs_device_win32_getdisklength(handle);
564 fd->handle = handle;
577 * This function gets the partition details and return an open volume handle.
583 * Return success: a valid open volume handle.
603 /* If a valid handle could not be aquired, reply with "don't know". */
610 HANDLE handle;
623 handle = CreateFile(vol_name,
627 if (handle != INVALID_HANDLE_VALUE) {
633 if (DeviceIoControl(handle,
654 return handle;
669 * @handle: HANDLE to the PhysicalDrive
675 * This function requires an open PhysicalDrive handle and a partition_id.
682 static BOOL ntfs_device_win32_find_partition(HANDLE handle, DWORD partition_id,
702 if (DeviceIoControl(handle, IOCTL_DISK_GET_DRIVE_LAYOUT, NULL,
755 HANDLE handle;
761 if ((err = ntfs_device_win32_simple_open_file(drive_name, &handle,
766 if (ntfs_device_win32_find_partition(handle, partition_id, &part_start,
772 ntfs_device_win32_getgeo(handle, fd);
773 fd->handle = handle;
787 CloseHandle(handle);
798 CloseHandle(handle);
808 CloseHandle(handle);
949 HANDLE handle;
959 handle = fd->vol_handle;
961 ntfs_log_debug("Transfering via handle.\n");
962 handle = fd->handle;
965 if (!fnSetFilePointerEx(handle, li, NULL, FILE_BEGIN)) {
971 res = WriteFile(handle, b, count, &bt, NULL);
973 res = ReadFile(handle, b, count, &bt, NULL);
1118 rvl = CloseHandle(fd->handle);
1151 if (!FlushFileBuffers(fd->handle)) {
1325 * -1 if not and errno set. in this case handle is trashed.
1332 switch (GetFileType(fd->handle)) {
1363 * -1 if not, and errno set. Note if error fd->handle is trashed.
1385 * -1 if not, and errno set. Note if error fd->handle is trashed.
1393 if (DeviceIoControl(fd->handle, IOCTL_DISK_GET_DRIVE_GEOMETRY, NULL, 0,