更新时间:2023-12-06 14:17:40
您确实需要的实现为了使用该接口的DesktopGadget对象。 MS提供了一个标准的COM对象做到这一点在Windows 7中,您可以通过做一些像创建一个实例:
You actually need an implementation of the DesktopGadget object in order to use the interface. MS provide a standard COM object to do it on Windows 7. You can create an instance by doing something like:
Type t = Type.GetTypeFromCLSID(new Guid("924ccc1b-6562-4c85-8657-d177925222b6"));
IDesktopGadget dg = (IDesktopGadget)Activator.CreateInstance(t);