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.

120 lines
1.9 KiB

  1. #ifndef _INC_DDEMLH
  2. #include <ddeml.h>
  3. #endif
  4. #ifndef _INC_NDDEAPI
  5. #include <nddeapi.h>
  6. #endif
  7. #define CACHEFORMATLIST
  8. #define CACHEPREVIEWS
  9. #define MAX_TOPIC 64
  10. #define MAX_EXEC MAX_DDE_EXEC
  11. #define MAX_CLPSHRNAME MAX_NDDESHARENAME
  12. #define MAX_FILEPATH MAX_PATH
  13. // shrinfotag flags
  14. #define SIF_SHARED 0x1
  15. struct ShrInfotag
  16. {
  17. WCHAR szFileName[MAX_FILEPATH]; // no extension
  18. WCHAR szName[MAX_CLPSHRNAME+1];
  19. HSZ hszName;
  20. WORD flags;
  21. #ifdef CACHEFORMATLIST
  22. HDDEDATA hFormatList;
  23. #endif
  24. #ifdef CACHEPREVIEWS
  25. HDDEDATA hPreviewBmp;
  26. #endif
  27. struct ShrInfotag *Next;
  28. };
  29. typedef struct ShrInfotag ShrInfo;
  30. typedef ShrInfo *pShrInfo;
  31. extern pShrInfo SIHead;
  32. // GLOBALS
  33. extern DWORD idInst;
  34. extern HINSTANCE hInst;
  35. extern HWND hwndApp;
  36. extern HSZ hszAppName;
  37. extern TCHAR szTopic[MAX_TOPIC];
  38. extern TCHAR szServer[MAX_TOPIC];
  39. extern TCHAR szExec[MAX_EXEC];
  40. extern UINT cf_preview;
  41. extern ShrInfo *SIHead;
  42. extern TCHAR szUpdateName[MAX_CLPSHRNAME+1];
  43. // FUNCTIONS
  44. void ClipSrvMain(
  45. DWORD argc,
  46. LPSTR *argv);
  47. BOOL InitApplication(
  48. HINSTANCE,
  49. SERVICE_STATUS *);
  50. LRESULT FAR PASCAL MainWndProc(
  51. HWND,
  52. UINT,
  53. WPARAM,
  54. LPARAM);
  55. HDDEDATA EXPENTRY DdeCallback(
  56. WORD wType,
  57. WORD wFmt,
  58. HCONV hConv,
  59. HSZ hszTopic,
  60. HSZ hszItem,
  61. HDDEDATA hData,
  62. DWORD lData1,
  63. DWORD lData2);
  64. void Hszize(void);
  65. void UnHszize(void);
  66. HDDEDATA RenderRawFormatToDDE(
  67. FORMATHEADER *pfmthdr,
  68. HANDLE fh);
  69. // Resource ID
  70. #define IDI_CLIPSRV 1000