The NTEXPORT_PARMS structure contains information for exporting Windows NT Server directories.
Header file: | DAPI.H |
Unicode: | Yes |
typedef struct
{
DWORD dwDAPISignature;
DWORD dwFlags;
HWND hwndParent;
LPTSTR pszExportFile;
CALLBACKPROGRESS ProgressCallBacks;
ERROR_CALLBACK ErrorCallback;
EXPORT_CALLBACK ExportCallback;
LPTSTR pszDCName;
LPTSTR pszNTDomain;
} NTEXPORT_PARMS, *PNTEXPORT_PARMS, *LPNTEXPORT_PARMS;
If this file exists, an error is returned. NTExport ignores this member if ProgressCallBacks is not NULL.
If this member is NULL, NTExport assumes that the calling application does not supply its own progress updates and displays a default modeless dialog to display the operation’s progress.
If this member is NULL, NTExport 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, NTExport writes the exported objects to the file specified by pszExportFile.
If this member is NULL, NTExport queries the domain for the name of an available domain controller.
If this member is NULL, NTExport uses the primary Windows NT Server domain name (the domain on which the executing process’s computer account is logged on).
If pszDCName is specified, it overrides any value specified for pszNTDomain.
The following table describes the actions NTExport performs, depending on the values of pszNTDomain and pszDCName.
pszDCName | pszNTDomain | Action |
---|---|---|
NULL or "" | NULL or "" | Exports users from the current logon domain. |
computer | ignored | Exports users from computer, which is either a domain controller (DC) or a server. If computer is a simple server, only the local users are extracted. If computer is either a primary DC (PDC) or a backup DC (BDC), the domain users are extracted. |
\\computer | ignored | Exports users from computer, which is either a DC or a server. If computer is a simple server, only the local users are extracted. If computer is either a PDC or a BDC, the domain users are extracted. |
NULL or "" | domain | Exports users whose PDC computer is identified by NetGetDCName. If that fails, get the PDC by calling NetGetAnyDCName. |
NULL or "" | \\computer | Exports users from computer. The UNC name is assumed to specify a computer name. |
The NTEXPORT_PARMS structure is a parameter to the NTExport function.
For additional information on this structure, see Using Directory Access Functions.