On Mon, Feb 2, 2009 at 11:24 PM, Jeremiah Flerchinger
<jeremiah.flerchinger(a)gmail.com> wrote:
> Stubs basic DDE interface of Progman.exe. Similar to Progman stub in
> shell32.dll. Both will need to be extended and a 3rd progman interface
> will need to be added in user32.
> ---
> programs/progman/main.c | 148 +++++++++++++++++++++++++++++++++++++++++++++++
> 1 files changed, 148 insertions(+), 0 deletions(-)
>
> diff --git a/programs/progman/main.c b/programs/progman/main.c
> index 83a346c..51dbcff 100644
> --- a/programs/progman/main.c
> +++ b/programs/progman/main.c
> @@ -56,6 +154,12 @@ int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show
> Globals.hGroups = 0;
> Globals.hActiveGroup = 0;
>
> + /**/
> + DdeInitializeW(&dwDDEInst, DdeCallback, APPCLASS_STANDARD, 0);
> + hszProgmanTopic = DdeCreateStringHandleW(dwDDEInst, wszProgman, CP_WINUNICODE);
> + hszProgmanService = DdeCreateStringHandleW(dwDDEInst, wszProgman, CP_WINUNICODE);
> + DdeNameService(dwDDEInst, hszProgmanService, 0, DNS_REGISTER);
> +
Empty comment.
> + case WM_DDE_TERMINATE:
> + printf("Progman.exe: WM_DDE_TERMINATE stub \n");
> +// PostMessage( (HWND)wParam, WM_DDE_TERMINATE, (WPARAM)hWnd, 0);
> + break;
> }
> return(DefFrameProc(hWnd, Globals.hMDIWnd, msg, wParam, lParam));
> }
C++ comments are not allowed.
Thanks for helping Wine!
--
-Austin