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.

73 lines
1.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999 - 1999
  6. //
  7. // File: ustringp.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef _USTRINGP_H_
  11. #define _USTRINGP_H_
  12. //nclude <ntdef.h>
  13. //
  14. // Unicode strings are counted 16-bit character strings. If they are
  15. // NULL terminated, Length does not include trailing NULL.
  16. //
  17. #ifndef _USTRINGP_NO_UNICODE_STRING
  18. typedef struct _UNICODE_STRING {
  19. USHORT Length;
  20. USHORT MaximumLength;
  21. #ifdef MIDL_PASS
  22. [size_is(MaximumLength / 2), length_is((Length) / 2) ] USHORT * Buffer;
  23. #else // MIDL_PASS
  24. PWSTR Buffer;
  25. #endif // MIDL_PASS
  26. } UNICODE_STRING;
  27. typedef UNICODE_STRING *PUNICODE_STRING;
  28. typedef const UNICODE_STRING *PCUNICODE_STRING;
  29. #define UNICODE_NULL ((WCHAR)0) // winnt
  30. #endif
  31. #ifndef _USTRINGP_NO_UNICODE_STRING32
  32. typedef struct _STRING32 {
  33. USHORT Length;
  34. USHORT MaximumLength;
  35. ULONG Buffer;
  36. } STRING32;
  37. typedef STRING32 *PSTRING32;
  38. typedef STRING32 UNICODE_STRING32;
  39. typedef UNICODE_STRING32 *PUNICODE_STRING32;
  40. #endif
  41. #ifdef __cplusplus
  42. extern "C"
  43. {
  44. #endif
  45. void
  46. SetUnicodeString (
  47. IN OUT UNICODE_STRING* pustr,
  48. IN LPCWSTR psz );
  49. void
  50. SetUnicodeMultiString (
  51. IN OUT UNICODE_STRING* pustr,
  52. IN LPCWSTR pmsz );
  53. #ifdef __cplusplus
  54. };
  55. #endif
  56. #endif