include winapifamily.inc

if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)

PACKAGE_ARCHITECTURE_MIN_LENGTH equ 3
PACKAGE_ARCHITECTURE_MAX_LENGTH equ 7
PACKAGE_VERSION_MIN_LENGTH      equ 7
PACKAGE_VERSION_MAX_LENGTH      equ 23
PACKAGE_NAME_MIN_LENGTH         equ 3
PACKAGE_NAME_MAX_LENGTH         equ 50
PACKAGE_PUBLISHER_MIN_LENGTH    equ 4
PACKAGE_PUBLISHER_MAX_LENGTH    equ 8192
PACKAGE_PUBLISHERID_MIN_LENGTH  equ 13
PACKAGE_PUBLISHERID_MAX_LENGTH  equ 13
PACKAGE_RESOURCEID_MIN_LENGTH   equ 0
PACKAGE_RESOURCEID_MAX_LENGTH   equ 30

PACKAGE_FULL_NAME_MIN_LENGTH    equ PACKAGE_NAME_MIN_LENGTH + 1 + \
                                    PACKAGE_VERSION_MIN_LENGTH + 1 + \
                                    PACKAGE_ARCHITECTURE_MIN_LENGTH + 1 + \
                                    PACKAGE_RESOURCEID_MIN_LENGTH + 1 + \
                                    PACKAGE_PUBLISHERID_MIN_LENGTH
PACKAGE_FULL_NAME_MAX_LENGTH    equ PACKAGE_NAME_MAX_LENGTH + 1 + \
                                    PACKAGE_VERSION_MAX_LENGTH + 1 + \
                                    PACKAGE_ARCHITECTURE_MAX_LENGTH + 1 + \
                                    PACKAGE_RESOURCEID_MAX_LENGTH + 1 + \
                                    PACKAGE_PUBLISHERID_MAX_LENGTH

PACKAGE_FAMILY_NAME_MIN_LENGTH  equ PACKAGE_NAME_MIN_LENGTH + 1 + \
                                    PACKAGE_PUBLISHERID_MIN_LENGTH
PACKAGE_FAMILY_NAME_MAX_LENGTH  equ PACKAGE_NAME_MAX_LENGTH + 1 + \
                                    PACKAGE_PUBLISHERID_MAX_LENGTH

PACKAGE_MIN_DEPENDENCIES        equ 0
PACKAGE_MAX_DEPENDENCIES        equ 128
PACKAGE_FAMILY_MIN_RESOURCE_PACKAGES equ 0
PACKAGE_FAMILY_MAX_RESOURCE_PACKAGES equ 512
PACKAGE_GRAPH_MIN_SIZE          equ 1
PACKAGE_GRAPH_MAX_SIZE          equ (1 + PACKAGE_MAX_DEPENDENCIES + PACKAGE_FAMILY_MAX_RESOURCE_PACKAGES)

PACKAGE_APPLICATIONS_MIN_COUNT  equ 0
PACKAGE_APPLICATIONS_MAX_COUNT  equ 100

PACKAGE_RELATIVE_APPLICATION_ID_MIN_LENGTH equ (1 + 1)
PACKAGE_RELATIVE_APPLICATION_ID_MAX_LENGTH equ (64 + 1)
APPLICATION_USER_MODEL_ID_MIN_LENGTH equ PACKAGE_FAMILY_NAME_MIN_LENGTH + 1 + \
                                         PACKAGE_RELATIVE_APPLICATION_ID_MIN_LENGTH
APPLICATION_USER_MODEL_ID_MAX_LENGTH equ PACKAGE_FAMILY_NAME_MAX_LENGTH + 1 + \
                                         PACKAGE_RELATIVE_APPLICATION_ID_MAX_LENGTH

endif ;; WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
