Commit Graph
52320 Commits
Author SHA1 Message Date
Hermès Bélusca-Maïto 2599e85e27 [CSRSRV]
- Correct a misspelling 'CsrThreadAltertable' -> 'CsrThreadAlertable'.
- Introduce CSR_REPLY_CODEs instead of using hardcoded values, and use them with CSR_API_ROUTINE-type functions. They correspond to which decision CSRSRV should take after a server function is called: answer to the client or not, and perform according tasks.

[BASESRV]
Use CSR_REPLY_CODEs.

svn path=/branches/ros-csrss/; revision=57801
2012-12-04 23:01:54 +00:00
Hermès Bélusca-Maïto 24087a3b01 Synchronize up to trunk's revision r57784.
svn path=/branches/ros-csrss/; revision=57785
2012-11-30 21:32:42 +00:00
Eric Kohl 9b5490c235 [LSASRV]
- Fix object deletion.
- Add a registry wrapper function that enables us to delete registry keys which have already been opened.
- Make LsarDelete call LsarDeleteObject because otherwise object deletion would not be possible.

svn path=/trunk/; revision=57784
2012-11-29 22:02:22 +00:00
Hermès Bélusca-Maïto 24abb04676 [KDCOM]
Fixes COM port debugging output with Virtual PC 2007. See r57781 for more details.

CORE-4247 #comment Fixed also in r57782.

svn path=/trunk/; revision=57782
2012-11-29 10:26:00 +00:00
Hermès Bélusca-Maïto 6f57060555 [KDDLL]
- Use cportlib for COM port facilities. Fixes COM port debugging output with Virtual PC 2007.
- Remove now unneeded header file.

CORE-4247 #comment Fixed in r57776, r57777, r57780 and r57781. #resolve

svn path=/trunk/; revision=57781
2012-11-28 23:23:54 +00:00
Hermès Bélusca-Maïto cd57963daf [CPORTLIB/FREELDR]
GetByte  --> Wait for data (with timeout) and get it if available.
PollByte --> Check for data, get it if available, and return immediately.

svn path=/trunk/; revision=57780
2012-11-28 23:16:01 +00:00
James Tabor edf7b69357 [Win32k]
- Fix crash when the exception is thrown.

svn path=/trunk/; revision=57779
2012-11-28 23:05:57 +00:00
Hermès Bélusca-Maïto 7450523726 [FREELDR]
Remove unuseful defines, now.

svn path=/trunk/; revision=57778
2012-11-28 22:25:07 +00:00
Hermès Bélusca-Maïto 2c0b925b1f [FREELDR]
- Make use of the previously committed cportlib code. This works great on VPC 2007 :)
- Comment the unused Rs232PortPollByte function.
- In hardware.c, add useful comments and two macros holding the maximum number of COM and LPT ports.

svn path=/trunk/; revision=57777
2012-11-28 22:16:15 +00:00
Hermès Bélusca-Maïto da43d9219e [CPORTLIB]
- Do a synthesis of all the code I've found concerning initializing COM ports (in kdcom / kddll / kdbg in the kernel and in freeldr). The "// Windows" comments concern the original code for testing the existence of COM ports, inside cportlib, whereas "// ReactOS" comments concern the equivalent existing in our kdcom/kddll/kdbg etc...
- CORRECT THE VIRTUAL PC COM PORT INITIALIZATION !! The problem was, that the current COM port existence test fails on VPC whereas it works well in all other virtual machines. Therefore :
  * I keep the existing testing code in a function called ComPortTest1, this works everywhere but on VPC ;
  * I add a very basic COM port existence test function called ComPortTest2, which basically looks for the scratch register, this works everywhere including on VPC.
  * The COM port existence test consists in the two tests above.

svn path=/trunk/; revision=57776
2012-11-28 22:12:29 +00:00
Hermès Bélusca-Maïto 39f19b3ed5 [SERIAL]
Comment the different defines.

svn path=/trunk/; revision=57775
2012-11-28 22:03:07 +00:00
Hermès Bélusca-Maïto dfa74be23e [SERIAL]
The SER_...(x) macros return UCHAR pointers, i.e. PUCHAR.

svn path=/trunk/; revision=57774
2012-11-28 21:57:31 +00:00
Thomas Faber f8de4142cd [REGEDIT]
- Allow canceling import operations. Patch by Lee Schroeder.
CORE-6766 #resolve

svn path=/trunk/; revision=57773
2012-11-28 11:20:13 +00:00
Thomas Faber 5c4631ef0b [REGEDIT]
- Add a line break to import prompt for improved readability. Suggested by Lee Schroeder.
CORE-6766

svn path=/trunk/; revision=57772
2012-11-28 11:17:24 +00:00
Eric Kohl 28296864ff [LSASRV]
Do not store a key name in an LSA object. Fixes CORE-6792.

svn path=/trunk/; revision=57771
2012-11-26 21:55:09 +00:00
James Tabor 7e62b6e39e [WineTests]
- Sync to 1.5.18

svn path=/trunk/; revision=57770
2012-11-26 05:50:15 +00:00
Eric Kohl 3ba8c1dc0b [LSASRV]
- Implement LsarDeleteObject.
- Store the object name in the database object in order to be able to delete the objects key later.

