1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00
DDrawCompat/DDrawCompat/D3dDdi/KernelModeThunks.h

36 lines
672 B
C++

#pragma once
#include <string>
#include <Windows.h>
#include <winternl.h>
#include <d3dkmthk.h>
#include <ddraw.h>
#include <Common/CompatRef.h>
namespace D3dDdi
{
namespace KernelModeThunks
{
struct AdapterInfo
{
UINT adapter;
UINT vidPnSourceId;
LUID luid;
std::wstring deviceName;
};
void fixPresent(D3DKMT_PRESENT& data);
AdapterInfo getAdapterInfo(CompatRef<IDirectDraw7> dd);
AdapterInfo getLastOpenAdapterInfo();
long long getQpcLastVsync();
UINT getVsyncCounter();
void installHooks();
void setDcFormatOverride(UINT format);
void setDcPaletteOverride(PALETTEENTRY* palette);
bool waitForVsyncCounter(UINT counter);
}
}