Help ! on Shared Files
Posted: Thu Dec 11, 2003 9:47 pm
Hi !
Where is the error ?
Thanks
Where is the error ?
Thanks
Code: Select all
Structure NETRESOURCE
dwScope.l
dwType.l
dwDisplayType.l
dwUsage.l
lpLocalName.l
lpRemoteName.l
lpComment.l
lpProvider.l
EndStructure
*buffer_resultat=AllocateMemory(1,20000,0)
*buffer_taille=AllocateMemory(1,20000,0)
handle=WNetOpenEnum_(#RESOURCE_GLOBALNET,#RESOURCETYPE_ANY,0,0,resultat$)
WNetEnumResource_(handle,50,*buffer_resultat,@buffer_taille)
Debug PeekS(*buffer_resultat\lpRemoteName.l)