mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:03:00 +00:00
- Remove Nt/ZwQueryOleDirectoryFile.
- Nt/ZwPlugPlayControl has got 3 instead of 4 arguments. svn path=/trunk/; revision=13122
This commit is contained in:
parent
38646d1b3f
commit
fafbe81db6
5 changed files with 52 additions and 30 deletions
|
@ -25,7 +25,7 @@ CheckRemoteDebuggerPresent (
|
||||||
HANDLE DebugPort;
|
HANDLE DebugPort;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
if(pbDebuggerPresent == NULL)
|
if (pbDebuggerPresent == NULL)
|
||||||
{
|
{
|
||||||
SetLastError(ERROR_INVALID_PARAMETER);
|
SetLastError(ERROR_INVALID_PARAMETER);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -36,7 +36,7 @@ CheckRemoteDebuggerPresent (
|
||||||
(PVOID)&DebugPort,
|
(PVOID)&DebugPort,
|
||||||
sizeof(HANDLE),
|
sizeof(HANDLE),
|
||||||
NULL);
|
NULL);
|
||||||
if(NT_SUCCESS(Status))
|
if (NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
*pbDebuggerPresent = ((DebugPort != NULL) ? TRUE : FALSE);
|
*pbDebuggerPresent = ((DebugPort != NULL) ? TRUE : FALSE);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -64,8 +64,7 @@ ContinueDebugEvent (
|
||||||
ClientId.UniqueThread = (HANDLE)dwThreadId;
|
ClientId.UniqueThread = (HANDLE)dwThreadId;
|
||||||
|
|
||||||
Status = DbgUiContinue(&ClientId, dwContinueStatus);
|
Status = DbgUiContinue(&ClientId, dwContinueStatus);
|
||||||
|
if (!NT_SUCCESS(Status))
|
||||||
if(!NT_SUCCESS(Status))
|
|
||||||
{
|
{
|
||||||
SetLastErrorByStatus(Status);
|
SetLastErrorByStatus(Status);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -76,16 +75,50 @@ ContinueDebugEvent (
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @unimplemented
|
* NOTE: I'm not sure if the function is complete.
|
||||||
|
*
|
||||||
|
* @unmplemented
|
||||||
*/
|
*/
|
||||||
BOOL
|
BOOL WINAPI
|
||||||
WINAPI
|
DebugActiveProcess(DWORD dwProcessId)
|
||||||
DebugActiveProcess (
|
|
||||||
DWORD dwProcessId
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
CSRSS_API_REQUEST Request;
|
||||||
return FALSE;
|
CSRSS_API_REPLY Reply;
|
||||||
|
HANDLE hProcess;
|
||||||
|
NTSTATUS Status;
|
||||||
|
|
||||||
|
hProcess = OpenProcess(PROCESS_ALL_ACCESS,
|
||||||
|
FALSE,
|
||||||
|
dwProcessId);
|
||||||
|
if (hProcess == NULL)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
|
/* Notify CSRSS */
|
||||||
|
Request.Type = CSRSS_DEBUG_PROCESS;
|
||||||
|
Request.Data.DebugProcessRequest.DebuggeeProcessId = dwProcessId;
|
||||||
|
Request.Data.DebugProcessRequest.DebuggerProcessId = GetCurrentProcessId();
|
||||||
|
Request.Data.DebugProcessRequest.DebuggerThreadId = GetCurrentThreadId();
|
||||||
|
Status = CsrClientCallServer(&Request,
|
||||||
|
&Reply,
|
||||||
|
sizeof(CSRSS_API_REQUEST),
|
||||||
|
sizeof(CSRSS_API_REPLY));
|
||||||
|
if (!NT_SUCCESS(Status) || !NT_SUCCESS(Status = Reply.Status))
|
||||||
|
{
|
||||||
|
SetLastError(ERROR_ACCESS_DENIED);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
CloseHandle(hProcess);
|
||||||
|
|
||||||
|
/* Connect the current process (debugger) to the debug subsystem */
|
||||||
|
Status = DbgUiConnectToDbg();
|
||||||
|
if (!NT_SUCCESS(Status))
|
||||||
|
{
|
||||||
|
SetLastErrorByStatus(Status);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -154,7 +154,7 @@ NtOpenSymbolicLinkObject@12
|
||||||
NtOpenThread@16
|
NtOpenThread@16
|
||||||
NtOpenThreadToken@16
|
NtOpenThreadToken@16
|
||||||
NtOpenTimer@12
|
NtOpenTimer@12
|
||||||
NtPlugPlayControl@16
|
NtPlugPlayControl@12
|
||||||
NtPrivilegeCheck@12
|
NtPrivilegeCheck@12
|
||||||
NtPrivilegedServiceAuditAlarm@20
|
NtPrivilegedServiceAuditAlarm@20
|
||||||
NtPrivilegeObjectAuditAlarm@24
|
NtPrivilegeObjectAuditAlarm@24
|
||||||
|
@ -182,7 +182,6 @@ NtQueryKey@20
|
||||||
NtQueryMultipleValueKey@24
|
NtQueryMultipleValueKey@24
|
||||||
NtQueryMutant@20
|
NtQueryMutant@20
|
||||||
NtQueryObject@20
|
NtQueryObject@20
|
||||||
NtQueryOleDirectoryFile@44
|
|
||||||
NtQueryPerformanceCounter@8
|
NtQueryPerformanceCounter@8
|
||||||
NtQuerySection@20
|
NtQuerySection@20
|
||||||
NtQuerySecurityObject@20
|
NtQuerySecurityObject@20
|
||||||
|
@ -573,7 +572,7 @@ RtlQueryProcessDebugInformation@12
|
||||||
;RtlQueryPropertyNames
|
;RtlQueryPropertyNames
|
||||||
;RtlQueryPropertySet
|
;RtlQueryPropertySet
|
||||||
RtlQueryRegistryValues@20
|
RtlQueryRegistryValues@20
|
||||||
;RtlQuerySecutityObject
|
;RtlQuerySecurityObject
|
||||||
;RtlQueryTagHeap
|
;RtlQueryTagHeap
|
||||||
RtlQueryTimeZoneInformation@4
|
RtlQueryTimeZoneInformation@4
|
||||||
RtlRaiseException@4
|
RtlRaiseException@4
|
||||||
|
@ -770,7 +769,7 @@ ZwOpenSymbolicLinkObject@12
|
||||||
ZwOpenThread@16
|
ZwOpenThread@16
|
||||||
ZwOpenThreadToken@16
|
ZwOpenThreadToken@16
|
||||||
ZwOpenTimer@12
|
ZwOpenTimer@12
|
||||||
ZwPlugPlayControl@16
|
ZwPlugPlayControl@12
|
||||||
ZwPrivilegeCheck@12
|
ZwPrivilegeCheck@12
|
||||||
ZwPrivilegedServiceAuditAlarm@20
|
ZwPrivilegedServiceAuditAlarm@20
|
||||||
ZwPrivilegeObjectAuditAlarm@24
|
ZwPrivilegeObjectAuditAlarm@24
|
||||||
|
@ -798,7 +797,6 @@ ZwQueryKey@20
|
||||||
ZwQueryMultipleValueKey@24
|
ZwQueryMultipleValueKey@24
|
||||||
ZwQueryMutant@20
|
ZwQueryMutant@20
|
||||||
ZwQueryObject@20
|
ZwQueryObject@20
|
||||||
ZwQueryOleDirectoryFile@44
|
|
||||||
ZwQueryPerformanceCounter@8
|
ZwQueryPerformanceCounter@8
|
||||||
ZwQuerySection@20
|
ZwQuerySection@20
|
||||||
ZwQuerySecurityObject@20
|
ZwQuerySecurityObject@20
|
||||||
|
|
|
@ -236,11 +236,4 @@ NtQueryDirectoryFile(
|
||||||
return(Status);
|
return(Status);
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS STDCALL NtQueryOleDirectoryFile(VOID)
|
|
||||||
{
|
|
||||||
UNIMPLEMENTED;
|
|
||||||
return(STATUS_NOT_IMPLEMENTED);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
|
@ -815,7 +815,6 @@ NtQueryInformationFile@20
|
||||||
NtQueryInformationProcess@20
|
NtQueryInformationProcess@20
|
||||||
NtQueryInformationThread@20
|
NtQueryInformationThread@20
|
||||||
NtQueryInformationToken@20
|
NtQueryInformationToken@20
|
||||||
;NtQueryOleDirectoryFile@44 <--- ?
|
|
||||||
NtQueryQuotaInformationFile@36
|
NtQueryQuotaInformationFile@36
|
||||||
NtQuerySecurityObject@20
|
NtQuerySecurityObject@20
|
||||||
NtQuerySystemInformation@16
|
NtQuerySystemInformation@16
|
||||||
|
|
|
@ -102,7 +102,7 @@ NtOpenThread 4
|
||||||
NtOpenThreadToken 4
|
NtOpenThreadToken 4
|
||||||
NtOpenThreadTokenEx 5
|
NtOpenThreadTokenEx 5
|
||||||
NtOpenTimer 3
|
NtOpenTimer 3
|
||||||
NtPlugPlayControl 4
|
NtPlugPlayControl 3
|
||||||
NtPowerInformation 5
|
NtPowerInformation 5
|
||||||
NtPrivilegeCheck 3
|
NtPrivilegeCheck 3
|
||||||
NtPrivilegedServiceAuditAlarm 5
|
NtPrivilegedServiceAuditAlarm 5
|
||||||
|
@ -133,7 +133,6 @@ NtQueryKey 5
|
||||||
NtQueryMultipleValueKey 6
|
NtQueryMultipleValueKey 6
|
||||||
NtQueryMutant 5
|
NtQueryMutant 5
|
||||||
NtQueryObject 5
|
NtQueryObject 5
|
||||||
NtQueryOleDirectoryFile 11
|
|
||||||
NtQueryPerformanceCounter 2
|
NtQueryPerformanceCounter 2
|
||||||
NtQueryQuotaInformationFile 9
|
NtQueryQuotaInformationFile 9
|
||||||
NtQuerySection 5
|
NtQuerySection 5
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue