Source code of Windows XP (NT5)
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.

23 lines
455 B

  1. #include "shellprv.h"
  2. #pragma hdrstop
  3. #include "regsprtb.h"
  4. BOOL CRegSupportBuf::_InitSetRoot(LPCTSTR pszSubKey1, LPCTSTR pszSubKey2)
  5. {
  6. lstrcpyn(_szRoot, pszSubKey1, ARRAYSIZE(_szRoot));
  7. if (pszSubKey2)
  8. {
  9. lstrcatn(_szRoot, TEXT("\\"), ARRAYSIZE(_szRoot));
  10. lstrcatn(_szRoot, pszSubKey2, ARRAYSIZE(_szRoot));
  11. }
  12. return TRUE;
  13. }
  14. LPCTSTR CRegSupportBuf::_GetRoot(LPTSTR pszRoot, DWORD cchRoot)
  15. {
  16. return _szRoot;
  17. }