Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than ole32, prefix the name with the module name and a period.
The above C# signature didn't work for me. Instead, I used:
[DllImport("ole32.dll")]
static extern int OleRegGetUserType([In] ref Guid clsid, uint dwFormOfType, out IntPtr pszBuff);
and then marhalled the Unicode string pointer to a managed string. See the sample code below.
Tips & Tricks:
Please add some!
Sample Code:
Guid clsid = new Guid(0x3e6b91f5, 0xbc86, 0x40b8, 0x80, 0xc9, 0x41, 0xb3, 0x4b, 0x4e, 0x8f, 0x11);
IntPtr pszBuf;
int nResult = OleRegGetUserType(ref clsid, (uint)USERCLASSTYPE.USERCLASSTYPE_FULL, out pszBuf);
string strClass = Marshal.PtrToStringUni(pszBuf);
Alternative Managed API:
Do you know one? Please contribute it!
The OleRegGetUserType API
8/3/2011 3:47:48 AM - anonymous
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).