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
db6a238f
Commit
db6a238f
authored
Jul 05, 2005
by
Felix Nawothnig
Committed by
Alexandre Julliard
Jul 05, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace stubs for information classes in NtQueryVirtualMemory and
NtQueryInformationProcess by more descriptive messages.
parent
4d4c0a2d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
4 deletions
+49
-4
process.c
dlls/ntdll/process.c
+34
-1
virtual.c
dlls/ntdll/virtual.c
+15
-3
No files found.
dlls/ntdll/process.c
View file @
db6a238f
...
...
@@ -60,6 +60,12 @@ NTSTATUS WINAPI NtTerminateProcess( HANDLE handle, LONG exit_code )
return
ret
;
}
#define UNIMPLEMENTED_INFO_CLASS(c) \
case c: \
FIXME("(process=%p) Unimplemented information class: " #c "\n", ProcessHandle); \
ret = STATUS_INVALID_INFO_CLASS; \
break
/******************************************************************************
* NtQueryInformationProcess [NTDLL.@]
* ZwQueryInformationProcess [NTDLL.@]
...
...
@@ -82,6 +88,33 @@ NTSTATUS WINAPI NtQueryInformationProcess(
switch
(
ProcessInformationClass
)
{
UNIMPLEMENTED_INFO_CLASS
(
ProcessQuotaLimits
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessBasePriority
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessRaisePriority
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessExceptionPort
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessAccessToken
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessLdtInformation
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessLdtSize
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessDefaultHardErrorMode
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessIoPortHandlers
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessPooledUsageAndLimits
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessWorkingSetWatch
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessUserModeIOPL
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessEnableAlignmentFaultFixup
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessPriorityClass
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessWx86Information
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessAffinityMask
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessPriorityBoost
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessDeviceMap
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessSessionInformation
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessForegroundInformation
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessImageFileName
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessLUIDDeviceMapsEnabled
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessBreakOnTermination
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessDebugObjectHandle
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessDebugFlags
);
UNIMPLEMENTED_INFO_CLASS
(
ProcessHandleTracing
);
case
ProcessBasicInformation
:
{
PROCESS_BASIC_INFORMATION
pbi
;
...
...
@@ -237,7 +270,7 @@ NTSTATUS WINAPI NtQueryInformationProcess(
else
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
break
;
default:
FIXME
(
"(%p,
0x%08x,%p,0x%08lx,%p),stub!
\n
"
,
FIXME
(
"(%p,
info_class=%d,%p,0x%08lx,%p) Unknown information class
\n
"
,
ProcessHandle
,
ProcessInformationClass
,
ProcessInformation
,
ProcessInformationLength
,
ReturnLength
);
...
...
dlls/ntdll/virtual.c
View file @
db6a238f
...
...
@@ -1401,6 +1401,10 @@ NTSTATUS WINAPI NtProtectVirtualMemory( HANDLE process, PVOID *addr_ptr, ULONG *
return
status
;
}
#define UNIMPLEMENTED_INFO_CLASS(c) \
case c: \
FIXME("(process=%p,addr=%p) Unimplemented information class: " #c "\n", process, addr); \
return STATUS_INVALID_INFO_CLASS
/***********************************************************************
* NtQueryVirtualMemory (NTDLL.@)
...
...
@@ -1418,9 +1422,17 @@ NTSTATUS WINAPI NtQueryVirtualMemory( HANDLE process, LPCVOID addr,
if
(
info_class
!=
MemoryBasicInformation
)
{
FIXME
(
"(%p, %p, %d, %p, %ld, %p) Unimplemented information class
\n
"
,
process
,
addr
,
info_class
,
buffer
,
len
,
res_len
);
return
STATUS_INVALID_INFO_CLASS
;
switch
(
info_class
)
{
UNIMPLEMENTED_INFO_CLASS
(
MemoryWorkingSetList
);
UNIMPLEMENTED_INFO_CLASS
(
MemorySectionName
);
UNIMPLEMENTED_INFO_CLASS
(
MemoryBasicVlmInformation
);
default:
FIXME
(
"(%p,%p,info_class=%d,%p,%ld,%p) Unknown information class
\n
"
,
process
,
addr
,
info_class
,
buffer
,
len
,
res_len
);
return
STATUS_INVALID_INFO_CLASS
;
}
}
if
(
ADDRESS_SPACE_LIMIT
&&
addr
>=
ADDRESS_SPACE_LIMIT
)
return
STATUS_WORKING_SET_LIMIT_RANGE
;
...
...
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