diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index a768c474d..e63009bf9 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,8 @@ +2006-04-28 Dimitri Papadopoulos + + * include/winbase.h (ENUMRES*PROC{AW}): ANSI and Unicode versions. + Thanks to: Oliver Stoeneberg + 2006-04-28 Dimitri Papadopoulos * include/ntsecapi.h (POLICY_DNS_DOMAIN_INFO): Fix typo. diff --git a/winsup/w32api/include/winbase.h b/winsup/w32api/include/winbase.h index 003ff3ca0..b85096cd3 100644 --- a/winsup/w32api/include/winbase.h +++ b/winsup/w32api/include/winbase.h @@ -1060,9 +1060,27 @@ typedef DWORD EXECUTION_STATE; typedef DWORD(WINAPI *LPPROGRESS_ROUTINE)(LARGE_INTEGER,LARGE_INTEGER,LARGE_INTEGER,LARGE_INTEGER,DWORD,DWORD,HANDLE,HANDLE,LPVOID); typedef void(WINAPI *LPFIBER_START_ROUTINE)(PVOID); -typedef BOOL(CALLBACK *ENUMRESLANGPROC)(HMODULE,LPCTSTR,LPCTSTR,WORD,LONG); -typedef BOOL(CALLBACK *ENUMRESNAMEPROC)(HMODULE,LPCTSTR,LPTSTR,LONG); -typedef BOOL(CALLBACK *ENUMRESTYPEPROC)(HMODULE,LPTSTR,LONG); +typedef BOOL(CALLBACK *ENUMRESLANGPROCA)(HMODULE,LPCSTR,LPCSTR,WORD,LONG); +typedef BOOL(CALLBACK *ENUMRESLANGPROCW)(HMODULE,LPCWSTR,LPCWSTR,WORD,LONG); +#ifdef UNICODE +#define ENUMRESLANGPROC ENUMRESLANGPROCW +#else +#define ENUMRESLANGPROC ENUMRESLANGPROCA +#endif +typedef BOOL(CALLBACK *ENUMRESNAMEPROCA)(HMODULE,LPCSTR,LPSTR,LONG); +typedef BOOL(CALLBACK *ENUMRESNAMEPROCW)(HMODULE,LPCWSTR,LPWSTR,LONG); +#ifdef UNICODE +#define ENUMRESNAMEPROC ENUMRESNAMEPROCW +#else +#define ENUMRESNAMEPROC ENUMRESNAMEPROCA +#endif +typedef BOOL(CALLBACK *ENUMRESTYPEPROCA)(HMODULE,LPSTR,LONG); +typedef BOOL(CALLBACK *ENUMRESTYPEPROCW)(HMODULE,LPWSTR,LONG); +#ifdef UNICODE +#define ENUMRESTYPEPROC ENUMRESTYPEPROCW +#else +#define ENUMRESTYPEPROC ENUMRESTYPEPROCA +#endif typedef void(CALLBACK *LPOVERLAPPED_COMPLETION_ROUTINE)(DWORD,DWORD,LPOVERLAPPED); typedef LONG(CALLBACK *PTOP_LEVEL_EXCEPTION_FILTER)(LPEXCEPTION_POINTERS); typedef PTOP_LEVEL_EXCEPTION_FILTER LPTOP_LEVEL_EXCEPTION_FILTER;