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.

145 lines
3.9 KiB

  1. #include <nldebug.h>
  2. #ifndef SECURITY_WIN32
  3. #define SECURITY_WIN32
  4. #endif // SECURITY_WIN32
  5. #include <security.h>
  6. #include <assert.h>
  7. NET_API_STATUS DCNameInitialize(VOID);
  8. VOID DCNameClose(VOID);
  9. NET_API_STATUS NetpDcInitializeCache(VOID);
  10. VOID NetpDcUninitializeCache(VOID);
  11. VOID
  12. MyRtlAssert(
  13. IN PVOID FailedAssertion,
  14. IN PVOID FileName,
  15. IN ULONG LineNumber,
  16. IN PCHAR Message OPTIONAL
  17. );
  18. #define RtlAssert(a,b,c,d) MyRtlAssert(a,b,c,d)
  19. VOID
  20. MyRtlInitUnicodeString(
  21. PUNICODE_STRING DestinationString,
  22. PCWSTR SourceString
  23. );
  24. #define RtlInitUnicodeString(x,y) MyRtlInitUnicodeString(x,y)
  25. VOID
  26. MyRtlInitString(
  27. PSTRING DestinationString,
  28. PCSTR SourceString
  29. );
  30. #define RtlInitString(x,y) MyRtlInitString(x,y)
  31. NTSTATUS
  32. MyRtlOemStringToUnicodeString(
  33. OUT PUNICODE_STRING DestinationString,
  34. IN POEM_STRING SourceString,
  35. IN BOOLEAN AllocateDestinationString
  36. );
  37. #define RtlOemStringToUnicodeString(x,y,z) MyRtlOemStringToUnicodeString(x,y,z)
  38. NTSTATUS
  39. MyRtlUnicodeStringToAnsiString(
  40. PANSI_STRING DestinationString,
  41. PUNICODE_STRING SourceString,
  42. BOOLEAN AllocateDestinationString
  43. );
  44. #define RtlUnicodeStringToAnsiString(x, y, z) MyRtlUnicodeStringToAnsiString (x, y, z)
  45. NTSTATUS
  46. MyRtlAnsiStringToUnicodeString(
  47. PUNICODE_STRING DestinationString,
  48. PANSI_STRING SourceString,
  49. BOOLEAN AllocateDestinationString
  50. );
  51. #define RtlAnsiStringToUnicodeString(x, y, z) MyRtlAnsiStringToUnicodeString (x, y, z)
  52. NTSTATUS
  53. MyRtlUnicodeStringToOemString(
  54. OUT POEM_STRING DestinationString,
  55. IN PUNICODE_STRING SourceString,
  56. IN BOOLEAN AllocateDestinationString
  57. );
  58. #define RtlUnicodeStringToOemString(x,y,z) MyRtlUnicodeStringToOemString(x,y,z)
  59. NTSTATUS
  60. MyRtlUpcaseUnicodeStringToOemString(
  61. OUT POEM_STRING DestinationString,
  62. IN PUNICODE_STRING SourceString,
  63. IN BOOLEAN AllocateDestinationString
  64. );
  65. #define RtlUpcaseUnicodeStringToOemString(x,y,z) MyRtlUpcaseUnicodeStringToOemString(x,y,z)
  66. ULONG
  67. MyRtlxOemStringToUnicodeSize(
  68. POEM_STRING OemString
  69. );
  70. #define RtlxOemStringToUnicodeSize(x) MyRtlxOemStringToUnicodeSize(x)
  71. ULONG
  72. MyRtlxUnicodeStringToOemSize(
  73. PUNICODE_STRING UnicodeString
  74. );
  75. #define RtlxUnicodeStringToOemSize(x) MyRtlxUnicodeStringToOemSize(x)
  76. NTSTATUS
  77. MyNtQuerySystemTime (
  78. OUT PTimeStamp SystemTimeStamp
  79. );
  80. #define NtQuerySystemTime(x) MyNtQuerySystemTime(x)
  81. ULONG
  82. MyRtlUniform (
  83. IN OUT PULONG Seed
  84. );
  85. #define RtlUniform(x) MyRtlUniform(x)
  86. NET_API_STATUS
  87. NetpwNameCanonicalize(
  88. IN LPWSTR Name,
  89. OUT LPWSTR Outbuf,
  90. IN DWORD OutbufLen,
  91. IN DWORD NameType,
  92. IN DWORD Flags
  93. );
  94. LPWSTR
  95. NetpAllocWStrFromOemStr(
  96. IN LPCSTR Oem
  97. );
  98. VOID
  99. MyRtlFreeAnsiString(
  100. IN OUT PANSI_STRING AnsiString
  101. );
  102. LPSTR
  103. MyNetpLogonUnicodeToOem(
  104. IN LPWSTR Unicode
  105. );
  106. LONG
  107. NlpChcg_wcsicmp(
  108. IN LPCWSTR string1,
  109. IN LPCWSTR string2
  110. );
  111. #define _wcsicmp( _x, _y ) NlpChcg_wcsicmp( (_x), (_y) )