IDebugProcessQueryProperties::QueryProperty

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

This method queries for a specified property value of the debugging process.

Syntax

HRESULT QueryProperty(
   PROCESS_PROPERTY_TYPE  dwPropType,
   VARIANT               *pvarPropValue);
int QueryProperty(
   enum_PROCESS_PROPERTY_TYPE dwPropType,
   out object                 pvarPropValue);

Parameters

dwPropType
[in] Definition of the property queried. The values are:

  • PROCESS_PROPERTY_COMMAND_LINE = 1

  • PROCESS_PROPERTY_CURRENT_DIRECTORY = 2

  • PROCESS_PROPERTY_ENVIRONMENT_VARIABLES = 3

pvarPropValue
[out] The value of the property.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

This method is seldom used.

See also