NetShareEnum returns ERROR_ACCESS_DENIED for Win2003 and WinXP...
- From: "David" <David_Wang_Xian@xxxxxxxxxxx>
- Date: Wed, 8 Feb 2006 17:52:58 +0800
Hi,
I am studying a sample code from MSDN about API NetShareEnum.
(
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/stgmgmt/fs/netshareenum.asp )
I run the app on my PC to enumerate net share for a remote PC in our LAN.
Our domain is Win NT one. Either the remote PC or my PC logons with domain
account. And my domain account belongs to the Domain Administrators group. I
call this API at information level 502.
My question is that, this API works fine for all Win2K remote PCs while it
returns ERROR_ACCESS_DENIED for all Win2003 or WinXP remote ones!
What can I do then? Does I have to adjust to special privileges in my
process token? If then, how to do ...?
Any help or comments? Thank you all.
David
.
- Follow-Ups:
- Re: NetShareEnum returns ERROR_ACCESS_DENIED for Win2003 and WinXP...
- From: Eugene Gershnik
- Re: NetShareEnum returns ERROR_ACCESS_DENIED for Win2003 and WinXP...
- Prev by Date: Re: Fundamentals question again guys
- Next by Date: Re: Fundamentals question again guys
- Previous by thread: How to be notified of bluetooth peripheral arrivals and removals?
- Next by thread: Re: NetShareEnum returns ERROR_ACCESS_DENIED for Win2003 and WinXP...
- Index(es):
Relevant Pages
|