C# Class ZForge.Controls.ExplorerBar.NativeMethods

A class that provides access to the Win32 API
Datei anzeigen Open project: zhuangyy/Motion

Public Methods

Method Description
LoadLibraryEx ( string lpfFileName, LoadLibraryExFlags flags ) : IntPtr

The LoadLibraryEx function maps the specified executable module into the address space of the calling process. The executable module can be a .dll or an .exe file. The specified module may cause other modules to be mapped into the address space

SendMessage ( IntPtr hwnd, WindowMessageFlags msg, IntPtr wParam, IntPtr lParam ) : int

The SendMessage function sends the specified message to a window or windows. It calls the window procedure for the specified window and does not return until the window procedure has processed the message

SetErrorMode ( SetErrorModeFlags uMode ) : int

The SetErrorMode function controls whether the system will handle the specified types of serious errors, or whether the process will handle them

Private Methods

Method Description
CopyMemory ( IntPtr Destination, IntPtr Source, int Length ) : void
CreateIconFromResourceEx ( byte pbIconBits, int cbIconBits, bool fIcon, int dwVersion, int csDesired, int cyDesired, int flags ) : IntPtr
DeleteObject ( IntPtr hObject ) : bool
DllGetVersion ( DLLVERSIONINFO &pdvi ) : int
DrawText ( IntPtr hdc, string lpString, int nCount, RECT &lpRect, DrawTextFlags uFormat ) : int
FindResource ( IntPtr hModule, string lpName, int lpType ) : IntPtr
FindResource ( IntPtr hModule, string lpName, string lpType ) : IntPtr
FreeLibrary ( IntPtr hModule ) : bool
FreeResource ( IntPtr hglbResource ) : int
GdiFlush ( ) : int
GetDC ( IntPtr hWnd ) : IntPtr
GetDeviceCaps ( IntPtr hDC, int nIndex ) : int
GetProcAddress ( IntPtr hModule, string procName ) : IntPtr
GetSystemMetrics ( int nIndex ) : int
InternalLoadLibraryEx ( string lpfFileName, IntPtr hFile, int dwFlags ) : IntPtr
InternalSendMessage ( IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam ) : int
InternalSetErrorMode ( int uMode ) : int
LoadBitmap ( IntPtr hInstance, string lpBitmapName ) : IntPtr
LoadBitmap ( IntPtr hInstance, uint lpBitmapName ) : IntPtr
LoadLibrary ( string lpFileName ) : IntPtr
LoadResource ( IntPtr hModule, IntPtr hResInfo ) : IntPtr
LoadString ( IntPtr hInstance, int uID, StringBuilder lpBuffer, int nBufferMax ) : int
ReleaseDC ( IntPtr hWnd, IntPtr hDC ) : int
SelectObject ( IntPtr hdc, IntPtr hgdiobj ) : IntPtr
SetBkMode ( IntPtr hdc, int iBkMode ) : int
SetTextColor ( IntPtr hdc, int crColor ) : int
SizeofResource ( IntPtr hModule, IntPtr hResInfo ) : int

Method Details

LoadLibraryEx() public static method

The LoadLibraryEx function maps the specified executable module into the address space of the calling process. The executable module can be a .dll or an .exe file. The specified module may cause other modules to be mapped into the address space
public static LoadLibraryEx ( string lpfFileName, LoadLibraryExFlags flags ) : IntPtr
lpfFileName string Pointer to a null-terminated string that names /// the executable module (either a .dll or an .exe file). The name specified /// is the file name of the executable module. This name is not related to the /// name stored in a library module itself, as specified by the LIBRARY keyword /// in the module-definition (.def) file. If the string specifies a path, but /// the file does not exist in the specified directory, the function fails. When /// specifying a path, be sure to use backslashes (\), not forward slashes (/). /// If the string does not specify a path, and the file name extension is omitted, /// the function appends the default library extension .dll to the file name. /// However, the file name string can include a trailing point character (.) to /// indicate that the module name has no extension. If the string does not specify /// a path, the function uses a standard search strategy to find the file. If /// mapping the specified module into the address space causes the system to map /// in other, associated executable modules, the function can use either the /// standard search strategy or an alternate search strategy to find those modules.
flags LoadLibraryExFlags Action to take when loading the module. If no flags are /// specified, the behavior of this function is identical to that of the LoadLibrary /// function. This parameter can be one of the LoadLibraryExFlags values
return System.IntPtr

SendMessage() public static method

The SendMessage function sends the specified message to a window or windows. It calls the window procedure for the specified window and does not return until the window procedure has processed the message
public static SendMessage ( IntPtr hwnd, WindowMessageFlags msg, IntPtr wParam, IntPtr lParam ) : int
hwnd System.IntPtr Handle to the window whose window procedure will /// receive the message
msg WindowMessageFlags Specifies the message to be sent
wParam System.IntPtr Specifies additional message-specific information
lParam System.IntPtr Specifies additional message-specific information
return int

SetErrorMode() public static method

The SetErrorMode function controls whether the system will handle the specified types of serious errors, or whether the process will handle them
public static SetErrorMode ( SetErrorModeFlags uMode ) : int
uMode SetErrorModeFlags Process error mode. This parameter can be one or more of /// the SetErrorModeFlags values
return int