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.

28 lines
780 B

  1. // File: pfndrawd.cpp
  2. #include "precomp.h"
  3. #include "pfndrawd.h"
  4. PFN_DRAWDIBDRAW DRAWDIB::DrawDibDraw = NULL;
  5. PFN_DRAWDIBOPEN DRAWDIB::DrawDibOpen = NULL;
  6. PFN_DRAWDIBCLOSE DRAWDIB::DrawDibClose = NULL;
  7. PFN_DRAWDIBSETPALETTE DRAWDIB::DrawDibSetPalette = NULL;
  8. HINSTANCE DRAWDIB::m_hInstance = NULL;
  9. #define DRAWDIB_APIFCN_ENTRY(pfn) {(PVOID *) &DRAWDIB::##pfn, #pfn}
  10. APIFCN s_apiFcnDrawDib[] = {
  11. DRAWDIB_APIFCN_ENTRY(DrawDibDraw),
  12. DRAWDIB_APIFCN_ENTRY(DrawDibOpen),
  13. DRAWDIB_APIFCN_ENTRY(DrawDibClose),
  14. DRAWDIB_APIFCN_ENTRY(DrawDibSetPalette),
  15. };
  16. HRESULT DRAWDIB::Init(void)
  17. {
  18. if (NULL != m_hInstance)
  19. return S_OK;
  20. return HrInitLpfn(s_apiFcnDrawDib, ARRAY_ELEMENTS(s_apiFcnDrawDib), &m_hInstance, TEXT("MSVFW32.DLL"));
  21. }