SetOptionalContentGroupNameA

Content Streams and Optional Content Groups

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to SetOptionalContentGroupName and string arguments are interpreted using the current SetAnsiMode code page

Sets the name of the specified optional content group

Syntax

Delphi

Function DLSetOptionalContentGroupNameA(InstanceID, OptionalContentGroupID: Integer; NewGroupName: PAnsiChar): Integer;

DLL

int DLSetOptionalContentGroupNameA(int InstanceID, int OptionalContentGroupID, const char * NewGroupName);

Parameters

OptionalContentGroupIDAn ID returned by the NewOptionalContentGroup, GetOptionalContentGroupID or GetOptionalContentConfigOrderItemID functions The new name for the OCG
NewGroupName

Return values

0The name could not be set
1The OCG's name was set successfully int OptionalContentGroupID, wchar_t * NewGroupName);