RSoPResetPolicySettingStatus function

The RSoPResetPolicySettingStatus function unlinks the RSOP_PolicySettingStatus instance from its RSOP_PolicySetting instance. The function deletes the instances of RSOP_PolicySettingStatus and RSOP_PolicySettingLink. Optionally, you can also specify that the function delete the instance of RSOP_PolicySetting.

Syntax


HRESULT RSoPResetPolicySettingStatus(
  _In_  DWORD            dwFlags,
  _In_  IWbemServices    *pServices,
  _In_  IWbemClassObject *pSettingInstance
);

Parameters

dwFlags [in]

This parameter is currently unused.

pServices [in]

Specifies a WMI services pointer to the RSoP namespace to which the policy data is to be written. This parameter is required.

pSettingInstance [in]

Pointer to an instance of RSOP_PolicySetting containing the policy setting. This parameter is required and can also point to the instance's children.

Return value

If the function succeeds, the return value is S_OK. Otherwise, the function returns one of the COM error codes defined in the Platform SDK header file WinError.h.

Remarks

To link (associate) the RSOP_PolicySettingStatus instance to its RSOP_PolicySetting instance, you can call the RSoPSetPolicySettingStatus function.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Header

Userenv.h

Library

Userenv.lib

DLL

Userenv.dll

See also

Group Policy Overview
Group Policy Functions
RSoPSetPolicySettingStatus

 

 

Show:
© 2015 Microsoft