IADsObjectOptions::GetOption method (iads.h)

The IADsOptions.GetOption method gets a provider-specific option for a directory object.

Syntax

HRESULT GetOption(
  long    lnOption,
  VARIANT *pvValue
);

Parameters

lnOption

Indicates the provider-specific option to get. This parameter can be any value in the ADS_OPTION_ENUM enumeration.

pvValue

Pointer to a VARIANT variable that receives the current value for the option specified in the lnOption parameter.

Return value

The method supports the standard return values, including S_OK if the operation is successful, and E_ADS_BAD_PARAMETER if the user has supplied an invalid pvValue parameter. For more information, see ADSI Error Codes.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header iads.h
DLL Activeds.dll

See also

ADSI Error Codes

ADS_OPTION_ENUM

IADsObjectOptions