The GetAction method retrieves the action id and action type for the specified index in the action list
HRESULT GetAction(
[in] LONG p_nIndex,
[out, string] LPWSTR* 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