Source code of Windows XP (NT5)
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
1.3 KiB

  1. //
  2. // Copyright (c) Microsoft Corporation 1993-1995
  3. //
  4. // rovmem.h
  5. //
  6. // Memory management functions.
  7. //
  8. // History:
  9. // 09-27-94 ScottH Partially taken from commctrl
  10. // 04-29-95 ScottH Taken from briefcase and cleaned up
  11. //
  12. // This file is included by <rovcomm.h>
  13. #ifndef _ROVMEM_H_
  14. #define _ROVMEM_H_
  15. //
  16. // Memory routines
  17. //
  18. BOOL
  19. PUBLIC
  20. SetStringW(
  21. LPWSTR FAR * ppwszBuf,
  22. LPCWSTR pwsz);
  23. BOOL
  24. PUBLIC
  25. SetStringA(
  26. LPSTR FAR * ppszBuf,
  27. LPCSTR psz);
  28. #ifdef UNICODE
  29. #define SetString SetStringW
  30. #else // UNICODE
  31. #define SetString SetStringA
  32. #endif // UNICODE
  33. // (Re)allocates *ppszBuf and concatenates psz onto *ppszBuf
  34. //
  35. BOOL
  36. PUBLIC
  37. CatStringW(
  38. IN OUT LPWSTR FAR * ppszBuf,
  39. IN LPCWSTR psz);
  40. BOOL
  41. PUBLIC
  42. CatStringA(
  43. IN OUT LPSTR FAR * ppszBuf,
  44. IN LPCSTR psz);
  45. #ifdef UNICODE
  46. #define CatString CatStringW
  47. #else // UNICODE
  48. #define CatString CatStringA
  49. #endif // UNICODE
  50. BOOL
  51. PUBLIC
  52. CatMultiStringW(
  53. IN OUT LPWSTR FAR * ppszBuf,
  54. IN LPCWSTR psz);
  55. BOOL
  56. PUBLIC
  57. CatMultiStringA(
  58. IN OUT LPSTR FAR * ppszBuf,
  59. IN LPCSTR psz);
  60. #ifdef UNICODE
  61. #define CatMultiString CatMultiStringW
  62. #else // UNICODE
  63. #define CatMultiString CatMultiStringA
  64. #endif // UNICODE
  65. #endif // _ROVMEM_H_