C# Class Win32.Api

Show file Open project: ufasoft/coin

Public Methods

Method Description
Win32Check ( int r ) : int
Win32Check ( bool b ) : void

Private Methods

Method Description
CloseHandle ( IntPtr h ) : bool
CreateConsoleScreenBuffer ( Rights rights, Share shareMode, IntPtr sec, ScreenBufferType type, IntPtr buf ) : SafeFileHandle
CreateFile ( string lpFileName, Rights dwDesiredAccess, Share dwShareMode, IntPtr lpSecurityAttributes, Disposition dwCreationDisposition, int dwFlagsAndAttributes, IntPtr hTemplateFile ) : IntPtr
FlushConsoleInputBuffer ( SafeHandle h ) : bool
FormatMessage ( FormatMessageFlags flags, IntPtr source, int messageId, int languageId, StringBuilder buffer, int size, IntPtr arguments ) : int
FreeConsole ( ) : bool
GenerateConsoleCtrlEvent ( CtrlEvent dwCtrlEvent, int dwProcessGroupId ) : bool
GetAsyncKeyState ( int vkey ) : short
GetConsoleCP ( ) : UInt32
GetConsoleMode ( SafeHandle h, ConsoleMode &mode ) : bool
GetConsoleOutputCP ( ) : UInt32
GetConsoleScreenBufferInfo ( SafeHandle h, CONSOLE_SCREEN_BUFFER_INFO &sbi ) : bool
GetCurrentConsoleFont ( SafeHandle h, bool bNaximumWindows, CONSOLE_FONT_INFO &lpConsoleCurrentFont ) : bool
GetFileAttributes ( string lpFileName ) : uint
GetFileInformationByHandle ( IntPtr h, BY_HANDLE_FILE_INFORMATION &info ) : bool
GetFileType ( IntPtr hFile ) : FileType
GetForegroundWindow ( ) : IntPtr
GetKeyboardState ( byte state ) : bool
GetModuleHandle ( string moduleName ) : IntPtr
GetNumberOfConsoleInputEvents ( SafeHandle h, UInt32 &dw ) : bool
GetNumberOfConsoleMouseButtons ( UInt32 &dwButtons ) : bool
GetScrollBarInfo ( IntPtr hwnd, OBJID idObject, SCROLLBARINFO &psbi ) : bool
GetScrollInfo ( IntPtr hwnd, ScrollBarSelect n, SCROLLINFO &lpcScrollInfo ) : bool
GetShortPathName ( [ path, [ shortPath, int shortPathLength ) : int
GetStdHandle ( StdHandleNumber nStdHandle ) : IntPtr
GetSystemInfo ( [ systemInfo ) : void
QueryPerformanceCounter ( long &lpPerformanceCount ) : bool
QueryPerformanceFrequency ( long &lpFrequency ) : bool
ReadConsoleInput ( SafeHandle h, [ ir, UInt32 len, UInt32 &dwRead ) : bool
ReadConsoleOutputAttribute ( SafeHandle h, UInt16 buf, UInt32 nLength, COORD coord, UInt32 &dwRead ) : bool
ReadConsoleOutputCharacter ( SafeHandle h, char buf, UInt32 nLength, COORD coord, UInt32 &dwRead ) : bool
ReadConsoleOutputCharacterA ( SafeHandle h, byte buf, UInt32 nLength, COORD coord, UInt32 &dwRead ) : bool
ScrollConsoleScreenBuffer ( SafeHandle h, SMALL_RECT &rect, IntPtr clip, Int32 dest, CHAR_INFO &fill ) : bool
SetConsoleActiveScreenBuffer ( SafeHandle h ) : bool
SetConsoleCP ( UInt32 cp ) : bool
SetConsoleCursorInfo ( SafeHandle h, CONSOLE_CURSOR_INFO &ci ) : bool
SetConsoleCursorPosition ( SafeHandle h, COORD coord ) : bool
SetConsoleOutputCP ( UInt32 cp ) : bool
SetConsoleTextAttribute ( SafeHandle h, UInt16 attr ) : bool
SetFileAttributes ( string lpFileName, uint dwFileAttributes ) : bool
SetForegroundWindow ( IntPtr hWnd ) : bool
SetScrollInfo ( IntPtr hwnd, ScrollBarSelect n, SCROLLINFO &lpcScrollInfo, bool redraw ) : int
ShowScrollBar ( IntPtr hwnd, ScrollBarSelect wBar, bool bShow ) : bool
StretchDIBits ( IntPtr hdc, int XDest, int YDest, int nDestWidth, int nDestHeight, int XSrc, int YSrc, int nSrcWidth, int nSrcHeight, IntPtr lpBits, [ lpBitsInfo, uint iUsage, RasterOp dwRop ) : int
TerminateProcess ( HANDLE hProcess, int uExitCode ) : int
WriteConsoleA ( SafeHandle h, byte buf, UInt32 nLength, UInt32 &dwRead, IntPtr reserv ) : bool
WriteConsoleOutputAttribute ( SafeHandle h, UInt16 buf, UInt32 nLength, COORD coord, UInt32 &dwRead ) : bool
WriteConsoleOutputCharacter ( SafeHandle h, char buf, UInt32 nLength, COORD coord, UInt32 &dwRead ) : bool
WriteConsoleOutputCharacterA ( SafeHandle h, byte buf, UInt32 nLength, COORD coord, UInt32 &dwRead ) : bool
waveOutClose ( IntPtr hWaveOut ) : MMSysErr
waveOutGetNumDevs ( ) : int
waveOutGetPosition ( WaveHandle h, MMTIME &mmtime, uint cbmmt ) : MMSysErr
waveOutGetPosition ( WaveHandle h, int &lpInfo, int uSize ) : int
waveOutGetVolume ( WaveHandle h, int &dwVolume ) : int
waveOutOpen ( WaveHandle &hWaveOut, int uDeviceID, WaveFormat lpFormat, waveOutProc dwCallback, IntPtr dwInstance, WaweOutFlag dwFlags ) : MMSysErr
waveOutPause ( WaveHandle h ) : MMSysErr
waveOutPrepareHeader ( WaveHandle h, WaveHdr &lpWaveOutHdr, int uSize ) : MMSysErr
waveOutReset ( WaveHandle h ) : MMSysErr
waveOutRestart ( WaveHandle h ) : MMSysErr
waveOutSetVolume ( WaveHandle h, int dwVolume ) : int
waveOutUnprepareHeader ( WaveHandle h, WaveHdr &lpWaveOutHdr, int uSize ) : MMSysErr
waveOutWrite ( WaveHandle h, WaveHdr &lpWaveOutHdr, int uSize ) : MMSysErr

Method Details

Win32Check() public static method

public static Win32Check ( int r ) : int
r int
return int

Win32Check() public static method

public static Win32Check ( bool b ) : void
b bool
return void