dotnet / pinvoke

A library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS.
MIT License
2.12k stars 222 forks source link

Add FindWindow and GetDesktopWindow functions. Marshal BOOLs. #252

Closed dbremner closed 8 years ago

dbremner commented 8 years ago

This patch does two things:

  1. Adds the FindWindow and GetDesktopWindow functions.
  2. Adds the MarshalAs(UnmanagedType.Bool) attribute to function return types and parameters that are declared as such on MSDN.
AArnott commented 8 years ago

Thank you, @dbremner. This looks great.