зеркало из https://github.com/mozilla/pjs.git
Adding CoInitialize to wince shunt
This commit is contained in:
Родитель
4fa96c6a2e
Коммит
a8556aee33
|
@ -661,6 +661,11 @@
|
|||
#endif
|
||||
#define IsClipboardFormatAvailable mozce_IsClipboardFormatAvailable
|
||||
|
||||
#ifdef CoInitialize
|
||||
#undef CoInitialize
|
||||
#endif
|
||||
#define CoInitialize mozce_CoInitialize
|
||||
|
||||
#ifdef OleInitialize
|
||||
#undef OleInitialize
|
||||
#endif
|
||||
|
@ -1338,6 +1343,7 @@ extern "C" {
|
|||
MOZCE_SHUNT_API int mozce_GetScrollPos(HWND inWnd, int inBar);
|
||||
MOZCE_SHUNT_API BOOL mozce_GetScrollRange(HWND inWnd, int inBar, LPINT outMinPos, LPINT outMaxPos);
|
||||
MOZCE_SHUNT_API HRESULT mozce_CoLockObjectExternal(IUnknown* inUnk, BOOL inLock, BOOL inLastUnlockReleases);
|
||||
MOZCE_SHUNT_API HRESULT mozce_CoInitialize(LPVOID pvReserved);
|
||||
MOZCE_SHUNT_API LRESULT mozce_OleInitialize(LPVOID pvReserved);
|
||||
MOZCE_SHUNT_API void mozce_OleUninitialize();;
|
||||
MOZCE_SHUNT_API HRESULT mozce_OleSetClipboard(IDataObject* inDataObj);
|
||||
|
|
|
@ -766,6 +766,19 @@ MOZCE_SHUNT_API HRESULT mozce_CoLockObjectExternal(IUnknown* inUnk, BOOL inLock,
|
|||
return retval;
|
||||
}
|
||||
|
||||
MOZCE_SHUNT_API HRESULT mozce_CoInitialize(LPVOID pvReserved)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
||||
#ifdef DEBUG
|
||||
mozce_printf("-- mozce_Conitialize called\n");
|
||||
#endif
|
||||
|
||||
CoInitializeEx(NULL, COINIT_MULTITHREADED);
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
MOZCE_SHUNT_API LRESULT mozce_OleInitialize(LPVOID pvReserved)
|
||||
{
|
||||
MOZCE_PRECHECK
|
||||
|
|
Загрузка…
Ссылка в новой задаче