Lines Matching refs:Handle
54 IN HANDLE Handle
208 HANDLE Handle; member
389 OUT PHANDLE Handle, in _OpenNtName() argument
437 Status = NtOpenFile(Handle, in _OpenNtName()
455 Status = NtOpenFile(Handle, in _OpenNtName()
473 Status = NtOpenFile(Handle, in _OpenNtName()
497 OUT PHANDLE Handle, in _OpenDriveLetter() argument
505 return _OpenNtName(Buffer, ReadOnly, Handle, OpenedReadonly); in _OpenDriveLetter()
517 IN HANDLE Handle in _FlushDrive() argument
521 return NtFlushBuffersFile(Handle, &IoStatusBlock); in _FlushDrive()
533 IN HANDLE Handle in _LockDrive() argument
537 return NtFsControlFile(Handle, 0, 0, 0, &IoStatusBlock, FSCTL_LOCK_VOLUME, 0, 0, 0, 0); in _LockDrive()
549 IN HANDLE Handle in _UnlockDrive() argument
553 return NtFsControlFile(Handle, 0, 0, 0, &IoStatusBlock, FSCTL_UNLOCK_VOLUME, 0, 0, 0, 0); in _UnlockDrive()
560 IN HANDLE Handle in _DismountDrive() argument
564 return NtFsControlFile(Handle, 0, 0, 0, &IoStatusBlock, FSCTL_DISMOUNT_VOLUME, 0, 0, 0, 0); in _DismountDrive()
576 IN HANDLE Handle in _IsMounted() argument
581 Status = NtFsControlFile(Handle, 0, 0, 0, &IoStatusBlock, FSCTL_IS_VOLUME_MOUNTED, 0, 0, 0, 0); in _IsMounted()
590 IN HANDLE Handle in _CloseDisk() argument
593 return NtClose(Handle); in _CloseDisk()
816 OUT PHANDLE Handle, in _Ext2OpenDevice() argument
840 Status = _OpenDriveLetter(*Name, ReadOnly, Handle, OpenedReadonly); in _Ext2OpenDevice()
866 Status = _OpenNtName(Name, ReadOnly, Handle, OpenedReadonly); in _Ext2OpenDevice()
889 IN HANDLE Handle, in _BlockIo() argument
914 Status = NtReadFile(Handle, NULL, NULL, NULL, in _BlockIo()
919 Status = NtWriteFile(Handle, NULL, NULL, NULL, in _BlockIo()
944 IN HANDLE Handle, in _RawWrite() argument
951 return _BlockIo(Handle, Offset, Bytes, (PCHAR)Buffer, FALSE, Errno); in _RawWrite()
957 IN HANDLE Handle, in _RawRead() argument
964 return _BlockIo(Handle, Offset, Bytes, Buffer, TRUE, Errno); in _RawRead()
972 IN HANDLE Handle, in _SetPartType() argument
978 Handle, NULL, NULL, NULL, &IoStatusBlock, IOCTL_DISK_SET_PARTITION_INFO, in _SetPartType()
1151 …if(!_Ext2OpenDevice(name, (BOOLEAN)!BooleanFlagOn(flags, EXT2_FLAG_RW), &NtData->Handle, &NtData->… in nt_open()
1161 _GetDeviceSize(NtData->Handle, &FsSize); in nt_open()
1169 if(!NT_SUCCESS(_LockDrive(NtData->Handle)) /*|| !NT_SUCCESS(_DismountDrive(NtData->Handle))*/) in nt_open()
1198 if(NULL != NtData->Handle) in nt_open()
1200 _UnlockDrive(NtData->Handle); in nt_open()
1201 _CloseDisk(NtData->Handle); in nt_open()
1243 if(NULL != NtData->Handle) in nt_close()
1245 _DismountDrive(NtData->Handle); in nt_close()
1246 _UnlockDrive(NtData->Handle); in nt_close()
1247 _CloseDisk(NtData->Handle); in nt_close()
1352 if(!_RawRead(NtData->Handle, Offset, SizeToRead, BufferToRead, &Errno)) in nt_read_blk()
1422 if(!_RawWrite(NtData->Handle, Offset, SizeToWrite, buf, &Errno)) in nt_write_blk()
1479 _FlushDrive(NtData->Handle); in nt_flush()
1488 _SetPartType(NtData->Handle, 0x83); in nt_flush()