ICertAdmin2::GetMyRoles method
The GetMyRoles method retrieves the certification authority (CA) roles of the caller.
Syntax
Parameters
- strConfig [in]
-
String value that represents a valid configuration string for the CA in the form COMPUTERNAME\CANAME, where COMPUTERNAME is the Certificate Services server's network name, and CANAME is the common name of the CA, as entered during Certificate Services setup. For information about the configuration string name, see ICertConfig.
Important GetMyRoles does not clear the internal cache when the configuration string is changed. When you change the configuration string for the CA, you must instantiate a new ICertAdmin object and call this method again with the new configuration string.
- pRoles [out]
-
A pointer to a LONG value that represents the retrieved CA roles for the caller. This can be a bitwise combination of zero or more of the following values.
Return value
C++
If the function is successful, the return value is S_OK.
If the function fails, the return value is an HRESULT that indicates the error. For a list of common error codes, see Common HRESULT Values.
VB
The return value is a Long value that represents the retrieved CA roles for the caller. This can be a bitwise combination of zero or more of the following values.
| Return code/value | Description |
|---|---|
|
Caller has CA administrator capability. |
|
Caller has CA auditor capability. |
|
Caller has enrollment access. |
|
Caller has CA officer capability. |
|
Caller has CA backup capability. |
|
Caller has read access. |
Requirements
|
Minimum supported client | None supported [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
|
IID |
IID_ICertAdmin2 is defined as f7c3ac41-b8ce-4fb4-aa58-3d1dc0e36b39 |
See also
Send comments about this topic to Microsoft
Build date: 10/26/2012
