OLD | NEW |
(Empty) | |
| 1 #pragma once |
| 2 //------------------------------------------------------------------------------
------------------- |
| 3 // <copyright file="fileutil.h" company="Outercurve Foundation"> |
| 4 // Copyright (c) 2004, Outercurve Foundation. |
| 5 // This software is released under Microsoft Reciprocal License (MS-RL). |
| 6 // The license and further copyright text can be found in the file |
| 7 // LICENSE.TXT at the root directory of the distribution. |
| 8 // </copyright> |
| 9 // |
| 10 // <summary> |
| 11 // Header for file helper functions. |
| 12 // </summary> |
| 13 //------------------------------------------------------------------------------
------------------- |
| 14 |
| 15 extern "C" { |
| 16 |
| 17 #define ReleaseFile(h) if (INVALID_HANDLE_VALUE != h) { ::CloseHandle(h); h = IN
VALID_HANDLE_VALUE; } |
| 18 #define ReleaseFileHandle(h) if (INVALID_HANDLE_VALUE != h) { ::CloseHandle(h);
h = INVALID_HANDLE_VALUE; } |
| 19 #define ReleaseFileFindHandle(h) if (INVALID_HANDLE_VALUE != h) { ::FindClose(h)
; h = INVALID_HANDLE_VALUE; } |
| 20 |
| 21 HRESULT DAPI FileVersion( |
| 22 __in_z LPCWSTR wzFilename, |
| 23 __out DWORD *pdwVerMajor, |
| 24 __out DWORD* pdwVerMinor |
| 25 ); |
| 26 } |
OLD | NEW |