📄 pwinuser.h
字号:
UINT32 cBufferSize,
UINT32 *pcCharacters,
KEY_STATE_FLAGS *pShiftStateBuffer,
UINT32 *pCharacterBuffer
);
// Maximum # of slots available in preload reg key.
#define MAX_HKL_PRELOAD_COUNT 15
#define WH_JOURNALRECORD 0
#define WH_JOURNALPLAYBACK 1
#define WH_KEYBOARD_LL 20
/*
* Hook Codes
*/
#define HC_ACTION 0
#define HC_GETNEXT 1
#define HC_SKIP 2
#define HC_NOREMOVE 3
#define HC_NOREM HC_NOREMOVE
#define HC_SYSMODALON 4
#define HC_SYSMODALOFF 5
typedef LRESULT (CALLBACK* HOOKPROC)(int code, WPARAM wParam, LPARAM lParam);
/*
* Message Structure used in Journaling
*/
typedef struct tagEVENTMSG {
UINT message;
UINT paramL;
UINT paramH;
DWORD time;
HWND hwnd;
} EVENTMSG, *PEVENTMSGMSG, NEAR *NPEVENTMSGMSG, FAR *LPEVENTMSGMSG;
typedef struct tagEVENTMSG *PEVENTMSG, NEAR *NPEVENTMSG, FAR *LPEVENTMSG;
HHOOK
WINAPI
QASetWindowsJournalHook(
int nFilterType,
HOOKPROC pfnFilterProc,
EVENTMSG *pfnEventMsg
);
BOOL
WINAPI
QAUnhookWindowsJournalHook(
int nFilterType
);
BOOL
WINAPI
GetMessageWNoWait(
PMSG pMsg,
HWND hWnd,
UINT wMsgFilterMin,
UINT wMsgFilterMax
);
BOOL
WINAPI
TouchCalibrate(
void
);
int
WINAPI
DisableCaretSystemWide(
void
);
int
WINAPI
EnableCaretSystemWide(
void
);
BOOL
WINAPI
EnableHardwareKeyboard(
BOOL fEnable
);
BOOL RegisterSIPanel (HWND hwndSIPanel);
void WINAPI SetAssociatedMenu (
HWND hwnd,
HMENU hmenu
);
HMENU WINAPI GetAssociatedMenu (
HWND hwnd
);
BOOL
WINAPI
UnregisterFunc1(
UINT fsModifiers,
UINT vk
);
typedef struct tagKBDLLHOOKSTRUCT {
DWORD vkCode; // virtual key code
DWORD scanCode; // scan code DWORD flags; // flags
DWORD flags; // unused
DWORD time; // time stamp for this message
DWORD dwExtraInfo; // extra info from the driver or keybd_event
} KBDLLHOOKSTRUCT, *PKBDLLHOOKSTRUCT;
HHOOK
WINAPI
SetWindowsHookExW(
int idHook,
HOOKPROC lpfn,
HINSTANCE hmod,
DWORD dwThreadId);
#define SetWindowsHookEx SetWindowsHookExW
BOOL
WINAPI
UnhookWindowsHookEx(
HHOOK hhk);
LRESULT
WINAPI
CallNextHookEx(
HHOOK hhk,
int nCode,
WPARAM wParam,
LPARAM lParam);
typedef struct tagGetForegroundInfo
{
HWND hwndActive;
HWND hwndFocus;
HWND hwndMenu;
HWND hwndKeyboardDest;
DWORD fdwConversion;
DWORD fdwSentence;
BOOL fOpen;
DWORD dwCompStrLen;
HKL KeyboardLayoutHandle;
} GET_FOREGROUND_INFO;
BOOL
WINAPI
GetForegroundInfo(
GET_FOREGROUND_INFO *pgfi
);
HWND GetForegroundKeyboardTarget(
void
);
HKL
GetForegroundKeyboardLayoutHandle(
void
);
BOOL
WINAPI
ImmGetConversionStatusForeground(
DWORD *pfdwConversion,
DWORD *pfdwSentence
);
BOOL
ShowStartupWindow(
void
);
// Dialog Styles
#define DS_USEPIXELS 0x8000L // specifies use of pixels, not dialog coordinates
BOOL
WINAPI
SetDialogAutoScrollBar(
HWND hDlg
);
BOOL
WINAPI
SetWindowPosOnRotate(
HWND hWnd,
HWND hWndInsertAfter,
int X,
int Y,
int cx,
int cy,
UINT uFlags,
BOOL fNoScroll
);
#define ARF_IMAGEFILE 0x00001
#define ARF_IMAGERES 0x00002
#define ARF_CLIENTSTARTRECT 0x00004 // specifies that the rcStart is in in client coordinates
#define ARF_CLIENTFINISHRECT 0x00008 // specifies that the rcFinish is in in client coordinates
#define ARF_SYNCHRONOUS 0x00010 // specifies that the animation happens synchronously
#define ARF_BITMAP 0x00020 // specifies that the hdc field contains a bitmap for the animation
#define ARF_BMPGROW 0x00040 // Bitmap animation "grows"
#define ARF_BMPUNCOVER 0x00080 // Bitmap animation "uncovers"
#define ARF_INCLUDELAST 0x00100 // include the last frame in the animation
#define ARF_ANIMATETIME 0x00200 // dwAnimateTime contains valid data
#define ARF_USEPARENT 0x00400 // hwnd should be used as the parent window for the animation
typedef struct
{
HWND hwnd;
RECT rcStart;
RECT rcFinish;
DWORD dwFlags;
DWORD dwAnimateTime; // duration of animation in MS
LPCTSTR pszResID;
HINSTANCE hinst;
LPTSTR pszFile;
HBITMAP hbmAnimate;
} ANIMATERECTSINFO;
HRESULT AnimateRects(ANIMATERECTSINFO *pari);
// This is taken directly from pbt.h. Not all values are used or supported.
#ifndef WM_POWERBROADCAST
#define WM_POWERBROADCAST 0x218
#endif
#define PBT_APMQUERYSUSPEND 0x0000
#define PBT_APMQUERYSTANDBY 0x0001
#define PBT_APMQUERYSUSPENDFAILED 0x0002
#define PBT_APMQUERYSTANDBYFAILED 0x0003
#define PBT_APMSUSPEND 0x0004
#define PBT_APMSTANDBY 0x0005
#define PBT_APMRESUMECRITICAL 0x0006
#define PBT_APMRESUMESUSPEND 0x0007
#define PBT_APMRESUMESTANDBY 0x0008
#define PBTF_APMRESUMEFROMFAILURE 0x00000001
#define PBT_APMBATTERYLOW 0x0009
#define PBT_APMPOWERSTATUSCHANGE 0x000A
#define PBT_APMOEMEVENT 0x000B
#define PBT_APMUSERIDLE 0x000C
#define PBT_APMUSERACTIVE 0x000D
// @CESYSGEN IF GWES_WINMGR
// Notifications sent by GWES to the shell
// Codes used in WM_SHELLNOTIFY
#define SHELLNOTIFY_WINDOWCREATED 0x0006
#define SHELLNOTIFY_WINDOWDESTROYED 0x0007
#define SHELLNOTIFY_WINDOWACTIVATED 0x0008
#define SHELLNOTIFY_REDRAW 0x0009
#define SHELLNOTIFY_LANGUAGE 0x000A
#define SHELLNOTIFY_CAPSLOCK 0x000B
#define SHELLNOTIFY_RESERVED0x000C 0x000C
#define SHELLNOTIFY_RESERVED0x000D 0x000D
// @CESYSGEN ENDIF
#ifdef __cplusplus
}
#endif /*__cplusplus*/
#endif /* _PRIV_WINUSER_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -