Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 6th, 2007, 03:54 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default Declaration for DuplicateTokenEx

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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
standalone declaration Jay Frank XML 5 September 28th, 2007 08:57 AM
xml declaration chroniclemaster1 XML 0 September 20th, 2007 02:00 PM
Declaration of variable without initialization v_kewlani Other Programming Languages 0 May 24th, 2007 01:51 AM
Declaration Expected kenn_rosie ADO.NET 7 January 17th, 2006 03:58 AM
Declaration Difference anubhav.kumar Pro VB.NET 2002/2003 2 July 5th, 2005 10:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.