Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
605 B

  1. #include "shellprv.h"
  2. #pragma hdrstop
  3. #include "regsprtb.h"
  4. BOOL CRegSupportBuf::_InitSetRoot(LPCTSTR pszSubKey1, LPCTSTR pszSubKey2)
  5. {
  6. HRESULT hr;
  7. hr = StringCchCopy(_szRoot, ARRAYSIZE(_szRoot), pszSubKey1);
  8. if (SUCCEEDED(hr) && pszSubKey2)
  9. {
  10. hr = StringCchCat(_szRoot, ARRAYSIZE(_szRoot), TEXT("\\"));
  11. if (SUCCEEDED(hr))
  12. {
  13. hr = StringCchCat(_szRoot, ARRAYSIZE(_szRoot), pszSubKey2);
  14. }
  15. }
  16. return SUCCEEDED(hr);
  17. }
  18. LPCTSTR CRegSupportBuf::_GetRoot(LPTSTR pszRoot, DWORD cchRoot)
  19. {
  20. return _szRoot;
  21. }