Commit Graph

90 Commits

Author SHA1 Message Date
Paul Vriens 5e5008502e Fixed size of our SYSTEM_TIMEOFDAY_INFORMATION struct.
Fixed return codes and ReturnLength/buffer for
SystemTimeOfDayInformation.
Added tests for SystemTimeOfDayInformation.
2005-06-13 11:34:56 +00:00
Mike McCormack d838385b38 Add and fix function prototypes. 2005-06-13 10:03:18 +00:00
Paul Vriens 50d1e4f0bf Fixed ReturnLength of SystemCpuInformation.
Added first test for SystemCpuInformation.
2005-06-10 19:52:32 +00:00
Paul Vriens 2b7094e4d4 Reduce our buffer by 1 SYSTEM_THREAD_INFORMATION per process.
Minimize some calculations.
2005-06-09 20:33:45 +00:00
Paul Vriens fbc7a40273 Fixed typo.
Zero the thread information before use.
2005-06-07 20:01:48 +00:00
Felix Nawothnig d8c5960ce1 Make SYSTEM_THREAD_INFORMATION.pszProcessName a UNICODE_STRING. 2005-06-06 15:42:08 +00:00
Paul Vriens eb6559f910 Change SYSTEM_PROCESS_INFORMATION to reflect W2K/WinXP/W2K3 structure. 2005-06-03 11:24:43 +00:00
Ivan Leo Puoti 2964d8bc52 Rename SystemDriverInformation to SystemModuleInformation. 2005-05-20 09:40:59 +00:00
Paul Vriens f9cdab4dff Added (stubbed) SystemDriverInformation and
SystemInterruptInformation.
2005-05-13 13:55:51 +00:00
Paul Vriens d5f92eb50c Added (stubbed) SystemHandleInformation.
Sorted the list.
2005-05-10 13:15:58 +00:00
Robert Shearman d2ea92d14e - Clean up well-known privileges.
- Implement checking tokens for privileges in the server.
- Implement NtPrivilegeCheck.
2005-04-22 21:17:15 +00:00
Paul Vriens 08ae0d09bb Remove THREAD_INFO struct.
Rename THREADINFO into SYSTEM_THREAD_INFORMATION.
2005-04-21 17:14:22 +00:00
Benjamin Cutler 2813da13a3 Add semi-stub for NtPowerInformation(SystemPowerCapabilities, ...). 2005-04-18 09:52:32 +00:00
Benjamin Cutler c31a7e98f1 - Correct args for NtPowerInformation.
- Add stub for NtInitiatePowerAction.
2005-04-16 10:45:51 +00:00
Paul Vriens a9cbabc03c Start of unit tests for *Info* functions.
Check needed length regardless of given length.
Return STATUS_INVALID_INFO_CLASS for non-implemented classes.
Return STATUS_ACCESS_VIOLATION if no buffer given.
2005-04-15 14:12:54 +00:00
Mike McCormack 6c42be25e7 Implement CreateMailslot using NtCreateMailslotFile. 2005-03-28 10:03:56 +00:00
Rein Klazes 288ebd3244 NtQueryPerformanceCounter should return a frequency of 1193182Hz and
counts like in Windows. Some applications depend on that.
Simplify QueryPerformanceCounter a bit.
2005-02-23 20:29:17 +00:00
Juan Lang 9ebbd3e514 Fix NtQueryPerformanceCounter parameter checking. Spotted by Alex
Woods.
2005-02-21 18:27:58 +00:00
Robert Shearman b0f02b28b9 - Implement AdjustTokenPrivileges, DuplicateTokenEx and
GetTokenInformation (for the TokenPrivileges case).
- Return STATUS_NO_TOKEN for OpenThreadToken when there is no token
  set for the thread.
2005-02-11 11:52:06 +00:00
Rein Klazes 2a0df4bd60 In NtQuerySystemInformation, handle request for information class 1,
now named SystemCpuInformation. Return some dummy data for now.
2005-01-28 12:34:20 +00:00
Rein Klazes 407d863a8a Get rid of the rdtsc cpu instruction method for calculation of the
performance counter. Put the calculation (based on gettimeofday) in
NtQueryPerformanceCounter() and use that in the kernel functions.
2005-01-26 20:41:36 +00:00
Juan Lang 0fca5acba8 - implement LookupPrivilegeName
- correct LookupPrivilegeValue (had a buffer overrun and sometimes
  returned incorrect LUIDs for well-known values)
