Smart Device Functions:
Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than advapi32, prefix the name with the module name and a period.
[DllImport("advapi32.dll", SetLastError=true, CharSet=CharSet.Unicode)]
VB .NET Signature:
Declare Auto Function LogonUser Lib "advapi32.dll" (ByVal lpszUsername As String, _
public enum LogonType : int
Interactive = 2,
public enum LogonProvider : int
Default = 0,
See MSDN docs for description of various logon types etc.
Tips & Tricks:
IntPtr hToken = IntPtr.Zero;
if(hToken != IntPtr.Zero)
Alternative Managed API:
Do you know one? Please contribute it!
The DuplicateHandle API
12/18/2008 8:08:02 AM - -18.104.22.168
The LogonUser function attempts to log a user on to the local computer. The local computer is the computer from which LogonUser was called. You cannot use LogonUser to log on to a remote computer.
4/17/2019 3:47:25 PM - 22.214.171.124
Please edit this page!
Do you have...