WMI query is working under vb but not under c++

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



The following WMI query is working under vb but not under c++:

L"SELECT * FROM RegistryValueChangeEvent WHERE
Hive='HKEY_LOCAL_MACHINE' AND KeyPath='SYSTEM\\CurrentControlSet\
\Services\\qcusbser\\Enum' AND ValueName='Count'"

ExecNotificationQueryAsync() returns error code -2147217320, meaning
something like query could not be parsed...

How could this be? Other queries (e.g. __InstanceCreationEvent) are
working in the same environment.

Thanx in advance

heanii

.