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.

40 lines
1.2 KiB

  1. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  2. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  3. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  4. // PARTICULAR PURPOSE.
  5. //
  6. // Copyright 2001 - 2003 Microsoft Corporation. All Rights Reserved.
  7. //
  8. // FILE: StringUtils.h
  9. //
  10. //
  11. // PURPOSE: Header file for string utility routines.
  12. //
  13. //
  14. // PLATFORMS:
  15. // Windows 2000, Windows XP, Windows Server 2003
  16. //
  17. //
  18. #ifndef _STRINGUTILS_H
  19. #define _STRINGUTILS_H
  20. #include "precomp.h"
  21. ////////////////////////////////////////////////////////
  22. // Prototypes
  23. ////////////////////////////////////////////////////////
  24. HRESULT MakeStrPtrList(HANDLE hHeap, PCSTR pmszMultiSz, PCSTR **pppszList, PWORD pwCount);
  25. WORD mstrcount(PCSTR pmszMultiSz);
  26. PWSTR MakeUnicodeString(HANDLE hHeap, PCSTR pszAnsi);
  27. PWSTR MakeStringCopy(HANDLE hHeap, PCWSTR pszSource);
  28. PSTR MakeStringCopy(HANDLE hHeap, PCSTR pszSource);
  29. void FreeStringList(HANDLE hHeap, PWSTR *ppszList, WORD wCount);
  30. HRESULT GetStringResource(HANDLE hHeap, HMODULE hModule, UINT uResource, PWSTR *ppszString);
  31. HRESULT GetStringResource(HANDLE hHeap, HMODULE hModule, UINT uResource, PSTR *ppszString);
  32. #endif