ReactOS  0.4.12-dev-57-g7050ac4
fileutils.h
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Clipboard Viewer
3  * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4  * PURPOSE: Clipboard file format helper functions.
5  * COPYRIGHT: Copyright 2015-2018 Ricardo Hanke
6  * Copyright 2015-2018 Hermes Belusca-Maito
7  */
8 
9 #pragma once
10 
11 /* Clipboard file format signatures */
12 #define CLIP_FMT_31 0xC350
13 #define CLIP_FMT_NT 0xC351
14 #define CLIP_FMT_BK 0xC352
15 
16 #define MAX_FMT_NAME_LEN 79
17 
18 /*
19  * Win3.1 Clipboard File Format (default)
20  */
21 #pragma pack(push, 1)
22 typedef struct _CLIPFILEHEADER
23 {
27 
28 typedef struct _CLIPFORMATHEADER
29 {
35 #pragma pack(pop)
36 
37 /*
38  * NT Clipboard File Format
39  */
40 typedef struct _NTCLIPFILEHEADER
41 {
45 
46 typedef struct _NTCLIPFORMATHEADER
47 {
53 
WORD wFileIdentifier
Definition: fileutils.h:42
__wchar_t WCHAR
Definition: xmlstorage.h:180
void ReadClipboardFile(LPCWSTR lpFileName)
Definition: fileutils.c:275
char CHAR
Definition: xmlstorage.h:175
struct _NTCLIPFILEHEADER NTCLIPFILEHEADER
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
#define MAX_FMT_NAME_LEN
Definition: fileutils.h:16
WORD wFileIdentifier
Definition: fileutils.h:24
struct _CLIPFORMATHEADER CLIPFORMATHEADER
unsigned short WORD
Definition: ntddk_ex.h:93
void WriteClipboardFile(LPCWSTR lpFileName, WORD wFileIdentifier)
Definition: fileutils.c:449
unsigned long DWORD
Definition: ntddk_ex.h:95
WORD wFormatCount
Definition: fileutils.h:25
struct _NTCLIPFORMATHEADER NTCLIPFORMATHEADER
static const WCHAR szName[]
Definition: msipriv.h:1194
_In_ LPCSTR lpFileName
Definition: winbase.h:3011
struct _CLIPFILEHEADER CLIPFILEHEADER