C# Класс WinLib.WinAPI.Kernel32

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
DeviceNames List
DriveNames List
INVALID_HANDLE_VALUE System.IntPtr

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

DevicePathToDrivePath() публичный статический Метод

public static DevicePathToDrivePath ( string devicePath ) : string
devicePath string
Результат string

GetDeviceNameMap() публичный статический Метод

public static GetDeviceNameMap ( ) : void
Результат void

GetLastErrorMessage() публичный статический Метод

public static GetLastErrorMessage ( uint errorCode ) : string
errorCode uint
Результат string

IniReadValue() публичный статический Метод

Read Data Value From the Ini File
public static IniReadValue ( string Section, string Key, string iniPath ) : string
Section string
Key string
iniPath string
Результат string

IniWriteValue() публичный статический Метод

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
Результат void

Описание свойств

DeviceNames публичное статическое свойство

public static List DeviceNames
Результат List

DriveNames публичное статическое свойство

public static List DriveNames
Результат List

INVALID_HANDLE_VALUE публичное статическое свойство

public static IntPtr,System INVALID_HANDLE_VALUE
Результат System.IntPtr