Skip to content

Commit

Permalink
feat: add user32.SendMessageW()
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Feb 22, 2019
1 parent cc58f8e commit a3036d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib/user32/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ export interface Win32Fns {

RegisterClassExW(lpwcx: M.WNDCLASSEX): M.ATOM

/**
* ref: https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-sendmessagew
*/
SendMessageW(hWnd: M.HWND, msg: M.UINT, WPARAM: M.WPARAM, LPARAM: M.LPARAM): M.LRESULT

SetWindowTextW(hWnd: M.HWND, lpString: M.LPCTSTR | null): M.BOOL

SetWinEventHook(
Expand Down Expand Up @@ -130,6 +135,8 @@ export const apiDef: FModel.DllFuncs = {

RegisterClassExW: [W.ATOM, [W.WNDCLASSEX] ],

SendMessageW: [W.LRESULT, [W.HWND, W.UINT, W.WPARAM, W.LPARAM] ],

SetWindowTextW: [W.BOOL, [W.HWND, W.LPCTSTR] ],

SetWinEventHook: [W.HWINEVENTHOOK, [W.UINT, W.UINT, W.HMODULE, W.WINEVENTPROC, W.DWORD, W.DWORD, W.UINT] ],
Expand Down

0 comments on commit a3036d6

Please sign in to comment.