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.

50 lines
992 B

  1. #define _INC_OLE
  2. #define CONST_VTABLE
  3. #define DONT_WANT_SHELLDEBUG 1
  4. #include <windows.h>
  5. #include <windowsx.h>
  6. #include <winuserp.h>
  7. #include <shlwapi.h>
  8. #include <shlwapip.h>
  9. #include <shlobj.h>
  10. #include <shellapi.h>
  11. #include <shlobjp.h>
  12. #include <shfusion.h>
  13. #include <commctrl.h>
  14. #include <comctrlp.h>
  15. #include <ole2.h>
  16. #include <tchar.h>
  17. #include <strsafe.h>
  18. // define __FCN__ to enable the FileChangeNotify procession.
  19. //
  20. #define __FCN__
  21. #ifdef _fstrcpy
  22. #undef _fstrcpy
  23. #endif
  24. #ifdef _fstrcat
  25. #undef _fstrcat
  26. #endif
  27. #ifdef _fstrlen
  28. #undef _fstrlen
  29. #endif
  30. #define _fstrcpy lstrcpy
  31. #define _fstrcat lstrcat
  32. #define _fstrlen lstrlen
  33. #ifndef ARRAYSIZE
  34. # define ARRAYSIZE(a) (sizeof(a) / sizeof(a[0]))
  35. #endif
  36. inline HRESULT ResultFromLastError(void)
  37. {
  38. const DWORD dwErr = GetLastError();
  39. return HRESULT_FROM_WIN32(dwErr);
  40. }
  41. HRESULT ComboGetText(HWND hwndCombo, int iItem, LPTSTR pszText, size_t cchText);
  42. #pragma hdrstop