Hi All,
I am using WMI to get SMBIOS data and for that I am using following code to initialize the IWbemLocator interface through a call to CoCreateInstance.
CoCreateInstance(CLSID_WbemLocator, 0, CLSCTX_INPROC_SERVER, IID_IWebLocator, (LPVOID *) &pLoc);
But it always returns FAILURE. I think its due to some environment issue but wanted to know exact reason.
Thanks in advance,
Rahul