comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/dnd/DragSource.d @ 43:b98647bc0aef

swt win compiles for d2+phobos
author Frank Benoit <benoit@tionex.de>
date Wed, 25 Mar 2009 17:08:05 +0100
parents d46287db17ed
children
comparison
equal deleted inserted replaced
42:63aa48e5430f 43:b98647bc0aef
630 630
631 /* QueryInterface([in] riid, [out] ppvObject) 631 /* QueryInterface([in] riid, [out] ppvObject)
632 * Ownership of ppvObject transfers from callee to caller so reference count on ppvObject 632 * Ownership of ppvObject transfers from callee to caller so reference count on ppvObject
633 * must be incremented before returning. Caller is responsible for releasing ppvObject. 633 * must be incremented before returning. Caller is responsible for releasing ppvObject.
634 */ 634 */
635 private HRESULT QueryInterface(REFIID riid, void** ppvObject) { 635 private HRESULT QueryInterface(REFCIID riid, void** ppvObject) {
636 if (riid is null || ppvObject is null) 636 if (riid is null || ppvObject is null)
637 return COM.E_INVALIDARG; 637 return COM.E_INVALIDARG;
638 638
639 if (COM.IsEqualGUID(riid, &COM.IIDIUnknown) || COM.IsEqualGUID(riid, &COM.IIDIDropSource)) { 639 if (COM.IsEqualGUID(riid, &COM.IIDIUnknown) || COM.IsEqualGUID(riid, &COM.IIDIDropSource)) {
640 *ppvObject = cast(void*)cast(IUnknown) iDropSource; 640 *ppvObject = cast(void*)cast(IUnknown) iDropSource;
737 737
738 DragSource parent; 738 DragSource parent;
739 this(DragSource p) { parent = p; } 739 this(DragSource p) { parent = p; }
740 extern (Windows): 740 extern (Windows):
741 // interface of IUnknown 741 // interface of IUnknown
742 HRESULT QueryInterface(REFIID riid, void ** ppvObject) { return parent.QueryInterface(riid, ppvObject); } 742 HRESULT QueryInterface(REFCIID riid, void ** ppvObject) { return parent.QueryInterface(riid, ppvObject); }
743 ULONG AddRef() { return parent.AddRef(); } 743 ULONG AddRef() { return parent.AddRef(); }
744 ULONG Release() { return parent.Release(); } 744 ULONG Release() { return parent.Release(); }
745 745
746 // interface of IDropSource 746 // interface of IDropSource
747 HRESULT QueryContinueDrag(BOOL fEscapePressed, DWORD grfKeyState) { return parent.QueryContinueDrag(fEscapePressed, grfKeyState); } 747 HRESULT QueryContinueDrag(BOOL fEscapePressed, DWORD grfKeyState) { return parent.QueryContinueDrag(fEscapePressed, grfKeyState); }
752 752
753 DragSource parent; 753 DragSource parent;
754 this(DragSource p) { parent = p; } 754 this(DragSource p) { parent = p; }
755 extern (Windows): 755 extern (Windows):
756 // interface of IUnknown 756 // interface of IUnknown
757 HRESULT QueryInterface(REFIID riid, void ** ppvObject) { return parent.QueryInterface(riid, ppvObject); } 757 HRESULT QueryInterface(REFCIID riid, void ** ppvObject) { return parent.QueryInterface(riid, ppvObject); }
758 ULONG AddRef() { return parent.AddRef(); } 758 ULONG AddRef() { return parent.AddRef(); }
759 ULONG Release() { return parent.Release(); } 759 ULONG Release() { return parent.Release(); }
760 760
761 761
762 // interface IDataObject 762 // interface IDataObject