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.

75 lines
1010 B

  1. #ifndef UTIL_H
  2. #define UTIL_H
  3. #include "stdafx.h"
  4. void
  5. ToLowerStr(
  6. WCHAR *pszwText
  7. );
  8. WCHAR *
  9. Space(
  10. int nSpace
  11. );
  12. WCHAR *
  13. Indent(
  14. int nIndent
  15. );
  16. BOOLEAN
  17. IsNumber(
  18. IN LPCTSTR pszw
  19. );
  20. BOOLEAN
  21. wcsstri(
  22. IN LPCTSTR pszw,
  23. IN LPCTSTR pszwSrch,
  24. IN int nLen = -1
  25. );
  26. BOOLEAN
  27. IsContained(
  28. IN LPCTSTR pszwInstance,
  29. IN LPCTSTR pszwSrch
  30. );
  31. HRESULT
  32. GetVariant(
  33. IN _variant_t &vValue,
  34. IN long nIndex,
  35. OUT _bstr_t &bstr
  36. );
  37. BOOLEAN
  38. IsVariantEmpty(
  39. _variant_t &vValue
  40. );
  41. WCHAR *
  42. ids(
  43. LONG nIndex
  44. );
  45. BOOLEAN
  46. IsSameSubnet(
  47. IN LPCTSTR pszwIP1,
  48. IN LPCTSTR pszwIP2,
  49. IN LPCTSTR pszwSubnetMask
  50. );
  51. BOOLEAN
  52. IsSameSubnet(
  53. IN _variant_t *vIPAddress,
  54. IN _variant_t *vSubnetMask,
  55. IN WCHAR *pszwIPAddress2
  56. );
  57. /*
  58. BOOLEAN
  59. IsInvalidIPAddress(
  60. LPCTSTR pszwIPAddress
  61. );
  62. */
  63. #endif