moniker

Where can I learn about the “shell:” URI?

这一生的挚爱 提交于 2020-01-02 02:26:06
问题 I just realised there is a shell: URI, but every search engine seems to think shell: and shell are the same thing. The only thing I've found out is that you can type shell:startup right in explorer (XP & 7 tested) for obvious effects. This is good already because there is no %startup% , but I want to know what else is this capable of. Is there any MS reference on this? EDIT (even if it's not on MSDN) 回答1: Stuart seems to have found a fairly thorough list of the folders; I'll speak to the

COM+ object activation in a different partition

一世执手 提交于 2019-12-22 01:46:37
问题 I had created a COM+ domain partition then mapped it to a Windows 2008 server machine and imported a COM+ application into it. I tried using the following C# code to activate an object from that specific partition on the server remotely: //partition guid Guid guidMyPartition = new Guid("41E90F3E-56C1-4633-81C3-6E8BAC8BDD70"); //parition moniker string uri= "partition:{" + guidMyPartition + "}/new:MyObject"; Type t = Type.GetTypeFromProgID("MyObject", "MyServer"); MyObject obj = (MyObject

How does task manager elevate without UAC Prompt?

允我心安 提交于 2019-12-21 04:12:53
问题 This has been on my mind for sometime. I can open task manager by pressing Ctrl + Shift + Esc and on the second tab (Processes), I can easily press Alt + S -- Show processes from all users to elevate my task manager without any prompts whatsoever . And voila, I have a powerful tool to play with. I've been unable to find any documents explaining this and I'm very curious about how this feat is achieved; since the button should actually ask for a prompt but does not. 回答1: What you are

How to detect browser's protocol handlers?

不羁的心 提交于 2019-12-16 20:13:43
问题 I have created a custom URL protocol handler. http:// mailto:// custom:// I have registered a WinForms application to respond accordingly. This all works great. But I would like to be able to gracefully handle the case where the user doesn't have the custom URL protocol handler installed, yet. In order to be able to do this I need to be able to detect the browser's registered protocol handlers, I would assume from JavaScript. But I have been unable to find a way to poll for the information. I

“interface not found” in WCF Moniker without registration for excel

感情迁移 提交于 2019-12-12 03:44:34
问题 I'm trying to connect excel to a WCF service, but I can't seem to get even a trivial case to work... I get an Invalid Syntax error when I try and create the proxy in excel. I've attached the visual studio debugger to excel, and get that the real error is "interface not found". I know the service works because the test client created by visual studio is ok... so the problem is in the VBA moniker string. I'm hoping to find one of two things: 1) a correction to my moniker string that will make

Calling WCF service from excel gives error on received message size

馋奶兔 提交于 2019-12-11 17:54:49
问题 I am calling my WCF service from excel VBA code using moniker string. However, as my service returns large data as response, excel gives error message "Maximum message size quota for incoming messages (65534) has been exceeded. To increase the quota used the MaxReceivedMessageSize property on the appropriate binding element" Here is the moniker string: addrToService = "service4:mexAddress=""net.tcp://localhost/MyApp/API/Excel/ExcelAPIService.svc/mexTCP"", " addrToService = addrToService +

COM+ object activation in a different partition

久未见 提交于 2019-12-04 23:37:03
I had created a COM+ domain partition then mapped it to a Windows 2008 server machine and imported a COM+ application into it. I tried using the following C# code to activate an object from that specific partition on the server remotely: //partition guid Guid guidMyPartition = new Guid("41E90F3E-56C1-4633-81C3-6E8BAC8BDD70"); //parition moniker string uri= "partition:{" + guidMyPartition + "}/new:MyObject"; Type t = Type.GetTypeFromProgID("MyObject", "MyServer"); MyObject obj = (MyObject)Activator.GetObject(t, uri); But I get this exception: Cannot create channel sink to connect to URL

How to communicate between two COM objects using Running Object Table (ROT)?

我的未来我决定 提交于 2019-12-04 20:06:27
问题 I have two COM objects written in C++ and ATL. There are in one library and I know their IIDs and CLIDs. I can't find an example of doing this simple communication between two simple COM objects. How to create IMoniker and how to add it to ROT? And then, how to retrieve pointer of this object,in other COM in different process/thread? Does anyone can provide a small example? EDIT : More info: I'm writing an add-on for IE. There are two COM object completely unrelated that IE load for different

How to communicate between two COM objects using Running Object Table (ROT)?

£可爱£侵袭症+ 提交于 2019-12-03 14:04:53
I have two COM objects written in C++ and ATL. There are in one library and I know their IIDs and CLIDs. I can't find an example of doing this simple communication between two simple COM objects. How to create IMoniker and how to add it to ROT? And then, how to retrieve pointer of this object,in other COM in different process/thread? Does anyone can provide a small example? EDIT : More info: I'm writing an add-on for IE. There are two COM object completely unrelated that IE load for different purpose. One is BHO (Browser Helper Obect), other is Asynchronous Pluggable Protocol (APP) I found I

How do you create your own moniker (URL Protocol) on Windows systems?

瘦欲@ 提交于 2019-11-30 17:52:39
How do you create your own custom moniker (or URL Protocol) on Windows systems? Examples: http: mailto: service: Take a look at Creating and Using URL Monikers , About Asynchronous Pluggable Protocols and Registering an Application to a URL Protocol from MSDN Here's some old Delphi code we used as a way to get shortcuts in a web application to start a windows program locally for the user. procedure InstallIntoRegistry; var Reg: TRegistry; begin Reg := TRegistry.Create; try Reg.RootKey := HKEY_CLASSES_ROOT; if Reg.OpenKey('moniker', True) then begin Reg.WriteString('', 'URL:Name of moniker');