Platform SDK: Agent

IAgentCommandsEx::GetDefaultID

HRESULT GetDefaultID(
   long * pdwID  // address of default command's ID
);

Retrieves the ID of the default command in a Commands collection.

pdwID
Address of a variable that receives the ID of the Command set as the default.

This property returns the current default Command object in your Commands collection. The default command is bold in the character's pop-up menu. However, setting the default command does not change command handling or double-click events.

This property applies only to your client application's use of the character; the setting does not affect other clients of the character or other characters of your client application.

See Also

IAgentCommandsEx::SetDefaultID