0

Possible Duplicate:
How to handle WndProc messages in WPF?
P/Invoke tutorials?

I writing a window application which needs to use very custom Win32 API. Is there a way I can:

  • Call Win32 functions?
  • Process custom events like I would do with WinProc() function for Win32?
Community
  • 1
  • 1
Artem
  • 7,275
  • 15
  • 57
  • 97
  • Have you tried using [PInvoke](http://www.pinvoke.net/)? – Jeremy Thompson Dec 07 '12 at 02:10
  • Look this: http://stackoverflow.com/questions/736227/p-invoke-tutorials – jachguate Dec 07 '12 at 02:11
  • See details here for handling Windows messages in WPF: http://stackoverflow.com/questions/624367/how-to-handle-wndproc-messages-in-wpf. For WinForms, just override WinProc method from Form class and define the Windows messages you'd like to catch. – rro Dec 07 '12 at 03:02

0 Answers0