IVsSolutionWorkingFoldersEvents.cs 1.8 KB
Newer Older
1 2 3 4
// Copyright (c) Microsoft.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information.

using System;
using System.Runtime.InteropServices;
B
beep boop 已提交
5 6


7
namespace Microsoft.Internal.VisualStudio.Shell.Interop
B
beep boop 已提交
8
{
9 10 11 12 13 14
    internal enum __SolutionWorkingFolder
    {
        SlnWF_All = -1,
        SlnWF_StatePersistence = 1
    }

H
Heejae Chang 已提交
15
    [ComImport]
16 17 18 19 20 21
    [Guid("774FAAAD-4311-4E92-8B8B-D2759666D9C6")]
    [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    internal interface IVsSolutionWorkingFolders
    {
        void GetFolder([ComAliasName("Microsoft.Internal.VisualStudio.Shell.Interop.SolutionWorkingFolder")]uint location, Guid guidProject, bool fVersionSpecific, bool fEnsureCreated, out bool pfIsTemporary, out string pszBstrFullPath);
        void GetMigrationFolder([ComAliasName("Microsoft.Internal.VisualStudio.Shell.Interop.SolutionWorkingFolder")]uint location, Guid guidProject, [ComAliasName("OLE.DWORD")]out uint pdwOldMajorVersion, out string pszOldLocation);
H
Heejae Chang 已提交
22 23
        void ClearOldWorkingFolder([ComAliasName("Microsoft.Internal.VisualStudio.Shell.Interop.SolutionWorkingFolder")]uint location);
        void ClearWorkingFolder([ComAliasName("Microsoft.Internal.VisualStudio.Shell.Interop.SolutionWorkingFolder")]uint location, bool fSaveAll, bool fReloadSolution);
24 25
    }

H
Heejae Chang 已提交
26
    [ComImport]
27 28 29 30 31
    [Guid("3584678F-DA35-4F62-AB2A-8092B281C1FA")]
    [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    internal interface IVsSolutionWorkingFoldersEvents
    {
        void OnQueryLocationChange([ComAliasName("Microsoft.Internal.VisualStudio.Shell.Interop.SolutionWorkingFolder")]uint location, out bool pfCanMoveContent);
H
Heejae Chang 已提交
32
        void OnAfterLocationChange([ComAliasName("Microsoft.Internal.VisualStudio.Shell.Interop.SolutionWorkingFolder")]uint location, bool contentMoved);
33 34
    }
}