The BIMPORT_PARMS structure contains information for the BatchImport function.
Header file: | DAPI.H |
Unicode: | Yes |
typedef struct
{
DWORD dwDAPISignature;
DWORD dwFlags;
HWND hwndParent;
LPTSTR pszImportFile;
UINT uCodePage;
LPTSTR pszDSAName;
LPTSTR pszBasePoint;
LPTSTR pszContainer;
TCHAR chColSep;
TCHAR chQuote;
TCHAR chMVSep;
TCHAR creserved;
CALLBACKPROGRESS ProgressCallBacks;
ERROR_CALLBACK ErrorCallback;
LPTSTR pszNTDomain;
LPTSTR pszCreateTemplate;
} BIMPORT_PARMS, *PBIMPORT_PARMS, *LPBIMPORT_PARMS;
BatchImport imports objects from the file specified by this member into the directory information tree (DIT).
If this member is DAPI_UNICODE_FILE (export the DIT object in Unicode format) and the DIT object is in ANSI format, BatchImport fails and emits a diagnostic error message in the Windows NT Application event log.
BatchImport also fails and emits a diagnostic error message in the Windows NT Application event log if the uCodePage member is a format other than DAPI_UNICODE_FILE or 0 (zero, which is autodetect) and either of the following conditions is true:
If this member is NULL, BatchImport searches for a DSA in the following order:
Use MAPI function calls to determine the DSA. See the MAPI Programmer’s Reference for more information.
If this member is NULL, the basepoint is the current site object where the DSA, as specified by the pszDSAName parameter member, resides; if pszBasePoint is ““ (an empty string), the basepoint is the current organization object. The basepoint is the point in the DIT where BatchImport performs its bulk object creation or bulk object manipulation operations.
If this member is NULL, BatchImport exports the contents of all containers below the point specified by the pszBasePoint member.
If this member is NULL, Batchimport uses the default separator, which is defined as DEFAULT_DELIM (see DAPI.H).
The default column separator used by the directory functions is unrelated to the default column separator specified within the Administrator program.
If this member is NULL, BatchImport uses the default string enclosure character, which is defined as DEFAULT_QUOTE (see DAPI.H).
If this member is NULL, BatchImport uses the default multivalue separator character, which is defined as DEFAULT_MV_SEP (see DAPI.H).
If this member is NULL, BatchImport displays a default modeless dialog to show progress.
If this member is NULL, BatchImport calls the default error handler, which displays an error dialog window and posts the error into the Windows NT Application event log.
If this member is NULL, BatchImport uses the primary Windows NT Server domain name (the domain where the executing process computer’s account is logged on).
BatchImport reads the properties associated with the default user’s mailbox and uses this information as a standard configuration that all imported user objects inherit. BatchImport caches this information and only updates those properties applicable to the given import object. Set this member to NULL if there is no default template object. See the Microsoft Exchange Server Administrator’s Guide for more information about formatting the template object.
For additional information on this structure, see Importing and Manipulating Objects.