Hey,

Has anyone ever used this function? What it the documentation is saying and what is in the header files seem to be completely different. FONTENUMPROC, according to the documentation should be defined as...

Code:
typedef int CALLBACK (* FONTENUMPROCA)(ENUMLOGFONTEX *, NEWTEXTMETRICEX *, int, LPARAM);
typedef FONTENUMPROCA FONTENUMPROC;
But its not.

This is a section of WinGDI.h, from the May 2002 SDK. This function is suppose to be available since WinNT 4.0, so should these headers have it? The definition I am finding is used with EnumFonts(), but... ehh... Anyway, if anyone could help with this it would be great.

Code:
#ifdef STRICT
#if !defined(NOTEXTMETRIC)
typedef int (CALLBACK* OLDFONTENUMPROCA)(CONST LOGFONTA *, CONST TEXTMETRICA *, DWORD, LPARAM);
typedef int (CALLBACK* OLDFONTENUMPROCW)(CONST LOGFONTW *, CONST TEXTMETRICW *, DWORD, LPARAM);
#ifdef UNICODE
#define OLDFONTENUMPROC  OLDFONTENUMPROCW
#else
#define OLDFONTENUMPROC  OLDFONTENUMPROCA
#endif // !UNICODE
#else
typedef int (CALLBACK* OLDFONTENUMPROCA)(CONST LOGFONTA *, CONST VOID *, DWORD, LPARAM);
typedef int (CALLBACK* OLDFONTENUMPROCW)(CONST LOGFONTW *, CONST VOID *, DWORD, LPARAM);
#ifdef UNICODE
#define OLDFONTENUMPROC  OLDFONTENUMPROCW
#else
#define OLDFONTENUMPROC  OLDFONTENUMPROCA
#endif // !UNICODE
#endif

typedef OLDFONTENUMPROCA    FONTENUMPROCA;
typedef OLDFONTENUMPROCW    FONTENUMPROCW;
#ifdef UNICODE
typedef FONTENUMPROCW FONTENUMPROC;
#else
typedef FONTENUMPROCA FONTENUMPROC;
#endif // UNICODE