IAgentCommandsEx::SetDefaultID

[Microsoft Agent is deprecated as of Windows 7, and may be unavailable in subsequent versions of Windows.]

HRESULT SetDefaultID(
   long dwID,  // default command's ID
);

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

  • Returns S_OK to indicate the operation was successful.

dwID

The ID for the Command to be set as the default.

This property sets the default Command object set in your Commands collection. The default command is bold in the character's pop-up menu. However, setting the default command does not actually 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::GetDefaultID