diff --git a/sdk/include/ndk/rtlfuncs.h b/sdk/include/ndk/rtlfuncs.h index f506e595c18..6b37f4a0766 100644 --- a/sdk/include/ndk/rtlfuncs.h +++ b/sdk/include/ndk/rtlfuncs.h @@ -851,7 +851,7 @@ RtlVirtualUnwind( _In_ ULONG64 ControlPc, _In_ PRUNTIME_FUNCTION FunctionEntry, _Inout_ PCONTEXT Context, - _Outptr_ PVOID* HandlerData, + _Out_ PVOID* HandlerData, _Out_ PULONG64 EstablisherFrame, _Inout_opt_ PKNONVOLATILE_CONTEXT_POINTERS ContextPointers ); @@ -1868,9 +1868,24 @@ RtlCharToInteger( // #ifdef NTOS_MODE_USER -unsigned short __cdecl _byteswap_ushort(unsigned short); -unsigned long __cdecl _byteswap_ulong (unsigned long); -unsigned __int64 __cdecl _byteswap_uint64(unsigned __int64); +_Check_return_ +unsigned short +__cdecl +_byteswap_ushort( + _In_ unsigned short _Short); + +_Check_return_ +unsigned long +__cdecl +_byteswap_ulong( + _In_ unsigned long _Long); + +_Check_return_ +unsigned __int64 +__cdecl +_byteswap_uint64( + _In_ unsigned __int64 _Int64); + #ifdef _MSC_VER #pragma intrinsic(_byteswap_ushort) #pragma intrinsic(_byteswap_ulong) @@ -3838,50 +3853,6 @@ DbgCommandString( _In_ PCCH Command ); -// -// Generic Table Functions -// -#if defined(NTOS_MODE_USER) || defined(_NTIFS_) -NTSYSAPI -PVOID -NTAPI -RtlInsertElementGenericTable( - _In_ PRTL_GENERIC_TABLE Table, - _In_reads_bytes_(BufferSize) PVOID Buffer, - _In_ CLONG BufferSize, - _Out_opt_ PBOOLEAN NewElement -); - -NTSYSAPI -PVOID -NTAPI -RtlInsertElementGenericTableFull( - _In_ PRTL_GENERIC_TABLE Table, - _In_reads_bytes_(BufferSize) PVOID Buffer, - _In_ CLONG BufferSize, - _Out_opt_ PBOOLEAN NewElement, - _In_ PVOID NodeOrParent, - _In_ TABLE_SEARCH_RESULT SearchResult -); - -NTSYSAPI -BOOLEAN -NTAPI -RtlIsGenericTableEmpty( - _In_ PRTL_GENERIC_TABLE Table -); - -NTSYSAPI -PVOID -NTAPI -RtlLookupElementGenericTableFull( - _In_ PRTL_GENERIC_TABLE Table, - _In_ PVOID Buffer, - _Out_ PVOID *NodeOrParent, - _Out_ TABLE_SEARCH_RESULT *SearchResult -); -#endif - // // Handle Table Functions // diff --git a/sdk/include/ndk/sefuncs.h b/sdk/include/ndk/sefuncs.h index 3c24177cb16..ab55dab6550 100644 --- a/sdk/include/ndk/sefuncs.h +++ b/sdk/include/ndk/sefuncs.h @@ -443,6 +443,7 @@ ZwOpenProcessToken( _In_ ACCESS_MASK DesiredAccess, _Out_ PHANDLE TokenHandle); +_IRQL_requires_max_(PASSIVE_LEVEL) NTSYSAPI NTSTATUS NTAPI