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.

209 lines
5.1 KiB

  1. #ifndef H__ddepkts
  2. #define H__ddepkts
  3. #ifndef H__ddepkt
  4. #include "ddepkt.h"
  5. #define H__ddepkt
  6. #endif
  7. #define PQOS PSECURITY_QUALITY_OF_SERVICE
  8. #define QOS SECURITY_QUALITY_OF_SERVICE
  9. /*
  10. DDEPKTCMN common information for all DDE message packets
  11. */
  12. typedef struct {
  13. DDEPKT dc_ddePkt;
  14. WORD dc_message;
  15. WORD dc_filler1;
  16. DWORD dc_hConvSrc;
  17. DWORD dc_hConvDst;
  18. } DDEPKTCMN;
  19. typedef DDEPKTCMN FAR *LPDDEPKTCMN;
  20. /*
  21. DDEPKTINIT initiate packet
  22. */
  23. typedef struct {
  24. DDEPKTCMN dp_init_ddePktCmn;
  25. HDDER dp_init_fromDder;
  26. WORD dp_init_offsFromNode;
  27. WORD dp_init_offsFromApp;
  28. WORD dp_init_offsToNode;
  29. WORD dp_init_offsToApp;
  30. WORD dp_init_offsToTopic;
  31. WORD dp_init_offsPassword;
  32. DWORD dp_init_hSecurityKey;
  33. DWORD dp_init_dwSecurityType;
  34. DWORD dp_init_sizePassword;
  35. } DDEPKTINIT;
  36. typedef DDEPKTINIT FAR *LPDDEPKTINIT;
  37. /*
  38. DDEPKTSEC defines the structure of "dp_init_offsPassword"
  39. */
  40. typedef struct {
  41. WORD dp_sec_offsUserName;
  42. WORD dp_sec_sizeUserName;
  43. WORD dp_sec_offsDomainName;
  44. WORD dp_sec_sizeDomainName;
  45. WORD dp_sec_offsPassword;
  46. WORD dp_sec_sizePassword;
  47. WORD dp_sec_offsQos;
  48. WORD dp_sec_sizeQos;
  49. } DDEPKTSEC;
  50. typedef DDEPKTSEC FAR *LPDDEPKTSEC;
  51. /*
  52. DDEPKTIACK initiate ack packet
  53. */
  54. typedef struct {
  55. DDEPKTCMN dp_iack_ddePktCmn;
  56. HDDER dp_iack_fromDder;
  57. DWORD dp_iack_reason;
  58. DWORD dp_iack_hSecurityKey; /* replaced iack_prmXXXX */
  59. DWORD dp_iack_dwSecurityType; /* replaced iack_prmXXXX */
  60. WORD dp_iack_offsFromNode;
  61. WORD dp_iack_offsFromApp;
  62. WORD dp_iack_offsFromTopic;
  63. WORD dp_iack_offsSecurityKey;
  64. DWORD dp_iack_sizeSecurityKey;
  65. } DDEPKTIACK;
  66. typedef DDEPKTIACK FAR *LPDDEPKTIACK;
  67. #include "sectype.h"
  68. /*
  69. DDEPKTTERM terminate packet
  70. */
  71. typedef struct {
  72. DDEPKTCMN dp_term_ddePktCmn;
  73. } DDEPKTTERM;
  74. typedef DDEPKTTERM FAR *LPDDEPKTTERM;
  75. /*
  76. DDEPKTEXEC execute packet
  77. */
  78. typedef struct {
  79. DDEPKTCMN dp_exec_ddePktCmn;
  80. char dp_exec_string[ 1 ];
  81. } DDEPKTEXEC;
  82. typedef DDEPKTEXEC FAR *LPDDEPKTEXEC;
  83. /*
  84. DDEPKTEACK ack execute packet
  85. */
  86. typedef struct {
  87. DDEPKTCMN dp_eack_ddePktCmn;
  88. BYTE dp_eack_fAck;
  89. BYTE dp_eack_fBusy;
  90. BYTE dp_eack_bAppRtn;
  91. BYTE dp_eack_filler;
  92. } DDEPKTEACK;
  93. typedef DDEPKTEACK FAR *LPDDEPKTEACK;
  94. /*
  95. DDEPKTGACK generic ack packet
  96. used for
  97. WM_DDE_ACK_ADVISE
  98. WM_DDE_ACK_REQUEST
  99. WM_DDE_ACK_UNADVISE
  100. WM_DDE_ACK_POKE
  101. WM_DDE_ACK_DATA
  102. */
  103. typedef struct {
  104. DDEPKTCMN dp_gack_ddePktCmn;
  105. BYTE dp_gack_fAck;
  106. BYTE dp_gack_fBusy;
  107. BYTE dp_gack_bAppRtn;
  108. char dp_gack_itemName[ 1 ];
  109. } DDEPKTGACK;
  110. typedef DDEPKTGACK FAR *LPDDEPKTGACK;
  111. /*
  112. DDEPKTRQST request packet
  113. */
  114. typedef struct {
  115. DDEPKTCMN dp_rqst_ddePktCmn;
  116. WORD dp_rqst_cfFormat;
  117. WORD dp_rqst_offsFormat;
  118. WORD dp_rqst_offsItemName;
  119. WORD dp_rqst_filler;
  120. } DDEPKTRQST;
  121. typedef DDEPKTRQST FAR *LPDDEPKTRQST;
  122. /*
  123. DDEPKTUNAD unadvise packet
  124. */
  125. typedef struct {
  126. DDEPKTCMN dp_unad_ddePktCmn;
  127. WORD dp_unad_cfFormat;
  128. WORD dp_unad_offsFormat;
  129. WORD dp_unad_offsItemName;
  130. WORD dp_unad_filler;
  131. } DDEPKTUNAD;
  132. typedef DDEPKTUNAD FAR *LPDDEPKTUNAD;
  133. /*
  134. DDEPKTADVS advise packet
  135. */
  136. typedef struct {
  137. DDEPKTCMN dp_advs_ddePktCmn;
  138. WORD dp_advs_cfFormat;
  139. WORD dp_advs_offsFormat;
  140. WORD dp_advs_offsItemName;
  141. BYTE dp_advs_fAckReq;
  142. BYTE dp_advs_fNoData;
  143. } DDEPKTADVS;
  144. typedef DDEPKTADVS FAR *LPDDEPKTADVS;
  145. /*
  146. DDEPKTDATA data packet
  147. */
  148. typedef struct {
  149. DDEPKTCMN dp_data_ddePktCmn;
  150. WORD dp_data_cfFormat;
  151. WORD dp_data_offsFormat;
  152. WORD dp_data_offsItemName;
  153. WORD dp_data_offsData;
  154. DWORD dp_data_sizeData;
  155. BYTE dp_data_fResponse;
  156. BYTE dp_data_fAckReq;
  157. BYTE dp_data_fRelease;
  158. BYTE dp_data_filler;
  159. } DDEPKTDATA;
  160. typedef DDEPKTDATA FAR *LPDDEPKTDATA;
  161. /*
  162. DDEPKTPOKE poke packet
  163. */
  164. typedef struct {
  165. DDEPKTCMN dp_poke_ddePktCmn;
  166. WORD dp_poke_cfFormat;
  167. WORD dp_poke_offsFormat;
  168. WORD dp_poke_offsItemName;
  169. WORD dp_poke_offsData;
  170. DWORD dp_poke_sizeData;
  171. BYTE dp_poke_fRelease;
  172. BYTE dp_poke_filler[ 3 ];
  173. } DDEPKTPOKE;
  174. typedef DDEPKTPOKE FAR *LPDDEPKTPOKE;
  175. /*
  176. DDEPKTTEST generic test packet
  177. used for
  178. WM_DDE_TEST
  179. */
  180. typedef struct {
  181. DDEPKTCMN dp_test_ddePktCmn;
  182. BYTE dp_test_nTestNo;
  183. BYTE dp_test_nPktNo;
  184. BYTE dp_test_nTotalPkts;
  185. BYTE dp_test_filler;
  186. } DDEPKTTEST;
  187. typedef DDEPKTTEST FAR *LPDDEPKTTEST;
  188. #endif