Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Obtaining the COMMENTS for all shares in a domain
Message
 
 
À
21/03/2002 16:29:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00635476
Message ID:
00636135
Vues:
20
This message has been marked as the solution to the initial question of the thread.
Mark,
Comment out the BuildNetresource call in both the main program and the GetMoreShare function. This made it work for me. Let the program use the NetResource structure returned when it executed WNetEnumResources and copied the memory into cBuff.

HTH.

BTW, if yuo have a large metwork, this program will take a long time to run. It goes through it all.

>Thanks Larry
>
>Yes I tried stepping thru the code and the for next loop is starting at 1.
>However the code is a bit beyond me and I only have a short effort allocation on this task:(
>
>
>>>Using ANETRESOUCES I can get all the machine names for a particular domain.
>>>
>>>However I also need to retrieve the comments.
>>>
>>>I have experimented with Ed's Netresources program but on my Windows 2000 based system, running the GETALLSHARE.PRG just prints the following the following and does nothing else.
>>>
>>>
>>>Microsoft Windows Network Microsoft Windows Network CONTAINER ANY
>>>
>>>
>>>All comments gratefully received
>>
>>Mark,
>>I haven't used the GetAllShare program but this look like it stops at the top-level of the network resource hierarchy. There should be a recursive call to EnumResources so that each containership level can be processed. Has this been commented out or not impleemnted?
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform