#!/usr/bin/env python3
"""
check_disable_first_logon_animation_status.py

Checks whether "Disable First Logon Animation" is currently applied.

Usage:
    python check_disable_first_logon_animation_status.py
"""

import winreg


def main() -> None:
    try:
        key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System")
        value, _ = winreg.QueryValueEx(key, "EnableFirstLogonAnimation")
        winreg.CloseKey(key)
        print(f"Current value of 'EnableFirstLogonAnimation': {value}")
    except FileNotFoundError:
        print("'EnableFirstLogonAnimation' is not set (using the Windows default).")


if __name__ == "__main__":
    main()