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.

61 lines
1.4 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. namespace ShimLib
  22. {
  23. // If this were included in ShimProto.h, we would have to include all kinds of DDE include files
  24. typedef HDDEDATA (WINAPI *_pfn_DdeClientTransaction)(
  25. LPBYTE pData, // pointer to data to pass to server
  26. DWORD cbData, // length of data
  27. HCONV hConv, // handle to conversation
  28. HSZ hszItem, // handle to item name string
  29. UINT wFmt, // clipboard data format
  30. UINT wType, // transaction type
  31. DWORD dwTimeout, // time-out duration
  32. LPDWORD pdwResult // pointer to transaction result
  33. );
  34. // Extracts an alphabetic string and looks it up in a list of possible
  35. // commands, returning a pointer to the character after the command and
  36. // sticking the command index somewhere.
  37. UINT* GetDDECommands(LPSTR lpCmd, const char * lpsCommands[], BOOL fLFN);
  38. void GetGroupPath(LPCSTR pszName, LPSTR pszPath, DWORD dwFlags, INT iCommonGroup);
  39. }; // end of namespace ShimLib