Commit Graph

101 Commits

Author SHA1 Message Date
Mike McCormack b5bd4a101a Fix gcc 4.0 warnings. 2005-09-02 14:47:36 +00:00
Alexandre Julliard a5156dcf40 Added a stub for NtAlertResumeThread. 2005-08-18 11:47:17 +00:00
Robert Shearman 91eaea53ae - Change the default user SID to match what was previously returned by
NtQueryInformationToken.
- Implement TokenUser for NtQueryInformationToken.
- Add a function for getting the user's registry path from a SID.
2005-07-18 13:22:55 +00:00
Alexandre Julliard 9ad5628639 Moved the server start time to the init_thread request and got rid of
the init_process request (based on a patch by Felix Nawothnig).
2005-07-14 10:32:46 +00:00
Paul Vriens d5820a0422 Improved stubs to show the correct behavior. 2005-07-05 11:46:37 +00:00
Mike McCormack 04f9f1b066 Don't include winbase.h or winerror.h when not necessary. 2005-06-21 09:52:40 +00:00
Mike McCormack 5b2d5fd758 Use HANDLE instead of HKEY in the NT API. 2005-06-17 13:58:33 +00:00
Mike McCormack 7da043f869 Add/fix more NT native API declarations. 2005-06-16 10:46:11 +00:00
Paul Vriens e77306365b ProcessName should be without the path. 2005-06-16 09:44:39 +00:00
Paul Vriens 7691aca10c Only exact buffer size gives STATUS_SUCCESS. 2005-06-15 10:19:34 +00:00
Mike McCormack 0c9cb1dcee Declare port functions and fix prototypes. 2005-06-14 11:43:20 +00:00
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