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", CharSet=CharSet.Auto, SetLastError=true)]
Declare Auto Function DuplicateTokenEx Lib "advapi32.dll" ( _
Alternative Managed API:
Do you know one? Please contribute it!
Tips & Tricks:
Please add some!
Since you can't use UInt32 constants in VB.NET, here is one way of passing in a value for dwDesiredAccess
Const GRANTED_ALL As String = "10000000"
Please add some!
The DuplicateTokenEx function creates a new access token that duplicates an existing token. This function can create either a primary token or an impersonation token.
9/12/2022 3:19:18 AM - -220.127.116.11
The [SECURITY_ATTRIBUTES] structure contains the security descriptor for an object and specifies whether the handle retrieved by specifying this structure is inheritable. This structure provides security settings for objects created by various functions, such as Kernel32.CreateFile, Kernel32.CreatePipe, Kernel32.CreateProcess, or Advapi32.RegCreateKeyEx.
7/15/2010 5:39:54 AM - -18.104.22.168
The TOKEN_TYPE enumeration type contains values that differentiate between a primary token and an impersonation token.
6/8/2007 1:40:27 PM - -22.214.171.124
TODO - a short description of this collection of constants
4/6/2012 12:59:20 AM - anonymous
Please edit this page!
Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).