Re: Network Shares
From: Shel Blauman [MSFT] (sheldonb_at_online.microsoft.com)
Date: 09/16/03
- Next message: Leon Finker: "Re: MS increases security causes developer worries"
- Previous message: Shel Blauman [MSFT]: "Re: Network Shares"
- In reply to: Paul van't Klooster: "Network Shares"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 16 Sep 2003 09:52:23 -0700
If you're running on XP, the sample at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemsecurityprincipalwindowsidentityclassimpersonatetopic1.asp
should work.
Shel
-- This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm "Paul van't Klooster" <paul.vantklooster@nz.unisys.com> wrote in message news:bk5l5f$1360$1@si05.rsvl.unisys.com... > I am in the process of writing an application that has to get access to a > share accross the network in C#. > > How do I get access to a network share using a different user name and > password from the user that is logged in and running the application. I have > looked at using the LogonUser API call, but that doesnt seem to work. I get > the "A required privilege is not held by the client." error message. > >
- Next message: Leon Finker: "Re: MS increases security causes developer worries"
- Previous message: Shel Blauman [MSFT]: "Re: Network Shares"
- In reply to: Paul van't Klooster: "Network Shares"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|