wql

Do I need special WQL queries for 64-bit apps?

I'm using the WqlObjectQuery to find out information on processes. I'm making calls such as this: Select ExecutablePath from Win32_Process where ProcessID = {0} Will this also work in 64 bit versions of windows and for 64 bit applications? Or do I need to modify my query to handle 64 bit apps? ...

Reliably get Latest Event Log Record with WQL

Hi All, I have written an application which collects windows logs from linux, via the Zenoss wmi-client package. It uses WQL to query the Event log and parses the return. My problem is trying to find the latest entry in the log. I stumbled across this which tells me to use the NumberOfRecords column in a query such as this Select ...

Using WQL to Limit Results on a String Match

I'm working on developing a WMI query for my application. It needs to find the assigned virtual COM port for a given VID/PID. My query currently looks like this: "SELECT DeviceID FROM Win32_SerialPort WHERE PNPDeviceID = \"USB\\VID_10C4&PID_EA60\\0001\"" Based on my research, it should return "COM8". However, I'm getting an empty s...