1
0

primosdk_helper.h 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. #ifndef NULLOSFT_MLDISC_PRIMOSDK_HELPER_HEADER
  2. #define NULLOSFT_MLDISC_PRIMOSDK_HELPER_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <windows.h>
  7. //#include <primosdk.h>
  8. #define PRIMOSDK_CMDSEQUENCE ((DWORD)0xFFFFFFFF)
  9. #define PRIMOSDK_OK 0
  10. #define PRIMOSDK_PACKETWRITTEN 0
  11. // !!!! Not thread safe !!!!
  12. #define DEFAULT_HANDLE ((DWORD)0xFFFFFFFF)
  13. // Initialization
  14. LONG PrimoSDKHelper_Initialize(void);
  15. LONG PrimoSDKHelper_Uninitialize(void);
  16. BOOL PrimoSDKHelper_IsInitialized(void);
  17. BOOL PrimoSDKHelper_IsLoaded(void);
  18. // Drive Info (You can use DEFAULT_HANDLE)
  19. DWORD PrimoSDKHelper_UnitInfo(PDWORD pdwUnit, PDWORD pdwType, PBYTE szDescr, PDWORD pdwReady);
  20. DWORD PrimoSDKHelper_UnitInfo2(PDWORD pdwUnit, PDWORD pdwTypes, PDWORD pdwClass, PDWORD pdwBusType, PDWORD pdwRFU);
  21. // Medium Info (You can use DEFAULT_HANDLE)
  22. DWORD PrimoSDKHelper_DiscInfoEx(PDWORD pdwUnit, DWORD dwFlags, PDWORD pdwMediumType, PDWORD pdwMediumFormat, PDWORD pdwErasable, PDWORD pdwTracks, PDWORD pdwUsed, PDWORD pdwFree);
  23. DWORD PrimoSDKHelper_DiscInfo2(PDWORD pdwUnit, PDWORD pdwMedium, PDWORD pdwProtectedDVD, PDWORD pdwFlags, PDWORD pdwMediumEx, PDWORD pdwRFU3);
  24. #endif // NULLOSFT_MLDISC_PRIMOSDK_HELPER_HEADER