用net命令 或 NetShareAdd 函数 怎样设置为只读共享?
我用NetShareAdd 函数,将SHARE_INFO_2结构对象的shi2_permissions = ACCESS_READ,也不行。请问该怎样做?另外,net 命令能设置为只读共享码?谢谢?
附结构:
Private Type SHARE_INFO_2
shi2_netname As Long '共享名
shi2_type As Long '类型
shi2_re As Long '备注
shi2_permissions As Long '权限
shi2_max_uses As Long '最大用户
shi2_current_uses As Long '
shi2_path As Long '路径
shi2_passwd As Long '密码
End Type
我用NetShareAdd 函数,将SHARE_INFO_2结构对象的shi2_permissions = ACCESS_READ,也不行。请问该怎样做?另外,net 命令能设置为只读共享码?谢谢?
附结构:
Private Type SHARE_INFO_2
shi2_netname As Long '共享名
shi2_type As Long '类型
shi2_re As Long '备注
shi2_permissions As Long '权限
shi2_max_uses As Long '最大用户
shi2_current_uses As Long '
shi2_path As Long '路径
shi2_passwd As Long '密码
End Type
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货