Implemented GlobalChangeLockCount (KERNEL.365).
[wine.git] / ole / ole2.c
blob23202bc2f287af5d00759e9ee18b51743e6f5d96
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"
12 #include "compobj.h"
14 /******************************************************************************
15 * OleBuildVersion [OLE2.1]
17 DWORD WINAPI OleBuildVersion()
19 TRACE(ole,"(void)\n");
20 return (rmm<<16)+rup;
23 /***********************************************************************
24 * OleInitialize (OLE2.2) (OLE32.108)
26 HRESULT WINAPI OleInitialize(LPVOID reserved)
28 FIXME(ole,"OleInitialize - stub\n");
29 return S_OK;
32 /******************************************************************************
33 * CoGetCurrentProcess [COMPOBJ.34] [OLE2.2][OLE32.108]
35 * NOTES
36 * Is DWORD really the correct return type for this function?
38 DWORD WINAPI CoGetCurrentProcess() {
39 return (DWORD)PROCESS_Current();
42 /******************************************************************************
43 * OleUninitialize [OLE2.3] [OLE32.131]
45 void WINAPI OleUninitialize(void)
47 FIXME(ole,"stub\n");
50 /***********************************************************************
51 * OleFlushClipboard [OLE2.76]
53 HRESULT WINAPI OleFlushClipboard()
55 return S_OK;
58 /***********************************************************************
59 * OleSetClipboard [OLE32.127]
61 HRESULT WINAPI OleSetClipboard(LPVOID pDataObj)
63 FIXME(ole,"(%p), stub!\n", pDataObj);
64 return S_OK;
67 /******************************************************************************
68 * CoRegisterMessageFilter32 [OLE32.38]
70 HRESULT WINAPI CoRegisterMessageFilter32(
71 LPMESSAGEFILTER lpMessageFilter, /* Pointer to interface */
72 LPMESSAGEFILTER *lplpMessageFilter /* Indirect pointer to prior instance if non-NULL */
73 ) {
74 FIXME(ole,"stub\n");
75 if (lplpMessageFilter) {
76 *lplpMessageFilter = NULL;
78 return S_OK;
81 /******************************************************************************
82 * OleInitializeWOW [OLE32.109]
84 HRESULT WINAPI OleInitializeWOW(DWORD x) {
85 FIXME(ole,"(0x%08lx),stub!\n",x);
86 return 0;
89 /******************************************************************************
90 * GetRunningObjectTable16 [OLE2.30]
92 HRESULT WINAPI GetRunningObjectTable16(DWORD reserved, LPVOID *pprot) {
93 FIXME(ole,"(%ld,%p),stub!\n",reserved,pprot);
94 return E_FAIL;
98 /***********************************************************************
99 * GetRunningObjectTable32 (OLE2.73)
101 HRESULT WINAPI GetRunningObjectTable32(DWORD reserved, LPVOID *pprot) {
102 FIXME(ole,"(%ld,%p),stub!\n",reserved,pprot);
103 return E_FAIL;
106 /***********************************************************************
107 * RegisterDragDrop16 (OLE2.35)
109 HRESULT WINAPI RegisterDragDrop16(
110 HWND16 hwnd,
111 LPDROPTARGET pDropTarget
113 FIXME(ole,"(0x%04x,%p),stub!\n",hwnd,pDropTarget);
114 return S_OK;
117 /***********************************************************************
118 * RegisterDragDrop32 (OLE32.139)
120 HRESULT WINAPI RegisterDragDrop32(
121 HWND32 hwnd,
122 LPDROPTARGET pDropTarget
124 FIXME(ole,"(0x%04x,%p),stub!\n",hwnd,pDropTarget);
125 return S_OK;
128 /***********************************************************************
129 * RevokeDragDrop16 (OLE2.36)
131 HRESULT WINAPI RevokeDragDrop16(
132 HWND16 hwnd
134 FIXME(ole,"(0x%04x),stub!\n",hwnd);
135 return S_OK;
138 /***********************************************************************
139 * RevokeDragDrop32 (OLE32.141)
141 HRESULT WINAPI RevokeDragDrop32(
142 HWND32 hwnd
144 FIXME(ole,"(0x%04x),stub!\n",hwnd);
145 return S_OK;
148 /***********************************************************************
149 * OleRegGetUserType (OLE32.122)
151 HRESULT WINAPI OleRegGetUserType32(
152 REFCLSID clsid,
153 DWORD dwFormOfType,
154 LPOLESTR32* pszUserType)
156 FIXME(ole,",stub!\n");
157 return S_OK;
160 /***********************************************************************
161 * CreateBindCtx32 [OLE32.52]
163 HRESULT WINAPI CreateBindCtx32 (DWORD reserved, LPVOID *ppbc)
165 FIXME(ole,"(0x%08lx %p): stub!\n", reserved, ppbc);
166 *ppbc = 0;
167 // return S_OK;
168 return E_OUTOFMEMORY;