Changeset 784 for trunk/guitools/smbmon
- Timestamp:
- Aug 8, 2013, 9:56:12 AM (12 years ago)
- Location:
- trunk/guitools/smbmon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/smbmon/smbmon.vrp
r770 r784 8 8 VRXWindow: __VREMainWindow,1,2180,3614,1024,6769 9 9 VRXWindow: __VRESectionListWindow,1,4083,11226,7372,6589 10 VRXWindow: __VREToolsWindow,1,2156,1494, 6489,165910 VRXWindow: __VREToolsWindow,1,2156,1494,4968,1665 11 11 VRXWindow: __VREWindListWindow,1,964,11708,3132,3150 12 12 UserFile: 1 -
trunk/guitools/smbmon/smbmon.vrx
r770 r784 1253 1253 1254 1254 call _RefreshDaemonsDelay 1255 1256 1255 DRH = VRInfo("Record") 1256 DaemonName = "" 1257 1257 1258 OH = VRInfo("Object") 1258 ok = VRset("ContextMenu_Daemons_Sep1","Visible", 0 ) 1259 ok = VRset("ContextMenu_Daemons_Ping","Visible", (DRH <> "") ) 1260 ok = VRset("ContextMenu_Daemons_Shutdown","Visible", 0 ) 1261 DaemonName = "" 1262 if DRH <> "" then DaemonName = VRMethod("CN_Daemons", "GetRecordAttr", DRH, "Caption") 1259 ok = VRset("ContextMenu_Daemons_Details", "Visible", 1 ) 1260 ok = VRset("ContextMenu_Daemons_Tree", "Visible", 1 ) 1261 ok = VRset("MItem_9", "Visible", 1 ) 1262 ok = VRset("ContextMenu_Daemons_Sort", "Visible", 1 ) 1263 ok = VRset("ContextMenu_Daemons_MiniIcons", "Visible", 1 ) 1264 ok = VRset("MItem_13", "Visible", 1 ) 1265 ok = VRset("ContextMenu_Daemons_Ping", "Visible", 1 ) 1266 ok = VRset("ContextMenu_Daemons_KillPID", "Visible", 1 ) 1267 ok = VRset("ContextMenu_Daemons_Start", "Visible", 1 ) 1268 ok = VRset("ContextMenu_Daemons_Shutdown", "Visible", 1 ) 1269 1270 if DRH <> "" then do 1271 DaemonName = VRMethod("CN_Daemons", "GetRecordAttr", DRH, "Caption") 1272 ok = VRset("ContextMenu_Daemons_Ping","Visible", 1 ) 1273 end 1274 1263 1275 select 1264 when Words(DaemonName) = 3 then do /* a child process with PID in name */1276 when Words(DaemonName) = 3 & pos("PID ",DaemonName) > 0 then do /* a child process with PID in name */ 1265 1277 DaemonName = word(DaemonName,2) 1266 ok = VRset("ContextMenu_Daemons_Sep1","Visible", 1 )1267 1278 ok = VRSet("ContextMenu_Daemons_KillPID", "Caption", NLVGetMessage( 38, DaemonName)) 1268 ok = VRset("ContextMenu_Daemons_KillPID", "Visible", 1 )1269 1279 ok = VRset("ContextMenu_Daemons_Start", "Visible", 0 ) 1270 ok = VRset("ContextMenu_Daemons_Ping", "Visible", 1 )1271 ok = VRset("ContextMenu_Daemons_Sep1", "Visible", 1 )1272 1280 end 1273 when Words(DaemonName) = 1 then do /* on smbd.exe or nmbd.exe root processes */1281 when Words(DaemonName) = 1 & (pos("mbd.exe",Daemonname) > 0 | pos("winbindd.exe",Daemonname) > 0) then do /* on root process */ 1274 1282 parse var DaemonName DaemonName'.exe' 1275 1283 if strip(VRMethod("CN_Daemons", "GetFieldData", DRH, DPidsFH)) <> "" then do 1276 ok = VRSet("ContextMenu_Daemons_Shutdown", "Caption", NLVGetMessage( 33, DaemonName)) 1277 ok = VRset("ContextMenu_Daemons_Shutdown", "Visible", 1 ) 1278 ok = VRset("ContextMenu_Daemons_Start", "Visible", 0 ) 1279 ok = VRset("ContextMenu_Daemons_Sep1", "Visible", 1 ) 1280 end 1281 else do 1282 ok = VRSet("ContextMenu_Daemons_Start", "Caption", NLVGetMessage( 36, DaemonName)) 1283 ok = VRset("ContextMenu_Daemons_Start", "Visible", 1 ) 1284 ok = VRset("ContextMenu_Daemons_KillPID","Visible", 0 ) 1285 ok = VRset("ContextMenu_Daemons_Ping", "Visible", 0 ) 1286 ok = VRset("ContextMenu_Daemons_Sep1", "Visible", 1 ) 1284 ok = VRSet("ContextMenu_Daemons_Shutdown", "Caption", NLVGetMessage( 33, DaemonName)) 1285 ok = VRset("ContextMenu_Daemons_KillPID", "Visible", 0 ) 1286 ok = VRset("ContextMenu_Daemons_Start", "Visible", 0 ) 1287 1287 end 1288 1288 end 1289 otherwise nop 1289 when pos("\", DaemonName) > 0 then do /* we are on a file */ 1290 ok = VRset("MItem_13", "Visible", 0 ) 1291 ok = VRset("ContextMenu_Daemons_Ping", "Visible", 0 ) 1292 ok = VRset("ContextMenu_Daemons_KillPID", "Visible", 0 ) 1293 ok = VRset("ContextMenu_Daemons_Start", "Visible", 0 ) 1294 ok = VRset("ContextMenu_Daemons_Shutdown", "Visible", 0 ) 1295 end 1296 otherwise do /* we are on a user */ 1297 ok = VRset("MItem_13", "Visible", 0 ) 1298 ok = VRset("ContextMenu_Daemons_Ping", "Visible", 0 ) 1299 ok = VRset("ContextMenu_Daemons_KillPID", "Visible", 0 ) 1300 ok = VRset("ContextMenu_Daemons_Start", "Visible", 0 ) 1301 ok = VRset("ContextMenu_Daemons_Shutdown", "Visible", 0 ) 1302 end 1290 1303 end 1291 1304 say ' Daemon is "'DaemonName'"'
Note:
See TracChangeset
for help on using the changeset viewer.