title: Unresolved external symbol _wcstok referenced in function
body: <pre><code>#include &lt;ntddk.h&gt;
  #include &lt;string.h&gt;
  
  .....
  
  PWCHAR tmpBuf = NULL, pwBuf = NULL;;
  
  tmpBuf = ExallocatePoolWithTag(NonPagePool, (MAX_SIZE + 1) * sizeof(WCHAR), BUFFER_TAG);
  pwBuf = ExAllocatePoolWithTag(NonPagedPool, (MAX_SIZE + 1) * sizeof(WCHAR), BUFFER_TAG);
  
  RtlStringCchPrintfW(tmpBuf, MAX_SIZE + 1, L"ws", ProcName);
  
  pwBuf = wcstok(tmpBuf, L"\\");
  
  ...
  </code></pre>
  
  <p>Error message:</p>
  
  <blockquote>
    <p>error LNK2019: unresolved external symbol _wcstok referenced in function</p>
  </blockquote>
  
  <p>But. <code>wcslen</code> works</p>