svn path=/trunk/; revision=57769
2012-11-25 19:47:54 +00:00
Sylvain Petreolle bff31ec33b CORE-6650 #resolve #comment Add missing files on bootcd. Patch By Lee Schroeder.
svn path=/trunk/; revision=57768
2012-11-25 19:35:56 +00:00
Eric Kohl 7595ef1c18 [LSASRV]
- Add enumeration of user rights to LsarEnumerateAccountRights.
- Use RPC_UNICODE_STRING instead of UNICODE_STRING in the privilege lookup code.

svn path=/trunk/; revision=57767
2012-11-25 13:47:07 +00:00
Eric Kohl 3c766118e3 [LSASRV]
Implement LsarGetQuotasForAccount and LsarSetQuotasForAccount.

svn path=/trunk/; revision=57766
2012-11-25 10:35:57 +00:00
James Tabor e223b5389a [WineTests]
- Sync to 1.5.18

svn path=/trunk/; revision=57765
2012-11-25 02:53:09 +00:00
Eric Kohl 4864e1b553 [LSASRV]
- Add new registry API.
- Implement LsarEnumerateAccounts.

svn path=/trunk/; revision=57764
2012-11-24 23:19:40 +00:00
Hermès Bélusca-Maïto fad4fbd259 [NTOSKRNL]
Code formatting only

svn path=/trunk/; revision=57763
2012-11-24 19:50:31 +00:00
Hermès Bélusca-Maïto afd01007a5 [NTOSKRNL]
Code formatting only

svn path=/trunk/; revision=57762
2012-11-24 19:38:05 +00:00
Hermès Bélusca-Maïto 1656ff4b71 [KD64]
Use \t instead of hardcoding the tab character.

svn path=/trunk/; revision=57761
2012-11-24 19:36:07 +00:00
Hermès Bélusca-Maïto c5166c1a2d [CPORTLIB]
Code formatting only.

svn path=/trunk/; revision=57759
2012-11-24 18:22:26 +00:00
Hermès Bélusca-Maïto ec2194eefa [CONSRV]
Correct a debug message.

svn path=/branches/ros-csrss/; revision=57758
2012-11-24 13:04:28 +00:00
Hermès Bélusca-Maïto 2d18c1a929 Synchronize up to trunk's revision r57756.
svn path=/branches/ros-csrss/; revision=57757
2012-11-24 13:02:15 +00:00
Hermès Bélusca-Maïto 1279ab0e12 [WIN32CSR]
Correct the initialization of text-mode console.

svn path=/trunk/; revision=57756
2012-11-24 12:40:56 +00:00
Sylvain Petreolle 3e532bda01 Install the vga fonts needed for the Blue driver.
svn path=/trunk/; revision=57755
2012-11-24 01:23:13 +00:00
Hermès Bélusca-Maïto da5ab71ded [SERVICES]
- (Re-)implement acquiring/releasing driver-loading and unloading privilege (Note: the two privileges have the same name SE_LOAD_DRIVER_NAME).
- Rework the SCM initialization code. In particular, acquiring the starting lock MUST BE done BEFORE starting the RPC server, otherwise, a program can try to start a service (and during this operation, the global start lock is acquired by the SCM) DURING the initialization of SCM, and in particular between the call to ScmStartRpcServer and ScmAcquireServiceStartLock. The SCM would then see an already-acquired start lock at this point and would fail to initialize. ==> This commit corrects this behaviour.

svn path=/trunk/; revision=57754
2012-11-24 00:53:01 +00:00
Eric Kohl ba30f8c018 [LSASRV]
- LsarSetInformationPolicy: Add stubs for all missing case.
- Implement LsarSetAuditLog and LsarSetDefaultQuota.

svn path=/trunk/; revision=57753
2012-11-24 00:13:10 +00:00
Hermès Bélusca-Maïto 3f75d10725 [FREELDR]
When filling LoadOptions, strip the '/' commutator symbol in front of each option. Now we fully comply with Windows when holding LoaderBlock->LoadOptions, and the content of the registry value SystemStartOptions under HKLM\CurrentControlSet\Control display the options without their / symbol.

[WIN32K]
Now, the SystemStartOptions value doesn't contain / anymore.

svn path=/trunk/; revision=57752
2012-11-23 22:39:12 +00:00
Hermès Bélusca-Maïto 0981cdc216 [NTOSKRNL]
SystemBootDevice should be the ARC-formatted boot device (see what Windows does).

svn path=/trunk/; revision=57751
2012-11-23 20:41:28 +00:00
Hermès Bélusca-Maïto 7cdac802e3 The console boot switch is really named CONSOLE, not CMDCONS, since r29948.
svn path=/trunk/; revision=57750
2012-11-23 20:05:35 +00:00
Hermès Bélusca-Maïto 60e03ccee8 [KERNEL32]
Deactivate the code of GetConsoleInputWaitHandle, because it calls a function that doesn't seem to appear in the console server apis listed in http://j00ru.vexillium.org/csrss_list/api_list.html (and that I haven't included in the console server apis list), until I find a better solution. It fixes compilation.