- make AllocateLocallyUniqueId less obviously incorrect
- add a bunch of test cases
2004-11-04 04:52:17 +00:00
Steven Edwards f7fb4d2b50 Added stub for NtShutdownSystem. 2004-09-14 19:30:36 +00:00
Mike McCormack 6f74043bfb Stub implementations for NtAdjustGroupsToken and NtAlertThread. 2004-08-30 18:36:24 +00:00
Jason Edmeades c5a95b82e9 Don't clear the information structure for non supported cases. 2004-08-26 00:30:02 +00:00
Aric Stewart b7add83287 Added handling of TokenPrimaryGroup. 2004-08-17 22:28:13 +00:00
Mike McCormack b255c11787 Stub implementation for NtSetInformationToken. 2004-08-17 22:09:55 +00:00
Aric Stewart 680e200c75 Report NOT_IMPLEMENTED for not implemented token classes. 2004-07-06 19:42:30 +00:00
Michael Stefaniuc 5150b37a00 NtQueryInformationToken isn't a stub so change the FIXME to a TRACE. 2004-04-19 19:25:29 +00:00
Mike McCormack 9acaadea3f Return an SID when GetTokenInformation is called with class
TokenOwner.
2003-12-30 19:17:05 +00:00
Alex Pasadyn 0f5db95401 Fix buffer length error code for NtQueryInformationToken. 2003-10-06 21:04:06 +00:00
Alexandre Julliard c30cefb2d5 Store module names in Unicode in the server. 2003-09-30 01:04:19 +00:00
Eric Pouech c3e6c095e1 Implemented kernel32.GetIoProcessCounters and stubbed
ntdll.NtQueryProcessInformation(ProcessIoCounters).
2003-09-19 00:06:45 +00:00
Eric Pouech 9fd54b2838 - Implemented a few information classes in NtQuerySystemInformation.
- Added handle information to (wineserver) process snapshot.
2003-09-16 01:07:21 +00:00
Alexandre Julliard 2eb5d8b9b1 On TlsFree, clear the released TLS index in all threads. 2003-09-08 19:02:01 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
John K. Hohm a3f6410f9e Set SE_GROUP_ENABLED in Attributes of Administrators SID during
NtQueryInformationToken for TokenGroups.
2003-08-29 22:10:53 +00:00
Mike McCormack 36cd6f5dbb Added a security token object in wineserver. 2003-07-24 00:07:00 +00:00
Alexandre Julliard 4f196ead13 Implemented the ThreadBasicInformation case for
NtQueryInformationThread.
2003-07-09 02:57:57 +00:00
Eric Pouech 4c591d4ef3 Implemented timer related functions in ntdll and make the kernel32
functions use them.
2003-05-20 04:00:42 +00:00
Robert Shearman efc069cbb3 Added NtQueryProcessInformation case needed by NT version of MSI. 2003-04-12 00:01:32 +00:00
Alexandre Julliard 088bcf9ca5 Implemented NtQueueApcThread, and changed the server APC interface to
always take 3 parameters.
Implemented a number of other ntdll thread functions, and use them
from the kernel ones.
2003-04-04 22:26:34 +00:00
Alberto Massari 067a981233 Added parameters to NtXxxPort functions prototypes. 2002-12-10 20:04:40 +00:00
Patrik Stridvall 75dee506ae Replace 0x%p with %p. 2002-12-05 19:56:15 +00:00
Andrew John Hughes ed800c69c8 Build ntdll with -DSTRICT. 2002-11-21 03:45:01 +00:00
Alexandre Julliard 341b7dceb4 Implemented the ntdll virtual memory functions, and made the kernel
functions use them.
2002-09-17 18:54:42 +00:00
Patrik Stridvall 9c1de6de30 Moved all the content of the DDK files ntdef.h and ntddk.h to
winternl.h.
2002-09-12 22:07:02 +00:00
Alexandre Julliard 7375597fe2 Fixed some handle type mismatches and added a few casts in prevision
of void* handles.
2002-07-31 19:26:03 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Vincent Béron 244462cc70 Correct implementation of VerSetConditionMask. 2002-05-19 22:20:09 +00:00