Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 6th, 2007, 03:54 PM
Friend of Wrox
 
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:20 PM.


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