title: Trying to get a process name but I get hex instead of text
body: <p>Here's my code (please ignore my 'try' statement, I know..):</p>
  
  <pre><code>wchar_t *zGetName(DWORD kPid)
  {
      if (!kPid)
          return NULL;
      PROCESSENTRY32W kPE32;
      HANDLE kSnap;
      kPE32.dwSize = sizeof(PROCESSENTRY32W);
      kSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
      if (!kSnap)
          return NULL;
      if (Process32FirstW(kSnap, &amp;kPE32))
      {
          do {
              if (kPE32.th32ProcessID == kPid)
              {
                  wchar_t *kExe = kPE32.szExeFile;
                  CloseHandle(kSnap);
                  return kExe;
              }
          } while (Process32NextW(kSnap, &amp;kPE32));
      }
      CloseHandle(kSnap);
      return NULL;
  }
  
  int main()
  {
      try
      {
          SetConsoleTitleW(L"BruteID");
          std::cout &lt;&lt; R"(Press any key to start scanning for process IDs. . .)";
          getchar();
  
          DWORD kFirst = 0x0;
          int64_t kCount = 0;
          for (kFirst; kFirst &lt; 10000; ++kFirst)
          {
              kCount++;
              wchar_t *kName = zGetName(kFirst);
              if (kName != 0)
              {
                  std::cout &lt;&lt; "{" &lt;&lt; __TIME__ &lt;&lt; "} " &lt;&lt; "The process ID " &lt;&lt; kFirst &lt;&lt; " belongs to the process ";
                  _tprintf(TEXT("%s"), kName);
                  std::cout &lt;&lt; "\n";
                  zSetConsole(kCount);
              }
              else
                  zSetConsole(kCount);
          }
      }
      catch (...) {}
  
      getchar();
  }
  </code></pre>
  
  <p>Basically I am trying to check all the process IDs with an extremely simple 'for' loop and get the names of those that exist, but instead of the text I am getting something like 0D45FBA, etc.</p>
  
  <p>I tried a lot of things and this code is just the last thing that I tried without success, I am looking for help.</p>
  
  <p>Also tried to chance from UNICODE to Multi-Byte and vice-versa and many other things.</p>