Changeset 546 for branches/guitools-2.0/shared/smbtree.vrs
- Timestamp:
- Feb 6, 2011, 10:54:31 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/guitools-2.0/shared/smbtree.vrs
r477 r546 311 311 if workgroup <> "" then do 312 312 wgh = _GetMachinehandle(workgroup) 313 if wgh = "" then do /* This machine isin a new workgroup - add it as well */313 if wgh = "" then do /* This machine appears to be in a new workgroup - add it as well */ 314 314 wgh = VRMethod( "CN_smbtree", "AddRecord",,, workgroup,"#62:PMWP.DLL") 315 315 ok = VRMethod( "CN_smbtree", "SetFieldData", wgh, WorkGroupFH, workgroup) … … 318 318 ok = VRMethod( "CN_smbtree", 'SetRecordAttr', wgh, "UserData", "WORKGROUP|") 319 319 end 320 if wgh <> "" then ok = VRMethod('CN_smbtree', 'SetRecordAttr', smbtree.!machine, 'Parent', wgh) 320 /* we only do this for machines with empty parent (=workgroup) handle */ 321 /* this might not be good enough yet - verifictaion required */ 322 if wgh <> "" & VRMethod('CN_smbtree', 'GetRecordAttr', smbtree.!machine, 'Parent') = "" then do 323 ok = VRMethod('CN_smbtree', 'SetRecordAttr', smbtree.!machine, 'Parent', wgh) 324 end 321 325 end 322 326
Note:
See TracChangeset
for help on using the changeset viewer.