Fixed a popup menu selection bug.
[wine/multimedia.git] / ole / ole2.c
blob667b066e256ff8dc88c92c993d4da540dffbb14f
1 /*
2 * OLE2 library
4 * Copyright 1995 Martin von Loewis
5 */
7 #include "windows.h"
8 #include "winerror.h"
9 #include "ole2.h"
10 #include "process.h"
11 #include "debug.h"
13 /******************************************************************************
14 * OleBuildVersion [OLE2.1]
16 DWORD WINAPI OleBuildVersion()
18 TRACE(ole,"(void)\n");
19 return (rmm<<16)+rup;
22 /***********************************************************************
23 * OleInitialize (OLE2.2) (OLE32.108)
25 HRESULT WINAPI OleInitialize(LPVOID reserved)
27 FIXME(ole,"OleInitialize - stub\n");
28 return S_OK;
31 /******************************************************************************
32 * CoGetCurrentProcess [COMPOBJ.34] [OLE2.2][OLE32.108]
34 * NOTES
35 * Is DWORD really the correct return type for this function?
37 DWORD WINAPI CoGetCurrentProcess() {
38 return (DWORD)PROCESS_Current();
41 /******************************************************************************
42 * OleUninitialize [OLE2.3] [OLE32.131]
44 void WINAPI OleUninitialize(void)
46 FIXME(ole,"stub\n");
49 /***********************************************************************
50 * OleFlushClipboard [OLE2.76]
52 HRESULT WINAPI OleFlushClipboard()
54 return S_OK;
57 /******************************************************************************
58 * CoRegisterMessageFilter32 [OLE32.38]
60 HRESULT WINAPI CoRegisterMessageFilter32(
61 LPMESSAGEFILTER lpMessageFilter, /* Pointer to interface */
62 LPMESSAGEFILTER *lplpMessageFilter /* Indirect pointer to prior instance if non-NULL */
63 ) {
64 FIXME(ole,"stub\n");
65 if (lplpMessageFilter) {
66 *lplpMessageFilter = NULL;
68 return S_OK;
71 /******************************************************************************
72 * OleInitializeWOW [OLE32.109]
74 HRESULT WINAPI OleInitializeWOW(DWORD x) {
75 FIXME(ole,"(0x%08lx),stub!\n",x);
76 return 0;
79 /******************************************************************************
80 * GetRunningObjectTable16 [OLE2.30]
82 HRESULT WINAPI GetRunningObjectTable16(DWORD reserved, LPVOID *pprot) {
83 FIXME(ole,"(%ld,%p),stub!\n",reserved,pprot);
84 return E_FAIL;
87 /***********************************************************************
88 * RegisterDragDrop16 (OLE2.35)
90 HRESULT WINAPI RegisterDragDrop16(
91 HWND16 hwnd,
92 LPDROPTARGET pDropTarget
93 ) {
94 FIXME(ole,"(0x%04x,%p),stub!\n",hwnd,pDropTarget);
95 return S_OK;
98 /***********************************************************************
99 * RegisterDragDrop32 (OLE32.139)
101 HRESULT WINAPI RegisterDragDrop32(
102 HWND32 hwnd,
103 LPDROPTARGET pDropTarget
105 FIXME(ole,"(0x%04x,%p),stub!\n",hwnd,pDropTarget);
106 return S_OK;
109 /***********************************************************************
110 * RevokeDragDrop16 (OLE2.36)
112 HRESULT WINAPI RevokeDragDrop16(
113 HWND16 hwnd
115 FIXME(ole,"(0x%04x),stub!\n",hwnd);
116 return S_OK;
119 /***********************************************************************
120 * RevokeDragDrop32 (OLE32.141)
122 HRESULT WINAPI RevokeDragDrop32(
123 HWND32 hwnd
125 FIXME(ole,"(0x%04x),stub!\n",hwnd);
126 return S_OK;