title: How can i comparer HKL and char[]?
body: <p>I have </p>
  
  <pre><code>DWORD dwThreadID = GetCurrentThreadId();
  HKL hCurKeyboard = GetKeyboardLayout(dwThreadID);
  </code></pre>
  
  <p>that return HKL current keyboard i need compare it with some char </p>
  
  <pre><code>char defaultLanguage[64]="0x04090409";
  </code></pre>
  
  <p>How can i compare HKL <code>hCurKeyboard</code> with <code>defaultLanguage</code></p>
  
  <p>or How can i create some HKL with this value <code>"0x04090409"</code></p>
  
  <pre><code>        char defaultLanguageLayout[64] = "0x04090409";
          DWORD dwThreadID = GetCurrentThreadId();
          HKL hCurKeyboard = GetKeyboardLayout(dwThreadID);
  //-&gt;&gt;       if(hCurKeyboard!=defaultLanguageLayout) 
          {
  
              UINT i;
              HKL hklCurrent;
              UINT uLayouts;
              HKL * lpList;
  
              uLayouts = GetKeyboardLayoutList(0, NULL);
              lpList = (HKL*) malloc(uLayouts * sizeof(HKL));
              uLayouts = GetKeyboardLayoutList(uLayouts, lpList);
  
              for(i=0; i&lt;uLayouts; i++)
              {
                  hklCurrent = *(lpList + i);
  
  //-&gt;&gt;               if(hklCurrent == defaultLanguageLayout){
                      ActivateKeyboardLayout(hklCurrent, 0);
                  }
              }
  </code></pre>
  
  <p>Thanks in advance.</p>