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.

25 lines
777 B

  1. //
  2. // string.h: Declares data, defines and struct types for string code
  3. //
  4. //
  5. #include <shlwapi.h>
  6. #ifndef __STRING_H__
  7. #define __STRING_H__
  8. #define Bltbyte(rgbSrc,rgbDest,cb) _fmemmove(rgbDest, rgbSrc, cb)
  9. // Model independent, language-independent (DBCS aware) macros
  10. // taken from rcsys.h in Pen project and modified.
  11. //
  12. #define IsSzEqual(sz1, sz2) (BOOL)(lstrcmpi(sz1, sz2) == 0)
  13. #define IsCaseSzEqual(sz1, sz2) (BOOL)(lstrcmp(sz1, sz2) == 0)
  14. #define SzFromInt(sz, n) (wnsprintf((LPTSTR)sz, ARRAYSIZE(sz), (LPTSTR)TEXT("%d"), n), (LPTSTR)sz)
  15. LPTSTR PUBLIC SzFromIDS (UINT ids, LPTSTR pszBuf, UINT cchBuf);
  16. BOOL PUBLIC FmtString(LPCTSTR * ppszBuf, UINT idsFmt, LPUINT rgids, UINT cids);
  17. #endif // __STRING_H__