List of network shares 
Author Message
 List of network shares

 Since NetShareEnum is now obsolete, I have turned to WNetEnumResource.
Unfortunately, WNetEnumResource does not allow me to get a list of
hidden/administrative shares.  Does anyone hve any bright ideas on how I can
get those?

joe white

"always a godfather, never a god."



Sat, 11 Mar 2000 03:00:00 GMT  
 List of network shares

Quote:

> Since NetShareEnum is now obsolete, I have turned to WNetEnumResource.
>Unfortunately, WNetEnumResource does not allow me to get a list of
>hidden/administrative shares.  Does anyone hve any bright ideas on how I can
>get those?

>joe white

>"always a godfather, never a god."

Cute and Paste from Microsoft Development Studio:

The NetShareGetInfo function retrieves information about a particular shared resource on a server.
Security Requirements
Only members of the Administrators or Account Operators local group or those with Communication, Print, or Server operator group membership can successfully execute NetShareGetInfo
at level 2. No special group membership is required for calls in SHARE_INFO_0 and SHARE_INFO_1.

It's working in my project.



Sat, 11 Mar 2000 03:00:00 GMT  
 List of network shares

"The NetShareGetInfo function retrieves information about a particular
shared resource on a server."

 I do not know the name of the *particular* shared resource.  I am looking
to get a *LIST* of the shared resources on a given machine, including the
hidden resources such as C$ and ADMIN$.

still looking,
jw


Quote:
>On Tue, 23 Sep 1997 19:08:24 -0400, "Joe White"

>> Since NetShareEnum is now obsolete, I have turned to WNetEnumResource.
>>Unfortunately, WNetEnumResource does not allow me to get a list of
>>hidden/administrative shares.  Does anyone hve any bright ideas on how I
can
>>get those?

>>joe white

>>"always a godfather, never a god."

>Cute and Paste from Microsoft Development Studio:

>The NetShareGetInfo function retrieves information about a particular

shared resource on a server.
Quote:
>Security Requirements
>Only members of the Administrators or Account Operators local group or

those with Communication, Print, or Server operator group membership can
successfully execute NetShareGetInfo
Quote:
>at level 2. No special group membership is required for calls in

SHARE_INFO_0 and SHARE_INFO_1.

- Show quoted text -

Quote:

>It's working in my project.



Sat, 11 Mar 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Enumerate Access-List of Network-Share ?

2. Listing Network Shares

3. Connecting to network shares when network is detected only - help please

4. How to list open lists on a network

5. Getting a list of Computer's on a network and or a list of Workgroups

6. Errors with sharing msaccess.exe over WFW network

7. Uploading a Template to the Shared Network Drive

8. Creating Network Shares

9. Newbie - Access to a network share

10. Running .NET application from network share

11. Sharing an exe over network

12. Accessing an unmapped shared network resource

 

 
Powered by phpBB® Forum Software