Skip to content

GET_X_LPARAM #744

Answered by AArnott
Gavin-Williams asked this question in Q&A
Nov 1, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

It looks like GET_X_LPARAM is a macro. Macros are a feature of the Windows SDK unique to the C/C++ consumers and are not available in the metadata, and thus won't generally be emitted by CsWin32.
In such cases, manual translation from the C++ definition to C# as you suggest is the way to go.
I am not familiar with GET_X_LPARAM in particular, so I can't comment on the efficacy of your PointFromLParam method.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Gavin-Williams
Comment options

Answer selected by Gavin-Williams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants