1 Some notes concerning accelerators.
3 There are _three_ differently sized accelerator structures exposed to the
4 user. The general layout is:
10 We now have three different appearances:
12 - Accelerators in NE resources. These have a size of 5 byte and do not have
13 any padding. This is also the internal layout of the global handle HACCEL
14 (16 and 32) in Windows 95 and WINE. Exposed to the user as Win16 global
15 handles HACCEL16 and HACCEL32 by the Win16/Win32 API.
17 - Accelerators in PE resources. These have a size of 8 byte. Layout is:
23 They are exposed to the user only by direct accessing PE resources.
25 - Accelerators in the Win32 API. These have a size of 6 byte. Layout is:
30 These are exposed to the user by the CopyAcceleratorTable and
31 CreateAcceleratorTable in the Win32 API.
33 Why two types of accelerators in the Win32 API? We can only guess, but
34 my best bet is that the Win32 resource compiler can/does not handle struct
35 packing. Win32 ACCEL is defined using #pragma(2) for the compiler but without
36 any packing for RC, so it will assume #pragma(4).
38 Findings researched by Uwe Bonnes, Ulrich Weigand and Marcus Meissner.