- May
- 13,141
- 180
Will WMIQUERY and/or @WMI work inside THREAD? I can't get either to work. And I've seen these (below, without the usual indication of the source of the error). That makes me wonder if WMI must be somehow initialized in a thread.
Code:
v:\> thread wmiquery . "Select Name from Win32_Process where ProcessId=%_pid"
Error : Failed to create instance of WbemStatusCodeText