diff options
Diffstat (limited to 'src/libs/dutil/WixToolset.DUtil/inc/inetutil.h')
-rw-r--r-- | src/libs/dutil/WixToolset.DUtil/inc/inetutil.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/libs/dutil/WixToolset.DUtil/inc/inetutil.h b/src/libs/dutil/WixToolset.DUtil/inc/inetutil.h new file mode 100644 index 00000000..19ace88b --- /dev/null +++ b/src/libs/dutil/WixToolset.DUtil/inc/inetutil.h | |||
@@ -0,0 +1,39 @@ | |||
1 | #pragma once | ||
2 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
3 | |||
4 | |||
5 | #ifdef __cplusplus | ||
6 | extern "C" { | ||
7 | #endif | ||
8 | |||
9 | #define ReleaseInternet(h) if (h) { ::InternetCloseHandle(h); h = NULL; } | ||
10 | #define ReleaseNullInternet(h) if (h) { ::InternetCloseHandle(h); h = NULL; } | ||
11 | |||
12 | |||
13 | // functions | ||
14 | HRESULT DAPI InternetGetSizeByHandle( | ||
15 | __in HINTERNET hiFile, | ||
16 | __out LONGLONG* pllSize | ||
17 | ); | ||
18 | |||
19 | HRESULT DAPI InternetGetCreateTimeByHandle( | ||
20 | __in HINTERNET hiFile, | ||
21 | __out LPFILETIME pft | ||
22 | ); | ||
23 | |||
24 | HRESULT DAPI InternetQueryInfoString( | ||
25 | __in HINTERNET h, | ||
26 | __in DWORD dwInfo, | ||
27 | __deref_out_z LPWSTR* psczValue | ||
28 | ); | ||
29 | |||
30 | HRESULT DAPI InternetQueryInfoNumber( | ||
31 | __in HINTERNET h, | ||
32 | __in DWORD dwInfo, | ||
33 | __inout LONG* plInfo | ||
34 | ); | ||
35 | |||
36 | #ifdef __cplusplus | ||
37 | } | ||
38 | #endif | ||
39 | |||