I've done a little looking around and I have to say I'm a bit mystified. At http://msdn.microsoft.com/library/ps...api3_8yk2.htm, it says share_info_50 is defined in srvapi.h, which you have as the last include in your code. However, I searched the header file and I can't find it.

I also saw that share_info_50 is not supported in Windows NT/2000. Will this be a problem for you?

Don't know how much more help I can be.