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.

33 lines
1.2 KiB

  1. /*
  2. * File: utils.h
  3. * Description: This file contains function prototypes for the utility
  4. * functions for the NLB KD extensions.
  5. * History: Created by shouse, 1.4.01
  6. */
  7. /* Prints an error message when the symbols are bad. */
  8. VOID ErrorCheckSymbols (CHAR * symbol);
  9. /* Tokenizes a string via a configurable list of tokens. */
  10. char * mystrtok (char * string, char * control);
  11. /* Returns a ULONG residing at a given memory location. */
  12. ULONG GetUlongFromAddress (ULONG64 Location);
  13. /* Returns a memory address residing at a given memory location. */
  14. ULONG64 GetPointerFromAddress (ULONG64 Location);
  15. /* Reads data from a memory location into a buffer. */
  16. BOOL GetData (IN LPVOID ptr, IN ULONG64 dwAddress, IN ULONG size, IN PCSTR type);
  17. /* Copies a string from memory into a buffer. */
  18. BOOL GetString (IN ULONG64 dwAddress, IN LPWSTR buf, IN ULONG MaxChars);
  19. /* Copies an ethernet MAC address from memory into a buffer. */
  20. BOOL GetMAC (IN ULONG64 dwAddress, IN UCHAR * buf, IN ULONG NumChars);
  21. /* Returns a string corresponding to the enumerated TCP packet type. */
  22. CHAR * TCPPacketTypeToString (TCP_PACKET_TYPE ePktType);
  23. /* This IS the NLB hashing function. */
  24. ULONG Map (ULONG v1, ULONG v2);