The GetBookmarkDefinition2 method retrieves an existing bookmark definition properties.
HRESULT GetBookmarkDefinition2(
[in] SHORT p_nDefinition,
[out] SHORT* p_pnHeading,
[out] BOOL* p_pbEnabled,
[out] BOOL* p_pbDetFont,
[out, string] BSTR* p_pwsDetFont,
[out] LONG* p_pnDetFontType,
[out] BOOL* p_pbDetStyle,
[out] BOOL* p_pbDetBold,
[out] BOOL* p_pbDetItalic,
[out] BOOL* p_pbDetSize,
[out] INT* p_pnDetSizeVal,
[out] FLOAT* p_pnDetSizePt,
[out] BOOL* p_pbDetColor,
[out] LONG* p_pnDetColor,
[out] BOOL* p_pbDispAsBold,
[out] BOOL* p_pbDispAsItalic,
[out] LONG* p_pnDispColor
);
Parameters:
p_nDefinition
[in]definition index
p_pnHeading
[out]heading index
p_pbEnabled
[out]definition is enabled
p_pbDetFont
[out] detect font flag
p_pwsDetFont
[out] font name
p_pbDetStyle
[out] detect font style
p_pbDetBold
[out] bold font
p_pbDetItalic
[out]] italic font
p_pbDetSize
[out]] detect font size
p_pnDetSizeVal
[out] font size
p_pnDetSizePt
[out] font size rounding
p_pbDetColor
[out] detect font color
p_pnDetColor
[out] font color (RGB value)
p_pbDispAsBold
[out]] display bookmark font bold
p_pbDispAsItalic
[out] display bookmark font italic
p_pnDispColor
[out] display bookmark font color
Return values:
S_OK
on success or COM error codeNV_NOT_INITIALIZED
- Initialize was not calledNV_UNKNOWN_PROFILE
- no profile loadedNV_INVALID_BOOKMARK_DEF
- wrong bookmark definition index