mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
launch shell DDE server
svn path=/trunk/; revision=14351
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2003, 2004 Martin Fuchs
|
||||
* Copyright 2003, 2004, 2005 Martin Fuchs
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
@@ -45,6 +45,9 @@
|
||||
extern "C" int initialize_gdb_stub(); // start up GDB stub
|
||||
|
||||
|
||||
DynamicLoadLibFct<void(__stdcall*)(BOOL)> g_SHDOCVW_ShellDDEInit(TEXT("SHDOCVW"), 118);
|
||||
|
||||
|
||||
ExplorerGlobals g_Globals;
|
||||
|
||||
|
||||
@@ -826,6 +829,10 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdL
|
||||
// another undocumented event: "Global\\msgina: ReturnToWelcome"
|
||||
if (!SetShellReadyEvent(TEXT("msgina: ShellReadyEvent")))
|
||||
SetShellReadyEvent(TEXT("Global\\msgina: ShellReadyEvent"));
|
||||
|
||||
// launch the shell DDE server
|
||||
if (g_SHDOCVW_ShellDDEInit)
|
||||
(*g_SHDOCVW_ShellDDEInit)(TRUE);
|
||||
}
|
||||
|
||||
|
||||
@@ -889,5 +896,9 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdL
|
||||
// write configuration file
|
||||
g_Globals.write_persistent();
|
||||
|
||||
// shutdown the shell DDE server
|
||||
if (g_SHDOCVW_ShellDDEInit)
|
||||
(*g_SHDOCVW_ShellDDEInit)(FALSE);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user