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.

93 lines
3.0 KiB

  1. //========================================================================
  2. //
  3. // NDDEAPIS.H supplemental include file for dde share apis
  4. //
  5. //========================================================================
  6. // tabstop = 4
  7. #ifndef NDDEAPI_INCLUDED
  8. #define NDDEAPI_INCLUDED
  9. #ifndef _INC_NDDESEC
  10. #include "nddesec.h"
  11. #endif
  12. // ============= connectFlags options =====
  13. #define DDEF_NOPASSWORDPROMPT 0x0001
  14. // others reserved!
  15. //============== Api Constants ============
  16. // String size constants
  17. #define MAX_PASSWORD 15
  18. // Permission mask bits
  19. #define DDEACCESS_REQUEST NDDE_SHARE_REQUEST
  20. #define DDEACCESS_ADVISE NDDE_SHARE_ADVISE
  21. #define DDEACCESS_POKE NDDE_SHARE_POKE
  22. #define DDEACCESS_EXECUTE NDDE_SHARE_EXECUTE
  23. // ============== Data Structures =========
  24. //=============================================================
  25. // DDESESSINFO - contains information about a DDE session
  26. // ddesess_Status defines
  27. #define DDESESS_CONNECTING_WAIT_NET_INI 1
  28. #define DDESESS_CONNECTING_WAIT_OTHR_ND 2
  29. #define DDESESS_CONNECTED 3
  30. #define DDESESS_DISCONNECTING 4
  31. struct DdeSessInfo_tag {
  32. char ddesess_ClientName[UNCLEN+1];
  33. short ddesess_Status;
  34. DWORD_PTR ddesess_Cookie; // used to distinguish
  35. // clients of the same
  36. // name on difft. nets
  37. };
  38. typedef struct DdeSessInfo_tag DDESESSINFO;
  39. typedef struct DdeSessInfo_tag * PDDESESSINFO;
  40. typedef struct DdeSessInfo_tag far * LPDDESESSINFO;
  41. struct DdeConnInfo_tag {
  42. LPSTR ddeconn_ShareName;
  43. short ddeconn_Status;
  44. short ddeconn_pad;
  45. };
  46. typedef struct DdeConnInfo_tag DDECONNINFO;
  47. typedef struct DdeConnInfo_tag * PDDECONNINFO;
  48. typedef struct DdeConnInfo_tag far * LPDDECONNINFO;
  49. //=============================================================
  50. //=============================================================
  51. //
  52. // API FUNCTION PROTOTYPES
  53. //
  54. //=============================================================
  55. //=============================================================
  56. // The following functions are to be supplied (not necessarily part of API)
  57. LPBYTE WINAPI
  58. DdeEnkrypt2( // pointer to enkrypted byte stream returned
  59. LPBYTE lpPasswordK1, // password output in first phase
  60. DWORD cPasswordK1Size, // size of password to be enkrypted
  61. LPBYTE lpKey, // pointer to key
  62. DWORD cKey, // size of key
  63. LPDWORD lpcbPasswordK2Size // get size of resulting enkrypted stream
  64. );
  65. #endif // NDDEAPI_INCLUDED