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.

52 lines
1022 B

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. InitOem.c
  5. Abstract:
  6. This module contains NetpInitOemString(). This is a wrapper for
  7. RtlInitOemString(), which may or may not exist depending on who
  8. wins the current argument on that.
  9. Author:
  10. John Rogers (JohnRo) 03-Aug-1992
  11. Environment:
  12. Only runs under NT.
  13. Requires ANSI C extensions: slash-slash comments, long external names.
  14. Revision History:
  15. 03-Aug-1992 JohnRo
  16. Created for RAID 1895: Net APIs and svcs should use OEM char set.
  17. --*/
  18. // These must be included first:
  19. #include <nt.h> // Must be first. IN, VOID, etc.
  20. #include <ntrtl.h> // RtlInitAnsiString().
  21. #include <windef.h> // DWORD (needed by tstr.h/tstring.h)
  22. // These can be in any order:
  23. #include <tstring.h> // NetpInitOemString().
  24. VOID
  25. NetpInitOemString(
  26. POEM_STRING DestinationString,
  27. PCSZ SourceString
  28. )
  29. {
  30. RtlInitAnsiString(
  31. (PANSI_STRING) DestinationString,
  32. SourceString);
  33. }