D Dave Jan 13, 2004 #1 Does anyone have the IDropSource Com interface in C#, or know how I can generate it? Thank you, Dave
M Mattias Sjögren Jan 13, 2004 #2 Dave, Does anyone have the IDropSource Com interface in C#, or know how I can generate it? Click to expand... Try this: [ComImport, Guid("00000121-0000-0000-C000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] interface IDropSource { [PreserveSig] uint QueryContinueDrag( [MarshalAs(UnmanagedType.Bool)] bool fEscapePressed, uint grfKeyState); [PreserveSig] uint GiveFeedback( uint dwEffect); } Mattias
Dave, Does anyone have the IDropSource Com interface in C#, or know how I can generate it? Click to expand... Try this: [ComImport, Guid("00000121-0000-0000-C000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] interface IDropSource { [PreserveSig] uint QueryContinueDrag( [MarshalAs(UnmanagedType.Bool)] bool fEscapePressed, uint grfKeyState); [PreserveSig] uint GiveFeedback( uint dwEffect); } Mattias