GetThreadDesktop (user32)
Last changed: -68.253.230.116

.
Summary

C# Signature:

[DllImport("user32.dll", SetLastError=true)]
static extern IntPtr GetThreadDesktop(uint dwThreadId);

VB.NET Signature:

  <DllImport("user32.dll", SetLastError:=True)> _
  Private Shared Function GetThreadDesktop(<MarshalAs(UnmanagedType.I4)> ByVal dwThreadId As Integer) As IntPtr
  End Function

User-Defined Types:

None.

Notes:

  VB.NET version requires Imports System.Runtime.InteropServices at the top of the code module for the 'MarshalAs' attribute.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation