IAgentCommandsEx::GetDefaultID
[Microsoft Agent is deprecated as of Windows 7, and may be unavailable in subsequent versions of Windows.]
HRESULT GetDefaultID(
long * pdwID // address of default command's ID
);
Retrieves the ID of the default command in a Commands collection.
- Returns S_OK to indicate the operation was successful.
-
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