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.

91 lines
3.4 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 2000 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: Connect.h
  6. * Content: DirectNet Cancel Operation Header
  7. *@@BEGIN_MSINTERNAL
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 04/07/00 mjn Created
  12. * 04/08/00 mjn Added DNCancelEnum(), DNCancelSend()
  13. * 04/11/00 mjn DNCancelEnum() uses CAsyncOp
  14. * 04/17/00 mjn DNCancelSend() uses CAsyncOp
  15. * 04/25/00 mjn Added DNCancelConnect()
  16. * 08/05/00 mjn Added DNCancelChildren(),DNCancelActiveCommands(),DNCanCancelCommand()
  17. * mjn Added DN_CANCEL_FLAG's
  18. * mjn Removed DNCancelEnum(),DNCancelListen(),DNCancelSend(),DNCancelConnect()
  19. * 08/07/00 mjn Added DNCancelRequestCommands()
  20. * 01/10/01 mjn Allow DNCancelActiveCommands() to set result code of cancelled commands
  21. * 02/08/01 mjn Added DNWaitForCancel()
  22. *@@END_MSINTERNAL
  23. *
  24. ***************************************************************************/
  25. #ifndef __CANCEL_H__
  26. #define __CANCEL_H__
  27. //**********************************************************************
  28. // Constant definitions
  29. //**********************************************************************
  30. #define DN_CANCEL_FLAG_CONNECT 0x0001
  31. #define DN_CANCEL_FLAG_DISCONNECT 0x0002
  32. #define DN_CANCEL_FLAG_ENUM_QUERY 0x0004
  33. #define DN_CANCEL_FLAG_ENUM_RESPONSE 0x0008
  34. #define DN_CANCEL_FLAG_LISTEN 0x0010
  35. #define DN_CANCEL_FLAG_USER_SEND 0x0020
  36. #define DN_CANCEL_FLAG_INTERNAL_SEND 0x0040
  37. #define DN_CANCEL_FLAG_RECEIVE_BUFFER 0x0080
  38. #define DN_CANCEL_FLAG_REQUEST 0x0100
  39. #ifndef DPNBUILD_NOMULTICAST
  40. #define DN_CANCEL_FLAG_JOIN 0x0200
  41. #endif // ! DPNBUILD_NOMULTICAST
  42. #define DN_CANCEL_FLAG_USER_SEND_NOTHIGHPRI 0x0400
  43. #define DN_CANCEL_FLAG_USER_SEND_NOTNORMALPRI 0x0800
  44. #define DN_CANCEL_FLAG_USER_SEND_NOTLOWPRI 0x1000
  45. //**********************************************************************
  46. // Macro definitions
  47. //**********************************************************************
  48. //**********************************************************************
  49. // Structure definitions
  50. //**********************************************************************
  51. class CAsyncOp;
  52. //**********************************************************************
  53. // Variable definitions
  54. //**********************************************************************
  55. //**********************************************************************
  56. // Function prototypes
  57. //**********************************************************************
  58. BOOL DNCanCancelCommand(CAsyncOp *const pAsyncOp,
  59. const DWORD dwFlags,
  60. CConnection *const pConnection);
  61. HRESULT DNDoCancelCommand(DIRECTNETOBJECT *const pdnObject,
  62. CAsyncOp *const pAsyncOp);
  63. HRESULT DNCancelChildren(DIRECTNETOBJECT *const pdnObject,
  64. CAsyncOp *const pParent);
  65. HRESULT DNCancelActiveCommands(DIRECTNETOBJECT *const pdnObject,
  66. const DWORD dwFlags,
  67. CConnection *const pConnection,
  68. const BOOL fSetResult,
  69. const HRESULT hr);
  70. HRESULT DNCancelRequestCommands(DIRECTNETOBJECT *const pdnObject);
  71. void DNWaitForCancel(CAsyncOp *const pAsyncOp);
  72. //**********************************************************************
  73. // Class prototypes
  74. //**********************************************************************
  75. #endif // __CANCEL_H__