Skip to content

Commit 2abe789

Browse files
committed
inc: win/winuser.bi: Re-add ENUMWINDOWSPROC type
http://www.freebasic.net/forum/viewtopic.php?f=3&t=23488 fbc's old Windows API headers had the ENUMWINDOWSPROC type and used it in some places instead of WNDENUMPROC. However, it's not documented on MSDN and doesn't exist in MS or MinGW-w64 headers. Thus it was lost in the automated translation of the new headers. We should probably re-add it for backwards-compatibility, as it's easy and it seems that people used it. (cherry picked from commit 528fc7a)
1 parent 98b64c6 commit 2abe789

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Version 1.02.1
1212
- 1.02.0 regression: OpenGL binding: glGetString() and some others use ZString Ptr instead of GLubyte Ptr again
1313
- 1.02.0 regression: Windows API binding: REFIID and some other REF* types were missing; wsprintf/wvsprintf declarations were missing; ole2.bi couldn't be included directly/alone anymore.
1414
- bindings: Various previously untranslated (or wrongly translated) #defines in SDL2, X11, crt/pthread, Windows API
15-
- Windows API binding: DirectX headers missed some declarations and some didn't compile, win/commdlg.bi couldn't be #included behind windows.bi without WIN_INCLUDEALL because of missing #includes
15+
- Windows API binding: DirectX headers missed some declarations and some didn't compile, win/commdlg.bi couldn't be #included behind windows.bi without WIN_INCLUDEALL because of missing #includes; re-added the undocumented ENUMWINDOWSPROC type
1616
- crt/string.bi, crt/mem.bi: Added CONSTs to function declarations
1717
- #767: Illegal byref result assignments will now cause a proper error message, not just a warning
1818
- Using the -asm att|intel option for non-x86[_64] targets now triggers an error

inc/win/winuser.bi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ type DLGPROC as function(byval as HWND, byval as UINT, byval as WPARAM, byval as
3535
type TIMERPROC as sub(byval as HWND, byval as UINT, byval as UINT_PTR, byval as DWORD)
3636
type GRAYSTRINGPROC as function(byval as HDC, byval as LPARAM, byval as long) as WINBOOL
3737
type WNDENUMPROC as function(byval as HWND, byval as LPARAM) as WINBOOL
38+
type ENUMWINDOWSPROC as WNDENUMPROC '' custom name for backwards-compatibility (it existed in old headers despite being undocumented)
3839
type HOOKPROC as function(byval code as long, byval wParam as WPARAM, byval lParam as LPARAM) as LRESULT
3940
type SENDASYNCPROC as sub(byval as HWND, byval as UINT, byval as ULONG_PTR, byval as LRESULT)
4041
type PROPENUMPROCA as function(byval as HWND, byval as LPCSTR, byval as HANDLE) as WINBOOL

0 commit comments

Comments
 (0)