Compartilhar via


ExtExtension.GetUnnamedArgStr method

The GetUnnamedArgStr method returns an unnamed string argument from the command line used to invoke the current extension command.

Syntax

PCSTR GetUnnamedArgStr(
  [in] ULONG Index
);

Parameters

  • Index [in]
    Specifies the index of the argument. The command-line description used in EXT_COMMAND must specify that the type of this argument is string. The value of Index should be between zero and the number of unnamed arguments returned by GetNumUnnamedArgs minus one (unnamed arguments - 1).

Return value

GetUnnamedArgStr returns the unnamed string argument.

Remarks

For an overview of argument parsing in the EngExtCpp extensions framework, see Parsing Extension Arguments.

The string returned by GetUnnamedArgStr is only meaningful during the execution of the current extension command.

This method should only be called during the execution of an extension command provided by this class.

Requirements

Target platform

Desktop

Header

Engextcpp.hpp (include Engextcpp.hpp)

See also

ExtExtension

EXT_COMMAND

GetNumUnnamedArgs

 

 

Send comments about this topic to Microsoft