-
Notifications
You must be signed in to change notification settings - Fork 149
/
WofHelper.h
52 lines (36 loc) · 876 Bytes
/
WofHelper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#pragma once
#include <Windows.h>
#include <atlstr.h>
/////////////////////////////////////////////////////////////////////////////
//
// ÌṩWofÏà¹Ø²Ù×÷
//
/////////////////////////////////////////////////////////////////////////////
#pragma pack(push,1)
struct ExternalBacking
{
WOF_EXTERNAL_INFO ExternalInfo;
WIM_PROVIDER_EXTERNAL_INFO ProviderInfo;
};
#pragma pack(pop)
_Check_return_
BOOL IsWofCompress(
_In_z_ LPCWSTR FilePath
);
_Check_return_
LSTATUS UnWofCompressFile(
_In_z_ LPCWSTR FilePath
);
#define WofXpress4k 0
#define WofXpress8k 2
#define WofXpress16k 3
#define WofLZX 1
_Check_return_
LSTATUS WofCompressFile(
_In_z_ LPCWSTR FilePath,
_In_ _In_range_(WofXpress4k, WofXpress16k) DWORD CompressType
);
_Check_return_
LSTATUS UnWofCompressRoot(
_In_ CString RootPath
);