UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:certadm.ICertAdmin.ResubmitRequest |
ICertAdmin::ResubmitRequest (certadm.h) |
Submits the specified certificate request to the policy module for the specified certification authority. This method was first introduced in the ICertAdmin interface. |
|
security\icertadmin2_resubmitrequest.htm |
security |
610712d9-3661-42ba-9d2f-27862ba8dbd4 |
12/05/2018 |
CCertAdmin object [Security],ResubmitRequest method, ICertAdmin interface [Security],ResubmitRequest method, ICertAdmin.ResubmitRequest, ICertAdmin2 interface [Security],ResubmitRequest method, ICertAdmin2::ResubmitRequest, ICertAdmin::ResubmitRequest, ResubmitRequest, ResubmitRequest method [Security], ResubmitRequest method [Security],CCertAdmin object, ResubmitRequest method [Security],ICertAdmin interface, ResubmitRequest method [Security],ICertAdmin2 interface, certadm/ICertAdmin2::ResubmitRequest, certadm/ICertAdmin::ResubmitRequest, security.icertadmin2_resubmitrequest |
certadm.h |
Certsrv.h |
Windows |
None supported |
Windows Server 2003 [desktop apps only] |
Certidl.lib |
Certadm.dll |
Windows |
19H1 |
|
|
|
|
|
|
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.
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.
Specifies the ID of the request to resubmit.
A pointer to the disposition of the request.
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.
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. |
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.
#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);