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.

67 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1990-1998, Microsoft Corporation All rights reserved.
  3. Module Name:
  4. util.h
  5. Abstract:
  6. This module implements utility functions for the common dialog.
  7. Revision History:
  8. 02-20-98 arulk created
  9. --*/
  10. #ifndef _UTIL_H_
  11. #define _UTIL_H_
  12. #include <shlobjp.h>
  13. ////////////////////////////////////////////////////////////////////////////
  14. // Autocomplete
  15. //
  16. ////////////////////////////////////////////////////////////////////////////
  17. HRESULT AutoComplete(HWND hwndEdit, ICurrentWorkingDirectory ** ppcwd, DWORD dwFlags);
  18. ////////////////////////////////////////////////////////////////////////////
  19. // Common Dilaog Restrictions
  20. //
  21. ////////////////////////////////////////////////////////////////////////////
  22. typedef enum
  23. {
  24. REST_NULL = 0x00000000,
  25. REST_NOBACKBUTTON = 0x00000001,
  26. REST_NOFILEMRU = 0x00000002,
  27. REST_NOPLACESBAR = 0x00000003,
  28. }COMMDLG_RESTRICTIONS;
  29. DWORD IsRestricted(COMMDLG_RESTRICTIONS rest);
  30. BOOL ILIsFTP(LPCITEMIDLIST pidl);
  31. ////////////////////////////////////////////////////////////////////////////
  32. //
  33. // Utility functions
  34. //
  35. ////////////////////////////////////////////////////////////////////////////
  36. #define CDBindToObject SHBindToObject
  37. #define CDBindToIDListParent SHBindToParent
  38. #define CDGetNameAndFlags SHGetNameAndFlags
  39. #define CDGetAttributesOf SHGetAttributesOf
  40. #define CDGetUIObjectFromFullPIDL SHGetUIObjectFromFullPIDL
  41. //CDGetAppCompatFlags
  42. #define CDACF_MATHCAD 0x00000001
  43. #define CDACF_NT40TOOLBAR 0x00000002
  44. #define CDACF_FILETITLE 0x00000004
  45. EXTERN_C DWORD CDGetAppCompatFlags();
  46. EXTERN_C HRSRC FindResourceExFallback(HMODULE hModule, LPCTSTR lpType, LPCTSTR lpName, WORD wLanguage);
  47. EXTERN_C HRESULT StringCopyOverlap(WCHAR *szDest, WCHAR *szSource);
  48. EXTERN_C HRESULT StringCchCopyOverlap(WCHAR *szDest, size_t cchDest, WCHAR *szSource);
  49. #endif // _UTIL_H_