AGS.Editor.Utils.AlternateStreams.GetSafeFileHandle C# (CSharp) Method

GetSafeFileHandle() private static method

private static GetSafeFileHandle ( string path, string streamName ) : SafeFileHandle
path string
streamName string
return SafeFileHandle
        private static SafeFileHandle GetSafeFileHandle(string path, string streamName)
        {
            string streamPath = path + ":" + streamName;

            SafeFileHandle handle = CreateFile(streamPath, GENERIC_READ,
                FILE_SHARE_READ, IntPtr.Zero, OPEN_EXISTING,
                FILE_ATTRIBUTE_NORMAL, IntPtr.Zero);

            return handle;
        }