moniker

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

ぃ、小莉子 提交于 2019-11-30 16:48:27
问题 How do you create your own custom moniker (or URL Protocol) on Windows systems? Examples: http: mailto: service: 回答1: Take a look at Creating and Using URL Monikers , About Asynchronous Pluggable Protocols and Registering an Application to a URL Protocol from MSDN 回答2: 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

How to UAC elevate a COM component with .NET

左心房为你撑大大i 提交于 2019-11-27 11:36:52
I've found an article on how to elevate a COM object written in C++ by calling CoCreateInstanceAsAdmin . But what I have not been able to find or do, is a way to implement a component of my .NET (c#) application as a COM object and then call into that object to execute the tasks which need UAC elevation. MSDN documents this as the admin COM object model . I am aware that it is possible and quite easy to launch the application (or another app) as an administrator, to execute the tasks in a separate process (see for instance the post from Daniel Moth , but what I am looking for is a way to do

Get Process ID of COM Server

拈花ヽ惹草 提交于 2019-11-26 23:23:02
问题 I'm doing some automation via a combination of windows message sending directly to HWNDs and calls to a COM server exposed by the automated application. If there is more than one instance running, I need to be able to determine the process ID of the COM server so I can hit the same instance with the COM call as the one I'm sending windows messages to. I can enumerate all the running COM servers with the running object table and get back monikers for all of them, but the COM objects themselves

How to UAC elevate a COM component with .NET

别来无恙 提交于 2019-11-26 15:39:00
问题 I've found an article on how to elevate a COM object written in C++ by calling CoCreateInstanceAsAdmin . But what I have not been able to find or do, is a way to implement a component of my .NET (c#) application as a COM object and then call into that object to execute the tasks which need UAC elevation. MSDN documents this as the admin COM object model. I am aware that it is possible and quite easy to launch the application (or another app) as an administrator, to execute the tasks in a