setupapi - ReactOS Merge 20050205
Alexandre Julliard
julliard at winehq.org
Tue Feb 8 07:03:40 CST 2005
Steven Edwards <steven_ed4153 at yahoo.com> writes:
> +BOOL WINAPI DelayedMove(LPCWSTR lpExistingFileName, LPCWSTR lpNewFileName)
> +{
> + if (OsVersionInfo.dwPlatformId != VER_PLATFORM_WIN32_NT)
> + {
> + SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
> + return FALSE;
> + }
> +
> + return MoveFileExW(lpExistingFileName, lpNewFileName,
> + MOVEFILE_REPLACE_EXISTING | MOVEFILE_DELAY_UNTIL_REBOOT);
> +}
You shouldn't do that kind of preventive version check, you should
always call the function and then deal with failures appropriately.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list