Tried to make IsDialogMessageW more compatible. Changed