Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 lines
1.3 KiB

/*++
Copyright (c) 1993, Microsoft Corporation
Private interface definition for having the NetDDE agent application
start the NetDDE services on the fly.
Created 11/5/93 SanfordS
--*/
#include <dde.h>
#define SZ_NDDEAGNT_SERVICE TEXT("NDDEAgnt")
#define SZ_NDDEAGNT_TOPIC TEXT("Start NetDDE Services")
#define SZ_NDDEAGNT_TITLE TEXT("NetDDE Agent")
#define SZ_NDDEAGNT_CLASS TEXT("NDDEAgnt")
#define START_NETDDE_SERVICES(hwnd) { \
ATOM aService, aTopic; \
\
aService = GlobalAddAtom(SZ_NDDEAGNT_SERVICE); \
aTopic = GlobalAddAtom(SZ_NDDEAGNT_TOPIC); \
SendMessage(FindWindow(SZ_NDDEAGNT_CLASS, SZ_NDDEAGNT_TITLE), \
WM_DDE_INITIATE, \
(WPARAM)hwnd, MAKELPARAM(aService, aTopic)); \
GlobalDeleteAtom(aService); \
GlobalDeleteAtom(aTopic); \
}
#define NETDDE_PIPE L"\\\\.\\pipe\\NetDDE"
typedef struct {
DWORD dwOffsetDesktop;
WCHAR awchNames[64];
} NETDDE_PIPE_MESSAGE, *PNETDDE_PIPE_MESSAGE;