Does someone have the declaration for DuplicateTokenEx()? I canât seem to find one. The closest I can come is the delcaration for DuplicateToken(), but that wonât do.
================================================== ==================
Added 4/9/00, 0746 PST
I found this
Code:
Enum SECURITY_IMPERSONATION_LEVEL
SecurityAnonymous
SecurityIdentification
SecurityImpersonation
SecurityDelegation
End Enum
Enum TOKEN_TYPE
TokenPrimary = 1
TokenImpersonation
End Enum
Declare Function DuplicateTokenEx _
Lib "advapi32" ( _
ByVal hExistingToken As Long, _
ByVal dwDesiredAccess As Long, _
lpTokenAttributes As Any, _
ByVal ImpersonationLevel As SECURITY_IMPERSONATION_LEVEL, _
ByVal TokenType As TOKEN_TYPE, _
phNewToken As Long _
) As Long
at
http://forums.devx.com/showthread.php?t=36818 , posted 04/20/2000, by Mattias Sjögren.