[This is preliminary documentation and subject to change.]
This function is called during Windows NT GUI Mode Setup when the Windows NT phase of the upgrade is ready to start.
LONG
CALLBACK
InitializeNT(
IN LPCWSTR WorkingDirectory,
IN LPCWSTR SourceDirectories,
LPVOID Reserved
);
ERROR_SUCCESS if your migration DLL initializes properly within the Windows NT environment.
All other return values (Win32 error values) are considered critical errors. Setup reports the error to the user and then cancels processing your migration DLL. However, Setup will not continue the upgrade. Any errors or logs generated will include the ProductID string specified in QueryVersion to identify your DLL.
Exceptions generated by your migration DLL cause Setup to report RPC error messages. Setup provides more information in SETUPERR.LOG.
InitializeNT is called during Windows NT GUI Mode Setup when the Windows NT phase of application migration is ready to start. When this function is called, the current directory is set to the DLL working directory.
Your migration DLL must not display user messages in its InitializeNT function.