Skip to content

Commit db9768f

Browse files
committed
[PSDK] Add EmptyVC.idl
1 parent c302dbc commit db9768f

File tree

3 files changed

+101
-1
lines changed

3 files changed

+101
-1
lines changed

sdk/include/psdk/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ list(APPEND SOURCE
4747
drmexternals.idl
4848
dxgiformat.idl
4949
# dyngraph.idl
50+
emptyvc.idl
5051
endpointvolume.idl
5152
exdisp.idl
5253
fusion.idl

sdk/include/psdk/emptyvc.idl

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
/*
2+
* PROJECT: ReactOS Disk Cleanup
3+
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4+
* PURPOSE: Interface definitions for Disk Cleanup
5+
* COPYRIGHT: Copyright 2023-2025 Mark Jansen <[email protected]>
6+
*/
7+
8+
cpp_quote("#pragma once")
9+
10+
import "wtypes.idl";
11+
import "unknwn.idl";
12+
13+
interface IEmptyVolumeCache;
14+
interface IEmptyVolumeCache2;
15+
interface IEmptyVolumeCacheCallBack;
16+
17+
18+
cpp_quote("// IEmptyVolumeCache flags")
19+
cpp_quote("#define EVCF_HASSETTINGS 0x0001")
20+
cpp_quote("#define EVCF_ENABLEBYDEFAULT 0x0002")
21+
cpp_quote("#define EVCF_REMOVEFROMLIST 0x0004")
22+
cpp_quote("#define EVCF_ENABLEBYDEFAULT_AUTO 0x0008")
23+
cpp_quote("#define EVCF_DONTSHOWIFZERO 0x0010")
24+
cpp_quote("#define EVCF_SETTINGSMODE 0x0020")
25+
cpp_quote("#define EVCF_OUTOFDISKSPACE 0x0040")
26+
27+
cpp_quote("// IEmptyVolumeCacheCallBack flags")
28+
cpp_quote("#define EVCCBF_LASTNOTIFICATION 0x0001")
29+
30+
31+
[
32+
object,
33+
uuid(6e793361-73c6-11d0-8469-00aa00442901),
34+
pointer_default(unique)
35+
]
36+
interface IEmptyVolumeCacheCallBack: IUnknown
37+
{
38+
HRESULT ScanProgress(
39+
[in] DWORDLONG dwlSpaceUsed,
40+
[in] DWORD dwFlags,
41+
[in] LPCWSTR pcwszStatus);
42+
43+
HRESULT PurgeProgress(
44+
[in] DWORDLONG dwlSpaceFreed,
45+
[in] DWORDLONG dwlSpaceToFree,
46+
[in] DWORD dwFlags,
47+
[in] LPCWSTR pcwszStatus);
48+
}
49+
50+
51+
[
52+
object,
53+
uuid(8fce5227-04da-11d1-a004-00805f8abe06),
54+
pointer_default(unique)
55+
]
56+
interface IEmptyVolumeCache: IUnknown
57+
{
58+
[local]
59+
HRESULT Initialize(
60+
[in] HKEY hkRegKey,
61+
[in] LPCWSTR pcwszVolume,
62+
[out] LPWSTR *ppwszDisplayName,
63+
[out] LPWSTR *ppwszDescription,
64+
[in, out] DWORD *pdwFlags);
65+
66+
HRESULT GetSpaceUsed(
67+
[out] DWORDLONG *pdwlSpaceUsed,
68+
[in] IEmptyVolumeCacheCallBack *picb);
69+
70+
HRESULT Purge(
71+
[in] DWORDLONG dwlSpaceToFree,
72+
[in] IEmptyVolumeCacheCallBack *picb);
73+
74+
HRESULT ShowProperties(
75+
[in] HWND hwnd);
76+
77+
HRESULT Deactivate(
78+
[out] DWORD *pdwFlags);
79+
}
80+
81+
82+
[
83+
object,
84+
uuid(02b7e3ba-4db3-11d2-b2d9-00c04f8eec8c),
85+
pointer_default(unique)
86+
]
87+
interface IEmptyVolumeCache2: IEmptyVolumeCache
88+
{
89+
[local]
90+
HRESULT InitializeEx(
91+
[in] HKEY hkRegKey,
92+
[in] LPCWSTR pcwszVolume,
93+
[in] LPCWSTR pcwszKeyName,
94+
[out] LPWSTR *ppwszDisplayName,
95+
[out] LPWSTR *ppwszDescription,
96+
[out] LPWSTR *ppwszBtnText,
97+
[in, out] DWORD *pdwFlags);
98+
}
99+

sdk/lib/uuid/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ list(APPEND IDL_SOURCES
3737
# dxtmsft.idl
3838
# dxtrans.idl
3939
# dxtransp.idl
40-
# emptyvc.idl
40+
emptyvc.idl
4141
exdisp.idl
4242
# filter.idl
4343
# filtntfy.idl

0 commit comments

Comments
 (0)