2.2.1.2 Shared Printer

The Shared Printer message is used to advertise printers that are installed on the advertising machine. It is serialized into an XML string and then published on the local subnet using WSD. This message has the WSD type of: HomeGroup_Printer.

  
 <?xml version="1.0" encoding="utf-8"?>
 <xs:schema id="HomeGroup" targetNamespace="http://schemas.microsoft.com/windows/2007/HomeGroup/Printing" xmlns:mstns="http://schemas.microsoft.com/windows/2007/HomeGroup/Printing" xmlns="http://schemas.microsoft.com/windows/2007/HomeGroup/Printing" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified">
   <xs:element name="HomeGroup" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
     <xs:complexType>
       <xs:choice minOccurs="0" maxOccurs="unbounded">
         <xs:element name="Printer">
           <xs:complexType>
             <xs:sequence>
               <xs:element name="Name" type="xs:string" minOccurs="1" />
             </xs:sequence>
           </xs:complexType>
         </xs:element>
       </xs:choice>
     </xs:complexType>
   </xs:element>
 </xs:schema>

NAME: The name of the printer being shared. It MUST be a valid printer name, as defined in [MS-RPRN] section 2.2.4.14.

This message is signed and encoded before being sent, as described in section 3.1.4.5.4.