mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:02:56 +00:00
launch shell DDE server
svn path=/trunk/; revision=14351
This commit is contained in:
parent
cd0596ffa4
commit
154128c1a0
1 changed files with 12 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue