Compartilhar via


3.1.4.1.14 ICertAdminD::CloseView (Opnum 16)

The CloseView method closes a view that was previously opened by using the OpenView method call.

 HRESULT CloseView(
   [in, string, unique] wchar_t const* pwszAuthority
 );

pwszAuthority: See the pwszAuthority definition in section 3.1.4.1.1.

The CA server MUST release the resources associated with storing the resultant set of rows obtained via the OpenView method call. If the DCOM connection to a Windows CA on which OpenView was called is terminated before a call to CloseView is made, DCOM eventually releases the resources, but might not release the resources immediately.

The CA server MUST enforce the following sequencing rules:

  1. If the CloseView method is called when the value of Config_Database_View_Open is False, the server MUST return an error. The error code SHOULD be ERROR_INVALID_HANDLE.

  2. If the CloseView method is called when the value of Config_Database_View_Open is True, the server MUST set the value of Config_Database_View_Open to False.