Compartilhar via


ExtExtension.SetUnnamedArgU64 method

The SetUnnamedArgU64 method sets the value of an unnamed expression argument for the current extension command.

Syntax

bool SetUnnamedArgU64(
  [in] ULONG   Index,
  [in] ULONG64 Arg,
  [in] bool    OnlyIfUnset
);

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 expression. Index should be between zero and the number of unnamed arguments - as specified in the command-line description used in EXT_COMMAND - minus one.

  • Arg [in]
    Specifies the value of an unnamed expression argument.

  • OnlyIfUnset [in]
    Specifies what happens if the argument is already set. If OnlyIfUnset is true and the argument has already been set, the argument will not be changed. If OnlyIfUnset is false and the argument has already been set, the argument will be changed.

Return value

SetUnnamedArgU64 returns true if the argument was changed; false otherwise.

Remarks

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

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

 

 

Send comments about this topic to Microsoft