【ヘッダファイル ddmain.h 】
extern LPDIRECTDRAWSURFACE4 g_pDDSPrimary;
extern LPDIRECTDRAWSURFACE4 g_pDDSOffScreen;
extern LPDIRECTDRAWPALETTE g_pDDPal;
extern LPDIRECTDRAWSURFACE4 g_pDDSOne;
extern DWORD g_dwEraseColor;
HRESULT InitDD(HWND hWnd);
HRESULT InitFail(HWND hWnd, HRESULT hRet, LPCTSTR szError,...);
void ReleaseDD(void);
static DWORD DDColorPick(IDirectDrawSurface4 * pdds, int x, int y);
extern "C" HRESULT DDSetColorKeyFromPoint(IDirectDrawSurface4 * pdds, int x, int y);
extern "C" HRESULT DDSetColorKey(IDirectDrawSurface4 * pdds, COLORREF rgb);
extern "C" DWORD DDColorMatch(IDirectDrawSurface4 * pdds, COLORREF rgb);
BOOL RestoreAll(void);
extern "C" IDirectDrawSurface4 * DDLoadBitmap(IDirectDraw4 * pdd, LPCSTR szBitmap, int dx, int dy);
HRESULT DDReLoadBitmap(IDirectDrawSurface4 * pdds, LPCSTR szBitmap);
extern "C" HRESULT DDCopyBitmap(IDirectDrawSurface4 * pdds, HBITMAP hbm, int x, int y, int dx, int dy);
extern "C" IDirectDrawPalette * DDLoadPalette(IDirectDraw4 * pdd, LPCSTR szBitmap);