C# Class WinLib.WinAPI.Kernel32

显示文件 Open project: SortByte/Network-Manager

Public Properties

Property Type Description
DeviceNames List
DriveNames List
INVALID_HANDLE_VALUE System.IntPtr

Public Methods

Method Description
DevicePathToDrivePath ( string devicePath ) : string
GetDeviceNameMap ( ) : void
GetLastErrorMessage ( uint errorCode ) : string
IniReadValue ( string Section, string Key, string iniPath ) : string

Read Data Value From the Ini File

IniWriteValue ( string Section, string Key, string Value, string iniPath ) : void

Write Data to the INI File

Private Methods

Method Description
CloseHandle ( IntPtr hObject ) : bool
CreateFile ( string FileName, uint dwDesiredAccess, uint dwShareMode, IntPtr lpSecurityAttributes, uint dwCreationDisposition, uint dwFlagsAndAttributes, IntPtr hTemplateFile ) : IntPtr
DeviceIoControl ( IntPtr hDevice, uint dwIoControlCode, IntPtr lpInBuffer, uint nInBufferSize, IntPtr lpOutBuffer, uint nOutBufferSize, uint &BytesReturned, IntPtr lpOverlapped ) : bool
FormatMessage ( uint dwFlags, IntPtr lpSource, uint dwMessageId, uint dwLanguageId, IntPtr &lpBuffer, uint nSize, IntPtr Arguments ) : uint
FreeLibrary ( IntPtr hModule ) : bool
GetLastError ( ) : uint
GetLogicalDriveStrings ( uint nBufferLength, [ Buffer ) : uint
GetModuleHandle ( string ModuleName ) : IntPtr
GetPrivateProfileString ( string section, string key, string def, StringBuilder retVal, int size, string filePath ) : int
LocalFree ( IntPtr hMem ) : IntPtr
OpenProcess ( uint dwDesiredAccess, bool bInheritHandle, uint dwProcessId ) : IntPtr
QueryDosDevice ( string DeviceName, [ TargetPath, uint ucchMax ) : uint
WritePrivateProfileString ( string section, string key, string val, string filePath ) : long

Method Details

DevicePathToDrivePath() public static method

public static DevicePathToDrivePath ( string devicePath ) : string
devicePath string
return string

GetDeviceNameMap() public static method

public static GetDeviceNameMap ( ) : void
return void

GetLastErrorMessage() public static method

public static GetLastErrorMessage ( uint errorCode ) : string
errorCode uint
return string

IniReadValue() public static method

Read Data Value From the Ini File
public static IniReadValue ( string Section, string Key, string iniPath ) : string
Section string
Key string
iniPath string
return string

IniWriteValue() public static method

Write Data to the INI File
public static IniWriteValue ( string Section, string Key, string Value, string iniPath ) : void
Section string
Key string
Value string
iniPath string
return void

Property Details

DeviceNames public_oe static_oe property

public static List DeviceNames
return List

DriveNames public_oe static_oe property

public static List DriveNames
return List

INVALID_HANDLE_VALUE public_oe static_oe property

public static IntPtr,System INVALID_HANDLE_VALUE
return System.IntPtr