Does anyone know the API for creating a share on windows? I looked at the file handling API's and I didn't see anything relevent, although I saw a CreateSymbolicLink API that will be available in Longhorn/Vista for unix compatibility.
Does anyone know the API for creating a share on windows? I looked at the file handling API's and I didn't see anything relevent, although I saw a CreateSymbolicLink API that will be available in Longhorn/Vista for unix compatibility.
The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.
By "share", do you mean making a folder available to other computers on the network? If so, have a look at NetShareAdd. I would be very cautious about programmatically making a share.
Yes, that is the function I eventually came across. Out of curiosity, what do you think the problem will be with making a share (i.e. sharing a folder on the network) programatically?
The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.
Er, the obvious security risk problem, maybe?
What if I decided to share your hard drive(s) with the internet without telling you?
Although that said, there's more than enough pr0n around already...
That's interesting, but I wouldn't be sharing the C: drive. Let's say it's some folder "C:\Program Files\SomeCompany\SomeProduct\", and only read access is given. Is that really such a big deal?
The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.