If version(Unicode) is not defined, windows bindings should still have unicode declarations. Declaration of PENUM_PAGE_FILE_CALLBACK in psapi is incorrectly versioned, as a consequence unicode function EnumPageFilesW is declared as taking ANSI callback. Unicode and ANSI versions of PENUM_PAGE_FILE_CALLBACK (PENUM_PAGE_FILE_CALLBACKW and PENUM_PAGE_FILE_CALLBACKA respectively) should be declared unconditionally and PENUM_PAGE_FILE_CALLBACK alias should be versioned.
@LimiQS created dlang/druntime pull request #2928 "Fix Issue 15322 - Correct versioning PENUM_PAGE_FILE_CALLBACK" fixing this issue: - Fix Issue 15322 - Correct versioning PENUM_PAGE_FILE_CALLBACK According to [Microsoft Docs](https://docs.microsoft.com/en-us/windows/win32/api/psapi/nf-psapi-enumpagefilesw), `EnumPageFilesW` always taking a `PENUM_PAGE_FILE_CALLBACKW` parameter. While before the correction, when version `Unicode` is not defined, `EnumPageFilesW` will be declared to take a `PENUM_PAGE_FILE_CALLBACKW`. https://github.com/dlang/druntime/pull/2928
dlang/druntime pull request #2928 "Fix Issue 15322 - Correct versioning PENUM_PAGE_FILE_CALLBACK" was merged into master: - 515500355fde5d1611e751163f0c79bfdd78f19c by Asakusa Yakumo: Fix Issue 15322 - Correct versioning PENUM_PAGE_FILE_CALLBACK According to [Microsoft Docs](https://docs.microsoft.com/en-us/windows/win32/api/psapi/nf-psapi-enumpagefilesw), `EnumPageFilesW` always taking a `PENUM_PAGE_FILE_CALLBACKW` parameter. While before the correction, when version `Unicode` is not defined, `EnumPageFilesW` will be declared to take a `PENUM_PAGE_FILE_CALLBACKW`. https://github.com/dlang/druntime/pull/2928