Steven Edwards <[EMAIL PROTECTED]> 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
[EMAIL PROTECTED]

Reply via email to