@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: The CreateClassMoniker API !!!!C# Signature: [DllImport("ole32.dll")] static extern int CreateClassMoniker([In] ref Guid rclsid, out IMoniker ppmk); Alternatively: [DllImport("Ole32.dll", PreserveSig = false)] static extern IMoniker CreateClassMoniker([In, MarshalAs(UnmanagedType.LPStruct)]Guid guid); !!!!User-Defined Types: None. !!!!Notes: The ref modifier or the [MarshalAs(LPStruct)] attribute are required on the guid parameter; otherwise it is marshaled incorrectly and the call will fail with an access violation. The managed definition for the IMoniker interface is available in System.Runtime.InteropServices.ComTypes The Windows API documentation states that this function automatically calls AddRef on the resulting instance before returning. The .Net framework seems aware of this at some level, as the object is freed correctly with a single call to Marshal.ReleaseComObject() !!!!Tips & Tricks: Please add some! !!!!Sample Code: Please add some! !!!!Alternative Managed API: Do you know one? Please contribute it! Documentation: CreateClassMoniker@msdn on MSDN
Edit ole32.createclass...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.