﻿<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2006 U (http://www.altova.com) by Peter Liao (Trend Micro Incorporated) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:include schemaLocation="Meta_v1_0.xsd"/>
	<xs:include schemaLocation="SmexCommon_v1_1.xsd"/>
	<xs:element name="TM_ManualScan">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="InstanceId" type="InstanceIdType"/>
				<xs:element name="MS_NODE_MS_ENABLED" type="xs:boolean" default="false">
					<xs:annotation>
						<xs:documentation>Enable node manual scan. true for enable, false for disable.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="MS_SCAN_TIMEOUT" type="xs:integer" default="5">
					<xs:annotation>
						<xs:documentation>After all the items be scanned by manual scan, then we must wait all the items reported. The field is for waiting timeout. Its unit is by minute.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="MS_DB_SELECT_ALL" type="xs:boolean" default="false">
					<xs:annotation>
						<xs:documentation>Record whether to select all databases to scan.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="MS_DB_SELECTION_CFGSETTING_MV">
					<xs:annotation>
						<xs:documentation>Database selection.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:complexContent>
							<xs:extension base="ReferenceArrayType">
								<xs:attribute ref="server_dependent"/>
							</xs:extension>
						</xs:complexContent>
					</xs:complexType>
				</xs:element>
				<xs:element name="MS_RESULT_CFGSETTING" type="ReferenceType">
					<xs:annotation>
						<xs:documentation>Background scan configuration setting.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="MS_VIRUS_SCAN_CFGSETTING" type="ReferenceType">
					<xs:annotation>
						<xs:documentation>Virus scan configuration setting.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="MS_ATTACHMENT_BLOCKING_CFGSETTING" type="ReferenceType">
					<xs:annotation>
						<xs:documentation>Attachment blocking configuration setting.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="MS_CONTENT_FILTER_CFGSETTING" type="ReferenceType">
					<xs:annotation>
						<xs:documentation>Content filter configuration setting.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="MS_DLP_FILTER_CFGSETTING" type="ReferenceType" minOccurs="0">
					<xs:annotation>
						<xs:documentation>DLP filter configuration setting.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="MS_WEB_REPUTATION_CFGSETTING" type="ReferenceType"  minOccurs="0">
					<xs:annotation>
						<xs:documentation>Web reputation configuration setting.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="MS_SCAN_MAILS_WITHIN_SPECIFIC_DELIVERY_TIME" type="xs:boolean" default="false">
					<xs:annotation>
						<xs:documentation>Scan mails within a specific delivery time.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="MS_LOWER_DELIVERY_TIME_LIMIT" type="xs:dateTime" default="1900-01-01T00:00:00Z">
					<xs:annotation>
						<xs:documentation>Lower age limit of a specific delivery time.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="MS_UPPER_DELIVERY_TIME_LIMIT" type="xs:dateTime" default="1900-01-01T00:00:00Z">
					<xs:annotation>
						<xs:documentation>Upper age limit of a specific delivery time.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="MS_SCAN_MAILS_WITH_ATTACHMENTS" type="xs:boolean" default="false">
					<xs:annotation>
						<xs:documentation>Scan mails with attachments.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="MS_SCAN_UNSCANNED_MAILS" type="xs:boolean" default="false">
					<xs:annotation>
						<xs:documentation>Scan unscanned mails.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="MS_ENABLE_CPU_USAGE" type="xs:boolean" default="false">
					<xs:annotation>
						<xs:documentation>Whether we enable the CPU usage control feature when this process runs.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="MS_MAX_CPU_USAGE" type="xs:integer" default="40">
					<xs:annotation>
						<xs:documentation>How many CPU percentage we plan to let this process to occupy?</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="TM_DbInfo">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="InstanceId" type="InstanceIdType"/>
				<xs:element name="DI_SERVER" type="xs:string">
					<xs:annotation>
						<xs:documentation>Server name.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="DI_NAME" type="xs:string">
					<xs:annotation>
						<xs:documentation>Mailbox store or Public folder store name.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="DI_GUID" type="xs:string">
					<xs:annotation>
						<xs:documentation>GUID of Mailbox store or Public folder store.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="DI_PUBLIC" type="xs:boolean" default="false">
					<xs:annotation>
						<xs:documentation>Mailbox store or Public folder store. true for Public folder store, false for Mailbox store.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="DI_ONLINE" type="xs:boolean" default="false">
					<xs:annotation>
						<xs:documentation>Online status. true for Online, false for Offline.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="TM_BackgroundScanResult">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="InstanceId" type="InstanceIdType"/>
				<xs:element name="BSR_START_TIME" type="xs:dateTime" default="1900-01-01T00:00:00Z">
					<xs:annotation>
						<xs:documentation>Background scan start time.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BSR_SCAN_STATUS" type="xs:integer" default="0">
					<xs:annotation>
						<xs:documentation>Background scan status.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BSR_SCAN_TIME" type="xs:integer" default="0">
					<xs:annotation>
						<xs:documentation>Background scan spent time.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BSR_VIRUS_SCAN_ENABLED" type="xs:boolean" default="false">
					<xs:annotation>
						<xs:documentation>Enable virus scanning. true for enable, false for disable.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BSR_ATTACHMENT_BLOCKING_ENABLED" type="xs:boolean" default="false">
					<xs:annotation>
						<xs:documentation>Enable attachment blocking. true for enable, false for disable.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BSR_CONTENT_FILTER_ENABLED" type="xs:boolean" default="false">
					<xs:annotation>
						<xs:documentation>Enable content filtering. true for enable, false for disable.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BSR_DLP_FILTER_ENABLED" type="xs:boolean" minOccurs="0" default="false">
					<xs:annotation>
						<xs:documentation>Enable dlp filtering. true for enable, false for disable.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BSR_WEB_REPUTATION_ENABLED" type="xs:boolean" minOccurs="0" default="false">
					<xs:annotation>
						<xs:documentation>Enable web reputation. true for enable, false for disable.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BSR_MAILBOX_SCAN_COUNT" type="xs:integer" default="0">
					<xs:annotation>
						<xs:documentation>Count of total store scanned.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BSR_SCAN_MAILS_WITHIN_SPECIFIC_DELIVERY_TIME" type="xs:boolean" default="false">
					<xs:annotation>
						<xs:documentation>Scan mails within a specific delivery time.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BSR_LOWER_DELIVERY_TIME_LIMIT" type="xs:dateTime" default="1900-01-01T00:00:00Z">
					<xs:annotation>
						<xs:documentation>Lower age limit of a specific delivery time.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BSR_UPPER_DELIVERY_TIME_LIMIT" type="xs:dateTime" default="1900-01-01T00:00:00Z">
					<xs:annotation>
						<xs:documentation>Upper age limit of a specific delivery time.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BSR_SCAN_MAILS_WITH_ATTACHMENTS" type="xs:boolean" default="false">
					<xs:annotation>
						<xs:documentation>Scan mails with attachments.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BSR_SCAN_UNSCANNED_MAILS" type="xs:boolean" default="false">
					<xs:annotation>
						<xs:documentation>Scan unscanned mails.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BSR_UNCLEANABLE_VIRUS_COUNT" type="xs:integer" default="0">
					<xs:annotation>
						<xs:documentation>Count of total uncleanable virus scanned.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BSR_DETECTED_VIRUS_COUNT" type="xs:integer" default="0">
					<xs:annotation>
						<xs:documentation>Count of total virus scanned.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BSR_CONTENT_VIOLATION_COUNT" type="xs:integer" default="0">
					<xs:annotation>
						<xs:documentation>Count of total content violated.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BSR_DLP_VIOLATION_COUNT" type="xs:integer" minOccurs="0" default="0">
					<xs:annotation>
						<xs:documentation>Count of total dlp violated.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BSR_BLOCKED_ATTACHMENT_COUNT" type="xs:integer" default="0">
					<xs:annotation>
						<xs:documentation>Count of total attachment blocked.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BSR_TOTAL_MESSAGE_COUNT" type="xs:integer" default="0">
					<xs:annotation>
						<xs:documentation>Count of total message scanned.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BSR_TOTAL_ATTACHMENT_COUNT" type="xs:integer" default="0">
					<xs:annotation>
						<xs:documentation>Count of total attachment scanned.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="BSR_UNSCANNABLE_ENTITY_COUNT" type="xs:integer" default="0">
					<xs:annotation>
						<xs:documentation>Count of total unscannable entities scanned.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>
