Changeset 665 for trunk/guitools/evfsgui/evfsgui.vrx
- Timestamp:
- Nov 19, 2011, 5:05:03 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/guitools/evfsgui/evfsgui.vrx (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/evfsgui/evfsgui.vrx
r662 r665 1096 1096 */ 1097 1097 _LoadOtherFuncs: 1098 SIGNAL ON SYNTAX NAME DLLMissing 1099 1098 1100 call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs' 1099 1101 call SysLoadFuncs … … 1105 1107 call PRLoadFuncs 1106 1108 1107 call RxFuncAdd 'RxuInit', 'Rxu','RxuInit'1109 call RxFuncAdd 'RxuInit', 'RXU', 'RxuInit' 1108 1110 call RxuInit 1109 return 1111 1112 SIGNAL OFF SYNTAX 1113 return 1114 1115 DLLMissing: 1116 Fatal = 1 1117 call VRMessage 'Main', 'REXX function library 'strip(translate(word(sourceline(SIGL-1),4),' ',"',"))'.DLL is missing!', "EVFSGUI fatal error", "E" 1118 signal Quit 1110 1119 1111 1120 /*:VRX _ParseCommandLine … … 2215 2224 end 2216 2225 2226 /* do nothing if a workgroup was mounted */ 2227 if VRGet("EF_SERVER","value") = "*" then return 2228 2217 2229 machine = VRGet("EF_SERVER","value") 2218 2230 rh = _GetMachineHandle(machine) … … 3727 3739 credentials.!entered = 1 3728 3740 3729 ok = _rpcqueryuser(p_server, VRGet("EF_USER1","Value"), VRGet("EF_PASSWORD1","Value"), VRGet("EF_USER1","Value"))3730 3731 LogonRetVal = word(ok,1) 3732 3733 if LogonRetVal = "1" then do3734 Msg.Type ="I"3735 ok = VRSet("DT_STATUSBAR","Caption", "Welcome "rpc.queryuser.FULL_NAME"!")3736 end3737 else do3738 Msg.Type ="E"3739 CALL VRMessage 'Main', Credentials.!username" at "p_server": "rpc.queryuser.LOGONSTATUS, "Login failure", Msg.Type3741 if p_server <> "" then do 3742 ok = _rpcqueryuser(p_server, VRGet("EF_USER1","Value"), VRGet("EF_PASSWORD1","Value"), VRGet("EF_USER1","Value")) 3743 3744 if word(ok,1) = "1" then do 3745 ok = VRSet("DT_STATUSBAR","Caption", NLVGetMessage(107, rpc.queryuser.FULL_NAME)) 3746 say 'rpc.queryuser.DIR_DRIVE = "'rpc.queryuser.DIR_DRIVE'"' 3747 say 'rpc.queryuser.LOGON_SCRIPT = "'rpc.queryuser.LOGON_SCRIPT'"' 3748 end 3749 else do 3750 CALL VRMessage 'Main', VRGet("EF_USER1","Value")" \\"p_server": "rpc.queryuser.LOGONSTATUS, NLVGetMessage(5), "E" 3751 end 3740 3752 end 3741 3753 … … 4474 4486 end 4475 4487 4476 Info.!comment= VRMethod( "CN_INFO", "AddRecord") 4477 Info.!domain = VRMethod( "CN_INFO", "AddRecord") 4478 Info.!DMBLMB = VRMethod( "CN_INFO", "AddRecord") 4479 Info.!os = VRMethod( "CN_INFO", "AddRecord") 4480 Info.!server = VRMethod( "CN_INFO", "AddRecord") 4481 Info.!status = VRMethod( "CN_INFO", "AddRecord") 4482 Info.!IP = VRMethod( "CN_INFO", "AddRecord") 4483 Info.!MAC = VRMethod( "CN_INFO", "AddRecord") 4484 4485 4486 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!domain, Info.TypeFH, strip(NLVGetMessage(21),'T',':'),Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, WorkGroupFH )) 4487 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!os, Info.TypeFH, strip(NLVGetMessage(93),'T',':'),Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, OSFH )) 4488 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!server, Info.TypeFH, strip(NLVGetMessage(19),'T',':'),Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, VersionFH )) 4488 ok = _rpcsrvinfo(SMBObj.resname,credentials.!username,credentials.!password) 4489 4490 Info.!nbname = VRMethod( "CN_INFO", "AddRecord") 4491 Info.!comment = VRMethod( "CN_INFO", "AddRecord") 4492 Info.!domain = VRMethod( "CN_INFO", "AddRecord") 4493 Info.!DMBLMB = VRMethod( "CN_INFO", "AddRecord") 4494 Info.!capabilities = VRMethod( "CN_INFO", "AddRecord") 4495 Info.!os = VRMethod( "CN_INFO", "AddRecord") 4496 Info.!server = VRMethod( "CN_INFO", "AddRecord") 4497 Info.!version = VRMethod( "CN_INFO", "AddRecord") 4498 Info.!status = VRMethod( "CN_INFO", "AddRecord") 4499 Info.!IP = VRMethod( "CN_INFO", "AddRecord") 4500 Info.!MAC = VRMethod( "CN_INFO", "AddRecord") 4501 4502 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!nbname, Info.TypeFH, strip(NLVGetMessage(137),'T',':'),Info.ValueFH, rpc.srvinfo.NETBIOSNAME) 4503 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!comment,Info.TypeFH, strip(NLVGetMessage(125),'T',':'),Info.ValueFH, rpc.srvinfo.SERVERSTRING) 4504 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!domain, Info.TypeFH, strip(NLVGetMessage(21), 'T',':'),Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, WorkGroupFH )) 4505 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!os, Info.TypeFH, strip(NLVGetMessage(93), 'T',':'),Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, OSFH )) 4506 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!server, Info.TypeFH, strip(NLVGetMessage(19), 'T',':'),Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, VersionFH )) 4507 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!version,Info.TypeFH, strip(NLVGetMessage(139),'T',':'),Info.ValueFH, rpc.srvinfo.OS_VERSION) 4508 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!capabilities, Info.TypeFH, strip(NLVGetMessage(138),'T',':'),Info.ValueFH, rpc.srvinfo.CAPABILITIES) 4489 4509 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!DMBLMB, Info.TypeFH, strip(NLVGetMessage(124),'T',':'),Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, MBFH )) 4490 4510 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!IP, Info.TypeFH, "IP" ,Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, IPFH )) 4491 4511 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!MAC, Info.TypeFH, "MAC" ,Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, MacFH )) 4492 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!comment,Info.TypeFH, strip(NLVGetMessage(125),'T',':'),Info.ValueFH, SMBObj.comment) 4493 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!status, Info.TypeFH, strip(NLVGetMessage(67),'T',':'),Info.ValueFH, SMBObj.udatamsg )4512 4513 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!status, Info.TypeFH, strip(NLVGetMessage(67),'T',':'),Info.ValueFH, rpc.srvinfo.LOGONSTATUS ) /* SMBObj.udatamsg */ 4494 4514 IF options.!debug == 1 THEN SAY time()' SW_INFO_Create done' 4495 4515 return
Note:
See TracChangeset
for help on using the changeset viewer.
