TaskType 복합 형식

애플리케이션의 구성 요소 또는 하위 구성 요소를 정의합니다.

<xs:complexType name="TaskType"
    mixed="true"
>
    <xs:sequence>
        <xs:element name="opcodes"
            type="OpcodeListType"
            minOccurs="0"
         />
    </xs:sequence>
    <xs:attribute name="name"
        type="QName"
        use="required"
     />
    <xs:attribute name="symbol"
        type="CSymbolType"
        use="optional"
     />
    <xs:attribute name="value"
        type="UInt16Type"
        use="required"
     />
    <xs:attribute name="eventGUID"
        type="GUIDType"
        use="optional"
     />
    <xs:attribute name="message"
        type="strTableRef"
        use="optional"
     />
    <xs:anyAttribute
        processContents="lax"
        namespace="##other"
     />
</xs:complexType>

자식 요소

요소 Type Description
Opcode OpcodeListType 작업별 opcode 목록을 정의합니다. 작업별 opcode에 대해 Winmeta.xml 정의된 opcode 값을 사용할 수 없습니다.

특성

이름 형식 Description
eventGUID GUIDType 작업을 식별하는 레지스트리 형식의 전역적으로 고유한 식별자입니다. 이 특성은 -mof 메시지 컴파일러 인수를 사용하여 하위 수준 지원을 위한 MOF 클래스를 생성하는 경우에 필요합니다.
message strTableRef 작업의 지역화된 표시 이름입니다. 메시지 문자열은 매니페스트의 stringTable 섹션에서 지역화된 문자열을 참조합니다.
name QName 작업의 이름입니다.
기호 CSymbolType 애플리케이션에서 작업을 참조하는 데 사용할 기호입니다. 메시지 컴파일러(MC.exe)는 기호를 사용하여 컴파일러가 생성하는 헤더 파일에서 작업에 대한 상수를 만듭니다. 기호를 지정하지 않으면 컴파일러에서 기호를 생성합니다.
UInt16Type 공급자가 정의하는 작업 목록 내에서 이 작업을 고유하게 식별하는 숫자 값입니다. 값은 1에서 239까지의 범위에 있어야 합니다.

예제

다음 예제에서는 작업을 지정하는 방법을 보여줍니다.

<tasks>
  <task name="printspool:Disconnect" 
         symbol="PRINTSPOOL_TASK_DISCONNECT"
         value="0" 
         message="$(string.disconnect)"/>
 
  <task name="printspool:Connect" 
         symbol="PRINTSPOOL_TASK_CONNECT"
         value="1" 
         message="$(string.connect)">
       <opcodes>
          <opcode name="ReadRegistry" 
                  symbol="MYOPCODE_READ_REGISTRY" value="11"
                  message="$(string.ReadRegistry)"/>
       </opcodes>
   </task>
</tasks>

요구 사항

요구 사항
지원되는 최소 클라이언트
Windows Vista [데스크톱 앱만 해당]
지원되는 최소 서버
Windows Server 2008 [데스크톱 앱만 해당]