C# Class Common.PInvoke

ファイルを表示 Open project: vitalyobukhov/WebSaver

Private Properties

Property Type Description
BeginUpdateResource System.IntPtr
EndUpdateResource bool
EnumResourceNames bool
FindResource System.IntPtr
FreeLibrary bool
GetClientRect bool
GetLanguage ushort
GetLastInputInfo bool
GetResourceNamesCallback bool
GetWindowLong System.IntPtr
GetWindowLong32 System.IntPtr
GetWindowLong64 System.IntPtr
LoadLibraryEx System.IntPtr
LoadResource System.IntPtr
LockResource System.IntPtr
SetParent System.IntPtr
SetWindowLong System.IntPtr
SetWindowLong32 System.IntPtr
SetWindowLong64 System.IntPtr
SizeofResource uint
UpdateResource bool

Public Methods

Method Description
BeginUpdateResource ( string filename ) : IntPtr
CompleteUpdateResource ( IntPtr updateHandle ) : bool
DeleteResource ( IntPtr updateHandle, ushort type, ushort name ) : bool
DiscardUpdateResource ( IntPtr updateHandle ) : bool
GetFreeIconNames ( IEnumerable busyNames ) : IEnumerable
GetLastWin32Exception ( ) : Exception
GetResourceNames ( IntPtr module, uint type ) : ushort[]
GetStringTable ( IEnumerable texts ) : byte[]>.Dictionary
LoadDatafile ( string filename ) : IntPtr
LoadResourceBytes ( IntPtr module, ushort type, ushort name ) : byte[]
SetWindowChild ( IntPtr window ) : bool
UpdateResource ( IntPtr updateHandle, ushort type, ushort name, byte data ) : bool

Private Methods

Method Description
BeginUpdateResource ( string filename, bool deleteExisting ) : IntPtr
EndUpdateResource ( IntPtr updateHandle, bool discard ) : bool
EnumResourceNames ( IntPtr module, uint type, EnumResourceNamesProcedure procedure, IntPtr parameter ) : bool
FindResource ( IntPtr module, uint name, uint type ) : IntPtr
FreeLibrary ( IntPtr module ) : bool
GetClientRect ( IntPtr window, Rectangle &rectangle ) : bool
GetLanguage ( PrimaryLanguage primary, SecondaryLanguage secondary ) : ushort
GetLastInputInfo ( LastInputInfo &info ) : bool
GetResourceNamesCallback ( IntPtr module, ushort type, ushort name, IntPtr parameterPtr ) : bool
GetWindowLong ( IntPtr window, WindowLongOffset offset ) : IntPtr
GetWindowLong32 ( IntPtr window, int offset ) : IntPtr
GetWindowLong64 ( IntPtr window, int offset ) : IntPtr
LoadLibraryEx ( string filename, IntPtr reserved, uint flags ) : IntPtr
LoadResource ( IntPtr module, IntPtr findHandle ) : IntPtr
LockResource ( IntPtr loadHandle ) : IntPtr
SetParent ( IntPtr window, IntPtr parent ) : IntPtr
SetWindowLong ( IntPtr window, WindowLongOffset offset, IntPtr value ) : IntPtr
SetWindowLong32 ( IntPtr window, int offset, IntPtr value ) : IntPtr
SetWindowLong64 ( IntPtr window, int offset, IntPtr value ) : IntPtr
SizeofResource ( IntPtr module, IntPtr findHandle ) : uint
UpdateResource ( IntPtr updateHandle, ushort type, ushort name, ushort language, byte data, uint size ) : bool

Method Details

BeginUpdateResource() public static method

public static BeginUpdateResource ( string filename ) : IntPtr
filename string
return System.IntPtr

CompleteUpdateResource() public static method

public static CompleteUpdateResource ( IntPtr updateHandle ) : bool
updateHandle System.IntPtr
return bool

DeleteResource() public static method

public static DeleteResource ( IntPtr updateHandle, ushort type, ushort name ) : bool
updateHandle System.IntPtr
type ushort
name ushort
return bool

DiscardUpdateResource() public static method

public static DiscardUpdateResource ( IntPtr updateHandle ) : bool
updateHandle System.IntPtr
return bool

GetFreeIconNames() public static method

public static GetFreeIconNames ( IEnumerable busyNames ) : IEnumerable
busyNames IEnumerable
return IEnumerable

GetLastWin32Exception() public static method

public static GetLastWin32Exception ( ) : Exception
return System.Exception

GetResourceNames() public static method

public static GetResourceNames ( IntPtr module, uint type ) : ushort[]
module System.IntPtr
type uint
return ushort[]

GetStringTable() public static method

public static GetStringTable ( IEnumerable texts ) : byte[]>.Dictionary
texts IEnumerable
return byte[]>.Dictionary

LoadDatafile() public static method

public static LoadDatafile ( string filename ) : IntPtr
filename string
return System.IntPtr

LoadResourceBytes() public static method

public static LoadResourceBytes ( IntPtr module, ushort type, ushort name ) : byte[]
module System.IntPtr
type ushort
name ushort
return byte[]

SetWindowChild() public static method

public static SetWindowChild ( IntPtr window ) : bool
window System.IntPtr
return bool

UpdateResource() public static method

public static UpdateResource ( IntPtr updateHandle, ushort type, ushort name, byte data ) : bool
updateHandle System.IntPtr
type ushort
name ushort
data byte
return bool