Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
1.1 KiB

//----------------------------------------------------------------------------
//
// d3dref.h
//
// Copyright (C) Microsoft Corporation, 1997.
//
//----------------------------------------------------------------------------
#ifndef _D3DREF_H_
#define _D3DREF_H_
STDAPI GetRefHalProvider(REFCLSID riid,
IHalProvider **ppHalProvider, HINSTANCE *phDll);
STDAPI GetRefZBufferFormats(REFCLSID riid, DDPIXELFORMAT **ppDDPF);
STDAPI GetRefTextureFormats(REFCLSID riid, LPDDSURFACEDESC* lplpddsd, DWORD dwD3DDeviceVersion);
typedef HRESULT (STDAPICALLTYPE* PFNGETREFHALPROVIDER)(REFCLSID,IHalProvider**,HINSTANCE*);
typedef HRESULT (STDAPICALLTYPE* PFNGETREFZBUFFERFORMATS)(REFCLSID, DDPIXELFORMAT**);
typedef HRESULT (STDAPICALLTYPE* PFNGETREFTEXTUREFORMATS)(REFCLSID, LPDDSURFACEDESC*, DWORD);
inline FARPROC LoadReferenceDeviceProc( char* szProc )
{
HINSTANCE hRefDLL;
if (NULL == (hRefDLL = LoadLibrary("d3dref.dll")) )
{
return NULL;
}
return GetProcAddress(hRefDLL, szProc);
}
#endif // #ifndef _D3DREF_H_