[DllImport("ole32.dll")]
static extern int GetRunningObjectTable(uint reserved,
out System.Runtime.InteropServices.ComTypes.IRunningObjectTable pprot);
None.
In .Net 2.0 use System.Runtime.InteropServices.ComTypes.IRunningObjectTabl as the second parameter. Frameworks 1.0 and 1.1 use a now deprecated type.
Please note that the Register method of the IRunningObjectTable method actually returns the "cookie" value needed to Revoke the object from the ROT at a later point. The documentation is confusing; perhaps wrong.
Please add some!
System.Runtime.InteropServices.ComTypes.IRunningObjectTable objTbl;
Int32 hr = GetRunningObjectTable(0, out objTbl);
if (hr == 0) // success
{
}
else // failure
{
}
Do you know one? Please contribute it!