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.

84 lines
1.4 KiB

  1. //============================================================================
  2. // Copyright (c) 1995, Microsoft Corporation
  3. //
  4. // File: work.h
  5. //
  6. // History:
  7. // Abolade Gbadegesin August 31, 1995 Created
  8. //
  9. // Worker function declarations
  10. //============================================================================
  11. #ifndef _WORK_H_
  12. #define _WORK_H_
  13. #define UNKNOWN_ADDRESS_STR "Unknown address"
  14. typedef struct _INPUT_CONTEXT {
  15. DWORD IC_InterfaceIndex;
  16. DWORD IC_AddrIndex;
  17. SOCKADDR_IN IC_InputSource;
  18. DWORD IC_InputLength;
  19. BYTE IC_InputPacket[MAX_PACKET_SIZE];
  20. } INPUT_CONTEXT, *PINPUT_CONTEXT;
  21. VOID
  22. CallbackFunctionNetworkEvents(
  23. PVOID pvContext,
  24. BOOLEAN NotUsed
  25. );
  26. VOID
  27. WorkerFunctionNetworkEvents(
  28. PVOID pvContextNotused
  29. );
  30. DWORD
  31. ProcessSocket(
  32. PIF_TABLE_ENTRY pite,
  33. DWORD dwAddrIndex,
  34. PIF_TABLE pTable
  35. );
  36. VOID
  37. WorkerFunctionProcessInput(
  38. PVOID pContext
  39. );
  40. VOID
  41. ProcessRequest(
  42. PVOID pContext
  43. );
  44. VOID
  45. ProcessReply(
  46. PVOID pContext
  47. );
  48. char *
  49. myinet_ntoa(
  50. struct in_addr in
  51. );
  52. #if DBG
  53. VOID
  54. CallbackFunctionMibDisplay(
  55. PVOID pContext,
  56. BOOLEAN NotUsed
  57. );
  58. VOID
  59. WorkerFunctionMibDisplay(
  60. PVOID pContext
  61. );
  62. #endif //if DBG
  63. #endif // _WORK_H_