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)> _
Public Shared Function GetThreadDesktop(<MarshalAs(UnmanagedType.I4)> ByVal dwThreadId As Integer) As IntPtr
End Function

User-Defined Types:

None.

Notes:

  VB.NET version requires this line at the top of the code module for the 'MarshalAs' attribute:

     Imports System.Runtime.InteropServices

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation