Source code of Windows XP (NT5)
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

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Private interface definition for having the NetDDE agent application
  4. start the NetDDE services on the fly.
  5. Created 11/5/93 SanfordS
  6. --*/
  7. #include <dde.h>
  8. #define SZ_NDDEAGNT_SERVICE TEXT("NDDEAgnt")
  9. #define SZ_NDDEAGNT_TOPIC TEXT("Start NetDDE Services")
  10. #define SZ_NDDEAGNT_TITLE TEXT("NetDDE Agent")
  11. #define SZ_NDDEAGNT_CLASS TEXT("NDDEAgnt")
  12. #define START_NETDDE_SERVICES(hwnd) { \
  13. ATOM aService, aTopic; \
  14. \
  15. aService = GlobalAddAtom(SZ_NDDEAGNT_SERVICE); \
  16. aTopic = GlobalAddAtom(SZ_NDDEAGNT_TOPIC); \
  17. SendMessage(FindWindow(SZ_NDDEAGNT_CLASS, SZ_NDDEAGNT_TITLE), \
  18. WM_DDE_INITIATE, \
  19. (WPARAM)hwnd, MAKELPARAM(aService, aTopic)); \
  20. GlobalDeleteAtom(aService); \
  21. GlobalDeleteAtom(aTopic); \
  22. }
  23. #define NETDDE_PIPE L"\\\\.\\pipe\\NetDDE"
  24. typedef struct {
  25. DWORD dwOffsetDesktop;
  26. WCHAR awchNames[64];
  27. } NETDDE_PIPE_MESSAGE, *PNETDDE_PIPE_MESSAGE;
  28.