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.
Guid CLSID_ShellDesktop = new Guid("00021400-0000-0000-C000-000000000046");
Type shellDesktopType = Type.GetTypeFromCLSID(CLSID_ShellDesktop, true);
object shellDesktop = Activator.CreateInstance(shellDesktopType);
If you just want to create an instance on a specific server, you can pass the server name into GetTypeFromCLSID:
Guid CLSID_ShellDesktop = new Guid("00021400-0000-0000-C000-000000000046");
Type shellDesktopType = Type.GetTypeFromCLSID(CLSID_ShellDesktop, "REMOTESERVER", true);
object shellDesktop = Activator.CreateInstance(shellDesktopType);
The CoCreateInstanceEx API
3/16/2007 8:07:13 AM - -84.160.203.25
Indicates the execution contexts in which an object is to be run
2/14/2012 8:54:10 PM - Z-Human-74.71.149.147
TODO - a short description
6/8/2010 8:31:09 AM - -192.114.187.124
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).