<p>As part of a JavaScript Profiler for IE 6/7 I needed to load a custom debugger that I created into IE.  I got this working fine on XP, but couldn't get it working on Vista (full story here: <a href="http://damianblog.com/2008/09/09/tracejs-v2-rip/" rel="nofollow noreferrer">http://damianblog.com/2008/09/09/tracejs-v2-rip/</a>).</p>

<p>The call to GetProviderProcessData is failing on Vista.  Anyone have any suggestions?</p>

<p>Thanks,
    Damian</p>

<pre><code>// Create the MsProgramProvider
IDebugProgramProvider2* pIDebugProgramProvider2 = 0;
HRESULT st = CoCreateInstance(CLSID_MsProgramProvider, 0, CLSCTX_ALL, IID_IDebugProgramProvider2, (void**)&amp;pIDebugProgramProvider2);
if(st != S_OK) {
    return st;
}

// Get the IDebugProgramNode2 instances running in this process
AD_PROCESS_ID processID;
processID.ProcessId.dwProcessId = GetCurrentProcessId();
processID.ProcessIdType = AD_PROCESS_ID_SYSTEM;

CONST_GUID_ARRAY engineFilter;
engineFilter.dwCount = 0;

PROVIDER_PROCESS_DATA processData;

st = pIDebugProgramProvider2-&gt;GetProviderProcessData(PFLAG_GET_PROGRAM_NODES|PFLAG_DEBUGGEE, 0, processID, engineFilter, &amp;processData);
if(st != S_OK) {
    ShowError(L"GPPD Failed", st);
    pIDebugProgramProvider2-&gt;Release();
    return st;
}
</code></pre>

[{'answer_id': 60468, 'author': 'millenomi', 'author_id': 6061, 'author_profile': 'https://Stackoverflow.com/users/6061', 'pm_score': 0, 'selected': False, 'text': "<p>I'm not familiar with these interfaces, but unexpected failures in Vista may require being past a UAC prompt. Have you tried starting the debugger with admin privileges?</p>\n"}, {'answer_id': 930781, 'author': 'Shane Powell', 'author_id': 23235, 'author_profile': 'https://Stackoverflow.com/users/23235', 'pm_score': 2, 'selected': True, 'text': '<p>It would help to know what the error result was.</p>\n\n<p>Possible problems I can think of:</p>\n\n<p>If your getting permission denied, your most likely missing some requried <a href="http://msdn.microsoft.com/en-us/library/aa375728(VS.85).aspx" rel="nofollow noreferrer">Privilege</a> in your ACL.  New ones are sometimes not doceumented well, check the latest Platform SDK headers to see if any new ones that still out.  It may be that under vista the Privilege is not assigned my default to your ACL any longer.</p>\n\n<p>If your getting some sort of Not Found type error, then it may be 32bit / 64bit problem.  Your debbugging API may only be available under 64bit COM on vista 64.  The 32bit/64bit interoperation can be very confusing.</p>\n'}]
['https://Stackoverflow.com/questions/60422', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3390/']