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.

45 lines
820 B

  1. /*++
  2. Copyright (c) 1998-2000 Microsoft Corporation
  3. Module Name:
  4. drstr.h
  5. Abstract:
  6. Misc. String Utils and Defines
  7. Author:
  8. Tad Brockway
  9. Revision History:
  10. --*/
  11. #ifndef __DRSTR_H__
  12. #define __DRSTR_H__
  13. #define DRSTRING LPTSTR
  14. ///////////////////////////////////////////////////////////////
  15. //
  16. // Macros and Defines
  17. //
  18. //
  19. #define STRNICMP(str1, str2, len) _tcsnicmp(str1, str2, len)
  20. #define STRICMP(str1, str2) _tcsicmp(str1, str2)
  21. #define STRNCPY(str1, str2, len) _tcsncpy(str1, str2, len)
  22. #define STRCPY(str1, str2) _tcscpy(str1, str2)
  23. #define STRLEN(str) _tcslen(str)
  24. //
  25. // Set a string value after resizing the data member.
  26. //
  27. BOOL DrSetStringValue(DRSTRING *string, const DRSTRING value);
  28. #endif