GetBookmarkDefinitionCount2

Top  Previous  Next

The GetBookmarkDefinitionCount2 method retrieves the number of bookmark definitions in a bookmark heading.

HRESULT GetBookmarkDefinitionCount2(

[in] SHORT p_nHeading,

[out] SHORT* p_pnCount,

[instring] BSTR p_wsProfileName,

[in] BOOL p_bPublicProfile

);

 

Parameters:

p_nHeading

[in] heading index

p_pnCount

[out] count of bookmark headings

p_wsProfileName

[in] pointer to a BSTR containing the profile to modify. If this parameter is an empty string, the current active profile is used.

p_bPublicProfile

[in] Flag if the profile is a public or a private profile.

 

Return values:

S_OK on success or COM error code

NV_NOT_INITIALIZED - Initialize was not called

NV_INVALID_BOOKMARK_HEAD - wrong bookmark header index