2014-07-11 22:34:39 -05:00
|
|
|
// 11 july 2014
|
|
|
|
|
|
|
|
package ui
|
|
|
|
|
|
|
|
// wfunc kernel32 GetModuleHandleW *uint16 uintptr
|
|
|
|
// wfunc kernel32 GetStartupInfoW *s_STARTUPINFOW void
|
2014-07-12 10:29:54 -05:00
|
|
|
// wfunc user32 LoadIconW uintptr uintptr uintptr
|
|
|
|
// wfunc user32 LoadCursorW uintptr uintptr uintptr
|
|
|
|
// wfunc user32 GetMessageW *s_MSG uintptr t_UINT t_UINT t_BOOL
|
|
|
|
|
|
|
|
// these two don't technically return void but let's pretend they do since their return values are irrelevant/not indicative of anything useful
|
|
|
|
// wfunc user32 TranslateMessage *s_MSG void
|
|
|
|
// wfunc user32 DispatchMessageW *s_MSG void
|
|
|
|
|
|
|
|
// wfunc user32 PostMessageW uintptr t_UINT t_WPARAM t_LPARAM uintptr
|
|
|
|
// wfunc user32 RegisterClassW *s_WNDCLASSW uintptr
|
|
|
|
|
|
|
|
// TODO narrow down argument types
|
|
|
|
// wfunc user32 CreateWindowExW uintptr *uint16 *uint16 uintptr uintptr uintptr uintptr uintptr uintptr uintptr uintptr unsafe.Pointer uintptr
|
|
|
|
|
|
|
|
// wfunc user32 DefWindowProcW uintptr t_UINT t_WPARAM t_LPARAM t_LRESULT,noerr
|
|
|
|
|
|
|
|
// this one doesn't technically return void but let's pretend it does since its return value is irrelevant/not indicative of anything useful
|
|
|
|
// wfunc user32 ShowWindow uintptr uintptr void
|
|
|
|
|
|
|
|
// wfunc user32 SendMessageW uintptr t_UINT t_WPARAM t_LPARAM t_LRESULT,noerr
|
|
|
|
// wfunc user32 UpdateWindow uintptr uintptr
|
2014-07-12 15:15:10 -05:00
|
|
|
// wfunc user32 DestroyWindow uintptr uintptr
|
2014-07-13 00:14:55 -05:00
|
|
|
// wfunc user32 PostQuitMessage uintptr void
|
2014-07-15 11:09:46 -05:00
|
|
|
// wfunc user32 GetClientRect uintptr *s_RECT uintptr
|
2014-07-15 21:29:45 -05:00
|
|
|
// wfunc user32 SetParent uintptr uintptr uintptr
|
2014-07-16 21:31:48 -05:00
|
|
|
// wfunc gdi32 GetTextMetricsW uintptr *s_TEXTMETRICW uintptr
|
|
|
|
|
|
|
|
// TODO int here will be wrong on 64-bit systems
|
|
|
|
// wfunc kernel32 MulDiv int int int int,noerr
|
|
|
|
// wfunc user32 MoveWindow uintptr int int int int t_BOOL uintptr
|
|
|
|
|
|
|
|
// wfunc user32 GetDC uintptr uintptr
|
|
|
|
// wfunc gdi32 SelectObject uintptr uintptr uintptr
|
|
|
|
// wfunc user32 ReleaseDC uintptr uintptr uintptr
|