Archive: Emumerating the list of Configured Shares


Emumerating the list of Configured Shares
Hi All

I have built a SPI program using NSIS which produces XML Files with various window's settings, does any body know how to retrieve the list of Configured Windows Shares.

I know i can use the API Call or a WMI Call but i wondered if any one knew the location in the registry?


HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\Shares

is where the current system shares are stored.


Thanks.... Whats the Difference between ControlSet002 and ControlSet003 and CurrentControlSet?


I believe the different control sets are used for different hardware profiles / 'Last known good configuration' recovery option.


thanks....