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

  1. //----------------------------------------------------------------------------
  2. //
  3. // d3dref.h
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997.
  6. //
  7. //----------------------------------------------------------------------------
  8. #ifndef _D3DREF_H_
  9. #define _D3DREF_H_
  10. STDAPI GetRefHalProvider(REFCLSID riid,
  11. IHalProvider **ppHalProvider, HINSTANCE *phDll);
  12. STDAPI GetRefZBufferFormats(REFCLSID riid, DDPIXELFORMAT **ppDDPF);
  13. STDAPI GetRefTextureFormats(REFCLSID riid, LPDDSURFACEDESC* lplpddsd, DWORD dwD3DDeviceVersion);
  14. typedef HRESULT (STDAPICALLTYPE* PFNGETREFHALPROVIDER)(REFCLSID,IHalProvider**,HINSTANCE*);
  15. typedef HRESULT (STDAPICALLTYPE* PFNGETREFZBUFFERFORMATS)(REFCLSID, DDPIXELFORMAT**);
  16. typedef HRESULT (STDAPICALLTYPE* PFNGETREFTEXTUREFORMATS)(REFCLSID, LPDDSURFACEDESC*, DWORD);
  17. inline FARPROC LoadReferenceDeviceProc( char* szProc )
  18. {
  19. HINSTANCE hRefDLL;
  20. if (NULL == (hRefDLL = LoadLibrary("d3dref.dll")) )
  21. {
  22. return NULL;
  23. }
  24. return GetProcAddress(hRefDLL, szProc);
  25. }
  26. #endif // #ifndef _D3DREF_H_