Re: [Mono-dev] Question on the C-C# translation of WinApi MSG struct.

2007-09-24 Thread StApostol
Thanks, this makes perfect sense! On 9/22/07, Mike Edenfield [EMAIL PROTECTED] wrote: The Windows API almost always passes structures like this as pointers. PeekMessage() and all of the GetMessage() calls pass an LPMSG parameter, for example. The only thing the unmanaged code inside

[Mono-dev] Question on the C-C# translation of WinApi MSG struct.

2007-09-22 Thread StApostol
I am writing OpenTK, a game development toolkit which makes extensive use of P/Invoke calls. On the Windows platform, I encountered some strange behavior regarding the MSG struct. In winuser.h, MSG is defined like this: typedef struct tagMSG { HWND hwnd; UINT message; WPARAM wParam;

Re: [Mono-dev] Question on the C-C# translation of WinApi MSG struct.

2007-09-22 Thread Mike Edenfield
StApostol wrote: I am writing OpenTK, a game development toolkit which makes extensive use of P/Invoke calls. On the Windows platform, I encountered some strange behavior regarding the MSG struct. In winuser.h, MSG is defined like this: typedef struct tagMSG { HWND hwnd; UINT