What to pass as the first parameter to IActiveScriptProfilerControl.StartProfiling?
问题 Trying to use IActiveScriptProfilerControl::StartProfiling from my C# code, I've created this interface definition: [ComImport] [Guid(@"784b5ff0-69b0-47d1-a7dc-2518f4230e90")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] internal interface IActiveScriptProfilerControl { void StartProfiling( ref Guid clsidProfilerObject, ProfilerEventMask eventMask, uint dwContext); // ... } Which I believe is correctly translated to .NET. The original first parameter is defined as [in] REFCLSID