LockSetForegroundWindow (user32)
Last changed: -131.107.0.103

.
Summary

C# Signature:

[DllImport("user32.dll", SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool LockSetForegroundWindow(uint uLockCode);

User-Defined Types:

static readonly uint LSFW_LOCK = 1;

static readonly uint LSFW_UNLOCK = 2;

VB.NET Signature:

<DllImport("user32.dll", SetLastError:=True)>
Public Shared Function LockSetForegroundWindow(uLockCode As UInteger) As <MarshalAs(UnmanagedType.Bool)> Boolean
End Function

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation