function NetShareAdd(ServerName : PWideChar;<br> Level : Longword;<br> Buffer : Pointer;<br> var ParamError : Longword) : Longword; external 'Netapi32';<br>Share_INFO_2 = record<br> shi2_netname : PWideChar; <br> shi2_type : Longword;<br> shi2_remark : PWideChar;<br> shi2_permissions : Longword;<br> shi2_max_uses : Longword;<br> shi2_current_uses : Longword;<br> shi2_path : PWideChar;<br> shi2_passwd : PWideChar;<br> end;