BaseTypes Schema

 

Applies To: Windows Server Update Services

Types

The Basetypes Schema defines the following types in the https://schemas.microsoft.com/msus/2002/12/BaseTypes target namespace.

positiveInt

A non-negative integer derived from a signed integer so as to be VB-type compatible.

<simpleType name="positiveInt">  
<restriction base="int">  
<minInclusive value="0" />  
</restriction>  
</simpleType>  

positiveLong

A non-negative long integer derived from a signed long so as to be VB-type compatible.

<simpleType name="positiveLong">  
<restriction base="long">  
<minInclusive value="0" />  
</restriction>  
</simpleType>  

Guid

A GUID in standard string form, such as "23058894-E97E-407e-A8DC-3D475B27FB3D".

<simpleType name="Guid">  
<restriction base="string">  
<pattern value="[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}" />  
</restriction>  
</simpleType>  

Version

A standard four-part version string, such as "1.2.3.4".

<simpleType name="Version">  
<restriction base="string">  
<pattern value="\d{1,5}\.\d{1,5}\.\d{1,5}\.\d{1,5}" />  
</restriction>  
</simpleType>  

ScalarComparison

An enumeration defining basic scalar comparisons.

<simpleType name="ScalarComparison">  
<restriction base="token">  
<enumeration value="LessThan" />  
<enumeration value="LessThanOrEqualTo" />  
<enumeration value="EqualTo" />  
<enumeration value="GreaterThanOrEqualTo" />  
<enumeration value="GreaterThan" />  
</restriction>  
</simpleType>  

StringComparison

An enumeration defining basic string comparisons.

<simpleType name="StringComparison">  
<restriction base="token">  
<enumeration value="EqualTo" />  
<enumeration value="BeginsWith" />  
<enumeration value="Contains" />  
<enumeration value="EndsWith" />  
</restriction>  
</simpleType>  

LoopLogic

An enumeration defining the logic used when combining results from iterations through a loop.

<simpleType name="LoopLogic">  
<restriction base="token">  
<enumeration value="Any" />  
<enumeration value="All" />  
<enumeration value="None" />  
</restriction>  
</simpleType>  

FileDate

A date from the file system, such as the creation or modification date of a file.

<simpleType name="FileDate">  
<restriction base="dateTime" />  
</simpleType>  

FileDigest

A digest (hash) of a file used both to identify the file within WSUS and to validate its integrity.

<simpleType name="FileDigest">  
<restriction base="base64Binary">  
<maxLength value="20" />  
</restriction>  
</simpleType>  

FileDigestAlgorithm

A cryptography algorithm supported by WSUS that is used to produce FileDigest values.

Important

Although the SHA1 algorithm is currently used, that may change in future versions of WSUS.

<simpleType name="FileDigestAlgorithm">  
<restriction base="token">  
<enumeration value="SHA1" />  
</restriction>  
</simpleType>  

FileName

A file name without a path.

<simpleType name="FileName">  
<restriction base="string">  
<maxLength value="256" />  
<minLength value="1" />  
</restriction>  
</simpleType>  

FilePath

A file path. The path may be absolute or relative, may include zero or more directories, and must end with a valid file or directory name (it may not end with a backslash, colon, etc.).

<simpleType name="FilePath">  
<restriction base="string">  
<maxLength value="260" />  
<minLength value="1" />  
</restriction>  
</simpleType>  

FileSize

A file size in bytes.

<simpleType name="FileSize">  
<restriction base="bt:positiveLong" />  
</simpleType>  

CSIDL

A numeric CSIDL value, as would be passed as the nFolder parameter to Win32 SHGetFolderPath.

<simpleType name="Csidl">  
<restriction base="int" />  
</simpleType>  

RegistryKey

An enumeration defining the standard predefined registry keys, such as "HKEY_LOCAL_MACHINE".

<simpleType name="RegistryKey">  
<restriction base="token">  
<enumeration value="HKEY_LOCAL_MACHINE" />  
<enumeration value="HKEY_LOOP_TARGET" />  
</restriction>  
</simpleType>  

RegistrySubkey

A registry subkey, such as "Software\Microsoft\Windows".

<simpleType name="RegistrySubkey">  
<restriction base="string">  
<maxLength value="255" />  
<minLength value="1" />  
</restriction>  
</simpleType>  

RegistryValue

