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.
Windows 2000 needs the SE_TCB_NAME (act as part of the operating system) set to work correctly
Check out the formatting tips on the right for help formatting and making links.
Use the template below then delete this header:
VB .NET Signature:
Declare Auto Function LogonUser Lib "advapi32.dll" (ByVal lpszUsername As String, ByVal lpszDomain As String, ByVal lpszPassword As String, ByVal dwLogonType As Integer, ByVal dwLogonProvider As Integer, ByRef phToken As IntPtr) As Integer
It is very important to know which LOGON type you need. LOGON_NETWORK will allow access to network resources, while LOGON_INTERACTIVE will not. This will cause you hours of consteration if you don't pay attention to it.
To make this useful, you will also need to implement DuplicateToken.
After a successful Logon, you can also use ImpersonateLoggedOnUser (also in advapi32).
Tips & Tricks:
Please add some!
const int LOGON32_LOGON_NETWORK = 3;
Alternative Managed API:
Duplicates a NT authentication token.
3/28/2018 10:44:33 PM - 184.108.40.206
Lets the calling thread impersonate the security context of a logged-on user. The user is represented by a token handle.
8/21/2013 11:09:54 PM - -220.127.116.11
Please edit this page!
Do you have...