This commit is contained in:
2024-08-07 09:16:27 -04:00
parent fdfadd5c7e
commit 5f971cf684
5200 changed files with 731717 additions and 0 deletions

21
video/VIDCTRL.CPP Normal file
View File

@@ -0,0 +1,21 @@
#include <video/vidctrl.hpp>
VideoControl::VideoControl(void)
: VxDControl("\\\\.\\VIDEO.VXD")
{
if(!isOkay()){mErrorCode=::GetLastError();return;}
resetError();
if(ExpectedVersion!=getVersion())VxDControl::~VxDControl();
}
DWORD VideoControl::getVersion(void)
{
DWORD returnCode(FALSE);
if(!isOkay())return FALSE;
resetError();
if(!::DeviceIoControl((HANDLE)*this,GetVersion,(LPVOID)0,0,(LPVOID)mReturnInfo,sizeof(mReturnInfo),&mBytesReturned,0))mErrorCode=::GetLastError();
else returnCode=TRUE;
return (returnCode?mReturnInfo[1]:returnCode);
}