The GetAction2 method retrieves the action id and action type for the specified index in the action list
HRESULT GetAction2(
[in] LONG p_nIndex,
[out, string] BSTR* p_pwsActionId,
[out] LONG* p_pnType
);
Parameters:
p_nIndex
[in] action index
p_pwsActionId
[out] action id
p_pnType
[out] action type
Return values:
S_OK
on success or COM error codeNV_NOT_INITIALIZED
- Initialize was not calledNV_UNKNOWN_PROFILE
- no profile loadedNV_INVALID_OPTION
- wrong index