16#define FVIRT_TBL_END 0x80
17#define FVIRT_MASK 0x7F
52 HMENU hMenu, hSubMenu;
59 TRACE(
"IntTranslateAccelerator(hwnd %p, message %x, wParam %x, lParam %x, fVirt 0x%x, key %x, cmd %x)\n",
60 hWnd, pMsg->message, pMsg->wParam, pMsg->lParam, pAccel->fVirt, pAccel->key, pAccel->cmd);
85 if (pMsg->wParam == pAccel->key && (
Mask &
FALT) == (pAccel->fVirt &
FALT))
95 TRACE(
"IntTranslateAccelerator returns FALSE\n");
114 hMenu =
Window->SystemMenu;
135 TRACE(
"hSysMenu = %p, hSubMenu = %p, nPos = %u\n", hMenu, hSubMenu, nPos);
149 if (hMenu && hMenu ==
Window->SystemMenu)
151 TRACE(
"Sending WM_SYSCOMMAND, wParam=%0x\n", pAccel->cmd);
156 TRACE(
"Sending WM_COMMAND, wParam=%0x\n", 0x10000 | pAccel->cmd);
161 TRACE(
"IntTranslateAccelerator returns TRUE\n");
179 TRACE(
"Enter NtUserCopyAcceleratorTable\n");
196 if (Accel->
Count < EntriesCount)
197 EntriesCount = Accel->
Count;
203 for (Ret = 0; Ret < EntriesCount; Ret++)
218 TRACE(
"Leave NtUserCopyAcceleratorTable, ret=%lu\n", Ret);
236 TRACE(
"Enter NtUserCreateAcceleratorTable(Entries %p, EntriesCount %u)\n",
240 if (!
Entries || EntriesCount <= 0)
261 Accel->
Count = EntriesCount;
317 TRACE(
"Leave NtUserCreateAcceleratorTable(Entries %p, EntriesCount %u) = %p\n",
351 TRACE(
"NtUserDestroyAcceleratorTable(Table %p)\n",
hAccel);
360 TRACE(
"Leave NtUserDestroyAcceleratorTable(Table %p) = %u\n",
hAccel, Ret);
370 LPMSG pUnsafeMessage)
379 TRACE(
"NtUserTranslateAccelerator(hWnd %p, hAccel %p, Message %p)\n",
443 TRACE(
"NtUserTranslateAccelerator returns %d\n", Ret);
static const ENTRY Entries[]
#define DBG_DEFAULT_CHANNEL(ch)
#define NT_SUCCESS(StatCode)
static const WCHAR Message[]
static const WCHAR Cleanup[]
#define ExAllocatePoolWithTag(hernya, size, tag)
VOID NTAPI ProbeForRead(IN CONST VOID *Address, IN SIZE_T Length, IN ULONG Alignment)
VOID NTAPI ProbeForWrite(IN PVOID Address, IN SIZE_T Length, IN ULONG Alignment)
HWND FASTCALL IntGetCaptureWindow(VOID)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define UserHMGetHandle(obj)
#define EXCEPTION_EXECUTE_HANDLER
#define ExFreePoolWithTag(_P, _T)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
DWORD FASTCALL UserGetKeyState(DWORD dwKey)
_Use_decl_annotations_ NTSTATUS NTAPI RtlMultiByteToUnicodeN(_Out_ PWCH UnicodeString, _In_ ULONG UnicodeSize, _Out_opt_ PULONG ResultSize, _In_ PCCH MbString, _In_ ULONG MbSize)
PVOID NTAPI PsGetCurrentThreadWin32Thread(VOID)
VOID FASTCALL UserLeave(VOID)
VOID FASTCALL UserEnterShared(VOID)
VOID FASTCALL UserEnterExclusive(VOID)
static __inline VOID UserDerefObjectCo(PVOID obj)
static __inline VOID UserRefObjectCo(PVOID obj, PUSER_REFERENCE_ENTRY UserReferenceEntry)
#define _SEH2_GetExceptionCode()
#define _SEH2_EXCEPT(...)
#define _SEH2_YIELD(__stmt)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
#define RtlCopyMemory(Destination, Source, Length)
#define STATUS_INVALID_PARAMETER
FORCEINLINE PMENU UserGetMenuObject(HMENU hMenu)
PWND FASTCALL UserGetWindowObject(HWND hWnd)
#define ASSERT_REFS_CO(_obj_)
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
_In_ WDFCOLLECTION _In_ ULONG Index
VOID FASTCALL SetLastNtError(_In_ NTSTATUS Status)
int APIENTRY NtUserTranslateAccelerator(HWND hWnd, HACCEL hAccel, LPMSG pUnsafeMessage)
HACCEL APIENTRY NtUserCreateAcceleratorTable(LPACCEL Entries, ULONG EntriesCount)
ULONG APIENTRY NtUserCopyAcceleratorTable(HACCEL hAccel, LPACCEL Entries, ULONG EntriesCount)
BOOLEAN APIENTRY NtUserDestroyAcceleratorTable(HACCEL hAccel)
BOOLEAN UserDestroyAccelTable(PVOID Object)
PACCELERATOR_TABLE FASTCALL UserGetAccelObject(HACCEL hAccel)
static BOOLEAN FASTCALL co_IntTranslateAccelerator(PWND Window, CONST MSG *pMsg, CONST ACCEL *pAccel)
LRESULT FASTCALL co_IntSendMessage(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
PVOID UserGetObject(PUSER_HANDLE_TABLE ht, HANDLE handle, HANDLE_TYPE type)
BOOL FASTCALL UserDereferenceObject(PVOID Object)
BOOL FASTCALL UserDeleteObject(HANDLE h, HANDLE_TYPE type)
PUSER_HANDLE_TABLE gHandleTable
PVOID FASTCALL UserCreateObject(PUSER_HANDLE_TABLE ht, PDESKTOP pDesktop, PTHREADINFO pti, HANDLE *h, HANDLE_TYPE type, ULONG size)
ENGAPI VOID APIENTRY EngSetLastError(_In_ ULONG iError)
#define ERROR_INVALID_ACCEL_HANDLE