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.

66 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. Algmsg.h
  5. Abstract:
  6. This module contains declarations related to the ALG transparent
  7. proxy's message-processing.
  8. Author:
  9. Qiang Wang (qiangw) 10-Apr-2000
  10. Revision History:
  11. --*/
  12. #pragma once
  13. //
  14. // Reserved port release delay
  15. //
  16. #define ALG_PORT_RELEASE_DELAY 240000
  17. //
  18. // Flags used in 'UserFlags' field of message-buffers
  19. //
  20. #define ALG_BUFFER_FLAG_CONTINUATION 0x00000001
  21. #define ALG_BUFFER_FLAG_FROM_ACTUAL_CLIENT 0x00000004
  22. #define ALG_BUFFER_FLAG_FROM_ACTUAL_HOST 0x00000008
  23. typedef struct _TIMER_CONTEXT {
  24. HANDLE TimerQueueHandle;
  25. HANDLE TimerHandle;
  26. USHORT ReservedPort;
  27. } TIMER_CONTEXT, *PTIMER_CONTEXT;
  28. //
  29. // FUNCTION DECLARATIONS
  30. //
  31. VOID
  32. AlgProcessMessage(
  33. PALG_INTERFACE Interfacep,
  34. PALG_ENDPOINT Endpointp,
  35. PNH_BUFFER Bufferp
  36. );
  37. CHAR *
  38. AlgIsFullMessage(
  39. CHAR *Bufferp,
  40. ULONG Length
  41. );
  42. VOID CALLBACK
  43. AlgDelayedPortRelease(
  44. PVOID Parameter,
  45. BOOLEAN TimerOrWaitFired
  46. );