- Fix KeAttackProcess, KeStackAttachProcess, KeUnstackDetachProcess and KeDetachProce...
[reactos.git] / reactos / include / ndk / rtlfuncs.h
index 3822cc2..7d122be 100644 (file)
@@ -22,9 +22,10 @@ Author:
 //
 // Dependencies
 //
+#include <umtypes.h>
 #include <ntnls.h>
-#include "extypes.h"
-#include "rtltypes.h"
+#include <extypes.h>
+#include <rtltypes.h>
 
 #ifdef NTOS_MODE_USER
 
@@ -1594,32 +1595,7 @@ RtlSetProcessIsCritical(
     IN BOOLEAN IsWinlogon
 );
 
-static __inline
-struct _PEB*
-NtCurrentPeb(VOID)
-{
-    struct _PEB *pPeb;
-
-#if defined(__GNUC__)
-
-    __asm__ __volatile__
-    (
-      "movl %%fs:0x30, %0\n" /* fs:30h == Teb->Peb */
-      : "=r" (pPeb) /* can't have two memory operands */
-      : /* no inputs */
-    );
-
-#elif defined(_MSC_VER)
-
-    __asm mov eax, fs:0x30;
-    __asm mov pPeb, eax
-
-#else
-#error Unknown compiler for inline assembler
-#endif
-
-    return pPeb;
-}
+#define NtCurrentPeb() (NtCurrentTeb()->ProcessEnvironmentBlock)
 
 //
 // Environment/Path Functions
@@ -2230,7 +2206,7 @@ RtlResetRtlTranslations(IN PNLSTABLEINFO NlsTable);
 static __inline
 LARGE_INTEGER
 NTAPI_INLINE
-RtlConvertLongToLargeIntegerf(
+RtlConvertLongToLargeInteger(
     LONG SignedInteger
 )
 {
@@ -2306,6 +2282,45 @@ RtlIpv4StringToAddressW(
     OUT PULONG IpAddr
 );
 
+NTSYSAPI
+NTSTATUS
+NTAPI
+RtlIpv6StringToAddressA(
+    IN LPSTR Name,
+    OUT PULONG Unknown,
+    OUT PVOID IpAddr
+);
+
+NTSYSAPI
+NTSTATUS
+NTAPI
+RtlIpv6StringToAddressW(
+    IN LPWSTR Name,
+    OUT PULONG Unknown,
+    OUT PVOID IpAddr
+);
+
+NTSYSAPI
+NTSTATUS
+NTAPI
+RtlIpv6StringToAddressExA(
+    IN LPSTR AddressName,
+    IN PVOID Address,
+    IN PULONG ScopeId,
+    IN PWORD Port
+);
+
+NTSYSAPI
+NTSTATUS
+NTAPI
+RtlIpv6StringToAddressExW(
+    IN LPWSTR AddressName,
+    IN PVOID Address,
+    IN PULONG ScopeId,
+    IN PWORD Port
+);
+
+
 //
 // Time Functions
 //