ReactOS 0.4.16-dev-297-gc569aee
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)
22typedef struct _CLIPFILEHEADER
23{
27
28typedef struct _CLIPFORMATHEADER
29{
35#pragma pack(pop)
36
37/*
38 * NT Clipboard File Format
39 */
40typedef struct _NTCLIPFILEHEADER
41{
45
46typedef struct _NTCLIPFORMATHEADER
47{
53
55void WriteClipboardFile(LPCWSTR lpFileName, WORD wFileIdentifier);
void WriteClipboardFile(LPCWSTR lpFileName, WORD wFileIdentifier)
Definition: fileutils.c:449
struct _CLIPFORMATHEADER CLIPFORMATHEADER
struct _CLIPFILEHEADER CLIPFILEHEADER
struct _NTCLIPFILEHEADER NTCLIPFILEHEADER
void ReadClipboardFile(LPCWSTR lpFileName)
Definition: fileutils.c:275
#define MAX_FMT_NAME_LEN
Definition: fileutils.h:16
struct _NTCLIPFORMATHEADER NTCLIPFORMATHEADER
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
WORD wFormatCount
Definition: fileutils.h:25
WORD wFileIdentifier
Definition: fileutils.h:24
CHAR szName[MAX_FMT_NAME_LEN]
Definition: fileutils.h:33
WORD wFileIdentifier
Definition: fileutils.h:42
WCHAR szName[MAX_FMT_NAME_LEN]
Definition: fileutils.h:51
_In_ LPCSTR lpFileName
Definition: winbase.h:3096
__wchar_t WCHAR
Definition: xmlstorage.h:180
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
char CHAR
Definition: xmlstorage.h:175