title: 'net start spooler' fails with exit code 2 when trying to restart the printer spooler on Windows
body: <p>My application installs a virtual printer driver. </p>
  
  <p>On some users' systems I need to restart the printer spooler because functions like OpenPrinter return RPC_S_SERVER_UNAVAILABLE (text is "The RPC server is unavailable."), which means the spooler has stopped working.</p>
  
  <p>I try to do that by calling "net start spooler" with CreateProcess:</p>
  
  <pre><code>PROCESS_INFORMATION pi = { 0 };
  STARTUPINFO si = { sizeof(si) };
  // later
  CreateProcess(0, "net start spooler", 0, 0, 0, 0, 0, 0, &amp;si, &amp;pi );
  </code></pre>
  
  <p>On some users' systems this works, but on others it fails with exit code 2, and GetLastError returns ERROR_NO_MORE_FILES (text is "There are no more files.").</p>
  
  <p>Does anyone know what ERROR_NO_MORE_FILES would mean in this case?</p>