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.

71 lines
1.4 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1992 - 1999
  3. Module Name:
  4. dispatch.h
  5. Abstract:
  6. Author:
  7. Michael Montague (mikemon) 11-Jun-1992
  8. Revision History:
  9. --*/
  10. #ifndef __DISPATCH_H__
  11. #define __DISPATCH_H__
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. typedef
  16. unsigned int
  17. (* DISPATCH_TO_STUB) (
  18. IN RPC_DISPATCH_FUNCTION Stub,
  19. IN OUT PRPC_MESSAGE Message,
  20. OUT RPC_STATUS * ExceptionCode
  21. );
  22. /*
  23. This is used to dispatch calls to the stub via an indirect call.
  24. The call will go eihter through DispatchToStubInCAvrf or AvrfDispatchToStubInCNoAvrf,
  25. depending on whether app verifier is enabled.
  26. */
  27. extern DISPATCH_TO_STUB DispatchToStubInC;
  28. unsigned int
  29. DispatchToStubInCNoAvrf (
  30. IN RPC_DISPATCH_FUNCTION Stub,
  31. IN OUT PRPC_MESSAGE Message,
  32. OUT RPC_STATUS * ExceptionCode
  33. );
  34. unsigned int
  35. DispatchToStubInCAvrf (
  36. IN RPC_DISPATCH_FUNCTION Stub,
  37. IN OUT PRPC_MESSAGE Message,
  38. OUT RPC_STATUS * ExceptionCode
  39. );
  40. /*
  41. Used to check for callbacks since DG will hold connection mutex while
  42. dispatching callbacks and others may hold a user critical section.
  43. This will cause an app verifier break if we check for held critical sections
  44. after return from the manager routine.
  45. */
  46. BOOL
  47. IsCallbackMessage (
  48. IN PRPC_MESSAGE Message
  49. );
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif // __DISPATCH_H__