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.

39 lines
1.2 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Copyright (C) 1996-1997, Microsoft Corporation.
  4. //
  5. // File: varutil.hxx
  6. //
  7. // Contents: Utilities for variable replacement
  8. //
  9. // History: 96/Jan/3 DwightKr Created
  10. //
  11. //----------------------------------------------------------------------------
  12. #pragma once
  13. enum EIsReplaceable {
  14. eIsSimpleString = 0,
  15. eIsSimpleReplacement,
  16. eIsComplexReplacement,
  17. };
  18. EIsReplaceable IsAReplaceableParameter( WCHAR const * wcsString );
  19. WCHAR * ReplaceParameters( WCHAR const * wcsVariableString,
  20. CVariableSet & variableSet,
  21. COutputFormat & outputFormat,
  22. ULONG & cwcOut );
  23. ULONG ReplaceNumericParameter( WCHAR const * wcsVariableString,
  24. CVariableSet & variableSet,
  25. COutputFormat & outputFormat,
  26. ULONG defaultValue,
  27. ULONG min,
  28. ULONG max );
  29. BOOL IsAValidCatalog( WCHAR const * wcsCatalog, ULONG cwc );
  30. LONG IDQ_wtol( WCHAR const *pwcBuf );