January 2003
Intermediate to advanced
896 pages
19h 58m
English
P/Invoke functions and attributes are found in the System.Runtime.InteropServices namespace. The .NET Compact Framework supports a useful subset of P/Invoke functions from the full .NET Framework. Most simple unmanaged code functions can be called without difficulty from managed code. Unmanaged code functions with more complex parameter passing requirements will need some additional support in the managed code caller.
To call a function in unmanaged code using P/Invoke, that function must be exported from a DLL. An exported function is one that can be called across an EXE/DLL or DLL/DLL boundary.
From the .NET point of view, unmanaged code functions are static. They do not operate on instances of ...
Read now
Unlock full access