NeroPluginUtil.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /******************************************************************************
  2. |* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  3. |* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  4. |* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  5. |* PARTICULAR PURPOSE.
  6. |*
  7. |* Copyright 1995-2005 Nero AG. All Rights Reserved.
  8. |*-----------------------------------------------------------------------------
  9. |* NeroSDK / AudioPluginManager
  10. |*
  11. |* FILE: NeroPluginUtil.h
  12. |*
  13. |* PURPOSE: Definitions of auxiliary helper functions for Nero plugins
  14. ******************************************************************************/
  15. #ifndef _NERO_PLUGIN_UTIL_
  16. #define _NERO_PLUGIN_UTIL_
  17. //////////////////////////////////////////////////////////// Registry helpers //
  18. // If szGroup is not null, additional subgroup is assumed, this parameter can
  19. // be NULL for no additional groups indication.
  20. bool reg_SetPluginParam(const char *szVendor, const char *szProduct,
  21. const char *szPlugin, const char *szGroup,
  22. const char *szParam, DWORD dwValue);
  23. bool reg_GetPluginParam(const char *szVendor, const char *szProduct,
  24. const char *szPlugin, const char *szGroup,
  25. const char *szParam, DWORD &dwValue);
  26. bool reg_SetPluginParam(const char *szVendor, const char *szProduct,
  27. const char *szPlugin, const char *szGroup,
  28. const char *szParam, const char *szValue);
  29. CString reg_GetPluginParam(const char *szVendor, const char *szProduct,
  30. const char *szPlugin, const char *szGroup,
  31. const char *szParam);
  32. //////////////////////////////////////////////////////////////// File helpers //
  33. bool file_DoesExist(const char *szFile);
  34. DWORD file_GetSize(const char *szFile);
  35. // Returns the time of last access to the file, which is, actually, the time
  36. // of last reading/writing to the file.
  37. bool file_GetTime(const char *szFile, CTime &time);
  38. ////////////////////////////////////////////////////////////////////// Others //
  39. #include "AudioErrors.h"
  40. // Returns true if the URL points to a local file.
  41. bool IsURLLocal(const char *szURL);
  42. EAudioError MapSysErrorToAudio(DWORD dwErr);
  43. #endif // _NERO_PLUGIN_UTIL_