|
-
Jun 28th, 2008, 03:38 AM
#1
Thread Starter
Junior Member
[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
-
Jun 28th, 2008, 04:22 PM
#2
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?
-
Jun 29th, 2008, 12:42 AM
#3
Thread Starter
Junior Member
Re: [2005] Impersonate in windows vista
yeah - i run it in vista and it is not working ...
-
Jun 29th, 2008, 04:47 PM
#4
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
-
Jun 29th, 2008, 04:53 PM
#5
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Jun 29th, 2008, 05:00 PM
#6
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!
-
Jun 29th, 2008, 05:04 PM
#7
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|