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

Unified 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.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/installer-ca/dutil/fileutil.h
===================================================================
new file mode 100644
--- /dev/null
+++ b/src/installer-ca/dutil/fileutil.h
@@ -0,0 +1,26 @@
+#pragma once
+//-------------------------------------------------------------------------------------------------
+// <copyright file="fileutil.h" company="Outercurve Foundation">
+// Copyright (c) 2004, Outercurve Foundation.
+// This software is released under Microsoft Reciprocal License (MS-RL).
+// The license and further copyright text can be found in the file
+// LICENSE.TXT at the root directory of the distribution.
+// </copyright>
+//
+// <summary>
+// Header for file helper functions.
+// </summary>
+//-------------------------------------------------------------------------------------------------
+
+extern "C" {
+
+#define ReleaseFile(h) if (INVALID_HANDLE_VALUE != h) { ::CloseHandle(h); h = INVALID_HANDLE_VALUE; }
+#define ReleaseFileHandle(h) if (INVALID_HANDLE_VALUE != h) { ::CloseHandle(h); h = INVALID_HANDLE_VALUE; }
+#define ReleaseFileFindHandle(h) if (INVALID_HANDLE_VALUE != h) { ::FindClose(h); h = INVALID_HANDLE_VALUE; }
+
+HRESULT DAPI FileVersion(
+ __in_z LPCWSTR wzFilename,
+ __out DWORD *pdwVerMajor,
+ __out DWORD* pdwVerMinor
+ );
+}

Powered by Google App Engine
This is Rietveld