[NTDLL_APITEST] Test that NtQueryInformationProcess(ProcessWx86Information) can work...
[reactos.git] / modules / rostests / apitests / ntdll / NtQueryInformationProcess.c
index 1fd990a..9469d4d 100644 (file)
@@ -310,6 +310,15 @@ Test_ProcessWx86Information(void)
     ok_hex(Status, STATUS_DATATYPE_MISALIGNMENT);
 
     /* Query the VDM power */
+    Status = NtQueryInformationProcess(NtCurrentProcess(),
+                                       ProcessWx86Information,
+                                       &VdmPower,
+                                       sizeof(VdmPower),
+                                       NULL);
+    ok_hex(Status, STATUS_SUCCESS);
+    ok(VdmPower == 0 || VdmPower == 1, "The VDM power value must be within the boundary between 0 and 1, not anything else! Got %lu\n", VdmPower);
+
+    /* Same but with ReturnLength */
     Status = NtQueryInformationProcess(NtCurrentProcess(),
                                        ProcessWx86Information,
                                        &VdmPower,