[CONSRV]
- Code reorganization
- Introduce the CONSOLE_CONNECTION_INFO structure needed for initializing consoles when launching a program (see http://svn.reactos.org/svn/reactos/trunk/reactos/lib/kernel32/misc/dllmain.c?r1=16826&r2=16825&pathrev=16826), instead of calling AllocConsole. Not used at this time.

Now the branch compiles.

svn path=/branches/ros-csrss/; revision=57749
2012-11-23 19:37:20 +00:00
Colin Finck 010dd80061 Revert 57718
svn path=/trunk/; revision=57748
2012-11-23 11:22:46 +00:00
Colin Finck 80a52b6aa4 Fix Unicode output on the console, broken in 33866, fixed in 34042, broken again in 38185, fixed again in 51058 and finally broken yet another time since 54651...
I think this history deserves champagne and forceful warning comments, which have been added.
Simple solution: Don't blindly sync Wine code!

#resolve #CORE-6495

svn path=/trunk/; revision=57747
2012-11-23 11:18:28 +00:00
Eric Kohl 392231efa4 [LSASRV]
Move set functions to the end of the file. No code changes!

svn path=/trunk/; revision=57746
2012-11-22 22:09:59 +00:00
Eric Kohl 1cbb837c1a [LSASRV]
LsarSetInformationPolicy: Add labels for unimplemented cases.

svn path=/trunk/; revision=57745
2012-11-22 21:25:15 +00:00
Hermès Bélusca-Maïto b942b837af [CSRSRV]
Remove the unneeded CsrpHandleConnectionRequest function since CsrApiHandleConnectionRequest does already the job.

svn path=/branches/ros-csrss/; revision=57744
2012-11-21 18:52:42 +00:00
Hermès Bélusca-Maïto d7bac86452 [NTDLL]
When calling CsrClientConnectToServer with a valid connection info user buffer, after capturing the buffer and calling CsrClientCallServer, do not forget to copy back to the user buffer the updated connection info and to free the capture buffer !

svn path=/branches/ros-csrss/; revision=57743
2012-11-20 22:48:11 +00:00
Eric Kohl 949d0c4bed [LSASRV]
- Create and set a security descriptor for newly created secrets.

svn path=/trunk/; revision=57742
2012-11-20 22:34:00 +00:00
Hermès Bélusca-Maïto ae88c763da [CSRSRV]
- Remove unused functions CallHardError and CsrHandleHardError (in fact calling the hard error callback is already done in the listening thread).
- Add an annotation and correct a typographical error; remove old comments.
- Remove the now unneeded csrplugin.h header (a relic of the old callback system of the old csrss/csrsrv).

svn path=/branches/ros-csrss/; revision=57741
2012-11-20 19:34:03 +00:00
Hermès Bélusca-Maïto 90229a39a0 [KERNEL32/CONSRV]
- Merge IntWriteConsoleOutputCharacter and WriteConsoleOutputAttribute functions into IntWriteConsoleOutputCode helper functions, which is used inside WriteConsoleOutputAttribute and WriteConsoleOutputCharacterW/A.
- In server-side, merge CsrWriteConsoleOutputChar and CsrWriteConsoleOutputAttrib into the server API SrvWriteConsoleOutputString.
- The structures CSRSS_WRITE_CONSOLE_OUTPUT_CHAR and CSRSS_WRITE_CONSOLE_OUTPUT_ATTRIB are merged into CSRSS_WRITE_CONSOLE_OUTPUT_CODE.

[CONSRV]
- Add a CsrValidateMessageBuffer usage.

svn path=/branches/ros-csrss/; revision=57740
2012-11-19 23:26:36 +00:00
Hermès Bélusca-Maïto 5e77b6714d Forgot this part.
svn path=/branches/ros-csrss/; revision=57739
2012-11-19 21:52:59 +00:00
Hermès Bélusca-Maïto ef1e1fc82b [KERNEL32/CONSRV]
- Modify the helper function IntWriteConsole to make it use of capture buffers for passing things to write.
- Now, the loop disappears.
- I moved the pause-event wait (introduced in revision r47359) inside consrv, and (concerning the server-api-part SrvWriteConsole), especially in the ConioWriteConsole function, to be sure that all functions calling ConioWriteConsole become sensible to pause event. This REALLY NEEDS testing (and of course the code needs cleaning of the introduced comments, when I'm sure it works).

svn path=/branches/ros-csrss/; revision=57738
2012-11-19 21:48:22 +00:00
Eric Kohl bf98c11bae [LSASRV]
- Move LsapCreatePolicySd into a separate file.
- Create and set a security descriptor to newly created accounts.

svn path=/trunk/; revision=57737
2012-11-19 21:33:07 +00:00
Eric Kohl 4874b78fd4 [INCLUDE]
Add generic rights for account and secret objects.

svn path=/trunk/; revision=57736
2012-11-19 17:28:36 +00:00
Eric Kohl 8a858bc0d1 [LSASRV]
Implement LsarQuerySecurityObject.

svn path=/trunk/; revision=57735
2012-11-18 21:42:14 +00:00