Changeset 703
- Timestamp:
- Jun 13, 2012, 12:08:42 PM (13 years ago)
- Location:
- trunk/guitools
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/evfsgui/evfsgui.RC
r697 r703 27 27 BITMAP 36 .\rc\icons\green-on-16.bmp 28 28 BITMAP 37 .\rc\icons\green-off-16.bmp 29 icon 50 .\rc\icons\smbwait.ico 29 30 icon 68 .\rc\icons\passive.ico 30 31 icon 80 .\rc\icons\PDF.ICO -
trunk/guitools/evfsgui/evfsgui.vrp
r702 r703 10 10 VRXWindow: __VREMainWindow,1,1951,2361,891,7841 11 11 VRXWindow: __VREFileListWindow,1,1253,11033,2665,3358 12 VRXWindow: __VRESectionListWindow,1,1 229,11900,10696,334212 VRXWindow: __VRESectionListWindow,1,1156,12382,12238,5095 13 13 VRXWindow: __VREToolsWindow,0,3096,8528,6486,1669 14 14 VRXWindow: __VREWindListWindow,1,723,11708,3686,3150 … … 17 17 UserWindow: SW_LOGIN,1 18 18 UserWindow: SW_INFO,1 19 UserWindow: SW_SMBTREE,120 19 UserWindow: SW_CONDET,1 20 UserWindow: SW_DIALOG,1 -
trunk/guitools/evfsgui/evfsgui.vrx
r702 r703 753 753 END 754 754 755 if (mtype.1 = '' & mtype.2 = '' & mtype.3 = '' & mtype.4 = '') THEN DO /* we do not seem to have an NLV file */ 756 /* we fill the array with the list predefined directly in the GUI control */ 757 ok = VRMethod( "CB_MOUNT", "GetStringList", "mtype." ) 758 end 759 755 760 /* SMBTree */ 756 761 CALL NLVSetText 'PB_SMBTREE_CONNECT', "Caption", 28 … … 770 775 /* Common margin around controls */ 771 776 margin = ((VRGet("Main", "InteriorLeft") / 3) * 2) + 2 777 778 smbwait = "#50" 772 779 773 780 if options.!debug == 1 then say time()' _GUIInit done' … … 792 799 793 800 say _ucInitObj() 794 795 options.!storecreds = _ucChkObj() 801 say _ucChkObj() 796 802 797 803 IF STREAM( settings.!ini, 'C', 'QUERY EXISTS') == '' THEN DO … … 878 884 IF advanced.!lmhosts == '' THEN advanced.!lmhosts = 1 879 885 886 options.!storecreds = VRGetIni('Settings', 'StoreCreds', settings.!ini) 887 say "options.!storecreds = "options.!storecreds 888 IF options.!storecreds == '' then options.!storecreds = 1 889 890 say "options.!storecreds = "options.!storecreds 891 IF _ucChkObj() = 0 then options.!storecreds = 0 892 say "options.!storecreds = "options.!storecreds 893 880 894 options.!debug = VRGetIni('Settings', 'Debug', settings.!ini) 881 895 IF options.!debug == '' THEN options.!debug = 0 /* Turn off debug by default for release builds */ … … 983 997 CALL VRSetIni 'Settings', 'LMHosts', advanced.!lmhosts , settings.!ini, 'NoClose' 984 998 999 CALL VRSetIni 'Settings', 'StoreCreds', options.!storecreds , settings.!ini, 'NoClose' 985 1000 CALL VRSetIni 'Settings', 'Debug', options.!debug , settings.!ini, 'NoClose' 986 1001 CALL VRSetIni 'Settings', 'MiniIcons', advanced.!miniicons , settings.!ini, 'NoClose' … … 1061 1076 if datatype(T1) = "NUM" & datatype(T2) = "NUM" & datatype(T3) = "NUM" & datatype(T4) = "NUM" then do 1062 1077 FoundName = 0 1078 /* Don't add a local link IP to LMHosts - workaround only */ 1079 if T1 = '169' & T2 = '254' then iterate 1063 1080 do J = 1 to lmname.0 /* machine already in LMHosts? */ 1064 1081 if lmname.J = SmbObj.resname then do /* Yes? then update IP */ … … 1387 1404 _ShowMsg: 1388 1405 /* preliminary implementation - we just do not ignore it anymore - 1389 - ShowMsg from smbmon/smbusers shoul ebecome a shared library */1406 - ShowMsg from smbmon/smbusers should become a shared library */ 1390 1407 ok = VRSet("DT_StatusBar", "Caption", Msg.Text) 1391 1408 return … … 1623 1640 1624 1641 mount = VRGet("CB_MOUNT", "Value") 1642 1643 /* Catch empty mount type error */ 1644 if mount = "" then do 1645 if mtype.1 <> "" then ok = VRSet("CB_MOUNT", "Value", mtype.1) 1646 if options.!debug == 1 then say time()' '||"CB_MOUNT_Change aborted" 1647 return 1648 end 1625 1649 1626 1650 SELECT … … 1657 1681 CALL NLVSetText "DT_NETWORK", "Caption", 22 1658 1682 END 1683 OTHERWISE DO 1684 id = VRMessage( "", 'unknown mount type here >>'mount'<< mtype1=>>'mtype.1'<<', "Mount change error", "E", ) 1685 END 1659 1686 END 1660 1687 if options.!debug == 1 then say time()' '||"CB_MOUNT_Change done" … … 2565 2592 */ 2566 2593 Main_Create: 2567 options.!debug = 02594 options.!debug = 1 2568 2595 if options.!debug == 1 then do 2569 2596 ok = VRRedirectStdIO("ON") … … 3205 3232 */ 3206 3233 Menu_File_ucCred_Reset_Click: 3207 ok = _ucDelUc()3234 if _ucChkUc() then ok = _ucDelUc() 3208 3235 ok = VRSet("Pict_PWINMEM","PicturePath","#37") 3209 ok = VRSet("EF_USER", "Value","")3236 ok = VRSet("EF_USER", "Value","") 3210 3237 ok = VRSet("EF_PASSWORD","Value","") 3211 /* FIXME: Add a message box here */3238 call _UserCredUpdate 3212 3239 return 3213 3240 … … 3686 3713 CALL SW_ADVANCED_Init_Content 3687 3714 RETURN 3715 3716 /*:VRX PB_ClearCred_Click 3717 */ 3718 PB_ClearCred_Click: 3719 call Menu_File_ucCred_Reset_Click 3720 return 3688 3721 3689 3722 /*:VRX PB_CONDET_HELP_Click … … 4092 4125 ok = VRSet("PB_SETTINGS_UNDO","Enabled", 0) 4093 4126 end 4127 if options.!storecreds = 0 then call Menu_File_ucCred_Reset_Click 4094 4128 return 4095 4129 … … 4108 4142 /*:VRX PB_SMBTREE_CONNECT_Click 4109 4143 */ 4110 PB_SMBTREE_CONNECT_Click: PROCEDURE EXPOSE settings. options. icons. fs. advanced. cd. samba. 4144 PB_SMBTREE_CONNECT_Click: PROCEDURE EXPOSE settings. options. icons. fs. advanced. cd. samba. mtype. 4111 4145 if options.!debug == 1 then say time()' '||"PB_CONNECT_Click started" 4112 4146 … … 4594 4628 say ' Icon: "'SMBObj.icon'"' 4595 4629 end 4596 4630 say "Vorher:"rpc.srvinfo.OS_VERSION 4631 drop rpc. 4632 say "Vorher:"rpc.srvinfo.OS_VERSION 4597 4633 rpc_success = _rpcsrvinfo(SMBObj.resname,credentials.!username,credentials.!password) 4598 4634 … … 4616 4652 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!version,Info.TypeFH, strip(NLVGetMessage(139),'T',':'),Info.ValueFH, rpc.srvinfo.OS_VERSION) 4617 4653 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!status, Info.TypeFH, strip(NLVGetMessage(67),'T',':'),Info.ValueFH, rpc.srvinfo.LOGONSTATUS ) 4654 /* we did not get these, but we know them anyway */ 4655 if rpc.srvinfo.NETBIOSNAME = "" then ok = VRMethod( "CN_INFO", "SetFieldData", Info.!nbname, Info.TypeFH, strip(NLVGetMessage(137),'T',':'),Info.ValueFH, SMBObj.resname'ø') 4656 if rpc.srvinfo.SERVERSTRING = "" then ok = VRMethod( "CN_INFO", "SetFieldData", Info.!comment,Info.TypeFH, strip(NLVGetMessage(125),'T',':'),Info.ValueFH, SMBObj.comment'ø') 4618 4657 end 4619 4658 else do -
trunk/guitools/shared/nlv.vrs
r638 r703 81 81 if nlv = "EN" then do 82 82 NLVSrchDone = 1 /* We give up and leave */ 83 id = VRMessage( "", "Could not find a valid language file!", "NLV Setup Error", "E", ) 83 84 /* We will leave without a valid NLV file here! */ 84 85 end -
trunk/guitools/shared/rxrpclib.vrs
r675 r703 19 19 password = arg(3) 20 20 21 call VRSet VRWindow(), 'Pointer', 'Wait' 21 22 say ' 'samba.!rpcclientexe' 'server' --user='username'%'password' --command="enumdomgroups" 'debuglevel' ' 22 23 address cmd samba.!rpcclientexe' 'server' --user='username'%'password' --command="enumdomgroups" 'debuglevel' >'samba.!msg 24 call VRSet VRWindow(), 'Pointer', '<default>' 23 25 24 26 rpc.enumdomgroups. = "" … … 75 77 password = arg(3) 76 78 79 call VRSet VRWindow(), 'Pointer', 'Wait' 77 80 say ' 'samba.!rpcclientexe' 'server' --user='username'%'password' --command="enumdomusers" 'debuglevel' ' 78 81 address cmd samba.!rpcclientexe' 'server' --user='username'%'password' --command="enumdomusers" 'debuglevel' >'samba.!msg 82 call VRSet VRWindow(), 'Pointer', '<default>' 79 83 80 84 rpc.enumdomusers. = "" … … 133 137 usercred = '--user='username'%'password 134 138 139 call VRSet VRWindow(), 'Pointer', 'Wait' 135 140 say ' 'samba.!rpcclientexe' 'server' 'usercred' --command="enumprinters" 'debuglevel' ' 136 141 address cmd samba.!rpcclientexe' 'server' 'usercred' --command="enumprinters" 'debuglevel' >'samba.!msg 142 call VRSet VRWindow(), 'Pointer', '<default>' 137 143 138 144 rpc.enumprinters. = "" … … 183 189 password = arg(3) 184 190 191 call VRSet VRWindow(), 'Pointer', 'Wait' 185 192 say ' 'samba.!rpcclientexe' 'server' --user='username'%'password' --command="netshareenum" 'debuglevel' ' 186 193 address cmd samba.!rpcclientexe' 'server' --user='username'%'password' --command="netshareenum" 'debuglevel' >'samba.!msg 194 call VRSet VRWindow(), 'Pointer', '<default>' 187 195 188 196 rpc.netshareenum. = "" … … 235 243 share = arg(4) 236 244 245 call VRSet VRWindow(), 'Pointer', 'Wait' 237 246 say ' 'samba.!rpcclientexe' 'server' --user='username'%'password' --command="netsharegetinfo 'share'" 'debuglevel' ' 238 247 address cmd samba.!rpcclientexe' 'server' --user='username'%'password' --command="netsharegetinfo 'share'" 'debuglevel' >'samba.!msg 248 call VRSet VRWindow(), 'Pointer', '<default>' 239 249 240 250 rpc.netsharegetinfo. = "" … … 343 353 userrid = arg(4) 344 354 355 call VRSet VRWindow(), 'Pointer', 'Wait' 345 356 say ' 'samba.!rpcclientexe' 'server' --user='username'%'password' --command="queryuser 'userrid'" 'debuglevel' ' 346 357 address cmd samba.!rpcclientexe' 'server' --user='username'%'password' --command="queryuser 'userrid'" 'debuglevel' >'samba.!msg 358 call VRSet VRWindow(), 'Pointer', '<default>' 347 359 348 360 rpc.queryuser. = "" … … 390 402 /*:VRX _rpcsrvinfo 391 403 */ 392 _rpcsrvinfo: procedure expose rpc. samba. options. debuglevel 404 _rpcsrvinfo: procedure expose rpc. samba. options. debuglevel tempdir 393 405 IF options.!debug == 1 THEN SAY time()" _rpcsrvinfo() started" 394 406 server = arg(1) 395 407 username = arg(2) 396 408 password = arg(3) 409 410 /* Initialize temporary files */ 411 rpcinfo.!msg = SysTempFileName(TempDir||"rpcinfo_msg.???") 412 rpcinfo.!err = SysTempFileName(TempDir||"rpcinfo_err.???") 413 ok = stream(rpcinfo.!msg,'c','close') 414 ok = stream(rpcinfo.!err,'c','close') 415 ok = SysFileDelete(rpcinfo.!msg) 416 ok = SysFileDelete(rpcinfo.!err) 397 417 398 418 usercred = '--user='username'%'password 399 419 if UserCred = 'USERCRED' | UserCred = '' | UserCred = '--user=%' then UserCred = '-N' 400 420 401 say ' 'samba.!rpcclientexe' 'server' 'usercred' --command="srvinfo" 'debuglevel' 2>'samba.!error' 1>'samba.!msg 402 address cmd samba.!rpcclientexe' 'server' 'usercred' --command="srvinfo" 'debuglevel' 2>'samba.!error' 1>'samba.!msg 421 call VRSet VRWindow(), 'Pointer', 'Wait' 422 say ' 'samba.!rpcclientexe' 'server' 'usercred' --command="srvinfo" 'debuglevel' 2>'rpcinfo.!err' 1>'rpcinfo.!msg 423 address cmd samba.!rpcclientexe' 'server' 'usercred' --command="srvinfo" 'debuglevel' 2>'rpcinfo.!err' 1>'rpcinfo.!msg 424 call VRSet VRWindow(), 'Pointer', '<default>' 403 425 404 426 rpc.srvinfo. = "" 405 427 406 428 Failure = 0 407 do while lines(samba.!error) > 0 408 rpcline = linein(samba.!error) 409 say " "samba.!error":"rpcline 410 if pos("UNSUCCESSFUL", rpcline) > 0 then do 411 ok = stream(samba.!error,'c','close') 412 ok = SysFileDelete(samba.!error) 429 do while lines(rpcinfo.!err) > 0 430 rpcline = linein(rpcinfo.!err) 431 IF options.!debug == 1 THEN say " "rpcinfo.!err': "'rpcline'"' 432 if pos("UNSUCCESSFUL", translate(rpcline)) > 0 | pos("CANNOT CONNECT", translate(rpcline)) > 0 then do 433 ok = stream(rpcinfo.!msg,'c','close') 434 ok = stream(rpcinfo.!err,'c','close') 435 ok = SysFileDelete(rpcinfo.!msg) 436 ok = SysFileDelete(rpcinfo.!err) 413 437 Failure = 1 414 438 retval = 0 … … 421 445 422 446 SIGNAL ON SYNTAX NAME RPCERROR 423 do until lines( samba.!msg) = 0424 rpcline = linein( samba.!msg)447 do until lines(rpcinfo.!msg) = 0 448 rpcline = linein(rpcinfo.!msg) 425 449 if pos("creating default valid table",rpcline) <> 0 then iterate 426 450 … … 444 468 rpc.srvinfo.CAPABILITIES = "" 445 469 do I = 1 to words(rpc.srvinfo.SERVERSTRING) 446 say "Word "I":"word(rpc.srvinfo.SERVERSTRING,I)470 /* say "Word "I":"word(rpc.srvinfo.SERVERSTRING,I) */ 447 471 if length(word(rpc.srvinfo.SERVERSTRING,I)) >=4 then leave 448 472 if length(word(rpc.srvinfo.SERVERSTRING,I)) = 2 | length(word(rpc.srvinfo.SERVERSTRING,I)) = 3 then do … … 460 484 SIGNAL OFF SYNTAX 461 485 462 ok = stream(samba.!msg,'c','close') 463 ok = SysFileDelete(samba.!msg) 486 ok = stream(rpcinfo.!msg,'c','close') 487 ok = stream(rpcinfo.!err,'c','close') 488 ok = SysFileDelete(rpcinfo.!msg) 489 ok = SysFileDelete(rpcinfo.!err) 464 490 465 491 if Failure = 0 then do … … 477 503 478 504 RPCERROR: 479 ok = stream(samba.!msg,'c','close') 480 ok = SysFileDelete(samba.!msg) 505 ok = stream(rpcinfo.!msg,'c','close') 506 ok = stream(rpcinfo.!err,'c','close') 507 ok = SysFileDelete(rpcinfo.!msg) 508 ok = SysFileDelete(rpcinfo.!err) 509 481 510 say " rpc parsing error in line "sigl": "strip(sourceline(sigl)) 482 511 retval = -1 -
trunk/guitools/shared/smbtree.vrs
r688 r703 19 19 address cmd 'detach 'samba.!smbtreeexe' 'BroadCast' -S 'UserCred' 'debuglevel' >'samba.!serverlist 20 20 21 if UserCred = '-N' then ok = VRSet("CN_SMBTREE","Caption","User context: Guest") 22 else do 23 parse var UserCred '--user='username'%'. 24 ok = VRSet("CN_SMBTREE","Caption","User context: "username) 25 end 26 21 27 if BroadCast = '-b' then BroadCast = 1; else BroadCast = 0 22 28 if UserCred = '-N' then UserCred = '' … … 44 50 if ShowHidden = 'SHOWHIDDEN' | ShowHidden = '' then ShowHidden = 0 45 51 if BroadCast = 1 then BroadCast = '-b'; else BroadCast = '' 52 53 if UserCred = '-N' then ok = VRSet("CN_SMBTREE","Caption","User context: Guest") 54 else do 55 parse var UserCred '--user='username'%'. 56 ok = VRSet("CN_SMBTREE","Caption","User context: "username) 57 end 46 58 47 59 ok = VRset("TM_RefreshTreeDisplay","Enabled",0) … … 155 167 address cmd 'detach 'samba.!smbclientexe' -L "'machine'" 'UserCred' 'debuglevel' 2>'smbmachine' 1>&2' 156 168 169 if UserCred = '-N' then ok = VRSet("CN_SMBTREE","Caption","User context: Guest") 170 else do 171 parse var UserCred '--user='username'%'. 172 ok = VRSet("CN_SMBTREE","Caption","User context: "username) 173 end 174 157 175 if UserCred = '-N' then UserCred = '' 158 176 -
trunk/guitools/smbmon/changes
r688 r703 1 Version 2.5. alpha 10-20111 Version 2.5.beta 02-2012 2 2 +Added: Delete old logs 3 +Added: enhanced refresh code 3 +Added: Kill single processes 4 +Added: (even more) enhanced refresh code 4 5 *Changed: Use Alex Taylor's Warp4-style notebook 5 6 instead of my emulation … … 7 8 *Changed: Use latest smbtree.vrs to have all browsing 8 9 enhancements added to EVFSGUI 10 !Fixed: Columns menu was upside down 11 !Fixed: Do not turn off display AFTER starting/stopping etc... 9 12 Note: This is based upon 1.9 line of code. 10 13 Version 2.1.alpha 07-2011 -
trunk/guitools/smbmon/rc/lang/smbmon_de.mkm
r688 r703 37 37 SMM0031I: Darstellung 38 38 SMM0032I: Ping 39 SMM0033I: "%1"-Prozessstoppen39 SMM0033I: Prozess "%1" stoppen 40 40 SMM0034I: Den "%1"-Prozess wirklich stoppen? 41 41 SMM0035I: Sortieren 42 SMM0036I: "%1"-Prozessstarten42 SMM0036I: Prozess "%1" starten 43 43 SMM0037I: Den "%1"-Prozess wirklich starten? 44 SMM0038 ?:45 SMM0039 ?:44 SMM0038I: Prozess "%1" killen 45 SMM0039I: Den "%1"-Prozess wirklich killen? 46 46 ; Daemon Status 47 47 SMM0040I: gestartet -
trunk/guitools/smbmon/rc/lang/smbmon_en.mkm
r688 r703 42 42 SMM0036I: Start "%1"-daemon 43 43 SMM0037I: Really start "%1"-daemon? 44 SMM0038 ?:45 SMM0039 ?:44 SMM0038I: Kill "%1"-process 45 SMM0039I: Really kill "%1"-process? 46 46 ; Daemon Status 47 47 SMM0040I: is running -
trunk/guitools/smbmon/rc/lang/smbmon_es.mkm
r688 r703 42 42 SMM0036I: Iniciar "%1"-daemon 43 43 SMM0037I: Realmente iniciar "%1"-daemon? 44 SMM0038 ?:45 SMM0039 ?:44 SMM0038I: Matar "%1"-daemon 45 SMM0039I: Realmente matar "%1"-daemon? 46 46 ; Daemon Status 47 47 SMM0040I: en funcionamiento -
trunk/guitools/smbmon/rc/lang/smbmon_fr.mkm
r688 r703 44 44 SMM0036I: Lancer le dmon-"%1" 45 45 SMM0037I: Voulez-vous rellement lancer le dmon-"%1" ? 46 SMM0038 ?:47 SMM0039 ?:46 SMM0038I: Tuer le dmon-"%1" 47 SMM0039I: Voulez-vous rellement tuer le dmon-"%1" ? 48 48 ; Daemon Status 49 49 SMM0040I: est en cours d'excution -
trunk/guitools/smbmon/rc/lang/smbmon_sv.mkm
r688 r703 42 42 SMM0036I: Start ned "%1" 43 43 SMM0037I: Skall verkligen "%1" startas? 44 SMM0038 ?:45 SMM0039 ?:44 SMM0038I: Dda ned "%1" 45 SMM0039I: Skall verkligen "%1" ddas? 46 46 ; Daemon Status 47 47 SMM0040I: startad -
trunk/guitools/smbmon/smbmon.vrp
r688 r703 6 6 RunParameters: 7 7 RunDirectory: U:\Develop\Samba\trunk\guitools\smbmon 8 VRXWindow: __VREMainWindow,1,2180,3614, 915,42169 VRXWindow: __VRESectionListWindow,1,3541,11804,7914, 334210 VRXWindow: __VREToolsWindow,1,2156,1494,648 3,16638 VRXWindow: __VREMainWindow,1,2180,3614,1024,6769 9 VRXWindow: __VRESectionListWindow,1,3541,11804,7914,6047 10 VRXWindow: __VREToolsWindow,1,2156,1494,6480,1669 11 11 VRXWindow: __VREWindListWindow,1,964,11708,2650,3150 12 12 UserFile: 1 13 13 UserWindow: Main,1 14 UserWindow: SW_ DAEMONS,114 UserWindow: SW_FILES,1 -
trunk/guitools/smbmon/smbmon.vrx
r688 r703 112 112 ok = VRMethod(Container, "GetFieldList", "Fields." ) 113 113 114 do I = 1 to 12 114 do I = 1 to 14 115 R2I = right("0"||I,2) 115 116 if I <= fields.0 then do 116 /* say "Columns_"|| right("0"||I,2)' 'VRMethod(Container, "GetFieldAttr", fields.I, "Title" ) */117 ok = VRset("Columns_"|| right("0"||I,2), "Visible", 1)118 ok = VRset("Columns_"|| right("0"||I,2), "Caption", VRMethod(Container, "GetFieldAttr", fields.I, "Title" ))119 ok = VRset("Columns_"|| right("0"||I,2), "Checked", VRMethod(Container, "GetFieldAttr", fields.I, "Visible" ))120 ok = VRset("Columns_"|| right("0"||I,2), "Userdata", Container'|'fields.I'|'VRMethod(Container, "GetFieldAttr", fields.I, "Visible" ))121 end 122 else ok = VRset("Columns_"|| right("0"||I,2), "Visible", 0)117 /* say "Columns_"||R2I' 'VRMethod(Container, "GetFieldAttr", fields.I, "Title" ) */ 118 ok = VRset("Columns_"||R2I, "Visible", 1) 119 ok = VRset("Columns_"||R2I, "Caption", VRMethod(Container, "GetFieldAttr", fields.I, "Title" )) 120 ok = VRset("Columns_"||R2I, "Checked", VRMethod(Container, "GetFieldAttr", fields.I, "Visible" )) 121 ok = VRset("Columns_"||R2I, "Userdata", Container'|'fields.I'|'VRMethod(Container, "GetFieldAttr", fields.I, "Visible" )) 122 end 123 else ok = VRset("Columns_"||R2I, "Visible", 0) 123 124 end 124 125 ok = VRMethod( "Columns", "Popup", , , "", "" ) … … 1229 1230 if DRH <> "" then DaemonName = VRMethod("CN_Daemons", "GetRecordAttr", DRH, "Caption") 1230 1231 select 1231 when Words(DaemonName) = 3 then do 1232 when Words(DaemonName) = 3 then do /* a child process with PID in name */ 1232 1233 DaemonName = word(DaemonName,2) 1233 1234 ok = VRset("ContextMenu_Daemons_Sep1","Visible", 1 ) 1235 ok = VRSet("ContextMenu_Daemons_KillPID", "Caption", NLVGetMessage( 38, DaemonName)) 1236 ok = VRset("ContextMenu_Daemons_KillPID", "Visible", 1 ) 1237 ok = VRset("ContextMenu_Daemons_Start", "Visible", 0 ) 1238 ok = VRset("ContextMenu_Daemons_Ping", "Visible", 1 ) 1239 ok = VRset("ContextMenu_Daemons_Sep1", "Visible", 1 ) 1234 1240 end 1235 when Words(DaemonName) = 1 then do 1241 when Words(DaemonName) = 1 then do /* on smbd.exe or nmbd.exe root processes */ 1236 1242 parse var DaemonName DaemonName'.exe' 1237 1243 if strip(VRMethod("CN_Daemons", "GetFieldData", DRH, DPidsFH)) <> "" then do … … 1244 1250 ok = VRSet("ContextMenu_Daemons_Start", "Caption", NLVGetMessage( 36, DaemonName)) 1245 1251 ok = VRset("ContextMenu_Daemons_Start", "Visible", 1 ) 1252 ok = VRset("ContextMenu_Daemons_KillPID","Visible", 0 ) 1246 1253 ok = VRset("ContextMenu_Daemons_Ping", "Visible", 0 ) 1247 1254 ok = VRset("ContextMenu_Daemons_Sep1", "Visible", 1 ) … … 1395 1402 return 1396 1403 1404 /*:VRX Columns_13_Click 1405 */ 1406 Columns_13_Click: 1407 call _ColumnShow 1408 return 1409 1410 /*:VRX Columns_14_Click 1411 */ 1412 Columns_14_Click: 1413 call _ColumnShow 1414 return 1415 1397 1416 /*:VRX ContextMenu_Daemons_Details_Click 1398 1417 */ … … 1402 1421 ok = VRset("ContextMenu_Daemons_Details","Enabled",0) 1403 1422 ok = VRSet("TM_refresh","Enabled", 1) 1423 return 1424 1425 /*:VRX ContextMenu_Daemons_KillPID_Click 1426 */ 1427 ContextMenu_Daemons_KillPID_Click: 1428 Msg.Text = NLVGetMessage(39, DaemonName) 1429 Msg.Type = 'Q' 1430 if _MsgYesNo() = 1 then do 1431 say 'kill -9 'DaemonName 1432 address cmd 'kill -9 'DaemonName 1433 end 1434 ok = VRSet("TM_refresh","Enabled", 1) 1435 call PB_PAUSEDISPLAY_Click 1404 1436 return 1405 1437 … … 1435 1467 end 1436 1468 ok = VRSet("TM_refresh","Enabled", 1) 1469 call PB_PAUSEDISPLAY_Click 1437 1470 return 1438 1471 … … 1453 1486 end 1454 1487 ok = VRSet("TM_refresh","Enabled", 1) 1488 call PB_PAUSEDISPLAY_Click 1455 1489 return 1456 1490 … … 1943 1977 end 1944 1978 ok = VRSet("TM_Refresh","Delay", 2000) 1979 if \VRGet("TM_RefreshDaemons","Enabled") then call PB_PAUSEDISPLAY_Click 1945 1980 call VRSet VRWindow(), 'Pointer', '<default>' 1946 1981 return … … 1958 1993 end 1959 1994 ok = VRSet("TM_Refresh","Delay", 1000) 1995 if \VRGet("TM_RefreshDaemons","Enabled") then call PB_PAUSEDISPLAY_Click 1960 1996 call VRSet VRWindow(), 'Pointer', '<default>' 1961 1997 return … … 1991 2027 end 1992 2028 ok = VRSet("TM_Refresh","Delay", 1000) 2029 if \VRGet("TM_RefreshDaemons","Enabled") then call PB_PAUSEDISPLAY_Click 1993 2030 call VRSet VRWindow(), 'Pointer', '<default>' 1994 2031 say "IPB_Start_Click done" … … 2007 2044 end 2008 2045 ok = VRSet("TM_Refresh","Delay", 1000) 2046 if \VRGet("TM_RefreshDaemons","Enabled") then call PB_PAUSEDISPLAY_Click 2009 2047 call VRSet VRWindow(), 'Pointer', '<default>' 2010 2048 say "IPB_Stop_Click done"
Note:
See TracChangeset
for help on using the changeset viewer.