1 /* 2 * COPYRIGHT: See COPYING in the top level directory 3 * PROJECT: ReactOS Clipboard Viewer 4 * FILE: base/applications/clipbrd/fileutils.h 5 * PURPOSE: Clipboard file format helper functions. 6 * PROGRAMMERS: Ricardo Hanke 7 * Hermes Belusca-Maito 8 */ 9 10 #define CLIP_FMT_31 0xC350 11 #define CLIP_FMT_NT 0xC351 12 #define CLIP_FMT_BK 0xC352 13 #define MAX_FMT_NAME_LEN 79 14 15 /* 16 * Win3.1 Clipboard File Format (default) 17 */ 18 #pragma pack(push, 1) 19 typedef struct _CLIPFILEHEADER 20 { 21 WORD wFileIdentifier; 22 WORD wFormatCount; 23 } CLIPFILEHEADER; 24 25 typedef struct _CLIPFORMATHEADER 26 { 27 WORD dwFormatID; 28 DWORD dwLenData; 29 DWORD dwOffData; 30 CHAR szName[MAX_FMT_NAME_LEN]; 31 } CLIPFORMATHEADER; 32 #pragma pack(pop) 33 34 /* 35 * NT Clipboard File Format 36 */ 37 typedef struct _NTCLIPFILEHEADER 38 { 39 WORD wFileIdentifier; 40 WORD wFormatCount; 41 } NTCLIPFILEHEADER; 42 43 typedef struct _NTCLIPFORMATHEADER 44 { 45 DWORD dwFormatID; 46 DWORD dwLenData; 47 DWORD dwOffData; 48 WCHAR szName[MAX_FMT_NAME_LEN]; 49 } NTCLIPFORMATHEADER; 50 51 void ReadClipboardFile(LPCWSTR lpFileName); 52 void WriteClipboardFile(LPCWSTR lpFileName, WORD wFileIdentifier); 53