CLI with Win32 API

  • Thread starter Thread starter Micus
  • Start date Start date
M

Micus

Are there any good examples of making Win32 API function calls from within
managed code?

Also... Is there anyway to run a separate app [eg 'run(MyApp.exe) '] from
managed code?

TIA,
M
 
Are there any good examples of making Win32 API function calls from within
managed code?

http://www.pinvoke.net/ has been mentioned a few times. Personally,
I haven't touched managed code, so I can't vouch for the site, but it
seems legit.
Also... Is there anyway to run a separate app [eg 'run(MyApp.exe) '] from
managed code?

If you can call one of the unmanaged _*spawn*() variants (see
MSDN), that should do the trick. Or maybe there's a managed version.

Nathan Mates
 
Micus said:
Are there any good examples of making Win32 API function calls from within
managed code?

C++/CLI can use windows API just like unmanaged C or C++. Just #include
<windows.h> first.
 
Back
Top