Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: src/installer-ca/dutil/fileutil.h

Issue 11521026: initial custom action library, "hello, world" quality (Closed)
Patch Set: Created Sept. 3, 2013, 12:48 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld