Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FONTENUMPROCW missing definition #313

Closed
timsneath opened this issue Mar 6, 2021 · 0 comments · Fixed by #350
Closed

FONTENUMPROCW missing definition #313

timsneath opened this issue Mar 6, 2021 · 0 comments · Fixed by #350
Labels
missing api Some documented API is missing from the metadata

Comments

@timsneath
Copy link
Contributor

timsneath commented Mar 6, 2021

There's a class of these cases, but this is a good example:

// Windows.Win32.Gdi.FONTENUMPROCW
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Auto, CharSet = CharSet.Auto)]
[UnmanagedFunctionPointer(CallingConvention.Winapi)]
public delegate int FONTENUMPROCW();

The header files are a fairly convoluted set of #ifdef statements, but it should be defined as something like this:

typedef int (CALLBACK* OLDFONTENUMPROCW)(CONST LOGFONTW *, CONST TEXTMETRICW *, DWORD, LPARAM);

It's worth noting that the documentation is marked as obsolete, when it remains the best source of this content:
https://docs.microsoft.com/en-us/previous-versions/dd162621(v=vs.85)

@mikebattista mikebattista added the missing api Some documented API is missing from the metadata label Mar 9, 2021
sotteson1 pushed a commit that referenced this issue Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing api Some documented API is missing from the metadata
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants