Initial
This commit is contained in:
43
video/VIDCTRL.HPP
Normal file
43
video/VIDCTRL.HPP
Normal file
@@ -0,0 +1,43 @@
|
||||
#ifndef _VIDEO_VIDEOCONTROL_HPP_
|
||||
#define _VIDEO_VIDEOCONTROL_HPP_
|
||||
#ifndef _COMMON_VXDCONTROL_HPP_
|
||||
#include <common/vxdctrl.hpp>
|
||||
#endif
|
||||
|
||||
class VideoControl : public VxDControl
|
||||
{
|
||||
public:
|
||||
VideoControl(void);
|
||||
virtual ~VideoControl();
|
||||
DWORD getVersion(void);
|
||||
DWORD errorCode(void)const;
|
||||
private:
|
||||
typedef DWORD QUADWORD[2];
|
||||
typedef QUADWORD *PQUADWORD;
|
||||
enum {GetVersion=0x01};
|
||||
enum {ExpectedVersion=0x400};
|
||||
void resetError(void);
|
||||
DWORD mBytesReturned;
|
||||
DWORD mSendInfo[2];
|
||||
DWORD mReturnInfo[4];
|
||||
DWORD mErrorCode;
|
||||
};
|
||||
|
||||
inline
|
||||
VideoControl::~VideoControl()
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
void VideoControl::resetError(void)
|
||||
{
|
||||
mErrorCode=0;
|
||||
}
|
||||
|
||||
inline
|
||||
DWORD VideoControl::errorCode(void)const
|
||||
{
|
||||
return mErrorCode;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user