C# Class OpenTween.Win32Api

显示文件 Open project: rhenium/OpenTween

Public Methods

Method Description
ClickTasktrayIcon ( string tooltip ) : bool
FlashMyWindow ( IntPtr hwnd, FlashSpecification flashType, int flashCount ) : bool
GetPreviousProcess ( ) : Process
IsScreenSaverRunning ( ) : bool
RegisterGlobalHotKey ( int hotkeyValue, int modifiers, Form targetForm ) : int
SetProxy ( HttpConnection pType, string host, int port, string username, string password ) : void
UnregisterGlobalHotKey ( ushort hotkeyID, Form targetForm ) : void
WakeupWindow ( IntPtr hWnd ) : void

Private Methods

Method Description
CloseHandle ( IntPtr hHandle ) : bool
FindWindow ( [ lpClassName, [ lpWindowName ) : IntPtr
FindWindowEx ( IntPtr hWnd1, IntPtr hWnd2, [ lpsz1, [ lpsz2 ) : IntPtr
FlashWindowEx ( FLASHWINFO &FWInfo ) : bool
GetWindowThreadProcessId ( IntPtr hwnd, int &lpdwProcessId ) : int
GlobalAddAtom ( [ lpString ) : ushort
GlobalDeleteAtom ( ushort nAtom ) : ushort
InternetSetOption ( IntPtr hInternet, int dwOption, IntPtr lpBuffer, int lpdwBufferLength ) : bool
IsIconic ( IntPtr hWnd ) : bool
OpenProcess ( ProcessAccess dwDesiredAccess, [ bInheritHandle, int dwProcessId ) : IntPtr
PostMessage ( IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam ) : bool
ReadProcessMemory ( IntPtr hProcess, IntPtr lpBaseAddress, IntPtr lpBuffer, IntPtr nSize, int &lpNumberOfBytesRead ) : bool
RefreshProxyAccount ( string username, string password ) : void
RefreshProxySettings ( string strProxy ) : void
RegisterHotKey ( IntPtr hwnd, int id, int fsModifiers, int vk ) : int
SendMessage ( IntPtr hwnd, int wMsg, IntPtr wParam, IntPtr lParam ) : IntPtr
SetForegroundWindow ( IntPtr hWnd ) : bool
ShowWindowAsync ( IntPtr hWnd, int nCmdShow ) : bool
SystemParametersInfo ( int intAction, int intParam, bool &bParam, int intWinIniFlag ) : int
UnregisterHotKey ( IntPtr hwnd, int id ) : int
VirtualAllocEx ( IntPtr hProcess, IntPtr lpAddress, IntPtr dwSize, AllocationTypes flAllocationType, MemoryProtectionTypes flProtect ) : IntPtr
VirtualFreeEx ( IntPtr hProcess, IntPtr lpAddress, IntPtr dwSize, MemoryFreeTypes dwFreeType ) : bool
WriteProcessMemory ( IntPtr hProcess, IntPtr lpBaseAddress, TBBUTTONINFO &lpBuffer, IntPtr nSize, int &lpNumberOfBytesWritten ) : bool

Method Details

ClickTasktrayIcon() public static method

public static ClickTasktrayIcon ( string tooltip ) : bool
tooltip string
return bool

FlashMyWindow() public static method

public static FlashMyWindow ( IntPtr hwnd, FlashSpecification flashType, int flashCount ) : bool
hwnd System.IntPtr
flashType FlashSpecification
flashCount int
return bool

GetPreviousProcess() public static method

public static GetPreviousProcess ( ) : Process
return System.Diagnostics.Process

IsScreenSaverRunning() public static method

public static IsScreenSaverRunning ( ) : bool
return bool

RegisterGlobalHotKey() public static method

public static RegisterGlobalHotKey ( int hotkeyValue, int modifiers, Form targetForm ) : int
hotkeyValue int
modifiers int
targetForm System.Windows.Forms.Form
return int

SetProxy() public static method

public static SetProxy ( HttpConnection pType, string host, int port, string username, string password ) : void
pType HttpConnection
host string
port int
username string
password string
return void

UnregisterGlobalHotKey() public static method

public static UnregisterGlobalHotKey ( ushort hotkeyID, Form targetForm ) : void
hotkeyID ushort
targetForm System.Windows.Forms.Form
return void

WakeupWindow() public static method

public static WakeupWindow ( IntPtr hWnd ) : void
hWnd System.IntPtr
return void