mirror of
https://github.com/libretro/RetroArch
synced 2025-01-18 04:12:07 +00:00
49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
// IoSupport.h: interface for the CIoSupport class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_IOSUPPORT_H__F084A488_BD6E_49D5_8CD3_0BE62149DB40__INCLUDED_)
|
|
#define AFX_IOSUPPORT_H__F084A488_BD6E_49D5_8CD3_0BE62149DB40__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
#ifdef _XBOX
|
|
#include <xtl.h>
|
|
|
|
#define TRAY_OPEN 16
|
|
#define TRAY_CLOSED_NO_MEDIA 64
|
|
#define TRAY_CLOSED_MEDIA_PRESENT 96
|
|
|
|
#define DRIVE_OPEN 0 // Open...
|
|
#define DRIVE_NOT_READY 1 // Opening.. Closing...
|
|
#define DRIVE_READY 2
|
|
#define DRIVE_CLOSED_NO_MEDIA 3 // CLOSED...but no media in drive
|
|
#define DRIVE_CLOSED_MEDIA_PRESENT 4 // Will be send once when the drive just have closed
|
|
|
|
class CIoSupport
|
|
{
|
|
public:
|
|
CIoSupport();
|
|
virtual ~CIoSupport();
|
|
|
|
HRESULT Mount(char *szDrive, char *szDevice);
|
|
HRESULT Unmount(char *szDrive);
|
|
|
|
HRESULT Remount(char *szDrive, char *szDevice);
|
|
HRESULT Remap(char *szMapping);
|
|
|
|
DWORD GetTrayState();
|
|
HRESULT EjectTray();
|
|
HRESULT CloseTray();
|
|
HRESULT Shutdown();
|
|
private:
|
|
DWORD m_dwTrayState;
|
|
DWORD m_dwTrayCount;
|
|
DWORD m_dwLastTrayState;
|
|
};
|
|
|
|
extern CIoSupport g_IOSupport;
|
|
#endif
|
|
#endif // !defined(AFX_IOSUPPORT_H__F084A488_BD6E_49D5_8CD3_0BE62149DB40__INCLUDED_)
|