NeroAPIGlue.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 / NeroAPI
  10. |*
  11. |* PROGRAM: NeroAPIGlue.h
  12. |*
  13. |* PURPOSE: Functions for connecting to NeroAPI
  14. ******************************************************************************/
  15. #ifndef __NEROAPIGLUE__
  16. #define __NEROAPIGLUE__
  17. #ifdef _NEROAPI_
  18. # pragma message("WARNING: Include 'NeroAPIGlue.h' BEFORE any other headers of the NeroAPI!")
  19. #endif
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. /*
  24. // All functions in NeroAPI.h are implemented here, too:
  25. */
  26. #include "NeroAPI.h"
  27. #define USING_NEROSDK
  28. /*
  29. // This function has to be called first.
  30. */
  31. BOOL NADLL_ATTR NeroAPIGlueConnect (void *reserved);
  32. /*
  33. // This one cleans up after using the glue code.
  34. */
  35. void NADLL_ATTR NeroAPIGlueDone (void);
  36. // Returns the module handle of the loaded NeroAPI
  37. HMODULE NADLL_ATTR NeroAPIGlueGetModuleHandle();
  38. // Attach an already loaded NeroAPI module
  39. // Do NOT call NeroAPIGlueDone after this method. This should only be called
  40. // from the part of the application that called NeroAPIGlueInitEx or
  41. // NeroAPIGlueConnect
  42. //
  43. // NOTE: This method does not set the expected version of the NeroAPI.
  44. // This is only done when the glue layer is initialized with NeroAPIGlueConnect
  45. // or NeroAPIGlueInitEx
  46. // Therefore, if you attach a NeroAPI module you should always set the
  47. // expected version of NeroAPI before calling a NeroAPI method and restore the
  48. // previously set version afterwards.
  49. BOOL NADLL_ATTR NeroAPIGlueAttachModule(HMODULE hNeroAPI,void *reserved);
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif /* __NEROAPIGLUE__ */