IQueryCancelAutoPlay *cancelAP; HRESULT hr = CoCreateInstance(__uuidOf(QueryCancelAutoPlay), NULL, CLSCTX_ALL, (void **) &cancelAP); if (SUCCEEDED(hr)) { printf("Success\n"); cancelAP->Release(); } else { // it failed printf("Failed: 0x%0x\n", hr); } What I have tried: Just looking around on Google, many articles are stating that this happened because I am missing one important dll, specifically "ATL.dll or ATL70.dll"; ATL.dll is in my Windows\system32; ATL70.dll is not where to be found. I will appreciate help from anybody that had solved this problome.
regsvr32 ATL.dll
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)