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.

69 lines
1.9 KiB

  1. #ifndef H__userdde
  2. #define H__userdde
  3. #include "ddepkt.h"
  4. VOID DebugDdePkt( LPDDEPKT lpDdePkt );
  5. LPDDEPKT CreateInitiatePkt(
  6. LPSTR lpszToNode,
  7. LPSTR lpszToApp,
  8. LPSTR lpszToTopic,
  9. LPSTR lpszFromNode,
  10. LPSTR lpszFromApp,
  11. LPSTR lpszUserName,
  12. LPSTR lpszDomainName,
  13. DWORD dwSecurityType,
  14. PSECURITY_QUALITY_OF_SERVICE pqosClient,
  15. LPBYTE lpPassword,
  16. DWORD dwPasswordSize,
  17. DWORD hSecurityKey);
  18. LPDDEPKT CreateAckInitiatePkt(
  19. LPSTR lpszFromNode,
  20. LPSTR lpszFromApp,
  21. LPSTR lpszFromTopic,
  22. LPBYTE lpSecurityKey,
  23. DWORD dwSecurityKeySize,
  24. DWORD hSecurityKey,
  25. BOOL bSuccess,
  26. DWORD dwReason );
  27. LPDDEPKT CreateExecutePkt( LPSTR lpszCommand );
  28. LPDDEPKT CreateTerminatePkt( void );
  29. VOID FillTerminatePkt( LPDDEPKT lpDdePkt );
  30. LPDDEPKT CreateAckExecutePkt( BOOL fAck, BOOL fBusy, BYTE bAppRtn );
  31. LPDDEPKT CreateGenericAckPkt( WORD wDdeMsg, LPSTR lpszItem,
  32. BOOL fAck, BOOL fBusy, BYTE bAppRtn );
  33. LPDDEPKT CreateRequestPkt( LPSTR lpszItem, WORD cfFormat );
  34. LPDDEPKT CreateUnadvisePkt( LPSTR lpszItem, WORD cfFormat );
  35. LPDDEPKT CreateAdvisePkt( LPSTR lpszItem, WORD cfFormat,
  36. BOOL fAckReq, BOOL fNoData );
  37. LPDDEPKT CreateDataPkt( LPSTR lpszItem, WORD cfFormat,
  38. BOOL fResponse, BOOL fAckReq, BOOL fRelease,
  39. LPVOID lpData, DWORD dwSizeOfData );
  40. LPDDEPKT CreatePokePkt( LPSTR lpszItem, WORD cfFormat,
  41. BOOL fRelease, LPVOID lpData, DWORD dwSizeOfData );
  42. LPDDEPKT DdePktCopy( LPDDEPKT lpDdePkt );
  43. WORD GetClipFormat( LPDDEPKT lpDdePkt, WORD cfFormat,
  44. WORD wOffsFormat );
  45. LPDDEPKT FAR PASCAL CreateTestPkt( int nTestNo, int nPacket,
  46. int nNum, DWORD dwSize );
  47. /* LPSTR GetStringOffset( LPDDEPKT lpDdePkt, WORD wOffsString ); */
  48. #define GetStringOffset( lpDdePkt, wOffsString ) \
  49. (((LPSTR)(lpDdePkt)) + (wOffsString))
  50. #endif