Click to See Complete Forum and Search --> : CopyMemory problem


lmhp
April 9th, 2006, 08:46 AM
Hi All,

I am developing a project on Lowlevel Keyboard Hooks. I am using the CopyMemory WIN32 API to convert the integer variable lParam of the HookProc to the Keyboard structure. How should i write this Win32 API import. I found samples in VB. They declare the source and destination variables as Any. How should i declare this? Can i do this as ref void. Will this work?

Thanks in advance.
LMHP

wildfrog
April 9th, 2006, 07:26 PM
Can i do this as ref void.You can use the IntPtr type.

- petter

aniskhan
April 9th, 2006, 11:33 PM
Calling Win32 DLLs in C# (http://msdn.microsoft.com/msdnmag/issues/03/07/NET/)