开共享及关共享我都会了(API)
就不知如何设置共享的访问权限,比如只允许某某用户以什么方式访问。请高人指教。typedef struct _SHARE_INFO_502 {
    LPTSTR    shi502_netname;
    DWORD     shi502_type;
    LPTSTR    shi502_re;
    DWORD     shi502_permissions;
    DWORD     shi502_max_uses;
    DWORD     shi502_current_uses;
    LPTSTR    shi502_path;
    LPTSTR    shi502_passwd;
    DWORD     shi502_reserved;
    PSECURITY_DESCRIPTOR  shi502_security_descriptor; //权限设置主要就靠这个了,可惜不会使用
} SHARE_INFO_502, *PSHARE_INFO_502, *LPSHARE_INFO_502;