| 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 |