3.10.4.2 IsInstalledRemote (Opnum 12)

The IsInstalledRemote method determines if a certificate is associated with the specified InstanceName.

 [id(6)] HRESULT IsInstalledRemote(
   [out, retval] VARIANT_BOOL* retval
 );

retval: A pointer to a VARIANT_BOOL.

Return Values: A signed 32-bit value that indicates return status. If the method returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or positive values indicate success, with the lower 16 bits in positive nonzero values containing warnings or flags defined in the method implementation. For more information about Win32 error codes and HRESULT values, see [MS-ERREF].

Return value/code

Description

0x00000000

S_OK

The call was successful.

0x80070057

E_INVALIDARG

One or more arguments are invalid.

The opnum field value for this method is 12.

When processing this call, the server MUST do the following:

  • If the InstanceName (Set) method has not been called to set the web server instance, return E_INVALIDARG.

  • Attempt to retrieve the certificate referenced at the specified InstanceName. If the certificate can be retrieved on the target system, set retval to VARIANT_TRUE. If the certificate cannot be retrieved on the target system or if no certificate is referenced at the specified InstanceName, set retval to VARIANT_FALSE. Return S_OK.