diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-03-20 00:06:21 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-03-20 00:06:21 +0000 |
commit | c70c31c7b78a8c0d4a097b0f87e506b6a5fa2b2c (patch) | |
tree | 4e0d7d0152de78ac2ff25c92bc32e3a677b056fb /win | |
parent | ea4f54a4f09d8443bc8688cb34e0d62aa59e9432 (diff) |
This needs a test compile, i do not have my laptop to hand to do this. May break win32 build.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11237 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'win')
-rw-r--r-- | win/inspircd_win32wrapper.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/win/inspircd_win32wrapper.cpp b/win/inspircd_win32wrapper.cpp index 534ee5a31..4d560f0f6 100644 --- a/win/inspircd_win32wrapper.cpp +++ b/win/inspircd_win32wrapper.cpp @@ -659,8 +659,7 @@ int getcpu() /* Use WQL, similar to SQL, to construct a query that lists the cpu usage and pid of all processes */ IEnumWbemClassObject* pEnumerator = NULL; - hres = pSvc->ExecQuery(bstr_t("WQL"), - bstr_t("Select PercentProcessorTime,IDProcess from Win32_PerfFormattedData_PerfProc_Process"), + hres = pSvc->ExecQuery(L"WQL", L"Select PercentProcessorTime,IDProcess from Win32_PerfFormattedData_PerfProc_Process", WBEM_FLAG_FORWARD_ONLY | WBEM_FLAG_RETURN_IMMEDIATELY, NULL, &pEnumerator); /* Query didn't work */ |