2 using System
.Collections
.Generic
;
4 using System
.Runtime
.InteropServices
;
6 namespace Microsoft
.SDK
.Samples
.VistaBridge
.Interop
8 // Dummy base interface for CommonFileDialog coclasses.
9 internal interface NativeCommonFileDialog
13 // Coclass interfaces - designed to "look like" the object
14 // in the API, so that the 'new' operator can be used in a
15 // straightforward way. Behind the scenes, the C# compiler
16 // morphs all 'new CoClass()' calls to 'new CoClassWrapper()'.
19 Guid(IIDGuid
.IFileOpenDialog
),
20 CoClass(typeof(FileOpenDialogRCW
))]
21 internal interface NativeFileOpenDialog
: IFileOpenDialog
26 Guid(IIDGuid
.IFileSaveDialog
),
27 CoClass(typeof(FileSaveDialogRCW
))]
28 internal interface NativeFileSaveDialog
: IFileSaveDialog
33 Guid(IIDGuid
.IKnownFolderManager
),
34 CoClass(typeof(KnownFolderManagerRCW
))]
35 internal interface KnownFolderManager
: IKnownFolderManager
39 // .NET classes representing runtime callable wrappers.
41 ClassInterface(ClassInterfaceType
.None
),
42 TypeLibType(TypeLibTypeFlags
.FCanCreate
),
43 Guid(CLSIDGuid
.FileOpenDialog
)]
44 internal class FileOpenDialogRCW
49 ClassInterface(ClassInterfaceType
.None
),
50 TypeLibType(TypeLibTypeFlags
.FCanCreate
),
51 Guid(CLSIDGuid
.FileSaveDialog
)]
52 internal class FileSaveDialogRCW
57 ClassInterface(ClassInterfaceType
.None
),
58 TypeLibType(TypeLibTypeFlags
.FCanCreate
),
59 Guid(CLSIDGuid
.KnownFolderManager
)]
60 internal class KnownFolderManagerRCW