IDebugProcessQueryProperties::QueryProperties

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 values of the debugging process.

Syntax

HRESULT QueryProperties(
   ULONG                  celt,
   PROCESS_PROPERTY_TYPE *rgdwPropTypes,
   VARIANT               *rgtPropValues);
int QueryProperties(
   uint                       celt,
   enum_PROCESS_PROPERTY_TYPE rgdwPropTypes,
   out object[ ]              rgtPropValues);

Parameters

celt
[in] Size of the arrays containing the property definitions and property values.

dwPropType
[in] An array that contains definitions of the queried properties. The possible values are:

  • PROCESS_PROPERTY_COMMAND_LINE = 1

  • PROCESS_PROPERTY_CURRENT_DIRECTORY = 2

  • PROCESS_PROPERTY_ENVIRONMENT_VARIABLES = 3

pvarPropValue
[out] An array containing the property values.

Return Value

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

Remarks

This method is seldom used.

See also