Controlling Export with BasePoint, Container, and Export Flags

To specify a location from which directory objects are to be exported with the BatchExport function, use the pszBasePoint and pszContainer members of the BEXPORT_PARMS structure as follows:

If pszBasePoint in BEXPORT_PARMS is NULL, the BatchExport function starts object extraction from the current site object, which is the site where the specified DSA resides. If pszBasePoint in BEXPORT_PARMS is "" (a zero-length string), the BatchExport function uses the current organization object as the basepoint. If pszContainer is NULL, the export operation is executed as if pszContainer has the value of pszBasePoint. These special cases are summed up in the following table.

Export Points for Special Cases of pszBasePoint and pszContainer

Member Value Export Point
pszBasePoint NULL Site object of the active server.
pszBasePoint "" Organization object.
pszContainer NULL Treats the basepoint as the default export container (as if pszContainer acquires the value of pszBasePoint).