C# Class Ultima.NativeMethods

显示文件 Open project: polserver/poltools

Public Methods

Method Description
ReadNameString ( byte buffer, int len ) : string
SwapEndian ( short x ) : short

Swaps from Big to LittleEndian and vise versa

Private Methods

Method Description
CloseHandle ( ClientProcessHandle handle ) : int
FindWindowA ( string lpClassName, string lpWindowName ) : ClientWindowHandle
GetWindowThreadProcessId ( ClientWindowHandle window, ClientProcessHandle &processID ) : int
IsWindow ( ClientWindowHandle window ) : int
OemKeyScan ( int wOemChar ) : int
OpenProcess ( int desiredAccess, int inheritClientHandle, ClientProcessHandle processID ) : ClientProcessHandle
PostMessage ( ClientWindowHandle hWnd, int wMsg, int wParam, int lParam ) : bool
ReadProcessMemory ( ClientProcessHandle process, int baseAddress, void buffer, int size, int &op ) : int
SetForegroundWindow ( ClientWindowHandle hWnd ) : int
WriteProcessMemory ( ClientProcessHandle process, int baseAddress, void buffer, int size, int nullMe ) : int
_lread ( SafeFileHandle hFile, void lpBuffer, int wBytes ) : int

Method Details

ReadNameString() public static method

public static ReadNameString ( byte buffer, int len ) : string
buffer byte
len int
return string

SwapEndian() public static method

Swaps from Big to LittleEndian and vise versa
public static SwapEndian ( short x ) : short
x short
return short