Shares
-
Can somebody help me design a small program in c++ to check both ntfs shares and file shares for 1 machine. I have tried using ADSI but i just dont get the attributes. Any links would be useful Kelvin Chikomo -- modified at 8:49 Monday 16th January, 2006
-
Can somebody help me design a small program in c++ to check both ntfs shares and file shares for 1 machine. I have tried using ADSI but i just dont get the attributes. Any links would be useful Kelvin Chikomo -- modified at 8:49 Monday 16th January, 2006
Have you tried
NetShareEnum()
orNetShareGetInfo()
?
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
-
Have you tried
NetShareEnum()
orNetShareGetInfo()
?
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
-
Do you have any sample code for these methods: NetShareEnum() or NetShareGetInfo() ? Kelvin Chikomo -- modified at 9:26 Monday 16th January, 2006
NetShareEnum NetShareGetInfo Google
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
-
NetShareEnum NetShareGetInfo Google
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
Thanks alot for the links, they are very helpfull. I am now getting these 2 errors : error LNK2001: unresolved external symbol _NetApiBufferFree@4 and error LNK2001: unresolved external symbol _NetShareGetInfo@16 I think i am missing some libraries what could i include? I tried including activeds.lib and adsiid.lib but i still get the same errors Kelvin Chikomo
-
Thanks alot for the links, they are very helpfull. I am now getting these 2 errors : error LNK2001: unresolved external symbol _NetApiBufferFree@4 and error LNK2001: unresolved external symbol _NetShareGetInfo@16 I think i am missing some libraries what could i include? I tried including activeds.lib and adsiid.lib but i still get the same errors Kelvin Chikomo
Look up the NetShareGetInfo function in MSDN. Scroll down. See the table at the bottom where it tells you what library the function is implemented in? "Link to Netapi32.lib. Link to Svrapi.lib in Windows Me/98/95."
using System.Beer;