I'm importing WinApi functions, writing callbacks etc. (example) in C# and always wonder:
- what do they mean ?
LRESULT
as last result ? W-PARAM ? L-PARAM ? - how to safely "wrap" them
WPARAM
andLPARAM
contain structs sometimes. So I need to use them asIntPtr
. How aboutLRESULT
? Am I safe withint
or betterIntPtr
?
What type do I use for LRESULT in C# ? int
or IntPtr
?