A registry value name, such as "CurrentBuildNumber".

<simpleType name="RegistryValue">  
<restriction base="string">  
<maxLength value="16383" />  
<minLength value="0" />  
</restriction>  
</simpleType>  

RegistryValueType

An enumeration defining the valid registry value types, such as "REG_SZ" and "REG_DWORD".

<simpleType name="RegistryValueType">  
<restriction base="token">  
<enumeration value="REG_DWORD" />  
<enumeration value="REG_EXPAND_SZ" />  
<enumeration value="REG_MULTI_SZ" />  
<enumeration value="REG_QWORD" />  
<enumeration value="REG_SZ" />  
<enumeration value="REG_FULL_RESOURCE_DESCRIPTOR" />  
</restriction>  
</simpleType>  

RegistryValueDword

A REG_DWORD registry value.

<simpleType name="RegistryValueDword">  
<restriction base="unsignedInt" />  
</simpleType>  

RegistryValueExpandSz

A REG_EXPAND_SZ registry value.

<simpleType name="RegistryValueExpandSz">  
<restriction base="string">  
<maxLength value="16383" />  
<minLength value="1" />  
</restriction>  
</simpleType>  

RegistryValueMultiSz

A REG_MULTI_SZ registry value.

<simpleType name="RegistryValueMultiSz">  
<restriction base="string">  
<maxLength value="16383" />  
<minLength value="1" />  
</restriction>  
</simpleType>  

RegistryValueQword

A REG_QWORD registry value.

<simpleType name="RegistryValueQword">  
<restriction base="unsignedLong" />  
</simpleType>  

RegistryValueSz

A REG_SZ registry value.

<simpleType name="RegistryValueSz">  
<restriction base="string">  
<maxLength value="16383" />  
<minLength value="1" />  
</restriction>  
</simpleType>  

RegistryKeyAttributes

A group of attributes that identify a registry subkey.

<attributeGroup name="RegistryKeyAttributes">  
<attribute name="Key" type="bt:RegistryKey" use="required" />  
<attribute name="Subkey" type="bt:RegistrySubkey" use="required" />  
<attribute name="RegType32" type="boolean" use="optional" default="false"/>  
</attributeGroup>  

RegistryValueAttributes

A group of attributes that identify a registry value.

<attributeGroup name="RegistryValueAttributes">  
<attributeGroup ref="bt:RegistryKeyAttributes" />  
<attribute name="Value" type="bt:RegistryValue" use="required" />  
</attributeGroup>  

WmiNamespace

A WMI namespace.

<simpleType name="WmiNamespace">  
<restriction base="string">  
<minLength value="1" />  
</restriction>  
</simpleType>  

WmiWqlQuery

A WMI WQL query.

<simpleType name="WmiWqlQuery">  
<restriction base="string">  
<minLength value="1" />  
</restriction>  
</simpleType>  

ProcessorArchitecture

A processor architecture, as defined in Win32 SYSTEM_INFO.wProcessorArchitecture.

<simpleType name="ProcessorArchitecture">  
<restriction base="unsignedShort" />  
</simpleType>  

ProcessorLevel

A processor level, as defined in Win32 SYSTEM_INFO.wProcessorLevel.

<simpleType name="ProcessorLevel">  
<restriction base="unsignedShort" />  
</simpleType>  

ProcessorRevision

A processor revision, as defined in Win32 SYSTEM_INFO.wProcessorRevision.

<simpleType name="ProcessorRevision">  
<restriction base="unsignedShort" />  
</simpleType>  

MsiFeatureName

A Windows Installer feature name.

<simpleType name="MsiFeatureName">  
<restriction base="string">  
<maxLength value="255" />  
<minLength value="1" />  
</restriction>  
</simpleType>  

MsiComponentCode

An MSI component code.

<simpleType name="MsiComponentCode">  
<restriction base="string">  
<maxLength value="255" />  
<minLength value="1" />  
</restriction>  
</simpleType>  

InfSection

The name of a section of an INF file.

<simpleType name="InfSection">  
<restriction base="string">  
<maxLength value="511" />  
</restriction>  
</simpleType>  

HttpUrl

An http or https URL.

<simpleType name="HttpUrl">  
<restriction base="anyURI">  
<pattern value="http://.+" />  
<pattern value="https://.+" />  
<maxLength value="2083" />  
</restriction>  
</simpleType>