ICertAdmin::ResubmitRequest method (certadm.h)
The ResubmitRequest method submits the specified certificate request to the policy module for the specified certification authority. This method was first introduced in the ICertAdmin interface.
For this method to succeed, the certificate request must be pending.
Syntax
HRESULT ResubmitRequest(
[in] const BSTR strConfig,
[in] LONG RequestId,
[out, retval] LONG *pDisposition
);
Parameters
[in] strConfig
Represents a valid configuration string for the certification authority (CA) in the form COMPUTERNAME\CANAME, where COMPUTERNAME is the network name of the Certificate Services server and CANAME is the common name of the certification authority, as entered during Certificate Services setup. For information about the configuration string name, see ICertConfig.
[in] RequestId
Specifies the ID of the request to resubmit.
[out, retval] pDisposition
A pointer to the disposition of the request.
Return value
C++
If the method succeeds and the pDisposition parameter is set to one of the following values that specify the disposition of the request, the method returns S_OK.If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.
VB
The return value specifies the disposition of the request. This value is one of the following values.Return code | Description |
---|---|
|
The request was not completed. |
|
The request failed. |
|
The request was denied. |
|
The certificate was issued. |
|
The certificate was issued separately. |
|
The request was taken under submission. |
Remarks
Administration tasks use DCOM. Code that calls this interface method as defined in an earlier version of Certadm.h will run on Windows-based servers as long as the client and the server are both running the same Windows operating system.
Examples
#include <windows.h>
#include <stdio.h>
#include <Certadm.h>
long nDisp; // disposition value
long nReqID = <REQUESTIDHERE>;
BSTR bstrCA = NULL;
bstrCA = SysAllocString(L"<COMPUTERNAMEHERE>\\<CANAMEHERE>");
if (NULL == bstrCA)
{
printf("Memory allocation failed\n");
goto error;
}
// pCertAdmin is a previously instantiated ICertAdmin object.
hr = pCertAdmin->ResubmitRequest(bstrCA, nReqID, &nDisp);
if (FAILED(hr))
{
printf("Failed ResubmitRequest [%x]\n", hr);
goto error;
}
else
printf("ResubmitRequest disposition is %d\n", nDisp);
error:
// Free resources.
if (bstrCA)
SysFreeString(bstrCA);
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | certadm.h (include Certsrv.h) |
Library | Certidl.lib |
DLL | Certadm.dll |