Files
UnrealEngineUWP/Engine/Source/Programs/AutomationTool/ThirdParty/MSBuild/FileSystem/SafeFileHandle.cs
jonathan adamczewski f270855eef AutomationTool: Compile script modules within the application
Add a layer of caching to avoid running msbuild as much as possible.

#jira UE-109181
#rb ben.marsh

#ROBOMERGE-SOURCE: CL 17102399 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v853-17066230)

[CL 17102408 by jonathan adamczewski in ue5-release-engine-test branch]
2021-08-09 10:39:35 -04:00

28 lines
797 B
C#

// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using Microsoft.Win32.SafeHandles;
namespace Microsoft.Build.Shared.FileSystem
{
/// <summary>
/// Handle for a volume iteration as returned by WindowsNative.FindFirstVolumeW />
/// </summary>
internal sealed class SafeFindFileHandle : SafeHandleZeroOrMinusOneIsInvalid
{
/// <summary>
/// Private constructor for the PInvoke marshaller.
/// </summary>
private SafeFindFileHandle()
: base(ownsHandle: true)
{
}
/// <nodoc/>
protected override bool ReleaseHandle()
{
return WindowsNative.FindClose(handle);
}
}
}