Leaked source code of windows server 2003
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.

62 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. ParseDDE.h
  5. Abstract:
  6. Helpful routines for parsing DDE commands.
  7. Notes:
  8. None
  9. History:
  10. 08/14/2001 robkenny Inserted inside the ShimLib namespace.
  11. --*/
  12. #pragma once
  13. //==============================================================================
  14. //
  15. // This code was copied from:
  16. // \nt\shell\shell32\unicpp\dde.cpp
  17. //
  18. //==============================================================================
  19. #include <dde.h>
  20. #include <ddeml.h>
  21. #include "ShimLib.h"
  22. namespace ShimLib
  23. {
  24. // If this were included in ShimProto.h, we would have to include all kinds of DDE include files
  25. typedef HDDEDATA (WINAPI *_pfn_DdeClientTransaction)(
  26. LPBYTE pData, // pointer to data to pass to server
  27. DWORD cbData, // length of data
  28. HCONV hConv, // handle to conversation
  29. HSZ hszItem, // handle to item name string
  30. UINT wFmt, // clipboard data format
  31. UINT wType, // transaction type
  32. DWORD dwTimeout, // time-out duration
  33. LPDWORD pdwResult // pointer to transaction result
  34. );
  35. // Extracts an alphabetic string and looks it up in a list of possible
  36. // commands, returning a pointer to the character after the command and
  37. // sticking the command index somewhere.
  38. UINT* GetDDECommands(LPSTR lpCmd, const char * lpsCommands[], BOOL fLFN);
  39. void GetGroupPath(LPCSTR pszName, CString & csPath, DWORD dwFlags, INT iCommonGroup);
  40. }; // end of namespace ShimLib