Search found 24 matches: execquery

Return to advanced search

Re: ID of the new process

... the user who created the process. ```vbscript Set objWMIService = GetObject("winmgmts:\\.\root\cimv2") Set colProcesses = objWMIService.ExecQuery("Select * from Win32_Process Where Name = 'winword.exe'") For Each objProcess In colProcesses Set objOwner = objProcess.GetOwner() ...
by Antonio Linares
Tue Nov 14, 2023 2:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ID of the new process
Replies: 2
Views: 321

ID of the new process

... object of an application (for example, Word), a new process is created. How do I get the ID of this process ? I can make 2 lists of oWmi processes:ExecQuery("select * from Win32_Process where Name=") before and after creating the OLE object, and then compare them. But maybe there are ...
by Natter
Tue Nov 14, 2023 11:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: ID of the new process
Replies: 2
Views: 321

Re: Control Panel

Dear Yuri,

You may try this:

oWmi:ExecQuery( "select * from Win32_Product where name = " + cAppName )
by Antonio Linares
Wed Jan 11, 2023 10:59 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Control Panel
Replies: 2
Views: 282

Re: ID of the current session

Please try this:

oList := wmi:Execquery( "select * from Win32_Process" )

XBrowse( oList )

and post here what you get, thanks
by Antonio Linares
Fri Jan 07, 2022 2:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ID of the current session
Replies: 14
Views: 588

Re: ID of the current session

Could you please explain how do you create wmi ?

oList := wmi:Execquery( "select * from Win32_Process" )
by Antonio Linares
Fri Jan 07, 2022 8:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: ID of the current session
Replies: 14
Views: 588

Re: ID of the current session

... correctly that in all these examples, processes are viewed and the SessionID of each of them is read? I do the same thing through WMI. oList:=wmi:Execquery("select * from Win32_Process") But since I'm an oList , the processes of all sessions fall into, I can't distinguish my own processes ...
by Natter
Thu Jan 06, 2022 7:52 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ID of the current session
Replies: 14
Views: 588

Re: OT: Bluetooth Signal Meter

... local oWMI, objWMI, oBios, oData oWmi := CreateObject( "wbemScripting.SwbemLocator" ) objWMI := oWmi:ConnectServer() oBios := objWMI:ExecQuery( "Select * From MSNdis_80211_ReceivedSignalStrength" ) for each oData in oBios MsgInfo( oData:Ndis80211ReceivedSignalStrength ) ...
by byron.hopp
Sun Dec 29, 2019 6:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: OT: Bluetooth Signal Meter
Replies: 14
Views: 3285

Re: ¿Cómo saber cuanta memoria ocupa mi aplicación?

oList := oWmi:ExecQuery( "select * from Win32_PerfRawData_PerfProc_Process WHERE name='"+cName+"'")
Por favor

Como puedo utilizar este codigo si uso dbf's ?

Muchas gracias
by juan_arroyo_t
Fri Dec 02, 2016 3:55 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ¿Cómo saber cuanta memoria ocupa mi aplicación?
Replies: 10
Views: 1368

Re: GetTasks() Function

... dove l'ho trovato ... KillProcess("menu.exe") FUNCTION KillProcess( cExe ) local oWmi, oList, oProc oWmi := WmiService() oList := oWmi:ExecQuery( "select * from Win32_Process where Name = '" + cExe + "'" ) for each oProc in oList oProc:Terminate() next return nil ...
by stefano
Fri Oct 16, 2015 6:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: GetTasks() Function
Replies: 3
Views: 724

Re: Ayuda Funciones a Bajo Nivel

oSistema := objWMI:ExecQuery("Select * from Win32_PhysicalMedia")

FOR Each oDatos In oSistema
MsgInfo("Serial de fabrica: " + ALLTRIM((oDatos:SerialNumber)),"")
exit
NEXT

Johnson russi
by russimicro
Tue May 06, 2014 12:15 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda Funciones a Bajo Nivel
Replies: 34
Views: 7929

Re: ¿ Serial del Board

... MsgInfo ( "IP OK" ) CATCH MsgInfo ( "Error. Validando el servidor" ) CLOSE ALL Return ( NIL ) END END oSerial_Board := objWMI:ExecQuery ( "Select * from Win32_PhysicalMedia" ) oDisco := objWMI:ExecQuery ( "Select * from Win32_LogicalDisk" ) oParticiones ...
by J. Ernesto
Tue Nov 06, 2012 7:34 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ¿ Serial del Board Solucionado
Replies: 7
Views: 3620

Re: ¿ Serial del Board

... MYMEN("IP OK") CATCH MYMEN("Error. Validando el servidor") CLOSE ALL RETURN END END oSistema:= objWMI:ExecQuery("Select * from Win32_PhysicalMedia") oDisco:= objWMI:ExecQuery("Select * from Win32_LogicalDisk") oParti:= objWMI:ExecQuery("Select ...
by russimicro
Wed Oct 31, 2012 11:10 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ¿ Serial del Board Solucionado
Replies: 7
Views: 3620

Un pequeña ayudita en Harbour

... oLoc:= CreateObject( "wbemScripting.SwbemLocator" ) oWmi:= oLoc:ConnectServer() if oWmi == NIL return "" end if oList := oWmi:ExecQuery("SELECT * FROM "+cClass) for each oItem in oList cReturn:=oItem:&(cProperty) next return cReturn Un Saludo.
by softruz
Mon May 21, 2012 8:01 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Un pequeña ayudita en Harbour
Replies: 9
Views: 1283

Re: PRINTER_STATUS

... _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colPrintJobs = objWMIService.ExecQuery _ ("Select * from Win32_PrintJob") Wscript.Echo "Print Queue, Job ID, Owner, Total Pages" For Each objPrintJob in colPrintJobs ...
by ukoenig
Sat May 15, 2010 4:52 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: PRINTER_STATUS
Replies: 6
Views: 1232

Re: Waitrun y Timer

... oWMIob := CreateObject( "wbemScripting.SwbemLocator" ) catch RETURN nil END oWMIserver := oWMIob:ConnectServer() aProcess :=oWMIserver:ExecQuery( "Select * from Win32_Process" ) For Each objProcess in aProcess IF UPPER(objProcess:Name) = UPPER(cProceso) objProcess:Terminate() ...
by Manuel Valdenebro
Mon Feb 22, 2010 11:31 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Waitrun y Timer
Replies: 13
Views: 4054
Next

Return to advanced search