How can I get the ProgID of any application given the name of the application in C#?
<Association Identifier="http" ProgId="ChromeHTML" ApplicationName="Google Chrome" />
In the example "Google Chrome" has a ProgId of "ChromeHTML" How can I retrieve this value in .Net?
It looks like the OLE-COM Library Object Viewer has the info in it, if there is a .Net way to query that? Or any other straight forward way?
Or can I get the CLSID given an applicationName? then use
[DllImport("ole32.dll")]
static extern int ProgIDFromCLSID([In] ref Guid clsid,
[MarshalAs(UnmanagedType.LPWStr)] out string lplpszProgID);
What I am attempting to do is add file associations programmtically given either and applicationName or an exe path