diff options
author | Rob Mensching <rob@firegiant.com> | 2021-05-11 07:38:07 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-05-11 07:38:07 -0700 |
commit | 0c6aea2de8db1258949a741b1c504307a81bf579 (patch) | |
tree | df45a1c3acf2a2af4c8c62d9461f4483bcd0c28c /src/libs/dutil/WixToolset.DUtil/inc/inetutil.h | |
parent | 985b2683b2717c83a27295b36e09b126083238f9 (diff) | |
parent | 7f642e51670bc38a4ef782a363936850bc2b0ba9 (diff) | |
download | wix-0c6aea2de8db1258949a741b1c504307a81bf579.tar.gz wix-0c6aea2de8db1258949a741b1c504307a81bf579.tar.bz2 wix-0c6aea2de8db1258949a741b1c504307a81bf579.zip |
Merge dutil
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 | |||