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.
48 lines
1.5 KiB
48 lines
1.5 KiB
//+-------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1992 - 2001
|
|
//
|
|
// File: parserutil.h
|
|
//
|
|
// Contents: Helpful functions for manipulating and validating
|
|
// generic command line arguments
|
|
//
|
|
// History: 07-Sep-2000 JeffJon Created
|
|
//
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
#ifndef _PARSEUTIL_H_
|
|
#define _PARSEUTIL_H_
|
|
|
|
DWORD GetPasswdStr(LPTSTR buf,
|
|
DWORD buflen,
|
|
PDWORD len);
|
|
DWORD ValidateAdminPassword(PVOID pArg);
|
|
DWORD ValidateUserPassword(PVOID pArg);
|
|
DWORD ValidateYesNo(PVOID pArg);
|
|
DWORD ValidateGroupScope(PVOID pArg);
|
|
DWORD ValidateNever(PVOID pArg);
|
|
|
|
//+----------------------------------------------------------------------------
|
|
//
|
|
// Function: ParseNullSeparatedString
|
|
//
|
|
// Synopsis: Parses a '\0' separated list that ends in "\0\0" into a string
|
|
// array
|
|
//
|
|
// Arguments: [psz - IN] : '\0' separated string to be parsed
|
|
// [pszArr - OUT] : the array to receive the parsed strings
|
|
// [pnArrEntries - OUT] : the number of strings parsed from the list
|
|
//
|
|
// Returns:
|
|
//
|
|
// History: 18-Sep-2000 JeffJon Created
|
|
//
|
|
//-----------------------------------------------------------------------------
|
|
void ParseNullSeparatedString(PTSTR psz,
|
|
PTSTR** ppszArr,
|
|
UINT* pnArrEntries);
|
|
|
|
#endif // _PARSEUTIL_H_
|