title: Delete a registry key recursively
body: <p>I need to remove a subtree in the Windows registry under Windows Mobile 6. The RegDeleteTree function is not available, and SHDeleteKey is (apparently) not available in any static library under the WM6 SDK, though the declaration is available in shlwapi.h.<br>
  I tried to get it from shlwapi.dll, like</p>
  
  <pre><code>    typedef DWORD (__stdcall *SHDeleteKey_Proc) (HKEY, LPCWSTR);
      SHDeleteKey_Proc procSHDeleteKey; 
      HINSTANCE shlwapidll = ::LoadLibrary(_T("shlwapi.dll"));
      if(shlwapidll) {
      procSHDeleteKey = 
              (SHDeleteKey_Proc)GetProcAddress(shlwapidll,_T("SHDeleteKeyW"));
          ASSERT(procSHDeleteKey);
      }
  </code></pre>
  
  <p>But I hit the assert.<br>
  Is there a nice way to delete, recursively, a Registry key (empty or not) under Windows Mobile?</p>