added SSCLI 1.0
[windows-sources.git] / sdk / samples / CrossTechnologySamples / VistaBridge / vistabridgelibrary / interop / shellwrapperdefinitions.cs
blob2860e160920567a63fe58396d6a2a2909c30c292
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
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()'.
18 [ComImport,
19 Guid(IIDGuid.IFileOpenDialog),
20 CoClass(typeof(FileOpenDialogRCW))]
21 internal interface NativeFileOpenDialog : IFileOpenDialog
25 [ComImport,
26 Guid(IIDGuid.IFileSaveDialog),
27 CoClass(typeof(FileSaveDialogRCW))]
28 internal interface NativeFileSaveDialog : IFileSaveDialog
32 [ComImport,
33 Guid(IIDGuid.IKnownFolderManager),
34 CoClass(typeof(KnownFolderManagerRCW))]
35 internal interface KnownFolderManager : IKnownFolderManager
39 // .NET classes representing runtime callable wrappers.
40 [ComImport,
41 ClassInterface(ClassInterfaceType.None),
42 TypeLibType(TypeLibTypeFlags.FCanCreate),
43 Guid(CLSIDGuid.FileOpenDialog)]
44 internal class FileOpenDialogRCW
48 [ComImport,
49 ClassInterface(ClassInterfaceType.None),
50 TypeLibType(TypeLibTypeFlags.FCanCreate),
51 Guid(CLSIDGuid.FileSaveDialog)]
52 internal class FileSaveDialogRCW
56 [ComImport,
57 ClassInterface(ClassInterfaceType.None),
58 TypeLibType(TypeLibTypeFlags.FCanCreate),
59 Guid(CLSIDGuid.KnownFolderManager)]
60 internal class KnownFolderManagerRCW