| [4] | 1 | A list of Open32 bugs (under construction):
 | 
|---|
 | 2 | 
 | 
|---|
 | 3 | - Key mapping problem. Cursor key messages (WM_KEYUP/DOWN) contain the wrong
 | 
|---|
 | 4 |   OEM scancode (should be the same as the numeric keypad arrow keys)
 | 
|---|
 | 5 |   Make that: extended key mappings are totally messed up
 | 
|---|
 | 6 | - No support for CBS_OWNERDRAWFIXED or CBS_OWNERDRAWVARIABLE styles (COMBOBOX)
 | 
|---|
 | 7 | - Crash in PMWINX if the app isn't PM
 | 
|---|
 | 8 | - Open32 isn't sending WM_NCCREATE msgs
 | 
|---|
 | 9 | - HK_CBT hook not supported
 | 
|---|
 | 10 | - HK_GETMESSAGE hook crashes in PMWINX
 | 
|---|
 | 11 | - UpdateWindow sends a WM_ERASEBKGRND when it shouldn't
 | 
|---|
 | 12 | - Open32 doesn't send a WM_ERASEBKGND when a window is activated
 | 
|---|
 | 13 | - HeapCreate with dwMaximumSize == 0 seems to reserve only 64 kb memory
 | 
|---|
 | 14 |   instead of 'unlimited'. Makes Win32 heaps impossible to use.
 | 
|---|
 | 15 | - CreateDialogParamA can have a dlgproc set to NULL -> PMWINX crash
 | 
|---|
 | 16 | - GetObject doesn't return the pointer to the bitmap data (always 0)
 | 
|---|
 | 17 | - GetFileType returns FILE_TYPE_UNKNOWN for file handles
 | 
|---|
 | 18 | - WriteFile with nrbytes = 0 should SetEndOfFile Open32 does not. (Notepad95)
 | 
|---|
 | 19 | - GetDeviceCaps -> NT returns -1 when using 16 bits colors, NOT 65536!
 | 
|---|
 | 20 | - File handles returned by _lopen & _lcreate are 32 bits; Windows returns
 | 
|---|
 | 21 |   handles with only the least significant 16 bits filled.
 | 
|---|
 | 22 | - Wrong calling convention for Win32 apis (_System instead of _stdcall or for
 | 
|---|
 | 23 |   some apis _cdecl)
 | 
|---|
 | 24 | - Wrong calling convention for callback handlers (_System instead of _stdcall)
 | 
|---|
 | 25 | - Wrong calling convention for hook handlers (_System instead of _stdcall)
 | 
|---|
 | 26 | - RegOpenKeyEx doesn't set the HKEY pointer (5th argument) to zero when an
 | 
|---|
 | 27 |   error occurs. Some applications depend on this to do error checking.
 | 
|---|
 | 28 | - RegSetValueA crashes in pmwinx.dll if the size parameter is 0 and the string
 | 
|---|
 | 29 |   is very large.
 | 
|---|
 | 30 | - CreateDIBSection does not flip bitmaps is vertical or horizonal size is
 | 
|---|
 | 31 |   negative.
 | 
|---|
 | 32 | - Default window message handlers (i.e. DefWindowProcA) don't properly support
 | 
|---|
 | 33 |   some messages (i.e. WM_CTLCOLOR*)
 | 
|---|
 | 34 | - GetSystemMetrics far from complete
 | 
|---|
 | 35 | - SystemParametersInfoA incomplete
 | 
|---|
 | 36 | 
 | 
|---|
 | 37 | Limitations:
 | 
|---|
 | 38 | - No support for COMCTL32 controls.
 | 
|---|
 | 39 | - Many Win32 apis not included.
 | 
|---|
 | 40 | - Many apis have extensions in Win9x & NT 4 that are not supported.
 | 
|---|
 | 41 | - No support for Win9x & NT 4 extended dialog styles.
 | 
|---|
 | 42 | - Profile apis don't use ini files.
 | 
|---|
 | 43 | 
 | 
|---|
 | 44 | General problem:
 | 
|---|
 | 45 | - Can't extend Open32 easily without knowledge of internals
 | 
|---|