Windows NT 4.0 source code leak
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.

66 lines
2.3 KiB

4 years ago
  1. /*
  2. * UTILITY.H
  3. *
  4. * Miscellaneous prototypes and definitions for OLE UI dialogs.
  5. *
  6. * Copyright (c)1992 Microsoft Corporation, All Right Reserved
  7. */
  8. #ifndef _UTILITY_H_
  9. #define _UTILITY_H_
  10. #define CF_CLIPBOARDMIN 0xc000
  11. #define CF_CLIPBOARDMAX 0xffff
  12. // Function prototypes
  13. // UTILITY.CPP
  14. HCURSOR WINAPI HourGlassOn(void);
  15. void WINAPI HourGlassOff(HCURSOR);
  16. BOOL WINAPI Browse(HWND, LPTSTR, LPTSTR, UINT, UINT, DWORD, UINT, LPOFNHOOKPROC);
  17. int WINAPI ReplaceCharWithNull(LPTSTR, int);
  18. int WINAPI ErrorWithFile(HWND, HINSTANCE, UINT, LPTSTR, UINT);
  19. BOOL WINAPI DoesFileExist(LPTSTR lpszFile, UINT cchMax);
  20. LONG WINAPI Atol(LPTSTR lpsz);
  21. BOOL WINAPI IsValidClassID(REFCLSID);
  22. UINT WINAPI GetFileName(LPCTSTR, LPTSTR, UINT);
  23. BOOL WINAPI IsValidMetaPict(HGLOBAL hMetaPict);
  24. LPTSTR FindChar(LPTSTR lpsz, TCHAR ch);
  25. LPTSTR FindReverseChar(LPTSTR lpsz, TCHAR ch);
  26. LPTSTR FAR PASCAL PointerToNthField(LPTSTR, int, TCHAR);
  27. BOOL FAR PASCAL GetAssociatedExecutable(LPTSTR, LPTSTR);
  28. LPTSTR WINAPI ChopText(HWND hwndStatic, int nWidth, LPTSTR lpch,
  29. int nMaxChars);
  30. void WINAPI OpenFileError(HWND hDlg, UINT nErrCode, LPTSTR lpszFile);
  31. int WINAPI PopupMessage(HWND hwndParent, UINT idTitle, UINT idMessage, UINT fuStyle);
  32. void WINAPI DiffPrefix(LPCTSTR lpsz1, LPCTSTR lpsz2, TCHAR FAR* FAR* lplpszPrefix1, TCHAR FAR* FAR* lplpszPrefix2);
  33. // string formatting APIs
  34. void WINAPI FormatStrings(LPTSTR, LPCTSTR, LPCTSTR*, int);
  35. void WINAPI FormatString1(LPTSTR, LPCTSTR, LPCTSTR);
  36. void WINAPI FormatString2(LPTSTR, LPCTSTR, LPCTSTR, LPCTSTR);
  37. // global instance to load strings/resources from
  38. extern HINSTANCE _g_hOleStdInst;
  39. extern HINSTANCE _g_hOleStdResInst;
  40. // standard OLE 2.0 clipboard formats
  41. extern UINT _g_cfObjectDescriptor;
  42. extern UINT _g_cfLinkSrcDescriptor;
  43. extern UINT _g_cfEmbedSource;
  44. extern UINT _g_cfEmbeddedObject;
  45. extern UINT _g_cfLinkSource;
  46. extern UINT _g_cfOwnerLink;
  47. extern UINT _g_cfFileName;
  48. // Metafile utility functions
  49. STDAPI_(void) OleUIMetafilePictIconFree(HGLOBAL);
  50. STDAPI_(BOOL) OleUIMetafilePictIconDraw(HDC, LPCRECT, HGLOBAL, BOOL);
  51. STDAPI_(UINT) OleUIMetafilePictExtractLabel(HGLOBAL, LPTSTR, UINT, LPDWORD);
  52. STDAPI_(HICON) OleUIMetafilePictExtractIcon(HGLOBAL);
  53. STDAPI_(BOOL) OleUIMetafilePictExtractIconSource(HGLOBAL, LPTSTR, UINT FAR *);
  54. #endif //_UTILITY_H_