mirror of
https://github.com/logos-co/velopack.git
synced 2026-08-31 05:31:16 +00:00
45 lines
1.4 KiB
C#
45 lines
1.4 KiB
C#
#region Copyright Preamble
|
|
|
|
//
|
|
// Copyright � 2015 NCode Group
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
//
|
|
|
|
#endregion
|
|
|
|
using System.IO;
|
|
using System.Runtime.InteropServices;
|
|
using FILETIME = System.Runtime.InteropServices.ComTypes.FILETIME;
|
|
|
|
namespace NCode.ReparsePoints.Win32
|
|
{
|
|
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
|
|
internal struct Win32FindData
|
|
{
|
|
public FileAttributes FileAttributes;
|
|
public FILETIME CreationTime;
|
|
public FILETIME LastAccessTime;
|
|
public FILETIME LastWriteTime;
|
|
public int FileSizeHigh;
|
|
public int FileSizeLow;
|
|
public uint Reserved0;
|
|
public uint Reserved1;
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = Win32Constants.MaxPath)]
|
|
public string FileName;
|
|
|
|
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 14)]
|
|
public string AlternateFileName;
|
|
}
|
|
} |