1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-14 09:23:53 +01:00
dxvk/src/util/util_gdi.h

32 lines
846 B
C
Raw Normal View History

2019-05-26 20:30:06 +02:00
#pragma once
#include <d3d9.h>
namespace dxvk {
using NTSTATUS = LONG;
// Slightly modified definitions...
struct D3DKMT_CREATEDCFROMMEMORY {
void* pMemory;
D3DFORMAT Format;
UINT Width;
UINT Height;
UINT Pitch;
HDC hDeviceDc;
PALETTEENTRY* pColorTable;
HDC hDc;
HANDLE hBitmap;
};
struct D3DKMT_DESTROYDCFROMMEMORY {
HDC hDC = nullptr;
HANDLE hBitmap = nullptr;
};
using D3DKMTCreateDCFromMemoryType = NTSTATUS(STDMETHODCALLTYPE*) (D3DKMT_CREATEDCFROMMEMORY*);
NTSTATUS D3DKMTCreateDCFromMemory (D3DKMT_CREATEDCFROMMEMORY* Arg1);
using D3DKMTDestroyDCFromMemoryType = NTSTATUS(STDMETHODCALLTYPE*) (D3DKMT_DESTROYDCFROMMEMORY*);
NTSTATUS D3DKMTDestroyDCFromMemory(D3DKMT_DESTROYDCFROMMEMORY* Arg1);
}