mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 21:20:25 +00:00
shdocvw: Move IEWinMain to iexplore.c.
This commit is contained in:
parent
c0e42d5597
commit
4027a1149c
@ -580,3 +580,33 @@ HRESULT InternetExplorer_Create(IUnknown *pOuter, REFIID riid, void **ppv)
|
||||
|
||||
return hres;
|
||||
}
|
||||
|
||||
/******************************************************************
|
||||
* IEWinMain (SHDOCVW.101)
|
||||
*
|
||||
* Only returns on error.
|
||||
*/
|
||||
DWORD WINAPI IEWinMain(LPSTR szCommandLine, int nShowWindow)
|
||||
{
|
||||
LPWSTR url;
|
||||
DWORD len;
|
||||
|
||||
FIXME("%s %d\n", debugstr_a(szCommandLine), nShowWindow);
|
||||
|
||||
CoInitialize(NULL);
|
||||
|
||||
/* FIXME: parse the command line properly, handle -Embedding */
|
||||
|
||||
len = MultiByteToWideChar(CP_ACP, 0, szCommandLine, -1, NULL, 0);
|
||||
url = HeapAlloc(GetProcessHeap(),0,len*sizeof(WCHAR));
|
||||
MultiByteToWideChar(CP_ACP, 0, szCommandLine, -1, url, len);
|
||||
|
||||
create_ie_window(url);
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, url);
|
||||
|
||||
CoUninitialize();
|
||||
|
||||
ExitProcess(0);
|
||||
return 0;
|
||||
}
|
||||
|
@ -637,33 +637,3 @@ DWORD WINAPI StopWatchAFORWARD(DWORD dwClass, LPCSTR lpszStr, DWORD dwUnknown,
|
||||
return p(dwClass, lpszStr, dwUnknown, dwMode, dwTimeStamp);
|
||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
/******************************************************************
|
||||
* IEWinMain (SHDOCVW.101)
|
||||
*
|
||||
* Only returns on error.
|
||||
*/
|
||||
DWORD WINAPI IEWinMain(LPSTR szCommandLine, int nShowWindow)
|
||||
{
|
||||
LPWSTR url;
|
||||
DWORD len;
|
||||
|
||||
FIXME("%s %d\n", debugstr_a(szCommandLine), nShowWindow);
|
||||
|
||||
CoInitialize(NULL);
|
||||
|
||||
/* FIXME: parse the command line properly, handle -Embedding */
|
||||
|
||||
len = MultiByteToWideChar(CP_ACP, 0, szCommandLine, -1, NULL, 0);
|
||||
url = HeapAlloc(GetProcessHeap(),0,len*sizeof(WCHAR));
|
||||
MultiByteToWideChar(CP_ACP, 0, szCommandLine, -1, url, len);
|
||||
|
||||
create_ie_window(url);
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, url);
|
||||
|
||||
CoUninitialize();
|
||||
|
||||
ExitProcess(0);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user