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.

145 lines
2.5 KiB

  1. /******************************************************************************
  2. C L I P F I L E H E A D E R
  3. Name: clipfile.h
  4. Date: 1/20/94
  5. Creator: John Fu
  6. Description:
  7. This is the header file for clipfile.c
  8. ******************************************************************************/
  9. #define READFILE_SUCCESS 0
  10. #define READFILE_IMPROPERFORMAT 1
  11. #define READFILE_OPENCLIPBRDFAIL 2
  12. extern BOOL fAnythingToRender;
  13. extern TCHAR szFileSpecifier[];
  14. extern TCHAR szFileName[MAX_PATH+1];
  15. extern TCHAR szSaveFileName[MAX_PATH+1]; // Saved filename for delayed render
  16. extern BOOL fNTReadFileFormat;
  17. extern BOOL fNTSaveFileFormat;
  18. extern UINT cf_link;
  19. extern UINT cf_objectlink;
  20. extern UINT cf_linkcopy;
  21. extern UINT cf_objectlinkcopy;
  22. extern TCHAR szCaptionName[];
  23. extern HANDLE RenderFormat(FORMATHEADER *, register HANDLE);
  24. // winball additions
  25. extern BOOL AddNetInfoToClipboard (TCHAR *);
  26. extern BOOL AddPreviewFormat (VOID);
  27. extern BOOL AddCopiedFormat (UINT ufmtOriginal, UINT ufmtCopy);
  28. extern BOOL AddDIBtoDDB(VOID);
  29. // end winball
  30. // Functions
  31. unsigned ReadFileHeader(
  32. HANDLE fh);
  33. BOOL ReadFormatHeader(
  34. HANDLE fh,
  35. FORMATHEADER *pfh,
  36. unsigned iFormat);
  37. short ReadClipboardFromFile(
  38. HWND hwnd,
  39. HANDLE fh);
  40. DWORD OpenClipboardFile(
  41. HWND hwnd,
  42. LPTSTR szName);
  43. HANDLE RenderFormatFromFile(
  44. LPTSTR szFile,
  45. WORD wFormat);
  46. HANDLE RenderAllFromFile(
  47. LPTSTR szFile);
  48. BOOL IsWriteable(
  49. WORD Format);
  50. int Count16BitClipboardFormats(void);
  51. DWORD WriteFormatBlock(
  52. HANDLE fh,
  53. DWORD offset,
  54. DWORD DataOffset,
  55. DWORD DataLen,
  56. UINT Format,
  57. LPWSTR wszName);
  58. DWORD WriteDataBlock(
  59. register HANDLE hFile,
  60. DWORD offset,
  61. WORD Format);
  62. void GetClipboardNameW(
  63. register int fmt,
  64. LPWSTR wszName,
  65. register int iSize);
  66. DWORD SaveClipboardData(
  67. HWND hwnd,
  68. LPTSTR szFileName,
  69. BOOL fPage);
  70. DWORD SaveClipboardToFile(
  71. HWND hwnd,
  72. TCHAR *szShareName,
  73. TCHAR *szFileName,
  74. BOOL fPage);
  75. BOOL AddPreviewFormat (VOID);
  76. BOOL AddCopiedFormat (
  77. UINT ufmtOriginal,
  78. UINT ufmtCopy);
  79. BOOL AddNetInfoToClipboard (
  80. TCHAR *szShareName );