Looking for .NET Compact Framework-based P/Invoke code? (Episode I)...
Creating a P/Invoke Library by Geoff Schwab
The sample that accompanies Geoff's demonstrates how to make the following calls from both VB and C# .NET. The sample it self is pretty cool too, it uses reflection to enumerate the test classes in the sample, check out the code.
A list of the calls covered by this sample is available here:
https://blogs.msdn.com/onoj/articles/107081.aspx