ICertView::GetColumnIndex method (certview.h)
The GetColumnIndex method retrieves the zero-based index of a column.
Syntax
HRESULT GetColumnIndex(
[in] LONG fResultColumn,
[in] const BSTR strColumnName,
[out, retval] LONG *pColumnIndex
);
Parameters
[in] fResultColumn
Specifies the column. This parameter can be one of the following values.
Value | Meaning |
---|---|
|
Schema column information. |
|
Result column information. |
|
Value column information. |
|
Column information mask. |
[in] strColumnName
A string that contains the nonlocalized name of a column in the view.
[out, retval] pColumnIndex
The address of a variable that will contain the index of the column specified in the strColumnName parameter. This method fails if pColumnIndex is NULL.
Return value
C++
If the method succeeds, 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 is the zero-based index of the column.Remarks
This method is used to determine the index of the column specified by the strColumnName parameter. The column indices are zero-based (the first column is index zero).
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | certview.h (include Certsrv.h) |
Library | Certidl.lib |
DLL | Certadm.dll |