NetShareEnum returns ERROR_ACCESS_DENIED for Win2003 and WinXP...

Tech-Archive recommends: Fix windows errors by optimizing your registry



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


.



Relevant Pages

  • RE: Win32 Module to change local Password on Remote Computers
    ... Your policies may require that the user be logged on to run this API. ... Win32 Module to change local Password on Remote Computers ... Wondering whether there's any Win32 API module for that. ...
    (perl.beginners)
  • Re: CoCreateInstanceEx fails
    ... "Manash" wrote in message ... > I am trying to access a component in a remote PC from a head less ... But the same API succeeds when run on desktop machine (windows ... I thought of WMI to for remote activation etc. ...
    (microsoft.public.windowsce.app.development)
  • Re: NetShareEnum returns ERROR_ACCESS_DENIED for Win2003 and WinXP...
    ... I am studying a sample code from MSDN about API NetShareEnum. ... I run the app on my PC to enumerate net share for a remote PC in our ... And my domain account belongs to the Domain Administrators ... In general can an you browse the remote computer shares from explorer? ...
    (microsoft.public.win32.programmer.networks)
  • CoCreateInstanceEx fails
    ... I am trying to access a component in a remote PC from a head less ... as a workgroup member.Here CoCreateInstanceExfails saying rpc server not ... But the same API succeeds when run on desktop machine (windows ... I hope I am supplying correct machine name in the API. ...
    (microsoft.public.windowsce.app.development)