Source code of Windows XP (NT5)
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.

42 lines
1.3 KiB

  1. // $$ClassType$$EI.cpp : Implementation of C$$ClassType$$EI
  2. #include "stdafx.h"
  3. #include "$$root$$.h"
  4. #include "$$ClassType$$EI.h"
  5. /////////////////////////////////////////////////////////////////////////////
  6. // C$$ClassType$$EI
  7. HRESULT C$$ClassType$$EI::Load(LPCOLESTR pszFileName,
  8. DWORD dwMode)
  9. {
  10. // TODO: Implement this function if the file itself
  11. // contains the icon to be display (i.e. An image file)
  12. return NOERROR;
  13. }
  14. HRESULT C$$ClassType$$EI::GetIconLocation(UINT uFlags,
  15. LPTSTR szIconFile,
  16. UINT cchMax,
  17. int* piIndex,
  18. UINT* pwFlags)
  19. {
  20. if (GetModuleFileName(_Module.GetModuleInstance(), szIconFile, cchMax))
  21. {
  22. *piIndex = 0;
  23. *pwFlags |= GIL_PERINSTANCE;
  24. return NOERROR;
  25. }
  26. return E_FAIL;
  27. }
  28. HRESULT C$$ClassType$$EI::Extract( LPCTSTR pszFile,
  29. UINT nIconIndex,
  30. HICON* phiconLarge,
  31. HICON* phiconSmall,
  32. UINT nIconSize)
  33. {
  34. // TODO: Implement this function if the file itself
  35. // contains the icon to be display (i.e. An image file)
  36. // and change the return type to NOERROR
  37. return S_FALSE;
  38. }