Go to the source code of this file.
|
U32_ACCEL_CACHE_ENTRY **WINAPI | U32AccelCacheFind (HANDLE Object, HGLOBAL Data) |
|
void WINAPI | U32AccelCacheAdd (HACCEL Object, HGLOBAL Data) |
|
HACCEL WINAPI | U32LoadAccelerators (HINSTANCE hInstance, HRSRC hTableRes) |
|
BOOL WINAPI | U32IsValidAccelMessage (UINT uMsg) |
|
BOOL WINAPI | DestroyAcceleratorTable (HACCEL hAccel) |
|
HACCEL WINAPI | LoadAcceleratorsW (HINSTANCE hInstance, LPCWSTR lpTableName) |
|
HACCEL WINAPI | LoadAcceleratorsA (HINSTANCE hInstance, LPCSTR lpTableName) |
|
int WINAPI | TranslateAcceleratorW (HWND hWnd, HACCEL hAccTable, LPMSG lpMsg) |
|
int WINAPI | CopyAcceleratorTableA (HACCEL hAccelSrc, LPACCEL lpAccelDst, int cAccelEntries) |
|
HACCEL WINAPI | CreateAcceleratorTableA (LPACCEL lpaccl, int cEntries) |
|
int WINAPI | TranslateAcceleratorA (HWND hWnd, HACCEL hAccTable, LPMSG lpMsg) |
|
◆ LPPE_ACCEL
◆ U32_ACCEL_CACHE_ENTRY
◆ CopyAcceleratorTableA()
Definition at line 279 of file accel.c.
285{
287
289
290 if (lpAccelDst ==
NULL)
return cAccelEntries;
291
292 for(
i = 0;
i < cAccelEntries; ++
i)
294 {
297 sizeof(lpAccelDst[
i].
key),
300 sizeof(lpAccelDst[
i].
key)
301 );
302
304 }
305
306 return cAccelEntries;
307}
#define NT_SUCCESS(StatCode)
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
_Use_decl_annotations_ NTSTATUS NTAPI RtlUnicodeToMultiByteN(_Out_ PCHAR MbString, _In_ ULONG MbSize, _Out_opt_ PULONG ResultSize, _In_ PCWCH UnicodeString, _In_ ULONG UnicodeSize)
int WINAPI CopyAcceleratorTableW(_In_ HACCEL hAccelSrc, _Out_writes_to_opt_(cAccelEntries, return) LPACCEL lpAccelDst, _In_ int cAccelEntries)
◆ CreateAcceleratorTableA()
Definition at line 313 of file accel.c.
314{
316
317 if (!
cEntries || !lpaccl)
return (HACCEL)0;
318
321 {
323 (
325 sizeof(lpaccl[
i].
key),
328 sizeof(lpaccl[
i].
key)
329 );
330
332 }
333
335}
_Use_decl_annotations_ NTSTATUS NTAPI RtlMultiByteToUnicodeN(_Out_ PWCH UnicodeString, _In_ ULONG UnicodeSize, _Out_opt_ PULONG ResultSize, _In_ PCCH MbString, _In_ ULONG MbSize)
_In_ UINT _In_ UINT cEntries
HACCEL WINAPI CreateAcceleratorTableW(_In_reads_(cAccel) LPACCEL paccel, _In_ int cAccel)
◆ DestroyAcceleratorTable()
BOOL WINAPI DestroyAcceleratorTable |
( |
HACCEL |
hAccel | ) |
|
Definition at line 191 of file accel.c.
192{
195
198
200
201
203
204
205 if(*ppEntry)
206 {
208
209
211
212
213 if(nUsage == 0)
214 {
215
217
218
220 }
221 }
222
224
225 if(nUsage > 0)
return FALSE;
226
227
229}
U32_ACCEL_CACHE_ENTRY **WINAPI U32AccelCacheFind(HANDLE Object, HGLOBAL Data)
CRITICAL_SECTION U32AccelCacheLock
HLOCAL NTAPI LocalFree(HLOCAL hMem)
BOOLEAN NTAPI NtUserDestroyAcceleratorTable(HACCEL Table)
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
◆ LoadAcceleratorsA()
Definition at line 250 of file accel.c.
251{
252 HRSRC Accel;
253
256 {
258 }
259
261}
HACCEL WINAPI U32LoadAccelerators(HINSTANCE hInstance, HRSRC hTableRes)
HRSRC WINAPI FindResourceExA(HMODULE hModule, LPCSTR type, LPCSTR name, WORD lang)
◆ LoadAcceleratorsW()
Definition at line 237 of file accel.c.
238{
240 (
243 );
244}
HRSRC WINAPI FindResourceExW(HMODULE hModule, LPCWSTR type, LPCWSTR name, WORD lang)
◆ TranslateAcceleratorA()
Definition at line 341 of file accel.c.
342{
344 {
348
351 {
358 }
359
360 default:
361 return 0;
362 }
363}
int WINAPI TranslateAcceleratorW(HWND hWnd, HACCEL hAccTable, LPMSG lpMsg)
#define MultiByteToWideChar
TW_UINT32 TW_UINT16 TW_UINT16 MSG
◆ TranslateAcceleratorW()
Definition at line 268 of file accel.c.
269{
271
273}
BOOL WINAPI U32IsValidAccelMessage(UINT uMsg)
int NTAPI NtUserTranslateAccelerator(HWND Window, HACCEL Table, LPMSG Message)
Referenced by TranslateAcceleratorA().
◆ U32AccelCacheAdd()
Definition at line 75 of file accel.c.
76{
79
80
82
83
87
88
91}
U32_ACCEL_CACHE_ENTRY * U32AccelCache
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
Referenced by U32LoadAccelerators().
◆ U32AccelCacheFind()
◆ U32IsValidAccelMessage()
◆ U32LoadAccelerators()
Definition at line 94 of file accel.c.
95{
97 HACCEL hAccTable =
NULL;
102 ACCEL * pAccTableData;
103
104
106
107
108 if(hAccTableData ==
NULL)
return NULL;
109
111
112
114
115
117 {
118
120
121
122 hAccTable =
pEntry->Object;
123
124
125 goto l_Leave;
126 }
127
128
130
131
133
134
135 if(pAccTableData ==
NULL)
goto l_Leave;
136
137 pAccTableResData = (
PE_ACCEL *)hAccTableData;
138
139
140 for(
j = 0;
j <
i; ++
j)
141 {
143 pAccTableData[
j].
key = pAccTableResData[
j].
key;
144 pAccTableData[
j].
cmd = pAccTableResData[
j].
cmd;
145 }
146 pAccTableData[
i - 1].
fVirt |= 0x80;
147
148
150
151
153
154
155 if(hAccTable ==
NULL)
goto l_Leave;
156
157
159
160l_Leave:
162 return hAccTable;
163}
void WINAPI U32AccelCacheAdd(HACCEL Object, HGLOBAL Data)
DWORD WINAPI SizeofResource(HINSTANCE hModule, HRSRC hRsrc)
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
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 GLint GLint j
HACCEL NTAPI NtUserCreateAcceleratorTable(LPACCEL Entries, ULONG EntriesCount)
Referenced by LoadAcceleratorsA(), and LoadAcceleratorsW().
◆ U32AccelCache
◆ U32AccelCacheLock