NativeFileIO Methods |
The NativeFileIO type exposes the following members.
Name | Description | |
---|---|---|
AddFilter(UInt32, String) | ||
AddFilter(Guid, String, Boolean) | ||
AddProcessPaths(Boolean, String) |
Adds a semicolon separated list of paths to the PATH environment variable of
current process. Any paths already in present PATH variable are not added again.
| |
AddProcessPaths(Boolean, String) |
Adds a list of paths to the PATH environment variable of current process. Any
paths already in present PATH variable are not added again.
| |
AllowExtendedDASDIO | ||
CompressFile | ||
ConvertManagedFileAccess | ||
CreateDirectoryJunction(SafeFileHandle, String) |
Creates a directory junction
| |
CreateDirectoryJunction(String, String) |
Creates a directory junction
| |
CreateHardLink | ||
CreateRootPnPDevice | ||
CreateWaitHandle | ||
DeleteVolumeMountPoint | ||
DeviceIoControl |
Sends an IOCTL control request to a device driver, or an FSCTL control request to a filesystem driver.
| |
DismountVolumeFilesystem |
Locks and dismounts filesystem on a volume. Upon successful return, further access to the device
can only be done through the handle passed to this function until handle is closed or lock is
released.
| |
DriverPackageInstall | ||
DriverPackagePreinstall | ||
DriverPackageUninstall | ||
EnableFileSecurityBypassPrivileges | ||
EnablePrivileges | ||
EnumerateChildDevices | ||
EnumerateDeviceInstancesForService | ||
EnumerateDiskVolumes(String) | ||
EnumerateDiskVolumes(UInt32) | ||
EnumerateDiskVolumesMountPoints(String) | ||
EnumerateDiskVolumesMountPoints(UInt32) | ||
EnumerateHandleTableHandleInformation | ||
EnumerateProcessesHoldingFileHandle | ||
EnumerateRegisteredFilters | ||
EnumerateVolumeMountPoints | ||
EnumerateVolumeNamesForDeviceObject | ||
EnumerateWin32DevicePaths | ||
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
FindFirstFreeDriveLetter | ||
FindFirstFreeDriveLetter(Char) | ||
FlushBuffers | ||
GenRandomGuid | ||
GenRandomInt32 | ||
GenRandomInt64 | ||
GenRandomUInt32 | ||
GenRandomUInt64 | ||
GetDeviceNameByScsiAddressAndSize | Obsolete.
Returns a disk device object name for a specified SCSI address.
| |
GetDeviceRegistryProperty | ||
GetDevicesScsiAddresses | ||
GetDevInst | ||
GetDiskGeometry |
Retrieves disk geometry.
| |
GetDiskOffline | ||
GetDiskReadOnly | ||
GetDiskSize | ||
GetDriveLayoutEx | ||
GetExceptionForNtStatus | ||
GetExeFileHeader(Byte) | ||
GetExeFileHeader(Stream) | ||
GetExeFileHeader(String) | ||
GetFileSize(SafeFileHandle) | ||
GetFileSize(String) | ||
GetFileVersion(Byte) | ||
GetFileVersion(Stream) | ||
GetFileVersion(String) | ||
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetModuleFullPath | ||
GetMountPointBasedPath | ||
GetNtPath | ||
GetOSVersion | ||
GetPartitionInformation | ||
GetPartitionInformationEx | ||
GetPhysicalDeviceObjectName | ||
GetPhysicalDrivePathForNtDevice |
Retrieves PhysicalDrive or CdRom path for NT raw device path
| |
GetProcAddress(IntPtr, String, Type) | ||
GetProcAddress(String, String, Type) | ||
GetRegisteredFilters | ||
GetScsiAddress(SafeFileHandle) |
Retrieves SCSI address.
| |
GetScsiAddress(String) |
Retrieves SCSI address.
| |
GetScsiAddressAndLength | ||
GetScsiAddressForNtDevice |
Retrieves status of write overlay for mounted device.
| |
GetStorageDeviceNumber |
Retrieves storage device number.
| |
GetSystemHandleTable |
Returns current system handle table.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetVolumeDiskExtents | ||
GetVolumeNameForVolumeMountPoint | ||
GetVolumeSizeInformation | ||
GrowPartition | ||
InitializeDisk | ||
InstallFromInfSection | ||
IsDiskWritable | ||
MoveFile | ||
NtCreateFile |
Calls NT API NtCreateFile() function and encapsulates returned handle in a SafeFileHandle object.
| |
NtDllTry |
Encapsulates call to an ntdll.dll API function that returns an NTSTATUS value indicating
success or error status. If result is zero or positive, this function just passes through
that value as return value. If result is negative indicating an error, it converts error
code to a Win32 error code and throws a managed exception for that error code.
| |
NtOpenEvent |
Calls NT API NtOpenEvent() function to open an event object using NT path and encapsulates returned handle in a SafeWaitHandle object.
| |
OpenBackupHandle |
Calls Win32 API CreateFile() function to create a backup handle for a file or
directory and encapsulates returned handle in a SafeFileHandle object. This
handle can later be used in calls to Win32 Backup API functions or similar.
| |
OpenDiskByScsiAddress |
Opens a disk device with a specified SCSI address and returns both name and an open handle.
| |
OpenFileHandle(String, FileAccess, FileShare, FileMode, Boolean) |
Calls Win32 API CreateFile() function and encapsulates returned handle in a SafeFileHandle object.
| |
OpenFileHandle(String, FileAccess, FileShare, FileMode, FileOptions) |
Calls Win32 API CreateFile() function and encapsulates returned handle in a SafeFileHandle object.
| |
OpenFileHandle(String, FileAccess, FileShare, FileMode, UInt32) |
Calls Win32 API CreateFile() function and encapsulates returned handle in a SafeFileHandle object.
| |
OpenFileStream(String, FileMode, FileAccess, FileShare) |
Calls Win32 API CreateFile() function and encapsulates returned handle.
| |
OpenFileStream(String, FileMode, FileAccess, FileShare, Boolean) |
Calls Win32 API CreateFile() function and encapsulates returned handle.
| |
OpenFileStream(String, FileMode, FileAccess, FileShare, Int32) |
Calls Win32 API CreateFile() function and encapsulates returned handle.
| |
OpenFileStream(String, FileMode, FileAccess, FileShare, Int32, Boolean) |
Calls Win32 API CreateFile() function and encapsulates returned handle.
| |
ParseDoubleTerminatedString(Array, Int32) | ||
ParseDoubleTerminatedString(Char, Int32) | ||
QueryDirectoryJunction(SafeFileHandle) |
Get directory junction target path
| |
QueryDirectoryJunction(String) |
Returns directory junction target path
| |
QueryDosDevice | ||
QueryDosDevice(String) | ||
ReadNullTerminatedString | ||
RemoveFilter(Guid, String) | ||
RemoveFilter(UInt32, String) | ||
RemovePnPDevice | ||
RestartDevice | ||
RunDLLInstallHinfSection | ||
ScanForHardwareChanges | ||
ScanForHardwareChanges(String) | ||
SetDiskOffline | ||
SetDiskReadOnly | ||
SetDriveLayoutEx | ||
SetEvent | ||
SetFileSparseFlag | ||
SetInheritable | ||
SetProtectFromClose | ||
SetRegisteredFilters(Guid, String) | ||
SetRegisteredFilters(UInt32, String) | ||
SetupCopyOEMInf | ||
SetVolumeMountPoint | ||
SetVolumeOffline | ||
TestFileOpen | ||
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UncompressFile | ||
UpdateDiskProperties |
Re-enumerates partitions on all disk drives currently connected to the system. No exceptions are
thrown on error, but any exceptions from underlying API calls are logged to trace log.
| |
UpdateDiskProperties(String) |
Re-enumerates partitions on a disk device with a specified device path. No
exceptions are thrown on error, but any exceptions from underlying API calls are
logged to trace log.
| |
UpdateDiskProperties(NativeFileIOSCSI_ADDRESS) |
Re-enumerates partitions on a disk device with a specified SCSI address. No
exceptions are thrown on error, but any exceptions from underlying API calls are
logged to trace log.
| |
UpdateDiskProperties(SafeFileHandle, Boolean) | ||
UpdateDriverForPnPDevices | ||
VolumeUsesDisk | ||
Win32Try(Boolean) |
Encapsulates call to a Win32 API function that returns a BOOL value indicating success
or failure and where an error value is available through a call to GetLastError() in case
of failure. If value True is passed to this method it does nothing. If False is passed,
it calls GetLastError(), converts error code to a HRESULT value and throws a managed
exception for that HRESULT.
| |
Win32TryT(T) |
Encapsulates call to a Win32 API function that returns a value where failure
is indicated as a NULL return and GetLastError() returns an error code. If
non-zero value is passed to this method it just returns that value. If zero
value is passed, it calls GetLastError() and throws a managed exception for
that error code.
|