E_ACCESSDENIED on CoCreateInstance
- by vucetica
Here is a code snippet
#include "stdafx.h"
#include <tchar.h>
#include <windows.h>
#include <dshow.h>
#include <ExDisp.h>
int _tmain(int argc, _TCHAR* argv[])
{
CoInitialize(NULL);
HRESULT hr = S_OK;
DWORD err = 0;
// Try to create graph builder
IGraphBuilder* pGraph = 0;
hr =…