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.

86 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. parsers.h
  5. Abstract:
  6. Contains prototypes etc. for common\parsers.cxx
  7. Author:
  8. Richard L Firth (rfirth) 03-Jul-1996
  9. Revision History:
  10. 03-Jul-1996 rfirth
  11. Created
  12. --*/
  13. //
  14. // prototypes
  15. //
  16. #if defined(__cplusplus)
  17. extern "C" {
  18. #endif
  19. BOOL
  20. ExtractWord(
  21. IN OUT LPSTR* pString,
  22. IN DWORD NumberLength,
  23. OUT LPWORD ConvertedNumber
  24. );
  25. BOOL
  26. ExtractDword(
  27. IN OUT LPSTR* pString,
  28. IN DWORD NumberLength,
  29. OUT LPDWORD ConvertedNumber
  30. );
  31. BOOL
  32. ExtractInt(
  33. IN OUT LPSTR* pString,
  34. IN DWORD NumberLength,
  35. OUT LPINT ConvertedNumber
  36. );
  37. BOOL
  38. SkipWhitespace(
  39. IN OUT LPSTR* lpBuffer,
  40. IN OUT LPDWORD lpBufferLength
  41. );
  42. BOOL
  43. SkipSpaces(
  44. IN OUT LPSTR* lpBuffer,
  45. IN OUT LPDWORD lpBufferLength
  46. );
  47. BOOL
  48. SkipLine(
  49. IN OUT LPSTR* lpBuffer,
  50. IN OUT LPDWORD lpBufferLength
  51. );
  52. BOOL
  53. FindToken(
  54. IN OUT LPSTR* lpBuffer,
  55. IN OUT LPDWORD lpBufferLength
  56. );
  57. LPSTR
  58. NiceNum(
  59. OUT LPSTR Buffer,
  60. IN SIZE_T Number,
  61. IN int FieldWidth
  62. );
  63. #if defined(__cplusplus)
  64. }
  65. #endif