mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-11 10:24:10 +01:00
32 lines
846 B
C++
32 lines
846 B
C++
#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);
|
|
|
|
} |