forked from aqrit/ddwrapper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.h
30 lines (24 loc) · 1.41 KB
/
header.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#define INITGUID
#define CINTERFACE
#include <windows.h>
#include <wingdi.h>
#include <ddraw.h>
#include <d3d.h>
#include "wrap.h"
#include "log.h"
extern "C" {
HRESULT __stdcall AcquireDDThreadLock();
HRESULT __stdcall ReleaseDDThreadLock();
HRESULT __stdcall DDInternalLock( DWORD arg1, DWORD arg2 );
HRESULT __stdcall DDInternalUnlock( DWORD arg1 );
HRESULT __stdcall D3DParseUnknownCommand( LPVOID lpCmd, LPVOID *lpRetCmd );
}
namespace dd { struct XVTBL; extern const XVTBL xVtbl1; extern const XVTBL xVtbl2; extern const XVTBL xVtbl4; extern const XVTBL xVtbl7; };
namespace dds { struct XVTBL; extern const XVTBL xVtbl1; extern const XVTBL xVtbl2; extern const XVTBL xVtbl3; extern const XVTBL xVtbl4; extern const XVTBL xVtbl7; };
namespace classfactory { struct XVTBL; extern const XVTBL xVtbl; };
namespace clipper { struct XVTBL; extern const XVTBL xVtbl; };
namespace palette { struct XVTBL; extern const XVTBL xVtbl; };
namespace color { struct XVTBL; extern const XVTBL xVtbl; };
namespace gama { struct XVTBL; extern const XVTBL xVtbl; };
namespace unknwn { struct XVTBL; extern const XVTBL xVtbl; };
namespace dx { extern DWORD NoBuffer, UseFlip, UseThrottle, enabled, caps, write, flip, width, height, bpp; extern LPDIRECTDRAWPALETTE palette; extern LPDIRECTDRAWSURFACE real[2], fake[2], buffer; LPDIRECTDRAWSURFACE MatchFlip(LPDIRECTDRAWSURFACE); HRESULT Flush(LPDIRECTDRAWSURFACE, DWORD = 0, DWORD = DDFLIP_WAIT); };