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.

31 lines
663 B

  1. #include "precomp.hxx"
  2. HRESULT
  3. BASE_PTYPE::InstallIntoRegistry(
  4. HKEY * hRegistryKey )
  5. {
  6. return S_OK;
  7. }
  8. void
  9. BASE_PTYPE::Init()
  10. {
  11. pPackageName = 0;
  12. PackageType = PT_NONE;
  13. }
  14. CLASSPATHTYPE
  15. BASE_PTYPE::GetClassPathType(
  16. PACKAGE_TYPE p )
  17. {
  18. static CLASSPATHTYPE Mapping[] = {
  19. ExeNamePath, // PT_NONE (Not Known)
  20. DllNamePath, // PT_SR_DLL (Self registering dll)
  21. TlbNamePath, // PT_TYPE_LIB (typelib)
  22. ExeNamePath, // PT_SR_EXE (Self registering exe)
  23. CabFilePath, // PT_CAB_FILE (cab file)
  24. InfFilePath, // PT_INF_FILE (inf file)
  25. DrwFilePath, // PT_DARWIN_PACKAGE (darwin package)
  26. };
  27. return Mapping[ p ];
  28. }