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.

47 lines
1.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 2001
  5. //
  6. // File: parserutil.h
  7. //
  8. // Contents: Helpful functions for manipulating and validating
  9. // generic command line arguments
  10. //
  11. // History: 07-Sep-2000 JeffJon Created
  12. //
  13. //
  14. //--------------------------------------------------------------------------
  15. #ifndef _PARSEUTIL_H_
  16. #define _PARSEUTIL_H_
  17. DWORD GetPasswdStr(LPTSTR buf,
  18. DWORD buflen,
  19. PDWORD len);
  20. DWORD ValidateAdminPassword(PVOID pArg);
  21. DWORD ValidateUserPassword(PVOID pArg);
  22. DWORD ValidateYesNo(PVOID pArg);
  23. DWORD ValidateGroupScope(PVOID pArg);
  24. DWORD ValidateNever(PVOID pArg);
  25. //+----------------------------------------------------------------------------
  26. //
  27. // Function: ParseNullSeparatedString
  28. //
  29. // Synopsis: Parses a '\0' separated list that ends in "\0\0" into a string
  30. // array
  31. //
  32. // Arguments: [psz - IN] : '\0' separated string to be parsed
  33. // [pszArr - OUT] : the array to receive the parsed strings
  34. // [pnArrEntries - OUT] : the number of strings parsed from the list
  35. //
  36. // Returns:
  37. //
  38. // History: 18-Sep-2000 JeffJon Created
  39. //
  40. //-----------------------------------------------------------------------------
  41. void ParseNullSeparatedString(PTSTR psz,
  42. PTSTR** ppszArr,
  43. UINT* pnArrEntries);
  44. #endif // _PARSEUTIL_H_