This object is implemented in %windir%\system32\ADMWPROX.DLL - see HKEY_CLASSES_ROOT\CLSID\{70B51430-B6CA-11D0-B9B9-00A0C922E750}
It is perfectly usable from C code, but I wish to replace it with a .NET code and what a bummer - ADMWPROX.DLL does not appear as a valid type library to tlbimp:
z:\Work>tlbimp c:\Windows\system32\admwprox.dll
Microsoft (R) .NET Framework Type Library to Assembly Converter 4.0.30319.1
Copyright (C) Microsoft Corporation. All rights reserved.
TlbImp : error TI1002 : The input file 'c:\Windows\system32\admwprox.dll' is not a valid type library.
z:\Work>
And of course, it is missing from the list of COM objects when adding a COM reference in Visual Studio.
PS: I am trying to set the IIS://localhost/W3SVC/1!SslCertHash
property and this article explains that the only way to do it is through the MSAdminBase
object, rather than MSAdminObject
(due to a bug in the schema definition). The latter is conveniently wrapped by the .NET System.DirectoryServices.DirectoryEntry
, but the former is not - hence is my pain.