Results 1 to 7 of 7

Thread: [2005] Impersonate in windows vista

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2004
    Posts
    30

    [2005] Impersonate in windows vista

    i have a program of impersonation to update files in server , it;s working fine in windows xp , how can i do it in windows vista

    any code

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Re: [2005] Impersonate in windows vista

    Some code samples would be nice, or at the very least the names of some of the methods you are using to perform the impersonation.

    Have you tried your code in Vista yet - are you just asking a question of "will my code work?" or does your code not work when tested. If it's the latter, which, if any line(s) of code are failing and are any errors produced?

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2004
    Posts
    30

    Re: [2005] Impersonate in windows vista

    yeah - i run it in vista and it is not working ...

  4. #4
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Re: [2005] Impersonate in windows vista

    Again, you really have to give us plenty more information to go on here.

    Define "not working" please and let us know the method calls you are attempting to use in your code to perform the impersonation so we have a vague chance of suggesting something of use to you. Otherwise it's all guesswork and there could be millions of reasons and suggestions we'll post - none of which may be applicable to you.

    As a general sample, which is all I can give at the moment, I've finally found a really old post for you. It is written in VB6, so you will have to perform some conversion/re-coding, but the explaination and the API calls are still the same as can be used in .Net. I see no reason this shouldn't work in Vista that I can think of at the moment.

    http://www.vbforums.com/showpost.php...94&postcount=8

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [2005] Impersonate in windows vista

    Why would you need to impersonate a user in order to update files on a server? Are they only acccessible with a certain account? To update something on another system would depend upon the target system, not the client system. Are you even sure your app runs and is Vista compliant?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Re: [2005] Impersonate in windows vista

    Very, very valid point! I just concentrated on the impersonation but and should have spotted that too. Very well pointed out there!

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [2005] Impersonate in windows vista

    Thanks. Perhaps if we could figure out what errors there actually are in rujnning the program on Vista then we can isolate the issue of updating the file(s) was my thought. plus clarification of the actual issue will help vastly too
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width