UtilProcessGetWmiProcessQuery Method
Performs a WMI query to Win32_Process class with the specified condition and returns the result.
Namespace: DevCase.Core.Diagnostics.ProcessesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static ManagementObject[] GetWmiProcessQuery(
KeyValuePair<string, string> condition
)
Public Shared Function GetWmiProcessQuery (
condition As KeyValuePair(Of String, String)
) As ManagementObject()
Dim condition As KeyValuePair(Of String, String)
Dim returnValue As ManagementObject()
returnValue = UtilProcess.GetWmiProcessQuery(condition)
public:
static array<ManagementObject^>^ GetWmiProcessQuery(
KeyValuePair<String^, String^> condition
)
static member GetWmiProcessQuery :
condition : KeyValuePair<string, string> -> ManagementObject[]
No code example is currently available or this language may not be supported.
- condition KeyValuePairString, String
-
The WHERE condition to use in the SELECT query.
ManagementObject
The query result.
This is useful for example to get information of a 64-Bit process from a 32-Bit .NET assembly.
This is a code example.
No code example is currently available or this language may not be supported.
Dim condition As New KeyValuePair(Of String, String)("Name", "notepad.exe")
For Each mo As ManagementObject In GetWmiProcessQuery(condition)
MessageBox.Show(DirectCast(mo.Properties("ExecutablePath").Value, String))
Next mo
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.