title: KMDF Driver INF file error KMDF: 1280 and 1212
body: <p>This is my current Code:</p>
  <pre><code>[Version]
  Signature=&quot;$WINDOWS NT$&quot;
  Class=%ClassName%
  ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171}
  Provider=%ProviderName%
  CatalogFile=hidriver.cat
  DriverVer=01/07/2018
  PnpLockdown = 1
  
  
  [SourceDisksNames]
  1=%DiskName%,,,
  [SourceDisksFiles]
  hidriver.sys=1
  [DestinationDirs]
  DefaultDestDir=12
  
  [Manufacturer]
  %ManufacturerName%=Microsoft,NT$ARCH$.6.1
  [Microsoft.NT$ARCH$.6.1]
  %DeviceName%=DefaultInstall,root\hidriver
  
  [DefaultInstall.NT]
  CopyFiles=Files
  [Files]
  hidriver.sys
  
  [DefaultInstall.NT.HW]
  AddReg=HWAddReg
  [HWAddReg]
  HKR,,&quot;LowerFilters&quot;,0x00010008,&quot;hidriver&quot;
  
  [DefaultInstall.NT.Services]
  AddService=hidriver,0x00000000,hidriverService
  AddService=mshidkmdf,0x00000002,mshidkmdfService
  [hidriverService]
  DisplayName=%ServiceName%
  ServiceType=1
  StartType=3
  ErrorControl=1
  ServiceBinary=%12%\hidriver.sys
  [mshidkmdfService]
  ServiceType=1
  StartType=3
  ErrorControl=1
  ServiceBinary=%12%\mshidkmdf.sys
  
  [DefaultInstall.NT.Wdf]
  KmdfService=hidriver,KmdfLibrary
  [KmdfLibrary]
  KmdfLibraryVersion=$KMDFVERSION$
  
  [Strings]
  DeviceName=&quot;VARIABLE_1&quot;
  DiskName=&quot;VARIABLE_2&quot;
  ProviderName=&quot;VARIABLE_3&quot;
  ManufacturerName=&quot;VARIABLE_4&quot;
  ServiceName=&quot;VARIABLE_5&quot;
  ClassName=&quot;VARIABLE_6&quot;
  </code></pre>
  <p>Visual Studio is throwing these errors:</p>
  <ol>
  <li><p>1280 Class name and ClassGuid mismatch, expecting Class &quot;Sample&quot; for ClassGuid &quot;{78A1C341-4539-11d3-B88D-00C04FAD5171}&quot;.</p>
  </li>
  <li><p>1212 Cannot have both [Manufacturer] and [DefaultInstall] sections.</p>
  </li>
  </ol>
  <p>How can i solve these errors?</p>