//
// Dependencies
//
+#include <umtypes.h>
#include <ntnls.h>
-#include "extypes.h"
-#include "rtltypes.h"
+#include <extypes.h>
+#include <rtltypes.h>
#ifdef NTOS_MODE_USER
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
static __inline
LARGE_INTEGER
NTAPI_INLINE
-RtlConvertLongToLargeIntegerf(
+RtlConvertLongToLargeInteger(
LONG SignedInteger
)
{
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
//