Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1dc18952
Commit
1dc18952
authored
Jul 15, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jul 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use SIZE_T type for size variables in NTDLL when appropriate.
parent
6ea26b50
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
79 additions
and
74 deletions
+79
-74
virtual.c
dlls/kernel/virtual.c
+1
-1
heap.c
dlls/ntdll/heap.c
+35
-31
process.c
dlls/ntdll/process.c
+1
-1
virtual.c
dlls/ntdll/virtual.c
+28
-27
winnt.h
include/winnt.h
+1
-1
winternl.h
include/winternl.h
+13
-13
No files found.
dlls/kernel/virtual.c
View file @
1dc18952
...
...
@@ -242,7 +242,7 @@ SIZE_T WINAPI VirtualQueryEx(
PMEMORY_BASIC_INFORMATION
info
,
/* [out] Address of info buffer */
SIZE_T
len
/* [in] Size of buffer */
)
{
DWORD
ret
;
SIZE_T
ret
;
NTSTATUS
status
;
if
((
status
=
NtQueryVirtualMemory
(
process
,
addr
,
MemoryBasicInformation
,
info
,
len
,
&
ret
)))
...
...
dlls/ntdll/heap.c
View file @
1dc18952
This diff is collapsed.
Click to expand it.
dlls/ntdll/process.c
View file @
1dc18952
...
...
@@ -305,7 +305,7 @@ NTSTATUS WINAPI NtSetInformationProcess(
NTSTATUS
WINAPI
NtFlushInstructionCache
(
IN
HANDLE
ProcessHandle
,
IN
LPCVOID
BaseAddress
,
IN
ULONG
Size
)
IN
SIZE_T
Size
)
{
#ifdef __i386__
TRACE
(
"%p %p %ld - no-op on x86
\n
"
,
ProcessHandle
,
BaseAddress
,
Size
);
...
...
dlls/ntdll/virtual.c
View file @
1dc18952
...
...
@@ -67,7 +67,7 @@ typedef struct file_view
{
struct
list
entry
;
/* Entry in global view list */
void
*
base
;
/* Base address */
UINT
size
;
/* Size in bytes */
size_t
size
;
/* Size in bytes */
HANDLE
mapping
;
/* Handle to the file mapping */
BYTE
flags
;
/* Allocation flags (VFLAG_*) */
BYTE
protect
;
/* Protection for all pages at allocation time */
...
...
@@ -532,7 +532,7 @@ static BYTE VIRTUAL_GetProt( DWORD protect )
*/
static
BOOL
VIRTUAL_SetProt
(
FILE_VIEW
*
view
,
/* [in] Pointer to view */
void
*
base
,
/* [in] Starting address */
UINT
size
,
/* [in] Size in bytes */
size_t
size
,
/* [in] Size in bytes */
BYTE
vprot
)
/* [in] Protections to use */
{
TRACE
(
"%p-%p %s
\n
"
,
...
...
@@ -611,9 +611,9 @@ static NTSTATUS map_view( struct file_view **view_ret, void *base, size_t size,
/* Release the extra memory while keeping the range
* starting on the granularity boundary. */
if
((
unsigned
int
)
ptr
&
granularity_mask
)
if
((
ULONG_PTR
)
ptr
&
granularity_mask
)
{
unsigned
int
extra
=
granularity_mask
+
1
-
((
unsigned
int
)
ptr
&
granularity_mask
);
size_t
extra
=
granularity_mask
+
1
-
((
ULONG_PTR
)
ptr
&
granularity_mask
);
munmap
(
ptr
,
extra
);
ptr
=
(
char
*
)
ptr
+
extra
;
view_size
-=
extra
;
...
...
@@ -753,7 +753,7 @@ static NTSTATUS decommit_pages( struct file_view *view, size_t start, size_t siz
* Apply the relocations to a mapped PE image
*/
static
int
do_relocations
(
char
*
base
,
const
IMAGE_DATA_DIRECTORY
*
dir
,
int
delta
,
DWORD
total_size
)
int
delta
,
SIZE_T
total_size
)
{
IMAGE_BASE_RELOCATION
*
rel
;
...
...
@@ -816,8 +816,8 @@ static int do_relocations( char *base, const IMAGE_DATA_DIRECTORY *dir,
*
* Map an executable (PE format) image into memory.
*/
static
NTSTATUS
map_image
(
HANDLE
hmapping
,
int
fd
,
char
*
base
,
DWORD
total_size
,
DWORD
header_size
,
int
shared_fd
,
BOOL
removable
,
PVOID
*
addr_ptr
)
static
NTSTATUS
map_image
(
HANDLE
hmapping
,
int
fd
,
char
*
base
,
SIZE_T
total_size
,
SIZE_T
header_size
,
int
shared_fd
,
BOOL
removable
,
PVOID
*
addr_ptr
)
{
IMAGE_DOS_HEADER
*
dos
;
IMAGE_NT_HEADERS
*
nt
;
...
...
@@ -920,7 +920,7 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, DWORD total_size
for
(
i
=
pos
=
0
;
i
<
nt
->
FileHeader
.
NumberOfSections
;
i
++
,
sec
++
)
{
DWORD
size
;
SIZE_T
size
;
/* a few sanity checks */
size
=
sec
->
VirtualAddress
+
ROUND_SIZE
(
sec
->
VirtualAddress
,
sec
->
Misc
.
VirtualSize
);
...
...
@@ -1031,7 +1031,7 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, DWORD total_size
sec
=
(
IMAGE_SECTION_HEADER
*
)((
char
*
)
&
nt
->
OptionalHeader
+
nt
->
FileHeader
.
SizeOfOptionalHeader
);
for
(
i
=
0
;
i
<
nt
->
FileHeader
.
NumberOfSections
;
i
++
,
sec
++
)
{
DWORD
size
=
ROUND_SIZE
(
sec
->
VirtualAddress
,
sec
->
Misc
.
VirtualSize
);
SIZE_T
size
=
ROUND_SIZE
(
sec
->
VirtualAddress
,
sec
->
Misc
.
VirtualSize
);
BYTE
vprot
=
VPROT_COMMITTED
;
if
(
sec
->
Characteristics
&
IMAGE_SCN_MEM_READ
)
vprot
|=
VPROT_READ
;
if
(
sec
->
Characteristics
&
IMAGE_SCN_MEM_WRITE
)
vprot
|=
VPROT_READ
|
VPROT_WRITECOPY
;
...
...
@@ -1158,11 +1158,11 @@ void VIRTUAL_UseLargeAddressSpace(void)
* ZwAllocateVirtualMemory (NTDLL.@)
*/
NTSTATUS
WINAPI
NtAllocateVirtualMemory
(
HANDLE
process
,
PVOID
*
ret
,
ULONG
zero_bits
,
ULONG
*
size_ptr
,
ULONG
type
,
ULONG
protect
)
SIZE_T
*
size_ptr
,
ULONG
type
,
ULONG
protect
)
{
void
*
base
;
BYTE
vprot
;
DWORD
size
=
*
size_ptr
;
SIZE_T
size
=
*
size_ptr
;
NTSTATUS
status
=
STATUS_SUCCESS
;
struct
file_view
*
view
;
...
...
@@ -1267,13 +1267,13 @@ NTSTATUS WINAPI NtAllocateVirtualMemory( HANDLE process, PVOID *ret, ULONG zero_
* NtFreeVirtualMemory (NTDLL.@)
* ZwFreeVirtualMemory (NTDLL.@)
*/
NTSTATUS
WINAPI
NtFreeVirtualMemory
(
HANDLE
process
,
PVOID
*
addr_ptr
,
ULONG
*
size_ptr
,
ULONG
type
)
NTSTATUS
WINAPI
NtFreeVirtualMemory
(
HANDLE
process
,
PVOID
*
addr_ptr
,
SIZE_T
*
size_ptr
,
ULONG
type
)
{
FILE_VIEW
*
view
;
char
*
base
;
NTSTATUS
status
=
STATUS_SUCCESS
;
LPVOID
addr
=
*
addr_ptr
;
DWORD
size
=
*
size_ptr
;
SIZE_T
size
=
*
size_ptr
;
TRACE
(
"%p %p %08lx %lx
\n
"
,
process
,
addr
,
size
,
type
);
...
...
@@ -1340,7 +1340,7 @@ NTSTATUS WINAPI NtFreeVirtualMemory( HANDLE process, PVOID *addr_ptr, ULONG *siz
* NtProtectVirtualMemory (NTDLL.@)
* ZwProtectVirtualMemory (NTDLL.@)
*/
NTSTATUS
WINAPI
NtProtectVirtualMemory
(
HANDLE
process
,
PVOID
*
addr_ptr
,
ULONG
*
size_ptr
,
NTSTATUS
WINAPI
NtProtectVirtualMemory
(
HANDLE
process
,
PVOID
*
addr_ptr
,
SIZE_T
*
size_ptr
,
ULONG
new_prot
,
ULONG
*
old_prot
)
{
FILE_VIEW
*
view
;
...
...
@@ -1348,7 +1348,8 @@ NTSTATUS WINAPI NtProtectVirtualMemory( HANDLE process, PVOID *addr_ptr, ULONG *
char
*
base
;
UINT
i
;
BYTE
vprot
,
*
p
;
DWORD
prot
,
size
=
*
size_ptr
;
ULONG
prot
;
SIZE_T
size
=
*
size_ptr
;
LPVOID
addr
=
*
addr_ptr
;
TRACE
(
"%p %p %08lx %08lx
\n
"
,
process
,
addr
,
size
,
new_prot
);
...
...
@@ -1412,12 +1413,12 @@ NTSTATUS WINAPI NtProtectVirtualMemory( HANDLE process, PVOID *addr_ptr, ULONG *
*/
NTSTATUS
WINAPI
NtQueryVirtualMemory
(
HANDLE
process
,
LPCVOID
addr
,
MEMORY_INFORMATION_CLASS
info_class
,
PVOID
buffer
,
ULONG
len
,
ULONG
*
res_len
)
SIZE_T
len
,
SIZE_T
*
res_len
)
{
FILE_VIEW
*
view
;
char
*
base
,
*
alloc_base
=
0
;
struct
list
*
ptr
;
UIN
T
size
=
0
;
SIZE_
T
size
=
0
;
MEMORY_BASIC_INFORMATION
*
info
=
buffer
;
if
(
info_class
!=
MemoryBasicInformation
)
...
...
@@ -1519,7 +1520,7 @@ NTSTATUS WINAPI NtQueryVirtualMemory( HANDLE process, LPCVOID addr,
* NtLockVirtualMemory (NTDLL.@)
* ZwLockVirtualMemory (NTDLL.@)
*/
NTSTATUS
WINAPI
NtLockVirtualMemory
(
HANDLE
process
,
PVOID
*
addr
,
ULONG
*
size
,
ULONG
unknown
)
NTSTATUS
WINAPI
NtLockVirtualMemory
(
HANDLE
process
,
PVOID
*
addr
,
SIZE_T
*
size
,
ULONG
unknown
)
{
if
(
!
is_current_process
(
process
))
{
...
...
@@ -1534,7 +1535,7 @@ NTSTATUS WINAPI NtLockVirtualMemory( HANDLE process, PVOID *addr, ULONG *size, U
* NtUnlockVirtualMemory (NTDLL.@)
* ZwUnlockVirtualMemory (NTDLL.@)
*/
NTSTATUS
WINAPI
NtUnlockVirtualMemory
(
HANDLE
process
,
PVOID
*
addr
,
ULONG
*
size
,
ULONG
unknown
)
NTSTATUS
WINAPI
NtUnlockVirtualMemory
(
HANDLE
process
,
PVOID
*
addr
,
SIZE_T
*
size
,
ULONG
unknown
)
{
if
(
!
is_current_process
(
process
))
{
...
...
@@ -1617,13 +1618,13 @@ NTSTATUS WINAPI NtOpenSection( HANDLE *handle, ACCESS_MASK access, const OBJECT_
* ZwMapViewOfSection (NTDLL.@)
*/
NTSTATUS
WINAPI
NtMapViewOfSection
(
HANDLE
handle
,
HANDLE
process
,
PVOID
*
addr_ptr
,
ULONG
zero_bits
,
ULONG
commit_size
,
const
LARGE_INTEGER
*
offset_ptr
,
ULONG
*
size_ptr
,
SIZE_T
commit_size
,
const
LARGE_INTEGER
*
offset_ptr
,
SIZE_T
*
size_ptr
,
SECTION_INHERIT
inherit
,
ULONG
alloc_type
,
ULONG
protect
)
{
IO_STATUS_BLOCK
io
;
FILE_FS_DEVICE_INFORMATION
device_info
;
NTSTATUS
res
;
UIN
T
size
=
0
;
SIZE_
T
size
=
0
;
int
unix_handle
=
-
1
;
int
prot
;
void
*
base
;
...
...
@@ -1635,7 +1636,7 @@ NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_p
offset
.
QuadPart
=
offset_ptr
?
offset_ptr
->
QuadPart
:
0
;
TRACE
(
"handle=%p process=%p addr=%p off=%lx%08lx size=%x access=%lx
\n
"
,
TRACE
(
"handle=%p process=%p addr=%p off=%lx%08lx size=%
l
x access=%lx
\n
"
,
handle
,
process
,
*
addr_ptr
,
offset
.
u
.
HighPart
,
offset
.
u
.
LowPart
,
size
,
protect
);
if
(
!
is_current_process
(
process
))
...
...
@@ -1752,7 +1753,7 @@ NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_p
/* Map the file */
TRACE
(
"handle=%p size=%x offset=%lx%08lx
\n
"
,
TRACE
(
"handle=%p size=%
l
x offset=%lx%08lx
\n
"
,
handle
,
size
,
offset
.
u
.
HighPart
,
offset
.
u
.
LowPart
);
res
=
map_file_into_view
(
view
,
unix_handle
,
0
,
size
,
offset
.
QuadPart
,
prot
,
removable
);
...
...
@@ -1768,7 +1769,7 @@ NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_p
}
else
{
ERR
(
"map_file_into_view %p %x %lx%08lx failed
\n
"
,
ERR
(
"map_file_into_view %p %
l
x %lx%08lx failed
\n
"
,
view
->
base
,
size
,
offset
.
u
.
HighPart
,
offset
.
u
.
LowPart
);
delete_view
(
view
);
}
...
...
@@ -1812,7 +1813,7 @@ NTSTATUS WINAPI NtUnmapViewOfSection( HANDLE process, PVOID addr )
* ZwFlushVirtualMemory (NTDLL.@)
*/
NTSTATUS
WINAPI
NtFlushVirtualMemory
(
HANDLE
process
,
LPCVOID
*
addr_ptr
,
ULONG
*
size_ptr
,
ULONG
unknown
)
SIZE_T
*
size_ptr
,
ULONG
unknown
)
{
FILE_VIEW
*
view
;
NTSTATUS
status
=
STATUS_SUCCESS
;
...
...
@@ -1866,14 +1867,14 @@ NTSTATUS WINAPI NtWriteVirtualMemory( HANDLE process, void *addr, const void *bu
SIZE_T
size
,
SIZE_T
*
bytes_written
)
{
static
const
unsigned
int
zero
;
unsigned
int
first_offset
,
last_offset
,
first_mask
,
last_mask
;
SIZE_T
first_offset
,
last_offset
,
first_mask
,
last_mask
;
NTSTATUS
status
;
if
(
!
size
)
return
STATUS_INVALID_PARAMETER
;
/* compute the mask for the first int */
first_mask
=
~
0
;
first_offset
=
(
unsigned
int
)
addr
%
sizeof
(
int
);
first_offset
=
(
ULONG_PTR
)
addr
%
sizeof
(
int
);
memset
(
&
first_mask
,
0
,
first_offset
);
/* compute the mask for the last int */
...
...
include/winnt.h
View file @
1dc18952
...
...
@@ -485,7 +485,7 @@ typedef struct _MEMORY_BASIC_INFORMATION
LPVOID
BaseAddress
;
LPVOID
AllocationBase
;
DWORD
AllocationProtect
;
DWORD
RegionSize
;
SIZE_T
RegionSize
;
DWORD
State
;
DWORD
Protect
;
DWORD
Type
;
...
...
include/winternl.h
View file @
1dc18952
...
...
@@ -1689,7 +1689,7 @@ NTSTATUS WINAPI NtAlertResumeThread(HANDLE,PULONG);
NTSTATUS
WINAPI
NtAlertThread
(
HANDLE
ThreadHandle
);
NTSTATUS
WINAPI
NtAllocateLocallyUniqueId
(
PLUID
lpLuid
);
NTSTATUS
WINAPI
NtAllocateUuids
(
PULARGE_INTEGER
,
PULONG
,
PULONG
);
NTSTATUS
WINAPI
NtAllocateVirtualMemory
(
HANDLE
,
PVOID
*
,
ULONG
,
ULONG
*
,
ULONG
,
ULONG
);
NTSTATUS
WINAPI
NtAllocateVirtualMemory
(
HANDLE
,
PVOID
*
,
ULONG
,
SIZE_T
*
,
ULONG
,
ULONG
);
NTSTATUS
WINAPI
NtCallbackReturn
(
PVOID
,
ULONG
,
NTSTATUS
);
NTSTATUS
WINAPI
NtCancelIoFile
(
HANDLE
,
PIO_STATUS_BLOCK
);
NTSTATUS
WINAPI
NtCancelTimer
(
HANDLE
,
BOOLEAN
*
);
...
...
@@ -1732,11 +1732,11 @@ NTSTATUS WINAPI NtEnumerateValueKey(HANDLE,ULONG,KEY_VALUE_INFORMATION_CLASS,PV
NTSTATUS
WINAPI
NtExtendSection
(
HANDLE
,
PLARGE_INTEGER
);
NTSTATUS
WINAPI
NtFindAtom
(
const
WCHAR
*
,
ULONG
,
RTL_ATOM
*
);
NTSTATUS
WINAPI
NtFlushBuffersFile
(
HANDLE
,
IO_STATUS_BLOCK
*
);
NTSTATUS
WINAPI
NtFlushInstructionCache
(
HANDLE
,
LPCVOID
,
ULONG
);
NTSTATUS
WINAPI
NtFlushInstructionCache
(
HANDLE
,
LPCVOID
,
SIZE_T
);
NTSTATUS
WINAPI
NtFlushKey
(
HANDLE
);
NTSTATUS
WINAPI
NtFlushVirtualMemory
(
HANDLE
,
LPCVOID
*
,
ULONG
*
,
ULONG
);
NTSTATUS
WINAPI
NtFlushVirtualMemory
(
HANDLE
,
LPCVOID
*
,
SIZE_T
*
,
ULONG
);
NTSTATUS
WINAPI
NtFlushWriteBuffer
(
VOID
);
NTSTATUS
WINAPI
NtFreeVirtualMemory
(
HANDLE
,
PVOID
*
,
ULONG
*
,
ULONG
);
NTSTATUS
WINAPI
NtFreeVirtualMemory
(
HANDLE
,
PVOID
*
,
SIZE_T
*
,
ULONG
);
NTSTATUS
WINAPI
NtFsControlFile
(
HANDLE
,
HANDLE
,
PIO_APC_ROUTINE
,
PVOID
,
PIO_STATUS_BLOCK
,
ULONG
,
PVOID
,
ULONG
,
PVOID
,
ULONG
);
NTSTATUS
WINAPI
NtGetContextThread
(
HANDLE
,
CONTEXT
*
);
NTSTATUS
WINAPI
NtGetPlugPlayEvent
(
ULONG
,
ULONG
,
PVOID
,
ULONG
);
...
...
@@ -1750,9 +1750,9 @@ NTSTATUS WINAPI NtListenPort(HANDLE,PLPC_MESSAGE);
NTSTATUS
WINAPI
NtLoadDriver
(
const
UNICODE_STRING
*
);
NTSTATUS
WINAPI
NtLoadKey
(
const
OBJECT_ATTRIBUTES
*
,
OBJECT_ATTRIBUTES
*
);
NTSTATUS
WINAPI
NtLockFile
(
HANDLE
,
HANDLE
,
PIO_APC_ROUTINE
,
void
*
,
PIO_STATUS_BLOCK
,
PLARGE_INTEGER
,
PLARGE_INTEGER
,
ULONG
*
,
BOOLEAN
,
BOOLEAN
);
NTSTATUS
WINAPI
NtLockVirtualMemory
(
HANDLE
,
PVOID
*
,
ULONG
*
,
ULONG
);
NTSTATUS
WINAPI
NtLockVirtualMemory
(
HANDLE
,
PVOID
*
,
SIZE_T
*
,
ULONG
);
NTSTATUS
WINAPI
NtMakeTemporaryObject
(
HANDLE
);
NTSTATUS
WINAPI
NtMapViewOfSection
(
HANDLE
,
HANDLE
,
PVOID
*
,
ULONG
,
ULONG
,
const
LARGE_INTEGER
*
,
ULONG
*
,
SECTION_INHERIT
,
ULONG
,
ULONG
);
NTSTATUS
WINAPI
NtMapViewOfSection
(
HANDLE
,
HANDLE
,
PVOID
*
,
ULONG
,
SIZE_T
,
const
LARGE_INTEGER
*
,
SIZE_T
*
,
SECTION_INHERIT
,
ULONG
,
ULONG
);
NTSTATUS
WINAPI
NtNotifyChangeDirectoryFile
(
HANDLE
,
HANDLE
,
PIO_APC_ROUTINE
,
PVOID
,
PIO_STATUS_BLOCK
,
PVOID
,
ULONG
,
ULONG
,
BOOLEAN
);
NTSTATUS
WINAPI
NtNotifyChangeKey
(
HANDLE
,
HANDLE
,
PIO_APC_ROUTINE
,
PVOID
,
PIO_STATUS_BLOCK
,
ULONG
,
BOOLEAN
,
PVOID
,
ULONG
,
BOOLEAN
);
NTSTATUS
WINAPI
NtOpenDirectoryObject
(
PHANDLE
,
ACCESS_MASK
,
POBJECT_ATTRIBUTES
);
...
...
@@ -1775,7 +1775,7 @@ NTSTATUS WINAPI NtPowerInformation(POWER_INFORMATION_LEVEL,PVOID,ULONG,PVOID,UL
NTSTATUS
WINAPI
NtPrivilegeCheck
(
HANDLE
,
PPRIVILEGE_SET
,
PBOOLEAN
);
NTSTATUS
WINAPI
NtPrivilegeObjectAuditAlarm
(
PUNICODE_STRING
,
HANDLE
,
HANDLE
,
ULONG
,
PPRIVILEGE_SET
,
BOOLEAN
);
NTSTATUS
WINAPI
NtPrivilegedServiceAuditAlarm
(
PUNICODE_STRING
,
PUNICODE_STRING
,
HANDLE
,
PPRIVILEGE_SET
,
BOOLEAN
);
NTSTATUS
WINAPI
NtProtectVirtualMemory
(
HANDLE
,
PVOID
*
,
ULONG
*
,
ULONG
,
ULONG
*
);
NTSTATUS
WINAPI
NtProtectVirtualMemory
(
HANDLE
,
PVOID
*
,
SIZE_T
*
,
ULONG
,
ULONG
*
);
NTSTATUS
WINAPI
NtPulseEvent
(
HANDLE
,
PULONG
);
NTSTATUS
WINAPI
NtQueueApcThread
(
HANDLE
,
PNTAPCFUNC
,
ULONG_PTR
,
ULONG_PTR
,
ULONG_PTR
);
NTSTATUS
WINAPI
NtQueryAttributesFile
(
const
OBJECT_ATTRIBUTES
*
,
FILE_BASIC_INFORMATION
*
);
...
...
@@ -1811,7 +1811,7 @@ NTSTATUS WINAPI NtQuerySystemTime(PLARGE_INTEGER);
NTSTATUS
WINAPI
NtQueryTimer
(
HANDLE
,
TIMER_INFORMATION_CLASS
,
PVOID
,
ULONG
,
PULONG
);
NTSTATUS
WINAPI
NtQueryTimerResolution
(
PULONG
,
PULONG
,
PULONG
);
NTSTATUS
WINAPI
NtQueryValueKey
(
HANDLE
,
const
UNICODE_STRING
*
,
KEY_VALUE_INFORMATION_CLASS
,
void
*
,
DWORD
,
DWORD
*
);
NTSTATUS
WINAPI
NtQueryVirtualMemory
(
HANDLE
,
LPCVOID
,
MEMORY_INFORMATION_CLASS
,
PVOID
,
ULONG
,
ULONG
*
);
NTSTATUS
WINAPI
NtQueryVirtualMemory
(
HANDLE
,
LPCVOID
,
MEMORY_INFORMATION_CLASS
,
PVOID
,
SIZE_T
,
SIZE_T
*
);
NTSTATUS
WINAPI
NtQueryVolumeInformationFile
(
HANDLE
,
PIO_STATUS_BLOCK
,
PVOID
,
ULONG
,
FS_INFORMATION_CLASS
);
void
WINAPI
NtRaiseException
(
PEXCEPTION_RECORD
,
PCONTEXT
,
BOOL
);
NTSTATUS
WINAPI
NtRaiseHardError
(
NTSTATUS
,
ULONG
,
PUNICODE_STRING
,
PVOID
*
,
HARDERROR_RESPONSE_OPTION
,
PHARDERROR_RESPONSE
);
...
...
@@ -1878,7 +1878,7 @@ NTSTATUS WINAPI NtUnloadDriver(const UNICODE_STRING *);
NTSTATUS
WINAPI
NtUnloadKey
(
HANDLE
);
NTSTATUS
WINAPI
NtUnloadKeyEx
(
POBJECT_ATTRIBUTES
,
HANDLE
);
NTSTATUS
WINAPI
NtUnlockFile
(
HANDLE
,
PIO_STATUS_BLOCK
,
PLARGE_INTEGER
,
PLARGE_INTEGER
,
PULONG
);
NTSTATUS
WINAPI
NtUnlockVirtualMemory
(
HANDLE
,
PVOID
*
,
ULONG
*
,
ULONG
);
NTSTATUS
WINAPI
NtUnlockVirtualMemory
(
HANDLE
,
PVOID
*
,
SIZE_T
*
,
ULONG
);
NTSTATUS
WINAPI
NtUnmapViewOfSection
(
HANDLE
,
PVOID
);
NTSTATUS
WINAPI
NtVdmControl
(
ULONG
,
PVOID
);
NTSTATUS
WINAPI
NtWaitForSingleObject
(
HANDLE
,
BOOLEAN
,
const
LARGE_INTEGER
*
);
...
...
@@ -1905,7 +1905,7 @@ PVOID WINAPI RtlAddVectoredExceptionHandler(ULONG,PVECTORED_EXCEPTION_HANDLE
NTSTATUS
WINAPI
RtlAdjustPrivilege
(
ULONG
,
BOOLEAN
,
BOOLEAN
,
PBOOLEAN
);
NTSTATUS
WINAPI
RtlAllocateAndInitializeSid
(
PSID_IDENTIFIER_AUTHORITY
,
BYTE
,
DWORD
,
DWORD
,
DWORD
,
DWORD
,
DWORD
,
DWORD
,
DWORD
,
DWORD
,
PSID
*
);
RTL_HANDLE
*
WINAPI
RtlAllocateHandle
(
RTL_HANDLE_TABLE
*
,
ULONG
*
);
PVOID
WINAPI
RtlAllocateHeap
(
HANDLE
,
ULONG
,
ULONG
);
PVOID
WINAPI
RtlAllocateHeap
(
HANDLE
,
ULONG
,
SIZE_T
);
WCHAR
WINAPI
RtlAnsiCharToUnicodeChar
(
LPSTR
*
);
DWORD
WINAPI
RtlAnsiStringToUnicodeSize
(
const
STRING
*
);
NTSTATUS
WINAPI
RtlAnsiStringToUnicodeString
(
PUNICODE_STRING
,
PCANSI_STRING
,
BOOLEAN
);
...
...
@@ -1939,7 +1939,7 @@ void WINAPI RtlCopyUnicodeString(UNICODE_STRING*,const UNICODE_STRING*);
NTSTATUS
WINAPI
RtlCreateAcl
(
PACL
,
DWORD
,
DWORD
);
NTSTATUS
WINAPI
RtlCreateAtomTable
(
ULONG
,
RTL_ATOM_TABLE
*
);
NTSTATUS
WINAPI
RtlCreateEnvironment
(
BOOLEAN
,
PWSTR
*
);
HANDLE
WINAPI
RtlCreateHeap
(
ULONG
,
PVOID
,
ULONG
,
ULONG
,
PVOID
,
PRTL_HEAP_DEFINITION
);
HANDLE
WINAPI
RtlCreateHeap
(
ULONG
,
PVOID
,
SIZE_T
,
SIZE_T
,
PVOID
,
PRTL_HEAP_DEFINITION
);
NTSTATUS
WINAPI
RtlCreateProcessParameters
(
RTL_USER_PROCESS_PARAMETERS
**
,
const
UNICODE_STRING
*
,
const
UNICODE_STRING
*
,
const
UNICODE_STRING
*
,
const
UNICODE_STRING
*
,
PWSTR
,
const
UNICODE_STRING
*
,
...
...
@@ -2104,7 +2104,7 @@ NTSTATUS WINAPI RtlQueryTimeZoneInformation(RTL_TIME_ZONE_INFORMATION*);
void
WINAPI
RtlRaiseException
(
PEXCEPTION_RECORD
);
void
WINAPI
RtlRaiseStatus
(
NTSTATUS
);
ULONG
WINAPI
RtlRandom
(
PULONG
);
PVOID
WINAPI
RtlReAllocateHeap
(
HANDLE
,
ULONG
,
PVOID
,
ULONG
);
PVOID
WINAPI
RtlReAllocateHeap
(
HANDLE
,
ULONG
,
PVOID
,
SIZE_T
);
void
WINAPI
RtlReleasePebLock
(
void
);
void
WINAPI
RtlReleaseResource
(
LPRTL_RWLOCK
);
ULONG
WINAPI
RtlRemoveVectoredExceptionHandler
(
PVOID
);
...
...
@@ -2127,7 +2127,7 @@ void WINAPI RtlSetLastWin32Error(DWORD);
void
WINAPI
RtlSetLastWin32ErrorAndNtStatusFromNtStatus
(
NTSTATUS
);
NTSTATUS
WINAPI
RtlSetSaclSecurityDescriptor
(
PSECURITY_DESCRIPTOR
,
BOOLEAN
,
PACL
,
BOOLEAN
);
NTSTATUS
WINAPI
RtlSetTimeZoneInformation
(
const
RTL_TIME_ZONE_INFORMATION
*
);
ULONG
WINAPI
RtlSizeHeap
(
HANDLE
,
ULONG
,
PVOID
);
SIZE_T
WINAPI
RtlSizeHeap
(
HANDLE
,
ULONG
,
PVOID
);
NTSTATUS
WINAPI
RtlStringFromGUID
(
REFGUID
,
PUNICODE_STRING
);
LPDWORD
WINAPI
RtlSubAuthoritySid
(
PSID
,
DWORD
);
LPBYTE
WINAPI
RtlSubAuthorityCountSid
(
PSID
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment