Changeset 697
- Timestamp:
- Apr 14, 2012, 7:10:43 PM (13 years ago)
- Location:
- trunk/guitools/evfsgui
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/evfsgui/changes
r688 r697 21 21 + Added: Error handler for missing REXX DLLs 22 22 + Added: Identify user using RPC library 23 + Added: Indicate by "LED" whether credentials are stored or not 24 + Added: Click on "LED" to remove credentials from memory 23 25 + Added: Icon on login window depends upon connection type 24 26 + Added: Allow removing stored credentials from memory … … 51 53 added machines 52 54 ! Fixed: Loginbox was not NLS aware 55 ! Fixed: Do not crash upon authenticitation if we are unable to determine the 56 connection type (yet) 53 57 ! Fixed: Numerous small bugs/omissions 54 58 ! Fixed: "Creating lame upcase tables" filtered -
trunk/guitools/evfsgui/evfsgui.vrp
r688 r697 10 10 VRXWindow: __VREMainWindow,1,1951,2361,891,7841 11 11 VRXWindow: __VREFileListWindow,1,1253,11033,2665,3358 12 VRXWindow: __VRESectionListWindow, 1,3927,11033,8082,798613 VRXWindow: __VREToolsWindow,0,30 84,8528,6486,166912 VRXWindow: __VRESectionListWindow,0,3927,11033,8082,7986 13 VRXWindow: __VREToolsWindow,0,3096,8528,6486,1669 14 14 VRXWindow: __VREWindListWindow,1,723,11708,3686,3150 15 15 UserFile: 1 16 16 UserWindow: Main,1 17 UserWindow: SW_LOGIN,1 18 UserWindow: SW_INFO,1 19 UserWindow: SW_SMBTREE,1 20 UserWindow: SW_DIALOG,1 -
trunk/guitools/evfsgui/evfsgui.vrx
r688 r697 205 205 */ 206 206 _BrowseBuildPath: procedure expose options. icons. sharerh 207 IF options.!debug == 1 THEN SAYtime()' _BrowseBuildPath started'207 if options.!debug == 1 then say time()' _BrowseBuildPath started' 208 208 rh = arg(1) 209 209 … … 237 237 end 238 238 BrowsePathStr = strip(BrowsePathStr,'T','\') 239 IF options.!debug == 1 THEN SAYtime()' _BrowseBuildPath done, returning "'BrowsePathStr'"'239 if options.!debug == 1 then say time()' _BrowseBuildPath done, returning "'BrowsePathStr'"' 240 240 return BrowsePathStr 241 241 … … 243 243 */ 244 244 _BrowseDirectory: /* This must not be a procedure */ 245 IF options.!debug == 1 THEN SAYtime()' _BrowseDirectory started'245 if options.!debug == 1 then say time()' _BrowseDirectory started' 246 246 247 247 /* Turn off painting */ … … 327 327 call VRSet VRWindow(), 'Pointer', '<default>' 328 328 ok = VRSet("CN_SMBTREE","Painting", 1 ) 329 IF options.!debug == 1 THEN SAYtime()' _BrowseDirectory done'329 if options.!debug == 1 then say time()' _BrowseDirectory done' 330 330 return 331 331 … … 343 343 DO i = 1 TO records.0 344 344 if VRMethod( "CN_CONDET", "GetFieldData", records.i, CD.StatusFH) = icons.!active then do 345 IF options.!debug == 1 THEN SAY' 'VRMethod( "CN_CONDET", "GetFieldData", records.i, CD.StatusFH)' 'VRMethod( "CN_CONDET", "GetFieldData", records.i, CD.MPointFH)' 'VRMethod( "CN_CONDET", "GetFieldData", records.i, CD.ServerFH)' 'VRMethod( "CN_CONDET", "GetFieldData", records.i, CD.ShareFH)345 if options.!debug == 1 then say ' 'VRMethod( "CN_CONDET", "GetFieldData", records.i, CD.StatusFH)' 'VRMethod( "CN_CONDET", "GetFieldData", records.i, CD.MPointFH)' 'VRMethod( "CN_CONDET", "GetFieldData", records.i, CD.ServerFH)' 'VRMethod( "CN_CONDET", "GetFieldData", records.i, CD.ShareFH) 346 346 if machine = VRMethod( "CN_CONDET", "GetFieldData", records.i, CD.ServerFH) &, 347 347 sharename = VRMethod( "CN_CONDET", "GetFieldData", records.i, CD.ShareFH) then do 348 348 Object = strip(VRMethod( "CN_CONDET", "GetFieldData", records.i, CD.MPointFH),'T','\')'\'browsepath 349 IF options.!debug == 1 THEN SAY' Non UNC object: "'Object'"'349 if options.!debug == 1 then say ' Non UNC object: "'Object'"' 350 350 ID = VRMethod( "Application", "StartThread", "wps_open", Object, "DEFAULT" ) 351 351 OpenOK = 1 … … 374 374 */ 375 375 _ContainersInit: 376 IF options.!debug == 1 THEN SAYtime()' _ContainersInit started'376 if options.!debug == 1 then say time()' _ContainersInit started' 377 377 /* Connection details */ 378 378 CD.StatusFH = VRMethod( "CN_CONDET", "AddField", "Icon", "Status" ) … … 438 438 ok = VRMethod("CN_smbtree","SetfieldAttr",MacFH, "ReadOnly", 1) 439 439 440 IF options.!debug == 1 THEN SAYtime()' _ContainersInit done'440 if options.!debug == 1 then say time()' _ContainersInit done' 441 441 return 442 442 /*:VRX _ContextMenuSelectedSet … … 486 486 */ 487 487 _CreateSmbConf: 488 IF options.!debug == 1 THEN SAYtime()' '||"_CreateSmbConf started"488 if options.!debug == 1 then say time()' '||"_CreateSmbConf started" 489 489 call lineout samba.!smbconf, '# Samba config file created using EVFSGUI ver. 'word(VRGet("Main","Hinttext"),2) 490 490 call lineout samba.!smbconf, '# from 'value("USER",,'OS2ENVIRONMENT')'@'value("HOSTNAME",,'OS2ENVIRONMENT') … … 499 499 call lineout samba.!smbconf, '09'x||'log level = 0' 500 500 ok = stream(samba.!smbconf,'c','close') 501 IF options.!debug == 1 THEN SAYtime()' '||"_CreateSmbConf done"501 if options.!debug == 1 then say time()' '||"_CreateSmbConf done" 502 502 return 503 503 … … 586 586 _Dynamic: 587 587 dyn_code = arg(1) 588 IF options.!debug == 1 THEN SAY' Dynamic code: 'dyn_code588 if options.!debug == 1 then say ' Dynamic code: 'dyn_code 589 589 interpret dyn_code; drop dyn_code 590 590 return … … 593 593 */ 594 594 _GetSMBObjectProperties: procedure expose options. SMBObj. rh icon resname udatatype udatamsg parentrh icons. 595 IF options.!debug == 1 THEN SAYtime()' _GetSMBObjectProperties started'595 if options.!debug == 1 then say time()' _GetSMBObjectProperties started' 596 596 597 597 /* Purpose of this subroutine: … … 616 616 617 617 if VRMethod( "CN_SMBTREE", "ValidateRecord", SMBObj.rh) <> 1 | SMBObj.rh = "" then do 618 IF options.!debug == 1 THEN SAYtime()' _GetSMBObjectProperties aborted'618 if options.!debug == 1 then say time()' _GetSMBObjectProperties aborted' 619 619 return 620 620 end … … 637 637 SMBObj.udatamsg = strip(SMBObj.udatamsg) 638 638 639 IF options.!debug == 1 THENdo640 SAY' Handle: "'SMBObj.rh'"'639 if options.!debug == 1 then do 640 say ' Handle: "'SMBObj.rh'"' 641 641 say ' GParentrh "'SMBObj.gparentrh'"' 642 SAY' Resource: "'SMBObj.resname'"'643 SAY' Comment: "'SMBObj.comment'"'644 SAY' Type: "'SMBObj.udatatype'"'645 SAY' Message: "'SMBObj.udatamsg'"'646 SAY' Icon: "'SMBObj.icon'"'647 end 648 649 IF options.!debug == 1 THEN SAYtime()' _GetSMBObjectProperties done'642 say ' Resource: "'SMBObj.resname'"' 643 say ' Comment: "'SMBObj.comment'"' 644 say ' Type: "'SMBObj.udatatype'"' 645 say ' Message: "'SMBObj.udatamsg'"' 646 say ' Icon: "'SMBObj.icon'"' 647 end 648 649 if options.!debug == 1 then say time()' _GetSMBObjectProperties done' 650 650 return 651 651 … … 684 684 */ 685 685 _GUIInit: 686 IF options.!debug == 1 THEN SAYtime()' _GUIInit started'686 if options.!debug == 1 then say time()' _GUIInit started' 687 687 CALL VRSet 'Main', 'HelpFile', settings.!helpfile 688 688 … … 771 771 margin = ((VRGet("Main", "InteriorLeft") / 3) * 2) + 2 772 772 773 IF options.!debug == 1 THEN SAYtime()' _GUIInit done'773 if options.!debug == 1 then say time()' _GUIInit done' 774 774 return 775 775 … … 777 777 */ 778 778 _INILoad: 779 IF options.!debug == 1 THEN SAYtime()' _INILoad started'779 if options.!debug == 1 then say time()' _INILoad started' 780 780 781 781 /* Locate the profile */ … … 785 785 settings.!ini = inipath'\evfsgui.ini' 786 786 drop os2_ini inipath 787 IF options.!debug == 1 THEN SAY' EVFSGUI INIfile = "'settings.!ini'"'787 if options.!debug == 1 then say ' EVFSGUI INIfile = "'settings.!ini'"' 788 788 789 789 settings.!network = "" … … 797 797 IF STREAM( settings.!ini, 'C', 'QUERY EXISTS') == '' THEN DO 798 798 /* First start */ 799 IF options.!debug == 1 THENsay " First start!"799 if options.!debug == 1 then say " First start!" 800 800 801 801 advanced.!browseauth = 0 … … 880 880 options.!debug = VRGetIni('Settings', 'Debug', settings.!ini) 881 881 IF options.!debug == '' THEN options.!debug = 0 /* Turn off debug by default for release builds */ 882 IF options.!debug == 1 THENok = VRRedirectStdIO("ON")882 if options.!debug == 1 then ok = VRRedirectStdIO("ON") 883 883 else ok = VRRedirectStdio("OFF") 884 884 … … 945 945 946 946 /* in non debug versions this is normally not visible */ 947 IF options.!debug == 1 THEN SAY' NLV MessageFile = "'settings.!messages'"'948 IF options.!debug == 1 THEN SAY' NLV HelpFile = "'settings.!helpfile'"'949 950 IF options.!debug == 1 THEN SAYtime()' _INILoad done'947 if options.!debug == 1 then say ' NLV MessageFile = "'settings.!messages'"' 948 if options.!debug == 1 then say ' NLV HelpFile = "'settings.!helpfile'"' 949 950 if options.!debug == 1 then say time()' _INILoad done' 951 951 RETURN 952 952 … … 954 954 */ 955 955 _INISave: PROCEDURE EXPOSE settings. options. icons. fs. advanced. cd. samba. 956 IF options.!debug == 1 THEN SAYtime()' '||"SaveSettings started"956 if options.!debug == 1 then say time()' '||"SaveSettings started" 957 957 958 958 if advanced.!savepassive then call _PassiveSave … … 1010 1010 CALL VRSetIni 'Settings', 'S', settings.!s, settings.!ini 1011 1011 1012 IF options.!debug == 1 THEN SAYtime()' '||"SaveSettings done"1012 if options.!debug == 1 then say time()' '||"SaveSettings done" 1013 1013 RETURN 1014 1014 … … 1127 1127 */ 1128 1128 _ParseCommandLine: 1129 IF options.!debug == 1 THEN SAYtime()' _ParseCommandLine() started'1129 if options.!debug == 1 then say time()' _ParseCommandLine() started' 1130 1130 CmdLine = VRGet("Application","Commandline") 1131 1131 upCmdLine = translate(CmdLine) 1132 IF options.!debug == 1 THEN SAY' Commandline = "'CmdLine'"'1132 if options.!debug == 1 then say ' Commandline = "'CmdLine'"' 1133 1133 1134 1134 ForceNDFS = 0 1135 1135 if wordpos('-NDFS',upCmdLine) > 0 then do 1136 IF options.!debug == 1 THEN SAY" NDFS switch detected"1136 if options.!debug == 1 then say " NDFS switch detected" 1137 1137 CmdLine = delWord(CmdLine,wordpos('-NDFS',upCmdLine),1) 1138 1138 upCmdLine = translate(CmdLine) … … 1143 1143 if wordpos('-AUTOCLOSE',upCmdLine) > 0 then do 1144 1144 options.!autoclose = 1 1145 IF options.!debug == 1 THEN SAY" AutoClose switch detected"1145 if options.!debug == 1 then say " AutoClose switch detected" 1146 1146 CmdLine = delWord(CmdLine,wordpos('-AUTOCLOSE',upCmdLine),1) 1147 1147 upCmdLine = translate(CmdLine) … … 1150 1150 options.!nogui = 1 1151 1151 options.!autoclose = 1 1152 IF options.!debug == 1 THEN SAY" -NOGUI switch detected"1152 if options.!debug == 1 then say " -NOGUI switch detected" 1153 1153 CmdLine = delWord(CmdLine,wordpos('-NOGUI',upCmdLine),1) 1154 1154 upCmdLine = translate(CmdLine) … … 1157 1157 if wordpos('-TIMESYNC',upCmdLine) > 0 then do 1158 1158 options.!timesync = 1 1159 IF options.!debug == 1 THEN SAY" -TIMESYNC switch detected"1159 if options.!debug == 1 then say " -TIMESYNC switch detected" 1160 1160 dwpos = wordpos('-TIMESYNC',upCmdLine) 1161 1161 if dwpos = words(upCmdLine) then do /* TIMESYNC was last parm - assume automatic */ … … 1177 1177 1178 1178 if wordpos('-DELAY',upCmdLine) > 0 then do 1179 IF options.!debug == 1 THEN SAY" DELAY switch detected"1179 if options.!debug == 1 then say " DELAY switch detected" 1180 1180 dwpos = wordpos('-DELAY',upCmdLine) 1181 1181 if dwpos = words(upCmdLine) then do /* DELAY was last parm - assume 60 seconds */ … … 1194 1194 end 1195 1195 upCmdLine = translate(CmdLine) 1196 IF options.!debug == 1 THEN SAY" DELAY set to "options.!delay" seconds."1196 if options.!debug == 1 then say " DELAY set to "options.!delay" seconds." 1197 1197 end 1198 1198 … … 1201 1201 Profile = strip(VRParseFilename(Profile,"DPNE")) 1202 1202 options.!autoload = 1 1203 IF options.!debug == 1 THEN SAY' Profile = "'Profile'"'1203 if options.!debug == 1 then say ' Profile = "'Profile'"' 1204 1204 if \VRFileExists(Profile) then do 1205 1205 CALL VRMessage 'Main', NLVGetMessage( 102, Profile ), NLVGetMessage( 1 ), 'E' … … 1211 1211 end 1212 1212 end 1213 IF options.!debug == 1 THEN SAYtime()' _ParseCommandLine done'1213 if options.!debug == 1 then say time()' _ParseCommandLine done' 1214 1214 return 1215 1215 … … 1217 1217 */ 1218 1218 _PassiveLoad: 1219 IF options.!debug == 1 THEN SAYtime()' '||"_PassiveLoad started"1219 if options.!debug == 1 then say time()' '||"_PassiveLoad started" 1220 1220 1221 1221 do cnt = 1 to 255 … … 1224 1224 1225 1225 PARSE Var resdata p_mpoint resource rwFlag 1226 IF options.!debug == 1 THENdo1226 if options.!debug == 1 then do 1227 1227 say " resdata ="resdata 1228 1228 say " p_mpoint ="p_mpoint … … 1244 1244 1245 1245 cd.lastrh = VRMethod("CN_CONDET","AddRecord") 1246 IF options.!debug == 1 THENsay " cd.lastrh = "cd.lastrh1246 if options.!debug == 1 then say " cd.lastrh = "cd.lastrh 1247 1247 1248 1248 ok = VRMethod("CN_CONDET", "SetFieldData", cd.lastrh, cd.mpointFH, p_mpoint, cd.mpidxfh, p_mpidx) … … 1264 1264 1265 1265 end 1266 IF options.!debug == 1 THEN SAYtime()' '||"_PassiveLoad done"1266 if options.!debug == 1 then say time()' '||"_PassiveLoad done" 1267 1267 return 1268 1268 /*:VRX _PassiveSave 1269 1269 */ 1270 1270 _PassiveSave: 1271 IF options.!debug == 1 THEN SAYtime()' '||"_PassiveSave started"1271 if options.!debug == 1 then say time()' '||"_PassiveSave started" 1272 1272 ok = VRDelIni( "PassiveConnections", "ALL", settings.!ini ) 1273 1273 … … 1305 1305 else iterate 1306 1306 end 1307 IF options.!debug == 1 THEN SAYtime()' '||"_PassiveSave done"1307 if options.!debug == 1 then say time()' '||"_PassiveSave done" 1308 1308 return 1309 1309 … … 1394 1394 */ 1395 1395 _SmbConfCreateShadowCopy: 1396 IF options.!debug == 1 THEN SAYtime()' _SmbConfCreateShadowCopy started'1396 if options.!debug == 1 then say time()' _SmbConfCreateShadowCopy started' 1397 1397 /* we create a complete version of smb.conf in temporary directory for reading purposes */ 1398 1398 /* as we can only determine a default value from this complete version of the file */ … … 1401 1401 say ' 'samba.!testparmexe' -v -s 1>'samba.!shadowsmbconf' 2>'TempDir'testparm.stderr' 1402 1402 address cmd samba.!testparmexe' -v -s 1>'samba.!shadowsmbconf' 2>'TempDir'testparm.stderr' 1403 IF options.!debug == 1 THEN SAYtime()' _SmbConfCreateShadowCopy done'1403 if options.!debug == 1 then say time()' _SmbConfCreateShadowCopy done' 1404 1404 return 1405 1405 … … 1413 1413 */ 1414 1414 _StemsInit: 1415 IF options.!debug == 1 THEN SAYtime()' _StemsInit started'1416 IF options.!debug == 1 THEN SAY' initializing options.'1415 if options.!debug == 1 then say time()' _StemsInit started' 1416 if options.!debug == 1 then say ' initializing options.' 1417 1417 options.!workgroup = '' 1418 1418 options.!server = '' … … 1441 1441 options.!timesrv = '' 1442 1442 1443 IF options.!debug == 1 THEN SAY' initializing vfs. '1443 if options.!debug == 1 then say ' initializing vfs. ' 1444 1444 vfs.!drive = '' 1445 1445 vfs.!mountpoint = '' 1446 1446 1447 IF options.!debug == 1 THEN SAY' initializing advanced. '1447 if options.!debug == 1 then say ' initializing advanced. ' 1448 1448 advanced.!browseauth = '' 1449 1449 advanced.!browseimme = '' … … 1466 1466 advanced.!logfile = '' 1467 1467 1468 IF options.!debug == 1 THEN SAY' initializing credentials. '1468 if options.!debug == 1 then say ' initializing credentials. ' 1469 1469 credentials.!username = "" 1470 1470 credentials.!password = "" … … 1474 1474 RefreshMode = "" 1475 1475 1476 IF options.!debug == 1 THEN SAY' initializing mtype. '1476 if options.!debug == 1 then say ' initializing mtype. ' 1477 1477 mtype.0 = 4 1478 1478 mtype.1 = NLVGetMessage( 15 ) … … 1481 1481 mtype.4 = NLVGetMessage( 18 ) 1482 1482 1483 IF options.!debug == 1 THEN SAY' initializing icons. '1483 if options.!debug == 1 then say ' initializing icons. ' 1484 1484 icons.!bat = '#1:PMWP.DLL' 1485 1485 icons.!cmd = '#2:PMWP.DLL' … … 1510 1510 icons.!plaintext = '#94' 1511 1511 1512 IF options.!debug == 1 THEN SAYtime()' _StemsInit done'1512 if options.!debug == 1 then say time()' _StemsInit done' 1513 1513 return 1514 1514 /*:VRX _TabbedDialogSetup 1515 1515 */ 1516 1516 _TabbedDialogSetup: 1517 IF options.!debug == 1 THEN SAYtime()' _TabbedDialogSetup started'1517 if options.!debug == 1 then say time()' _TabbedDialogSetup started' 1518 1518 1519 1519 w = VRLoad( "TDL_1", VRWindowPath(), "SW_DIALOG" ) … … 1531 1531 w = VRLoad( "TDL_1", VRWindowPath(), "SW_SETTINGS" ) 1532 1532 ok = VRMethod( "TDL_1", "InsertPage", w,"+ "NLVGetMessage(47)" ") 1533 IF options.!debug == 1 THEN SAYtime()' _TabbedDialogSetup done'1533 if options.!debug == 1 then say time()' _TabbedDialogSetup done' 1534 1534 return 1535 1535 … … 1554 1554 */ 1555 1555 _TimeSync: 1556 IF options.!debug == 1 THEN SAYtime()' _TimeSync started, "'options.!timesrv'"'1556 if options.!debug == 1 then say time()' _TimeSync started, "'options.!timesrv'"' 1557 1557 if options.!timesrv <> '' then do 1558 1558 say ' 'samba.!netexe' time set -S 'options.!timesrv … … 1564 1564 end 1565 1565 options.!timesync = '' 1566 IF options.!debug == 1 THEN SAYtime()' _TimeSync done'1566 if options.!debug == 1 then say time()' _TimeSync done' 1567 1567 return 1568 1568 … … 1578 1578 */ 1579 1579 _UserCredUpdate: 1580 IF options.!debug == 1 THEN SAYtime()' _UserCredUpdate started'1580 if options.!debug == 1 then say time()' _UserCredUpdate started' 1581 1581 credentials.!username = VRGet("EF_USER","Value") 1582 1582 credentials.!password = VRGet("EF_PASSWORD","Value") … … 1588 1588 if options.!storecreds = 1 & \(UserCred = 'USERCRED' | UserCred = '' | UserCred = '--user=%' | UserCred = '-N') then do 1589 1589 ok = _ucSetUc() 1590 call beep 2400, 10 1591 end 1592 else call beep 200, 20 1593 IF options.!debug == 1 THEN SAY time()' _UserCredUpdate done' 1590 ok = VRSet("Pict_PWINMEM","PicturePath","#36") 1591 if options.!debug == 1 then call beep 2400, 10 1592 end 1593 else do 1594 if options.!debug == 1 then call beep 200, 20 1595 ok = VRSet("Pict_PWINMEM","PicturePath","#37") 1596 end 1597 if options.!debug == 1 then say time()' _UserCredUpdate done' 1594 1598 return 1595 1599 … … 1616 1620 */ 1617 1621 CB_MOUNT_Change: 1618 IF options.!debug == 1 THEN SAYtime()' '||"CB_MOUNT_Change started"1622 if options.!debug == 1 then say time()' '||"CB_MOUNT_Change started" 1619 1623 1620 1624 mount = VRGet("CB_MOUNT", "Value") … … 1654 1658 END 1655 1659 END 1656 IF options.!debug == 1 THEN SAYtime()' '||"CB_MOUNT_Change done"1660 if options.!debug == 1 then say time()' '||"CB_MOUNT_Change done" 1657 1661 RETURN 1658 1662 … … 1709 1713 */ 1710 1714 CN_CURRENT_Click: 1711 IF options.!debug == 1 THEN SAYtime()' CN_CURRENT_Click started'1715 if options.!debug == 1 then say time()' CN_CURRENT_Click started' 1712 1716 /* ok = VRset("DT_StatusBar","Caption", VRGet("Main", "HintText")) */ 1713 1717 … … 1725 1729 PARSE VAR data p_node ';' p_mounts ';' p_string 1726 1730 1727 IF options.!debug == 1 THENdo1728 SAY' data = "'data'"'1729 SAY' p_node = "'p_node'"'1730 SAY' p_mounts = "'p_mounts'"'1731 SAY' p_string = "'p_string'"'1731 if options.!debug == 1 then do 1732 say ' data = "'data'"' 1733 say ' p_node = "'p_node'"' 1734 say ' p_mounts = "'p_mounts'"' 1735 say ' p_string = "'p_string'"' 1732 1736 end 1733 1737 … … 1797 1801 end 1798 1802 end 1799 IF options.!debug == 1 THEN SAYtime()' CN_CURRENT_Click done'1803 if options.!debug == 1 then say time()' CN_CURRENT_Click done' 1800 1804 RETURN 1801 1805 … … 1803 1807 */ 1804 1808 CN_CURRENT_ContextMenu: /* PROCEDURE EXPOSE existrec. options. icons. fs. */ 1805 IF options.!debug == 1 THEN SAYtime()' '||"CN_CURRENT_ContextMenu started"1809 if options.!debug == 1 then say time()' '||"CN_CURRENT_ContextMenu started" 1806 1810 1807 1811 CALL VRSet "TM_AUTOCLOSE", "ENABLED", 0 … … 1813 1817 removed */ 1814 1818 if VRMethod( "CN_CURRENT", "ValidateRecord", rh) <> 1 then do 1815 IF options.!debug == 1 THEN SAYtime()' '||"CN_CURRENT_ContextMenu aborted"1819 if options.!debug == 1 then say time()' '||"CN_CURRENT_ContextMenu aborted" 1816 1820 return 1817 1821 end … … 1820 1824 PARSE VAR data p_node ';' p_mounts ';' p_string 1821 1825 1822 IF options.!debug == 1 THENdo1823 SAY' data = "'data'"'1824 SAY' p_node = "'p_node'"'1825 SAY' p_mounts = "'p_mounts'"'1826 SAY' p_string = "'p_string'"'1826 if options.!debug == 1 then do 1827 say ' data = "'data'"' 1828 say ' p_node = "'p_node'"' 1829 say ' p_mounts = "'p_mounts'"' 1830 say ' p_string = "'p_string'"' 1827 1831 end 1828 1832 /* … … 1881 1885 1882 1886 ok = VRMethod( "Menu_Context", "Popup", , , "", "" ) 1883 IF options.!debug == 1 THEN SAYtime()' '||"CN_CURRENT_ContextMenu done"1887 if options.!debug == 1 then say time()' '||"CN_CURRENT_ContextMenu done" 1884 1888 return 1885 1889 … … 1887 1891 */ 1888 1892 CN_CURRENT_DoubleClick: 1889 IF options.!debug == 1 THEN SAYtime()' '||"CN_CURRENT_DoubleClick started"1893 if options.!debug == 1 then say time()' '||"CN_CURRENT_DoubleClick started" 1890 1894 1891 1895 CALL VRSet "TM_AUTOCLOSE", "ENABLED", 0 … … 1897 1901 removed */ 1898 1902 if VRMethod( "CN_CURRENT", "ValidateRecord", rh) <> 1 then do 1899 IF options.!debug == 1 THEN SAYtime()' '||"CN_CURRENT_DoubleClick aborted"1903 if options.!debug == 1 then say time()' '||"CN_CURRENT_DoubleClick aborted" 1900 1904 return 1901 1905 end … … 1904 1908 PARSE VAR data p_node ';' p_mounts ';' p_string 1905 1909 1906 IF options.!debug == 1 THENdo1907 SAY' data = "'data'"'1908 SAY' p_node = "'p_node'"'1909 SAY' p_mounts = "'p_mounts'"'1910 SAY' p_string = "'p_string'"'1910 if options.!debug == 1 then do 1911 say ' data = "'data'"' 1912 say ' p_node = "'p_node'"' 1913 say ' p_mounts = "'p_mounts'"' 1914 say ' p_string = "'p_string'"' 1911 1915 end 1912 1916 call Menu_Context_Open_Default_Click 1913 1917 1914 IF options.!debug == 1 THEN SAYtime()' '||"CN_CURRENT_DoubleClick done"1918 if options.!debug == 1 then say time()' '||"CN_CURRENT_DoubleClick done" 1915 1919 return 1916 1920 … … 1918 1922 */ 1919 1923 CN_CURRENT_DragDrop: 1920 IF options.!debug == 1 THEN SAYtime()' CN_CURRENT_DragDrop started'1924 if options.!debug == 1 then say time()' CN_CURRENT_DragDrop started' 1921 1925 ok = VRSet("TM_RefreshCurrentDisplay","Enabled", 0) 1922 IF options.!debug == 1 THENsay " settings.!network = "settings.!network1926 if options.!debug == 1 then say " settings.!network = "settings.!network 1923 1927 1924 1928 p_workgroup = '' … … 1932 1936 trgRec = VRInfo( "TargetRecord" ) 1933 1937 1934 IF options.!debug == 1 THENdo1938 if options.!debug == 1 then do 1935 1939 say ' srcFile = "'srcFile'"' 1936 1940 say ' srcCtn = "'srcCtn'"' … … 1943 1947 1944 1948 if srcFile <> "" then do /* A file was dropped onto the container - attempt to load it */ 1945 IF options.!debug == 1 THENsay ' Possible profile dropped: "'srcFile'"'1949 if options.!debug == 1 then say ' Possible profile dropped: "'srcFile'"' 1946 1950 1947 1951 /* was it really a profile ? */ … … 1957 1961 ok = VRMessage('Main', NLVGetMessage(103,srcFile ), NLVGetMessage(5), 'E','buttons.') 1958 1962 end 1959 IF options.!debug == 1 THEN SAYtime()' CN_CURRENT_DragDrop done (load profile)'1963 if options.!debug == 1 then say time()' CN_CURRENT_DragDrop done (load profile)' 1960 1964 return 1961 1965 end … … 2029 2033 end /* Drag from CN_SMBTREE */ 2030 2034 2031 IF options.!debug == 1 THENdo2035 if options.!debug == 1 then do 2032 2036 say 'p_workgroup = "'p_workgroup'"' 2033 2037 say 'p_server = "'p_server'"' … … 2072 2076 if VRMethod("CN_CONDET", "GetRecordAttr", srcRec, "Icon") = icons.!passive then ok = VRMethod( "CN_CONDET", "RemoveRecord", srcRec) 2073 2077 end 2074 IF options.!debug == 1 THEN SAYtime()' CN_CURRENT_DragDrop done'2078 if options.!debug == 1 then say time()' CN_CURRENT_DragDrop done' 2075 2079 return 2076 2080 /*:VRX CN_SMBTREE_Click 2077 2081 */ 2078 2082 CN_SMBTREE_Click: 2079 IF options.!debug == 1 THEN SAYtime()' CN_SMBTREE_Click started'2083 if options.!debug == 1 then say time()' CN_SMBTREE_Click started' 2080 2084 /* ok = VRset("DT_StatusBar","Caption", VRGet("Main", "HintText")) */ 2081 2085 … … 2086 2090 ok = VRset("DT_Statusbar", "Caption", SMBObj.udatamsg) 2087 2091 2088 IF options.!debug == 1 THEN SAYtime()' CN_SMBTREE_Click done'2092 if options.!debug == 1 then say time()' CN_SMBTREE_Click done' 2089 2093 return 2090 2094 /*:VRX CN_SMBTREE_ContextMenu 2091 2095 */ 2092 2096 CN_SMBTREE_ContextMenu: 2093 IF options.!debug == 1 THEN SAYtime()' CN_SMBTREE_ContextMenu started'2097 if options.!debug == 1 then say time()' CN_SMBTREE_ContextMenu started' 2094 2098 2095 2099 call _dropdeprecated … … 2099 2103 ok = VRMethod( "Menu_Selected", "Popup", , , "", "" ) 2100 2104 2101 IF options.!debug == 1 THEN SAYtime()' CN_SMBTREE_ContextMenu done'2105 if options.!debug == 1 then say time()' CN_SMBTREE_ContextMenu done' 2102 2106 return 2103 2107 /*:VRX CN_SMBTREE_DoubleClick 2104 2108 */ 2105 2109 CN_SMBTREE_DoubleClick: 2106 IF options.!debug == 1 THEN SAYtime()' CN_SMBTREE_DoubleClick started'2110 if options.!debug == 1 then say time()' CN_SMBTREE_DoubleClick started' 2107 2111 2108 2112 call _dropdeprecated 2109 2113 call _GetSmbObjectProperties VRInfo('Record') 2110 2114 2111 /* IF options.!debug == 1 THEN SAYtime()' CN_SMBTREE_DoubleClick done'2115 /* if options.!debug == 1 then say time()' CN_SMBTREE_DoubleClick done' 2112 2116 return */ 2113 2117 /* Enable last 2 lines for 2.0.x (to disable on the fly browsing) */ 2114 2118 2115 IF options.!debug == 1 THEN SAY' Browsing "'SMBObj.udatatype'"'2119 if options.!debug == 1 then say ' Browsing "'SMBObj.udatatype'"' 2116 2120 2117 2121 If SMBObj.udatatype = "DIRECTORY" then do … … 2160 2164 call _BrowseDirectory 2161 2165 end 2162 IF options.!debug == 1 THEN SAYtime()' CN_SMBTREE_DoubleClick done'2166 if options.!debug == 1 then say time()' CN_SMBTREE_DoubleClick done' 2163 2167 return 2164 2168 /*:VRX CN_SMBTREE_DragFile 2165 2169 */ 2166 2170 CN_SMBTREE_DragFile: 2167 IF options.!debug == 1 THEN SAYtime()' CN_SMBTREE_DragFile started'2171 if options.!debug == 1 then say time()' CN_SMBTREE_DragFile started' 2168 2172 2169 2173 obj = VRInfo( "object" ) … … 2171 2175 ok = VRMethod( "CN_SMBTREE", "GetRecordList", "SourceOrSelected", "SelRH." ) 2172 2176 if SelRH.0 = 0 then do 2173 IF options.!debug == 1 THEN SAYtime()' CN_SMBTREE_DragStart aborted'2177 if options.!debug == 1 then say time()' CN_SMBTREE_DragStart aborted' 2174 2178 return 2175 2179 end … … 2188 2192 end 2189 2193 2190 IF options.!debug == 1 THEN SAYtime()' CN_SMBTREE_DragFile done'2194 if options.!debug == 1 then say time()' CN_SMBTREE_DragFile done' 2191 2195 return 2192 2196 … … 2194 2198 */ 2195 2199 CN_SMBTREE_DragStart: 2196 IF options.!debug == 1 THEN SAYtime()' CN_SMBTREE_DragStart started'2200 if options.!debug == 1 then say time()' CN_SMBTREE_DragStart started' 2197 2201 2198 2202 obj = VRInfo( "object" ) … … 2200 2204 ok = VRMethod( "CN_SMBTREE", "GetRecordList", "SourceOrSelected", "SelRH." ) 2201 2205 if SelRH.0 = 0 then do 2202 IF options.!debug == 1 THEN SAYtime()' CN_SMBTREE_DragStart aborted'2206 if options.!debug == 1 then say time()' CN_SMBTREE_DragStart aborted' 2203 2207 return 2204 2208 end … … 2217 2221 end 2218 2222 2219 IF options.!debug == 1 THEN SAYtime()' CN_SMBTREE_DragStart done'2223 if options.!debug == 1 then say time()' CN_SMBTREE_DragStart done' 2220 2224 return 2221 2225 /*:VRX CreateObject … … 2223 2227 CreateObject: procedure 2224 2228 Parse Arg Class, Title, Location, Setup, Collision 2225 /* Say 'Creating ['Title']' */2229 /* say 'Creating ['Title']' */ 2226 2230 say Setup 2227 2231 rc = SysCreateObject( Class, Title, Location, Setup, Collision ) … … 2241 2245 */ 2242 2246 EF_PASSWORD1_KeyPress: 2243 IF options.!debug == 1 THEN SAYtime()' EF_PASSWORD1_KeyPress started'2247 if options.!debug == 1 then say time()' EF_PASSWORD1_KeyPress started' 2244 2248 obj = VRInfo( "Object" ) 2245 2249 keystr = VRGet( obj, "KeyString" ) … … 2251 2255 otherwise nop 2252 2256 end 2253 IF options.!debug == 1 THEN SAYtime()' EF_PASSWORD1_KeyPress done'2257 if options.!debug == 1 then say time()' EF_PASSWORD1_KeyPress done' 2254 2258 return 2255 2259 … … 2268 2272 */ 2269 2273 EF_SERVER_Change: 2270 IF options.!debug == 1 THEN SAYtime()' EF_SERVER_Change started'2274 if options.!debug == 1 then say time()' EF_SERVER_Change started' 2271 2275 Now = VRGet("EF_SERVER","value") 2272 2276 say now' 'LastServer … … 2314 2318 2315 2319 LastServer = VRGet("EF_SERVER","value") 2316 IF options.!debug == 1 THEN SAYtime()' EF_SERVER_Change done'2320 if options.!debug == 1 then say time()' EF_SERVER_Change done' 2317 2321 return 2318 2322 … … 2320 2324 */ 2321 2325 EF_USER1_KeyPress: 2322 IF options.!debug == 1 THEN SAYtime()' EF_USER1_KeyPress started'2326 if options.!debug == 1 then say time()' EF_USER1_KeyPress started' 2323 2327 obj = VRInfo( "Object" ) 2324 2328 keystr = VRGet( obj, "KeyString" ) … … 2330 2334 otherwise nop 2331 2335 end 2332 IF options.!debug == 1 THEN SAYtime()' EF_USER1_KeyPress done'2336 if options.!debug == 1 then say time()' EF_USER1_KeyPress done' 2333 2337 return 2334 2338 … … 2337 2341 EF_USER_Change: 2338 2342 Now = VRGet("EF_USER","value") 2339 if Now = "" | Now = LastUser then return2343 if Now = "" | Now = LastUser then return 2340 2344 ok = SysSleep(1) 2341 2345 LastUser = Now … … 2361 2365 */ 2362 2366 GetChildren: PROCEDURE EXPOSE existrec. exc options. icons. fs. cd. samba. 2363 IF options.!debug == 1 THEN SAYtime()' GetChildren started'2367 if options.!debug == 1 then say time()' GetChildren started' 2364 2368 PARSE ARG node, parec 2365 2369 … … 2388 2392 CALL GetChildren childnode, rh 2389 2393 END 2390 IF options.!debug == 1 THEN SAYtime()' GetChildren done'2394 if options.!debug == 1 then say time()' GetChildren done' 2391 2395 RETURN 2392 2396 … … 2394 2398 */ 2395 2399 GetMountPoints: PROCEDURE EXPOSE existrec. options. icons. fs. cd. samba. 2396 IF options.!debug == 1 THEN SAYtime()' GetMountPoints started'2400 if options.!debug == 1 then say time()' GetMountPoints started' 2397 2401 /* CALL VRSet "CN_CURRENT", 'Painting', 0 */ 2398 /* IF options.!debug == 1 THEN SAYtime()' '||"GetMountPoints: SysDriveMap(USED) started" */2402 /* if options.!debug == 1 then say time()' '||"GetMountPoints: SysDriveMap(USED) started" */ 2399 2403 drvs = SysDriveMap('C:', 'USED') /* was "REMOTE" */ 2400 /* IF options.!debug == 1 THEN SAYtime()' '||"GetMountPoints: SysDriveMap(USED) done" */2404 /* if options.!debug == 1 then say time()' '||"GetMountPoints: SysDriveMap(USED) done" */ 2401 2405 ac = 0 2402 2406 DO i = 1 TO WORDS( drvs ) … … 2429 2433 userdata = ParseResourceData( userdata, res.j ) 2430 2434 END 2431 /* IF options.!debug == 1 THENsay ' "'attached.i'" "'userdata'"' */2435 /* if options.!debug == 1 then say ' "'attached.i'" "'userdata'"' */ 2432 2436 CALL VRMethod "CN_CURRENT", 'SetRecordAttr', rh, 'UserData', userdata 2433 2437 if options.currentdata = userdata then ok = VRMethod("CN_CURRENT", 'SetRecordAttr', rh, 'Selected', 1) … … 2443 2447 existrec.0 = exc 2444 2448 /* CALL VRSet "CN_CURRENT", 'Painting', 1 */ 2445 IF options.!debug == 1 THEN SAYtime()' '||"GetMountPoints done"2449 if options.!debug == 1 then say time()' '||"GetMountPoints done" 2446 2450 RETURN 2447 2451 … … 2468 2472 */ 2469 2473 LoadFileSysFuncs: 2470 IF options.!debug == 1 THEN SAYtime()' LoadFileSysFuncs() started'2474 if options.!debug == 1 then say time()' LoadFileSysFuncs() started' 2471 2475 2472 2476 Fatal = 1 … … 2490 2494 2491 2495 ForceNDFS: 2492 IF options.!debug == 1 THEN SAY' NDFS check entered'2496 if options.!debug == 1 then say ' NDFS check entered' 2493 2497 call RxFuncAdd 'NdRxLoadFuncs', 'NDCALLS', 'NdRxLoadFuncs' 2494 2498 SIGNAL ON SYNTAX NAME NoNetdrive … … 2501 2505 signal CommonToBothFS 2502 2506 NoNetdrive: 2503 IF options.!debug == 1 THEN SAY' NDFS not found'2507 if options.!debug == 1 then say ' NDFS not found' 2504 2508 CALL RxFuncAdd 'EvfsRxLoadFuncs', 'EVFSCALL.DLL', 'EvfsRxLoadFuncs' 2505 2509 SIGNAL ON SYNTAX NAME NoEVFSCALL … … 2511 2515 fs.!profileext = "evp" 2512 2516 CommonToBothFS: 2513 IF options.!debug == 1 THEN SAY' Common version check'2517 if options.!debug == 1 then say ' Common version check' 2514 2518 CALL _Dynamic "fsstat = "fs.!prefix"RxQueryIFS()" 2515 2519 if fsstat = 252 then CALL _Dynamic "Found"fs.!prefix" = 0" … … 2520 2524 fs.!version = fsver 2521 2525 2522 IF options.!debug == 1 THENDO2526 if options.!debug == 1 then DO 2523 2527 say ' fs.!prefix = 'fs.!prefix 2524 2528 say ' fs.!name = 'fs.!Name … … 2549 2553 Fatal = 0 2550 2554 2551 IF options.!debug == 1 THEN SAYtime()' LoadFileSysFuncs() done'2555 if options.!debug == 1 then say time()' LoadFileSysFuncs() done' 2552 2556 return 2553 2557 … … 2562 2566 Main_Create: 2563 2567 options.!debug = 0 2564 IF options.!debug == 1 THENdo2568 if options.!debug == 1 then do 2565 2569 ok = VRRedirectStdIO("ON") 2566 2570 say time()' Main_Create started' … … 2611 2615 end 2612 2616 2613 IF options.!debug == 1 THEN SAYtime()' Main_Create done'2617 if options.!debug == 1 then say time()' Main_Create done' 2614 2618 return 2615 2619 … … 2624 2628 */ 2625 2629 Main_Resize: 2626 IF options.!debug == 1 THEN SAYtime()' Main_Resize started'2630 if options.!debug == 1 then say time()' Main_Resize started' 2627 2631 ok = VRset("Main","Painting", 0) 2628 2632 … … 2838 2842 if TrashedResize then CALL Main_Resize 2839 2843 2840 IF options.!debug == 1 THEN SAYtime()' Main_Resize done'2844 if options.!debug == 1 then say time()' Main_Resize done' 2841 2845 return 2842 2846 /*:VRX Menu_Context_ChangeView_Click … … 2866 2870 */ 2867 2871 Menu_Context_Edit_Click: 2868 IF options.!debug == 1 THEN SAYtime()' Menu_Context_Edit_Click started'2872 if options.!debug == 1 then say time()' Menu_Context_Edit_Click started' 2869 2873 /* call VRMethod "TDL_1", 'PostEvent', 'PageSelected', 'Page', 1 */ 2870 2874 ok = VRset("TDL_1", 'Selected', 1) … … 2883 2887 parse var p_string p_workgroup':\\'p_server'\'p_share 2884 2888 2885 /* IF options.!debug == 1 THEN SAYtime()' '||p_workgroup */2886 2887 IF options.!debug == 1 THEN SAYtime()' data '||data2888 IF options.!debug == 1 THEN SAYtime()' domain '||p_workgroup2889 IF options.!debug == 1 THEN SAYtime()' server '||p_server2890 IF options.!debug == 1 THEN SAYtime()' share '||p_share2891 IF options.!debug == 1 THEN SAYtime()' string '||p_string2889 /* if options.!debug == 1 then say time()' '||p_workgroup */ 2890 2891 if options.!debug == 1 then say time()' data '||data 2892 if options.!debug == 1 then say time()' domain '||p_workgroup 2893 if options.!debug == 1 then say time()' server '||p_server 2894 if options.!debug == 1 then say time()' share '||p_share 2895 if options.!debug == 1 then say time()' string '||p_string 2892 2896 2893 2897 … … 2896 2900 CALL VRSet "EF_NETWORK","VALUE", p_workgroup 2897 2901 2898 /* IF options.!debug == 1 THEN SAYtime()' '||p_node */2902 /* if options.!debug == 1 then say time()' '||p_node */ 2899 2903 parse var p_node p_drive'\'p_directory'\' 2900 2904 CALL VRSet "CB_DRIVES", "Value", p_drive 2901 2905 CALL VRSet "EF_DIRECTORY", "Value", p_directory 2902 IF options.!debug == 1 THEN SAYtime()' Menu_Context_Edit_Click done'2906 if options.!debug == 1 then say time()' Menu_Context_Edit_Click done' 2903 2907 return 2904 2908 … … 2912 2916 */ 2913 2917 Menu_Context_Open_Default_Click: 2914 IF options.!debug == 1 THEN SAYtime()' '||"Menu_Context_Open_Click started"2918 if options.!debug == 1 then say time()' '||"Menu_Context_Open_Click started" 2915 2919 userdata = VRMethod( "CN_CURRENT", 'GetRecordAttr', rh, 'UserData') 2916 2920 PARSE VAR userdata mountpoint ';' mounts ';' . … … 2920 2924 ID = VRMethod( "Application", "StartThread", "wps_open", mountpoint, "DEFAULT" ) 2921 2925 2922 IF options.!debug == 1 THEN SAYtime()' '||"Menu_Context_Open_Click done"2926 if options.!debug == 1 then say time()' '||"Menu_Context_Open_Click done" 2923 2927 return 2924 2928 … … 2926 2930 */ 2927 2931 Menu_Context_Open_Detail_Click: 2928 IF options.!debug == 1 THEN SAYtime()' '||"Menu_Context_Open_Details_Click started"2932 if options.!debug == 1 then say time()' '||"Menu_Context_Open_Details_Click started" 2929 2933 userdata = VRMethod( "CN_CURRENT", 'GetRecordAttr', rh, 'UserData') 2930 2934 PARSE VAR userdata mountpoint ';' mounts ';' . … … 2934 2938 ID = VRMethod( "Application", "StartThread", "wps_open", mountpoint, "DETAILS" ) 2935 2939 2936 IF options.!debug == 1 THEN SAYtime()' '||"Menu_Context_Open_Details_Click done"2940 if options.!debug == 1 then say time()' '||"Menu_Context_Open_Details_Click done" 2937 2941 return 2938 2942 … … 2940 2944 */ 2941 2945 Menu_Context_Open_Icon_Click: 2942 IF options.!debug == 1 THEN SAYtime()' '||"Menu_Context_Open_Icon_Click started"2946 if options.!debug == 1 then say time()' '||"Menu_Context_Open_Icon_Click started" 2943 2947 userdata = VRMethod( "CN_CURRENT", 'GetRecordAttr', rh, 'UserData') 2944 2948 PARSE VAR userdata mountpoint ';' mounts ';' . … … 2948 2952 ID = VRMethod( "Application", "StartThread", "wps_open", mountpoint, "ICON" ) 2949 2953 2950 IF options.!debug == 1 THEN SAYtime()' '||"Menu_Context_Open_Icon_Click done"2954 if options.!debug == 1 then say time()' '||"Menu_Context_Open_Icon_Click done" 2951 2955 return 2952 2956 … … 2954 2958 */ 2955 2959 Menu_Context_Open_Settings_Click: 2956 IF options.!debug == 1 THEN SAYtime()' '||"Menu_Context_Open_DetailsClick started"2960 if options.!debug == 1 then say time()' '||"Menu_Context_Open_DetailsClick started" 2957 2961 userdata = VRMethod( "CN_CURRENT", 'GetRecordAttr', rh, 'UserData') 2958 2962 PARSE VAR userdata mountpoint ';' mounts ';' . … … 2962 2966 ID = VRMethod( "Application", "StartThread", "wps_open", mountpoint, "SETTINGS" ) 2963 2967 2964 IF options.!debug == 1 THEN SAYtime()' '||"Menu_Context_Open_Details_Click done"2968 if options.!debug == 1 then say time()' '||"Menu_Context_Open_Details_Click done" 2965 2969 return 2966 2970 … … 2968 2972 */ 2969 2973 Menu_Context_Open_Splitview_Click: 2970 IF options.!debug == 1 THEN SAYtime()' '||"Menu_Context_Open_Splitview_Click started"2974 if options.!debug == 1 then say time()' '||"Menu_Context_Open_Splitview_Click started" 2971 2975 userdata = VRMethod( "CN_CURRENT", 'GetRecordAttr', rh, 'UserData') 2972 2976 PARSE VAR userdata mountpoint ';' mounts ';' . … … 2976 2980 ID = VRMethod( "Application", "StartThread", "wps_open", mountpoint, "SPLITVIEW" ) 2977 2981 2978 IF options.!debug == 1 THEN SAYtime()' '||"Menu_Context_Open_Splitview_Click done"2982 if options.!debug == 1 then say time()' '||"Menu_Context_Open_Splitview_Click done" 2979 2983 return 2980 2984 … … 2982 2986 */ 2983 2987 Menu_Context_Open_Tree_Click: 2984 IF options.!debug == 1 THEN SAYtime()' '||"Menu_Context_Open_Tree_Click started"2988 if options.!debug == 1 then say time()' '||"Menu_Context_Open_Tree_Click started" 2985 2989 userdata = VRMethod( "CN_CURRENT", 'GetRecordAttr', rh, 'UserData') 2986 2990 PARSE VAR userdata mountpoint ';' mounts ';' . … … 2990 2994 ID = VRMethod( "Application", "StartThread", "wps_open", mountpoint, "TREE" ) 2991 2995 2992 IF options.!debug == 1 THEN SAYtime()' '||"Menu_Context_Open_Tree_Click done"2996 if options.!debug == 1 then say time()' '||"Menu_Context_Open_Tree_Click done" 2993 2997 return 2994 2998 … … 3089 3093 */ 3090 3094 Menu_File_Daemon_Start_Click: 3091 IF options.!debug == 1 THEN SAYtime()' Menu_File_Daemon_Start_Click started'3095 if options.!debug == 1 then say time()' Menu_File_Daemon_Start_Click started' 3092 3096 if VRFileExists(SysBootDrive()"\ndpsmb.dbg") then do 3093 3097 btns.0 = 2 … … 3111 3115 ok = VRSet("Menu_File_Daemon_Start","Enabled",0) 3112 3116 ok = VRSet("Menu_File_Daemon_Stop","Enabled",1) 3113 IF options.!debug == 1 THEN SAYtime()' Menu_File_Daemon_Start_Click done'3117 if options.!debug == 1 then say time()' Menu_File_Daemon_Start_Click done' 3114 3118 return 3115 3119 … … 3117 3121 */ 3118 3122 Menu_File_Daemon_Stop_Click: 3119 IF options.!debug == 1 THEN SAYtime()' Menu_File_Daemon_Stop_Click started'3123 if options.!debug == 1 then say time()' Menu_File_Daemon_Stop_Click started' 3120 3124 ok = PRProcessList(proc) 3121 3125 do I = 1 to proc.0 … … 3131 3135 ok = VRSet("Menu_File_Daemon_Start","Enabled",1) 3132 3136 ok = VRSet("Menu_File_Daemon_Stop","Enabled",0) 3133 IF options.!debug == 1 THEN SAYtime()' Menu_File_Daemon_Stop_Click stopped'3137 if options.!debug == 1 then say time()' Menu_File_Daemon_Stop_Click stopped' 3134 3138 return 3135 3139 /*:VRX Menu_File_LMHosts_Reset_Click … … 3202 3206 Menu_File_ucCred_Reset_Click: 3203 3207 ok = _ucDelUc() 3208 ok = VRSet("Pict_PWINMEM","PicturePath","#37") 3209 ok = VRSet("EF_USER","Value","") 3210 ok = VRSet("EF_PASSWORD","Value","") 3204 3211 /* FIXME: Add a message box here */ 3205 3212 return … … 3240 3247 */ 3241 3248 Menu_Selected_Info_Click: 3242 IF options.!debug == 1 THEN SAYtime()' Menu_Selected_Info_Click started'3249 if options.!debug == 1 then say time()' Menu_Selected_Info_Click started' 3243 3250 3244 3251 ok = VRMethod( "CN_SMBTREE", "GetRecordList", "SourceOrSelected", "SelRH." ) 3245 3252 if SelRH.0 = 0 then do 3246 IF options.!debug == 1 THEN SAYtime()' Menu_Selected_Info_Click aborted'3253 if options.!debug == 1 then say time()' Menu_Selected_Info_Click aborted' 3247 3254 return 3248 3255 end … … 3251 3258 3252 3259 window = VRLoadSecondary( "SW_INFO", "W" ) 3253 IF options.!debug == 1 THEN SAYtime()' Menu_Selected_Info_Click done'3260 if options.!debug == 1 then say time()' Menu_Selected_Info_Click done' 3254 3261 return 3255 3262 … … 3343 3350 */ 3344 3351 Menu_Selected_TimeSync_Click: 3345 IF options.!debug == 1 THEN SAYtime()' Menu_Selected_TimeSync_Click started'3352 if options.!debug == 1 then say time()' Menu_Selected_TimeSync_Click started' 3346 3353 3347 3354 ok = VRMethod( "CN_SMBTREE", "GetRecordList", "SourceOrSelected", "SelRH." ) 3348 3355 if SelRH.0 = 0 then do 3349 IF options.!debug == 1 THEN SAYtime()' Menu_Selected_TimeSync_Click aborted'3356 if options.!debug == 1 then say time()' Menu_Selected_TimeSync_Click aborted' 3350 3357 return 3351 3358 end … … 3356 3363 call _TimeSync 3357 3364 3358 IF options.!debug == 1 THEN SAYtime()' Menu_Selected_TimeSync_Click done'3365 if options.!debug == 1 then say time()' Menu_Selected_TimeSync_Click done' 3359 3366 return 3360 3367 … … 3368 3375 */ 3369 3376 Mount: PROCEDURE EXPOSE settings. options. icons. vfs. fs. advanced. cd. samba. 3370 IF options.!debug == 1 THEN SAYtime()' Mount procedure started'3377 if options.!debug == 1 then say time()' Mount procedure started' 3371 3378 /* Set mouse pointer to wait - this operation might take a few seconds */ 3372 3379 call VRSet VRWindow(), 'Pointer', 'Wait' … … 3379 3386 IF options.!autoload then do 3380 3387 CALL _Dynamic "ok = "fs.!prefix"RxDetach('"vfs.!drive"')" 3381 IF options.!debug == 1 THEN SAYtime()' '||'Autoload Detach "'vfs.!drive'" =' ok3388 if options.!debug == 1 then say time()' '||'Autoload Detach "'vfs.!drive'" =' ok 3382 3389 end */ 3383 3390 … … 3386 3393 CALL _Dynamic "ok = "fs.!prefix"RxAttach('"vfs.!drive"')" 3387 3394 3388 IF options.!debug == 1 THEN SAYtime()' '||'Attach "'vfs.!drive'" =' ok3395 if options.!debug == 1 then say time()' '||'Attach "'vfs.!drive'" =' ok 3389 3396 end 3390 3397 … … 3392 3399 CALL _Dynamic "CreateMP = "fs.!prefix"RxCreateMountPoint('"vfs.!mountpoint"')" 3393 3400 3394 IF options.!debug == 1 THEN SAYtime()' '||'Create "'vfs.!mountpoint'" = 'CreateMP3401 if options.!debug == 1 then say time()' '||'Create "'vfs.!mountpoint'" = 'CreateMP 3395 3402 3396 3403 … … 3437 3444 hash = VRMethod("CN_CONDET","GetFieldData", records.i, cd.hashfh) 3438 3445 3439 IF options.!debug == 1 THENsay VRMethod("CN_CONDET","GetFieldData", records.i, CD.mpointFH)'->'hash3440 IF options.!debug == 1 THENsay mpoint'->'md53446 if options.!debug == 1 then say VRMethod("CN_CONDET","GetFieldData", records.i, CD.mpointFH)'->'hash 3447 if options.!debug == 1 then say mpoint'->'md5 3441 3448 3442 3449 if hash = md5 then do … … 3467 3474 CALL _Dynamic "ok = "fs.!prefix"RxMount('SMBFS','"vfs.!mountpoint"', '"src"', '"rwFlag"')" 3468 3475 3469 IF options.!debug == 1 THEN SAYtime()' '||'Mount "'vfs.!mountpoint'" =' ok3476 if options.!debug == 1 then say time()' '||'Mount "'vfs.!mountpoint'" =' ok 3470 3477 if ok <> 0 then do 3471 3478 if options.!password <> "" then upw = ":********" … … 3487 3494 if CreateMP = 0 & advanced.!alwaysmp <> 1 then do 3488 3495 CALL _Dynamic "ok = "fs.!prefix"RxDeleteMountPoint('"vfs.!mountpoint"')" 3489 IF options.!debug == 1 THEN SAYtime()' '||'Remove "'vfs.!mountpoint'" = 'ok3496 if options.!debug == 1 then say time()' '||'Remove "'vfs.!mountpoint'" = 'ok 3490 3497 end 3491 3498 end … … 3501 3508 The REXX function is present, but is has no counterpart in the plugin 3502 3509 ok = EvfsRxIoctl( 100 , vfs.!mountpoint, outstring) 3503 IF options.!debug == 1 THEN SAYtime()' '||'RxIoctl "'vfs.!mountpoint'" = 'ok', 'outstring3510 if options.!debug == 1 then say time()' '||'RxIoctl "'vfs.!mountpoint'" = 'ok', 'outstring 3504 3511 */ 3505 3512 /* Set mouse pointer to default again */ 3506 3513 call VRSet VRWindow(), 'Pointer', '<default>' 3507 IF options.!debug == 1 THEN SAYtime()' Mount procedure done'3514 if options.!debug == 1 then say time()' Mount procedure done' 3508 3515 RETURN ok 3509 3516 … … 3511 3518 */ 3512 3519 MyFreeDriveMap: procedure expose options. icons. fs. samba. 3513 IF options.!debug == 1 THEN SAYtime()' MyFreeDriveMap(proc) started'3520 if options.!debug == 1 then say time()' MyFreeDriveMap(proc) started' 3514 3521 alldrives = "C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:" 3515 /* IF options.!debug == 1 THEN SAYtime()' '||"SysDriveMap(USED) started" */3522 /* if options.!debug == 1 then say time()' '||"SysDriveMap(USED) started" */ 3516 3523 useddrives= SysDriveMap("C:","USED") 3517 /* IF options.!debug == 1 THEN SAYtime()' '||"SysDriveMap(USED) done" */3524 /* if options.!debug == 1 then say time()' '||"SysDriveMap(USED) done" */ 3518 3525 3519 3526 Alldr = words(alldrives) … … 3529 3536 end 3530 3537 end 3531 IF options.!debug == 1 THEN SAYtime()' MyFreeDriveMap(proc) done, result "'FreeDriveMap'"'3538 if options.!debug == 1 then say time()' MyFreeDriveMap(proc) done, result "'FreeDriveMap'"' 3532 3539 return FreeDriveMap 3533 3540 /*:VRX NoEVFSCALL … … 3542 3549 ParseResourceData: PROCEDURE EXPOSE userdata options. icons. advanced. fs. cd. samba. 3543 3550 PARSE ARG userdata, resource 3544 IF options.!debug == 1 THEN SAYtime()' ParseResourceData started'3545 IF options.!debug == 1 THEN SAY' receiving "'userdata'" "'resource'" length ('length(resource)')'3551 if options.!debug == 1 then say time()' ParseResourceData started' 3552 if options.!debug == 1 then say ' receiving "'userdata'" "'resource'" length ('length(resource)')' 3546 3553 3547 3554 /* WARNING! resource has a maximal length of 255 and is truncated otherwise */ … … 3566 3573 p_easupport will most likely be also wrong (look below for workaround!) */ 3567 3574 p_rw ="W" /* this is guessed only!!! */ 3568 IF options.!debug == 1 THEN SAY' WARNING! Detected truncated resource string - shorten workgroup name, server name, share name until this message goes away!'3575 if options.!debug == 1 then say ' WARNING! Detected truncated resource string - shorten workgroup name, server name, share name until this message goes away!' 3569 3576 end 3570 3577 /* this should be done unconditionally if the resource string is never truncated */ … … 3619 3626 end 3620 3627 3621 IF options.!debug == 1 THEN SAY' returning "'userdata'"'3622 IF options.!debug == 1 THEN SAYtime()' ParseResourceData done'3628 if options.!debug == 1 then say ' returning "'userdata'"' 3629 if options.!debug == 1 then say time()' ParseResourceData done' 3623 3630 RETURN userdata 3624 3631 … … 3651 3658 PB_ABOUT_COPY_Click: 3652 3659 ok = VRMethod( "Application", "PutClipboard", AboutStr ) 3653 call beep 880*2,103660 if options.!debug == 1 then call beep 880*2,10 3654 3661 CALL SW_ABOUT_Close 3655 3662 return … … 3689 3696 */ 3690 3697 PB_CONDET_LOAD_Click: 3691 IF options.!debug == 1 THEN SAYtime()' '||"PB_CONDET_LOAD_Click started"3698 if options.!debug == 1 then say time()' '||"PB_CONDET_LOAD_Click started" 3692 3699 call Menu_File_Load_Click 3693 IF options.!debug == 1 THEN SAYtime()' '||"PB_CONDET_LOAD_Click done"3700 if options.!debug == 1 then say time()' '||"PB_CONDET_LOAD_Click done" 3694 3701 RETURN 3695 3702 … … 3697 3704 */ 3698 3705 PB_CONDET_SAVE_Click: PROCEDURE EXPOSE settings. options. icons. Profile fs. cd. advanced. samba. 3699 IF options.!debug == 1 THEN SAYtime()' '||"PB_CONDET_SAVE_Click started"3706 if options.!debug == 1 then say time()' '||"PB_CONDET_SAVE_Click started" 3700 3707 3701 3708 if options.!autostart == 0 THEN filename = VRFileDialog('Main', NLVGetMessage( 50 ), 'S', '*.'fs.!profileext) … … 3756 3763 end 3757 3764 3758 IF options.!debug == 1 THEN SAYtime()' '||"PB_CONDET_SAVE_Click done"3765 if options.!debug == 1 then say time()' '||"PB_CONDET_SAVE_Click done" 3759 3766 RETURN 3760 3767 … … 3762 3769 */ 3763 3770 PB_DETACH_Click: PROCEDURE EXPOSE settings. options. icons. fs. cd. samba. 3764 IF options.!debug == 1 THEN SAYtime()' '||"PB_DETACH_Click started"3771 if options.!debug == 1 then say time()' '||"PB_DETACH_Click started" 3765 3772 CALL VRMethod "CN_CURRENT", 'GetRecordList', 'Selected', 'select.' 3766 3773 IF select.0 < 1 THEN RETURN … … 3785 3792 END 3786 3793 end 3787 else IF options.!debug == 1 THEN SAY' '||"mounts = "mounts3794 else if options.!debug == 1 then say ' '||"mounts = "mounts 3788 3795 3789 3796 CALL _Dynamic "ok = "fs.!prefix"RxDetach('"drive"')" 3790 3797 3791 3798 CALL Refresh 3792 IF options.!debug == 1 THEN SAYtime()' '||"PB_DETACH_Click done"3799 if options.!debug == 1 then say time()' '||"PB_DETACH_Click done" 3793 3800 RETURN 3794 3801 … … 3850 3857 */ 3851 3858 PB_MOUNT_Click: 3852 IF options.!debug == 1 THEN SAYtime()' '||"PB_MOUNT_Click started"3859 if options.!debug == 1 then say time()' '||"PB_MOUNT_Click started" 3853 3860 ok = VRSet("TM_RefreshCurrentDisplay","Enabled", 0) 3854 3861 say " network = "network … … 3965 3972 CALL Refresh 3966 3973 ok = VRSet("TM_RefreshCurrentDisplay","Enabled", 1) 3967 IF options.!debug == 1 THEN SAYtime()' '||"PB_MOUNT_Click done"3974 if options.!debug == 1 then say time()' '||"PB_MOUNT_Click done" 3968 3975 RETURN 0 3969 3976 … … 4102 4109 */ 4103 4110 PB_SMBTREE_CONNECT_Click: PROCEDURE EXPOSE settings. options. icons. fs. advanced. cd. samba. 4104 IF options.!debug == 1 THEN SAYtime()' '||"PB_CONNECT_Click started"4111 if options.!debug == 1 then say time()' '||"PB_CONNECT_Click started" 4105 4112 4106 4113 ok = VRMethod( "CN_SMBTREE", "GetRecordList", "SourceOrSelected", "SelRH." ) 4107 4114 4108 4115 if SelRH.0 = 0 then do 4109 IF options.!debug == 1 THEN SAYtime()' '||"PB_CONNECT_Click aborted"4116 if options.!debug == 1 then say time()' '||"PB_CONNECT_Click aborted" 4110 4117 return 4111 4118 end … … 4121 4128 trgRec = "" 4122 4129 4123 IF options.!debug == 1 THENdo4130 if options.!debug == 1 then do 4124 4131 say ' srcCtn = "'srcCtn'"' 4125 4132 if srcCtn <> "" then say ' srcCtn name = "'VRGet(srcCtn,'Name')'"' … … 4212 4219 if credentials.!entered = 1 then call PB_MOUNT_CLICK 4213 4220 4214 IF options.!debug == 1 THEN SAYtime()' '||"PB_CONNECT_Click done"4221 if options.!debug == 1 then say time()' '||"PB_CONNECT_Click done" 4215 4222 RETURN 4216 4223 … … 4224 4231 */ 4225 4232 PB_SMBTREE_REFRESH_Click: /* PROCEDURE EXPOSE settings. options. icons. fs. samba. debuglevel advanced. UserCred Refreshmode Tempdir */ 4226 IF options.!debug == 1 THEN SAYtime()' '||"PB_REFRESH_Click started"4233 if options.!debug == 1 then say time()' '||"PB_REFRESH_Click started" 4227 4234 4228 4235 if advanced.!browseauth = 1 & (UserCred = "--user=%" | UserCred = "" ) then do … … 4239 4246 ok = time('R') 4240 4247 call _RefreshTree 4241 IF options.!debug == 1 THEN SAYtime()' '||"PB_REFRESH_Click done"4248 if options.!debug == 1 then say time()' '||"PB_REFRESH_Click done" 4242 4249 RETURN 4243 4250 … … 4245 4252 */ 4246 4253 PB_UNMOUNT_Click: PROCEDURE EXPOSE settings. options. icons. fs. cd. samba. 4247 IF options.!debug == 1 THEN SAYtime()' '||"PB_UNMOUNT_Click started"4248 IF options.!debug == 1 THEN SAYtime()' '||'options.!editmode = 'options.!editmode4254 if options.!debug == 1 then say time()' '||"PB_UNMOUNT_Click started" 4255 if options.!debug == 1 then say time()' '||'options.!editmode = 'options.!editmode 4249 4256 CALL VRMethod "CN_CURRENT", 'GetRecordList', 'Selected', 'select.' 4250 4257 IF select.0 < 1 THEN RETURN … … 4273 4280 4274 4281 CALL Refresh 4275 IF options.!debug == 1 THEN SAYtime()' '||"PB_UNMOUNT_Click done"4282 if options.!debug == 1 then say time()' '||"PB_UNMOUNT_Click done" 4276 4283 RETURN 0 4284 4285 /*:VRX Pict_PWINMEM_Click 4286 */ 4287 Pict_PWINMEM_Click: 4288 if VRGet("Pict_PWINMEM","PicturePath") = "#36" then do 4289 call Menu_File_ucCred_Reset_Click 4290 end 4291 return 4277 4292 4278 4293 /*:VRX Quit … … 4289 4304 */ 4290 4305 Refresh: 4291 IF options.!debug == 1 THEN SAYtime()' Refresh started'4306 if options.!debug == 1 then say time()' Refresh started' 4292 4307 CALL VRSet "CN_CURRENT", 'Painting', 0 4293 4308 … … 4300 4315 /* This catches the bug we observed exactly once and were unable to reproduce! */ 4301 4316 if cd.statusfh = 'CD.STATUSFH' then do 4302 call beep 880, 504303 call beep 880, 504304 IF options.!debug == 1 THENsay " cd.statusfh is undefined - check why!!!!!!"4317 if options.!debug == 1 then call beep 880, 50 4318 if options.!debug == 1 then call beep 880, 50 4319 if options.!debug == 1 then say " cd.statusfh is undefined - check why!!!!!!" 4305 4320 leave 4306 4321 end 4307 IF options.!debug == 1 THENsay ' Icon.'i' = "'||VRMethod( "CN_CONDET", "GetFieldData", rh.i, cd.statusfh)'"'4322 if options.!debug == 1 then say ' Icon.'i' = "'||VRMethod( "CN_CONDET", "GetFieldData", rh.i, cd.statusfh)'"' 4308 4323 if VRMethod("CN_CONDET","GetFieldData", rh.i, cd.statusfh) = icons.!active then CALL VRMethod "CN_CONDET", 'RemoveRecord', rh.i 4309 4324 end … … 4322 4337 ok = VRSet("MENU_SELECTED_RETRY", "Visible", 0) 4323 4338 4324 IF options.!debug == 1 THEN SAY' Remove records, disable buttons done.'4339 if options.!debug == 1 then say ' Remove records, disable buttons done.' 4325 4340 4326 4341 CALL VRMethod 'CB_DRIVES', 'Clear' … … 4342 4357 CALL VRMethod "CB_DRIVES", "AddStringList", "drvstem." 4343 4358 CALL VRSet "CN_CURRENT", 'Painting', 1 4344 IF options.!debug == 1 THEN SAYtime()' '||"Refresh done"4359 if options.!debug == 1 then say time()' '||"Refresh done" 4345 4360 RETURN 0 4346 4361 … … 4538 4553 */ 4539 4554 SW_DIALOG_Init: 4540 4555 ok = VRSet("Pict_PWINMEM","Width", VRMethod( "Screen", "PixelsToTwips", 16 )) 4556 ok = VRSet("Pict_PWINMEM","Height", VRMethod( "Screen", "PixelsToTwips", 16 )) 4541 4557 return 4542 4558 … … 4544 4560 */ 4545 4561 SW_DIALOG_Init_Content: 4562 /* obsolete */ 4546 4563 if VRGet("TM_Throbber","Enabled") = 1 then ok = VRset("Pict_Throbber", "Visible", 0) 4547 4564 … … 4562 4579 */ 4563 4580 SW_INFO_Create: 4564 IF options.!debug == 1 THEN SAYtime()' SW_INFO_Create started'4581 if options.!debug == 1 then say time()' SW_INFO_Create started' 4565 4582 call SW_INFO_Init 4566 4583 CALL NLVSetText 'SW_INFO', "Caption", 92 … … 4569 4586 Info.ValueFH = VRMethod( "CN_INFO", "AddField", "String", "Value" ) 4570 4587 4571 IF options.!debug == 1 THENdo4572 SAY' Handle: "'SMBObj.rh'"'4573 SAY' Resource: "'SMBObj.resname'"'4574 SAY' Comment: "'SMBObj.comment'"'4575 SAY' Type: "'SMBObj.udatatype'"'4576 SAY' Message: "'SMBObj.udatamsg'"'4577 SAY' Icon: "'SMBObj.icon'"'4588 if options.!debug == 1 then do 4589 say ' Handle: "'SMBObj.rh'"' 4590 say ' Resource: "'SMBObj.resname'"' 4591 say ' Comment: "'SMBObj.comment'"' 4592 say ' Type: "'SMBObj.udatatype'"' 4593 say ' Message: "'SMBObj.udatamsg'"' 4594 say ' Icon: "'SMBObj.icon'"' 4578 4595 end 4579 4596 … … 4593 4610 4594 4611 if rpc_success = 1 then do 4612 if rpc.srvinfo.OS_VERSION = 'RPC.SRVINFO.OS_VERSION' then rpc.srvinfo.OS_VERSION = '' 4595 4613 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!nbname, Info.TypeFH, strip(NLVGetMessage(137),'T',':'),Info.ValueFH, rpc.srvinfo.NETBIOSNAME) 4596 4614 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!comment,Info.TypeFH, strip(NLVGetMessage(125),'T',':'),Info.ValueFH, rpc.srvinfo.SERVERSTRING) … … 4612 4630 ok = VRMethod( "CN_INFO", "SetFieldData", Info.!MAC, Info.TypeFH, "MAC" ,Info.ValueFH, VRMethod("CN_SMBTREE", "GetFieldData", SMBObj.RH, MacFH )) 4613 4631 4614 IF options.!debug == 1 THEN SAYtime()' SW_INFO_Create done'4632 if options.!debug == 1 then say time()' SW_INFO_Create done' 4615 4633 return 4616 4634 … … 4651 4669 CALL NLVSetText 'PB_LOGIN_CANCEL',"Caption", 3 4652 4670 4653 select 4654 when pos("PDC",VRMethod("CN_smbtree", "GetFieldData", SMBObj.rh, MBFH)) > 0 then LoginIcon = "#63:PMWP.DLL" /* icons.!pdc */ 4655 when SMBObj.udatatype = "WORKGROUP" then LoginIcon = SMBObj.Icon 4656 when SMBObj.udatatype = "SERVER" then LoginIcon = SMBObj.Icon 4657 when SMBObj.udatatype = "DISK" then do 4658 if pos("PDC",VRMethod("CN_smbtree", "GetFieldData", SMBObj.parentrh, MBFH)) > 0 4659 then LoginIcon = "#63:PMWP.DLL" /* icons.!pdc */ 4660 else LoginIcon = "#35:PMWP.DLL" /* icons.!pdc */ 4661 end 4662 otherwise LoginIcon = "#35:PMWP.DLL" /* icons.!machine_awake */ 4663 end 4664 say loginicon 4665 ok = VRSet("Pict_Login","PicturePath", LoginIcon) 4671 if VRIsValidObject(SMBObj.rh) then do 4672 select 4673 when pos("PDC",VRMethod("CN_smbtree", "GetFieldData", SMBObj.rh, MBFH)) > 0 then LoginIcon = "#63:PMWP.DLL" /* icons.!pdc */ 4674 when SMBObj.udatatype = "WORKGROUP" then LoginIcon = SMBObj.Icon 4675 when SMBObj.udatatype = "SERVER" then LoginIcon = SMBObj.Icon 4676 when SMBObj.udatatype = "DISK" then do 4677 if pos("PDC",VRMethod("CN_smbtree", "GetFieldData", SMBObj.parentrh, MBFH)) > 0 4678 then LoginIcon = "#63:PMWP.DLL" /* icons.!pdc */ 4679 else LoginIcon = "#35:PMWP.DLL" /* icons.!pdc */ 4680 end 4681 otherwise LoginIcon = "#35:PMWP.DLL" /* icons.!machine_awake */ 4682 end 4683 say loginicon 4684 ok = VRSet("Pict_Login","PicturePath", LoginIcon) 4685 end 4666 4686 ok = VRSet("EF_USER1","Value",VRGet("EF_USER","Value")) 4667 4687 ok = VRSet("EF_PASSWORD1","Value",VRGet("EF_PASSWORD","Value"))
Note:
See TracChangeset
for help on using the changeset viewer.