ImportRSoPData function

The ImportRSoPData function imports a data file containing RSoP data to a WMI namespace. The file must be one generated by a call to the ExportRSoPData function.

Syntax


HRESULT ImportRSoPData(
  _In_  LPOLESTR lpNameSpace,
  _In_  LPOLESTR lpFileName
);

Parameters

lpNameSpace [in]

Pointer to a string specifying the namespace to contain the RSoP data. The namespace must exist prior to calling ImportRSoPData.

lpFileName [in]

Pointer to a string specifying the name of the file that contains the RSoP data.

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.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Gpedit.h

Library

Gpedit.lib

DLL

Gpedit.dll

See also

Group Policy Overview
Group Policy Functions
ExportRSoPData

 

 

Show:
© 2014 Microsoft. All rights reserved.