Check out the flex wiki site below. Has C# code examples for most if not all of the Windows API. Really useful for Windows programming.
www.pinvoke.net