C# 클래스 WinLib.WinAPI.User32

파일 보기 프로젝트 열기: SortByte/Network-Manager

공개 메소드들

메소드 설명
LoadIconFromExe ( string file, int nIconIndex, int size ) : Icon

Needs to be implemeted so higher resolution icons can be extracted, unlike ExtractIconEx which can only extract 32x32. This can be done with LoadImage, but resource ID is required, so we must enumarate ICON resources first, then map them to a 0 based index

비공개 메소드들

메소드 설명
CreateWindowEx ( uint dwExStyle, string lpClassName, string lpWindowName, uint dwStyle, int x, int y, int nWidth, int nHeight, IntPtr hWndParent, IntPtr hMenu, IntPtr hInstance, IntPtr LPVOIDlpParam ) : IntPtr
DestroyWindow ( IntPtr hWnd ) : bool
GetUpdateRect ( IntPtr hWnd, System.Windows.Forms.RECT &rect, bool bErase ) : bool
LoadImage ( IntPtr hinst, string szName, uint uType, int cxDesired, int cyDesired, uint fuLoad ) : IntPtr
PostMessage ( IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam ) : int
ReleaseCapture ( ) : bool
SendMessage ( IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam ) : int
WindowFromPoint ( System.Windows.Forms.POINT Point ) : IntPtr

메소드 상세

LoadIconFromExe() 공개 정적인 메소드

Needs to be implemeted so higher resolution icons can be extracted, unlike ExtractIconEx which can only extract 32x32. This can be done with LoadImage, but resource ID is required, so we must enumarate ICON resources first, then map them to a 0 based index
public static LoadIconFromExe ( string file, int nIconIndex, int size ) : Icon
file string
nIconIndex int
size int
리턴 System.Drawing.Icon