C# Класс TOAPI.Kernel32.Kernel32

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

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

Свойство Тип Описание
INVALID_HANDLE_VALUE IntPtr
NullHandle IntPtr

Защищенные свойства (Protected)

Свойство Тип Описание
InvalidHandleValue IntPtr

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

Метод Описание
AddConsoleAlias ( string Source, string Target, string ExeName ) : bool
AllocConsole ( ) : bool
AttachConsole ( int dwProcessId ) : bool
CancelIo ( SafeFileHandle hFile ) : Int32
CopyFileExW ( [ lpExistingFileName, [ lpNewFileName, CopyProgressRoutine lpProgressRoutine, IntPtr lpData, IntPtr pbCancel, uint dwCopyFlags ) : int
CreateConsoleScreenBuffer ( int dwDesiredAccess, int dwShareMode, SECURITY_ATTRIBUTES &lpSecurityAttributes, int dwFlags, IntPtr lpScreenBufferData ) : IntPtr
CreateEvent ( SECURITY_ATTRIBUTES SecurityAttributes, Int32 bManualReset, Int32 bInitialState, String lpName ) : SafeWaitHandle
CreateFile ( string lpFileName, uint dwDesiredAccess, uint dwShareMode, IntPtr lpSecurityAttributes, uint dwCreationDisposition, uint dwFlagsAndAttributes, IntPtr hTemplateFile ) : SafeFileHandle
CreateFile ( string lpFileName, uint dwDesiredAccess, uint dwShareMode, SECURITY_ATTRIBUTES &lpSecurityAttributes, uint dwCreationDisposition, uint dwFlagsAndAttributes, IntPtr hTemplateFile ) : SafeFileHandle
CreateThread ( IntPtr lpThreadAttributes, uint dwStackSize, THREAD_START_ROUTINE lpStartAddress, IntPtr lpParameter, uint dwCreationFlags, IntPtr lpThreadId ) : IntPtr
DefineDosDevice ( uint dwFlags, string lpDeviceName, string lpTargetPath ) : bool
DeleteFile ( [ lpFileName ) : bool
ExitThread ( uint dwExitCode ) : void
FillConsoleOuputAttribute ( IntPtr ConsoleOutput, ushort wAttribute, uint nLength, COORD dwWriteCoord, uint &NumberofAttrsWritten ) : bool
FillConsoleOutputCharacter ( IntPtr ConsoleOutput, char Character, uint Length, COORD WriteCoord, uint &NumberOfCharsWritten ) : bool
FindClose ( IntPtr hFindFile ) : int
FindFirstFileW ( [ lpFileName, WIN32_FIND_DATAW &lpFindFileData ) : IntPtr
FindFirstStreamW ( [ lpFileName, STREAM_INFO_LEVELS InfoLevel, IntPtr lpFindStreamData, uint dwFlags ) : IntPtr
FindFirstVolume ( [ lpszVolumeName, uint cchBufferLength ) : IntPtr
FindFirstVolumeMountPoint ( [ lpszRootPathName, StringBuilder lpszVolumeMountPoint, uint cchBufferLength ) : IntPtr
FindNextFileW ( IntPtr hFindFile, [ lpFindFileData ) : int
FindNextVolume ( IntPtr hFindVolume, [ lpszVolumeName, uint cchBufferLength ) : bool
FindNextVolumeMountPoint ( IntPtr hFindVolumeMountPoint, StringBuilder lpszVolumeMountPoint, uint cchBufferLength ) : bool
FindVolumeClose ( IntPtr hFindVolume ) : bool
FindVolumeMountPointClose ( IntPtr hFindVolumeMountPoint ) : bool
FlushConsoleInputBuffer ( IntPtr ConsoleInput ) : bool
FreeConsole ( ) : bool
GetBinaryType ( string lpApplicationName, uint &lpBinaryType ) : int
GetComputerName ( StringBuilder lpBuffer, int &size ) : bool
GetComputerNameEx ( int NameType, IntPtr lpBuffer, int &lpnSize ) : bool
GetComputerNameEx ( int NameType, StringBuilder lpBuffer, int &lpnSize ) : bool
GetConsoleCP ( ) : uint
GetConsoleCursorInfo ( IntPtr hConsoleOutput, CONSOLE_CURSOR_INFO &lpConsoleCursorInfo ) : bool
GetConsoleDisplayMode ( int &lpModeFlags ) : bool
GetConsoleFontSize ( IntPtr hConsoleOutput, int nFont ) : COORD
GetConsoleMode ( IntPtr ConsoleHandle, int &lpMode ) : bool
GetConsoleOutputCP ( ) : uint
GetConsoleScreenBufferInfo ( IntPtr hConsoleOutput, CONSOLE_SCREEN_BUFFER_INFO &consoleScreenBufferInfo ) : bool
GetConsoleSelectionInfo ( CONSOLE_SELECTION_INFO &lpConsoleSelectionInfo ) : bool
GetConsoleTitle ( [ consoleTitle, int size ) : int
GetConsoleWindow ( ) : IntPtr
GetCurrentConsoleFont ( IntPtr ConsoleOutput, [ bMaximumWindow, CONSOLE_FONT_INFO &lpConsoleCurrentFont ) : bool
GetCurrentThread ( ) : IntPtr
GetCurrentThreadId ( ) : uint
GetDiskFreeSpace ( [ lpRootPathName, int &lpSectorsPerCluster, int &lpBytesPerSector, int &lpNumberOfFreeClusters, int &lpTotalNumberOfClusters ) : bool
GetDiskFreeSpaceEx ( [ lpDirectoryName, ulong &lpFreeBytesAvailableToCaller, ulong &lpTotalNumberOfBytes, ulong &lpTotalNumberOfFreeBytes ) : bool
GetDriveType ( [ lpRootPathName ) : DriveType
GetLargestConsoleWindowSize ( IntPtr ConsoleOutput ) : COORD
GetLocalTime ( SYSTEMTIME &lpSystemTime ) : void
GetLogicalDriveStrings ( uint nBufferLength, [ lpBuffer ) : uint
GetLogicalDrives ( ) : uint
GetModuleHandle ( [ moduleName ) : IntPtr
GetModuleHandleEx ( uint dwFlags, [ modName, IntPtr &phModule ) : bool
GetNumberOfConsoleInputEvents ( IntPtr hConsoleInput, uint &lpNumberOfEvents ) : bool
GetNumberOfConsoleMouseButtons ( int &numberOfMouseButtons ) : bool
GetProcAddress ( IntPtr hModule, [ lpProcName ) : FARPROC
GetStdHandle ( int whichStdHandle ) : IntPtr
GetSystemDirectory ( StringBuilder lpBuffer, int uSize ) : uint
GetSystemPowerStatus ( [ lpSystemPowerStatus ) : bool
GetSystemTimes ( [ lpIdleTime, [ lpKernelTime, [ lpUserTime ) : bool
GetThreadId ( IntPtr Thread ) : uint
GetThreadLocale ( ) : uint
GetTickCount ( ) : uint
GetVolumeInformation ( string RootPathName, StringBuilder VolumeNameBuffer, int VolumeNameSize, uint &VolumeSerialNumber, uint &MaximumComponentLength, uint &FileSystemFlags, StringBuilder FileSystemNameBuffer, int nFileSystemNameSize ) : bool
GetWindowsDirectory ( [ builder, uint uSize ) : uint
IsProcessorFeaturePresent ( int aProcessorFeature ) : bool
LockFile ( SafeFileHandle hFile, uint dwFileOffsetLow, uint dwFileOffsetHigh, uint nNumberOfBytesToLockLow, uint nNumberOfBytesToLockHigh ) : bool
LockFileEx ( SafeFileHandle hFile, uint dwFlags, uint dwReserved, uint nNumberOfBytesToLockLow, uint nNumberOfBytesToLockHigh, OVERLAPPED &lpOverlapped ) : bool
OpenThread ( uint dwDesiredAccess, [ bInheritHandle, uint dwThreadId ) : IntPtr
PeekConsoleInputW ( IntPtr hConsoleInput, INPUT_RECORD &lpBuffer, uint nLength, uint &lpNumberOfEventsRead ) : bool
QueryPerformanceCounter ( long &lpPerformanceCount ) : int
QueryPerformanceFrequency ( long &lpFrequency ) : int
ReadConsole ( IntPtr consoleInput, [ builder, int numCharsToRead, int &numCharsRead, IntPtr reserved ) : bool
ReadConsoleInputW ( IntPtr hConsoleInput, INPUT_RECORD &lpBuffer, uint nLength, uint &lpNumberOfEventsRead ) : bool
ReadFile ( SafeFileHandle hFile, Byte &lpBuffer, Int32 nNumberOfBytesToRead, Int32 &lpNumberOfBytesRead, OVERLAPPED &lpOverlapped ) : Int32
ReadFile ( SafeFileHandle hFile, IntPtr lpBuffer, uint nNumberOfBytesToRead, IntPtr lpNumberOfBytesRead, OVERLAPPED &lpOverlapped ) : bool
ReadFileEx ( SafeFileHandle hFile, IntPtr lpBuffer, uint nNumberOfBytesToRead, OVERLAPPED &lpOverlapped, FileIOCompletionRoutine lpCompletionRoutine ) : bool
ResumeThread ( IntPtr hThread ) : int
ScrollConsoleScreenBuffer ( IntPtr hConsoleOutput, SMALL_RECT &lpScrollRectangle, IntPtr lpClipRectangle, COORD dwDestinationOrigin, CHAR_INFO &lpFill ) : bool
ScrollConsoleScreenBuffer ( IntPtr hConsoleOutput, SMALL_RECT &lpScrollRectangle, SMALL_RECT &lpClipRectangle, COORD dwDestinationOrigin, CHAR_INFO &lpFill ) : bool
SetComputerNameEx ( int NameType, string lpBuffer ) : bool
SetConsoleActiveScreenBuffer ( IntPtr ConsoleOutput ) : bool
SetConsoleCP ( uint wCodePageID ) : bool
SetConsoleCursorInfo ( IntPtr hConsoleOutput, CONSOLE_CURSOR_INFO &ConsoleCursorInfo ) : int
SetConsoleCursorPosition ( IntPtr hConsOutput, COORD cursorPosition ) : bool
SetConsoleDisplayMode ( IntPtr ConsoleOut, int displayMode ) : bool
SetConsoleMode ( IntPtr ConsHandle, uint dwMode ) : bool
SetConsoleOutputCP ( uint wCodePageID ) : bool
SetConsoleScreenBufferSize ( IntPtr hConsHandle, COORD dwSize ) : bool
SetConsoleTextAttribute ( IntPtr hConsHandle, ushort wAttributes ) : bool
SetConsoleTitle ( string aTitle ) : bool
SetConsoleWindowInfo ( IntPtr hConsoleOutput, [ bAbsolute, SMALL_RECT &lpConsoleWindow ) : bool
SetEndOfFile ( SafeFileHandle hFile ) : bool
SetFilePointer ( SafeFileHandle hFile, int lDistanceToMove, IntPtr lpDistanceToMoveHigh, FileSeekPosition dwMoveMethod ) : uint
SetFilePointerEx ( SafeFileHandle hFile, long liDistanceToMove, IntPtr lpNewFilePointer, FileSeekPosition dwMoveMethod ) : int
SetStdHandle ( uint nStdHandle, IntPtr hHandle ) : bool
SetThreadLocale ( uint Locale ) : bool
SetVolumeLabel ( string lpRootPathName, string lpVolumeName ) : bool
Sleep ( uint dwMilliseconds ) : void
SleepEx ( uint dwMilliseconds, [ bAlertable ) : uint
SuspendThread ( IntPtr hThread ) : int
UnlockFile ( SafeFileHandle hFile, uint dwFileOffsetLow, uint dwFileOffsetHigh, uint nNumberOfBytesToUnlockLow, uint nNumberOfBytesToUnlockHigh ) : bool
UnlockFileEx ( SafeFileHandle hFile, uint dwReserved, uint nNumberOfBytesToUnlockLow, uint nNumberOfBytesToUnlockHigh, OVERLAPPED &lpOverlapped ) : bool
WaitForSingleObject ( SafeWaitHandle hHandle, Int32 dwMilliseconds ) : Int32
WriteConsole ( IntPtr ConsoleOutput, string Buffer, int charsToWrite, int &charsWritten, IntPtr reserved ) : bool
WriteFile ( SafeFileHandle hFile, Byte &lpBuffer, Int32 nNumberOfBytesToWrite, Int32 &lpNumberOfBytesWritten, Int32 lpOverlapped ) : Boolean
WriteFile ( SafeFileHandle hFile, IntPtr lpBuffer, uint nNumberOfBytesToWrite, IntPtr lpNumberOfBytesWritten, IntPtr lpOverlapped ) : int
WriteFileEx ( SafeFileHandle hFile, IntPtr lpBuffer, uint nNumberOfBytesToWrite, OVERLAPPED &lpOverlapped, FileIOCompletionRoutine lpCompletionRoutine ) : int
WriteFileGather ( SafeFileHandle hFile, [ aSegmentArray, uint nNumberOfBytesToWrite, IntPtr lpReserved, OVERLAPPED &lpOverlapped ) : int

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

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

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

InvalidHandleValue защищенное статическое свойство

Simple representation of the handle returned when CreateFile fails.
protected static IntPtr InvalidHandleValue
Результат IntPtr

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

Simple representation of a null handle : a closed stream will get this handle. Note it is public for comparison by higher level classes.
public static IntPtr NullHandle
Результат IntPtr