[PATCH v3 1/2] ntdll: Stub for ProcessCookie in NtQueryInformationProcess.

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Sun Sep 16 18:24:25 CDT 2018


From: Andrew Wesie <awesie at gmail.com>

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
 dlls/ntdll/process.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/dlls/ntdll/process.c b/dlls/ntdll/process.c
index b299287..c5057da 100644
--- a/dlls/ntdll/process.c
+++ b/dlls/ntdll/process.c
@@ -572,6 +572,22 @@ NTSTATUS WINAPI NtQueryInformationProcess(
         else
             ret = STATUS_INFO_LENGTH_MISMATCH;
         break;
+    case ProcessCookie:
+        FIXME("ProcessCookie (%p,%p,0x%08x,%p) stub\n",
+              ProcessHandle,ProcessInformation,
+              ProcessInformationLength,ReturnLength);
+
+        if(ProcessHandle == NtCurrentProcess())
+        {
+            len = sizeof(ULONG);
+            if (ProcessInformationLength == len)
+                *(ULONG *)ProcessInformation = 0;
+            else
+                ret = STATUS_INFO_LENGTH_MISMATCH;
+        }
+        else
+            ret = STATUS_INVALID_PARAMETER;
+        break;
     default:
         FIXME("(%p,info_class=%d,%p,0x%08x,%p) Unknown information class\n",
               ProcessHandle,ProcessInformationClass,
-- 
1.9.1




More information about the wine-devel mailing list