[NTOS:IO]
- Fix pool corruption resulting form a combination of r60038 and dubious SEH programming patterns

git-svn-id: svn://svn.reactos.org/reactos/trunk@60044 97493ccd-5924-5043-b1f5-66cb403b36ce
[NTOSKRNL]
* Break down the checks as suggested by Alex. Brought to you by David Quintana.

git-svn-id: svn://svn.reactos.org/reactos/trunk@60045 97493ccd-5924-5043-b1f5-66cb403b36ce
[NTOSKRNL]
* Fix a copy pasted typo.

git-svn-id: svn://svn.reactos.org/reactos/trunk@60046 97493ccd-5924-5043-b1f5-66cb403b36ce
[NPFS_NEW]: Add file header info.

git-svn-id: svn://svn.reactos.org/reactos/trunk@60047 97493ccd-5924-5043-b1f5-66cb403b36ce
[KERNEL32]
- Fix access rights when using CreateFile with FILE_FLAG_DELETE_ON_CLOSE

git-svn-id: svn://svn.reactos.org/reactos/trunk@60048 97493ccd-5924-5043-b1f5-66cb403b36ce
[NPFS_NEW]
Don't hardcode the first parameter of the bugchecks. Instead, I introduce a NpBugCheck macro and file identifiers
(their names conform to the existing name convention of the driver) so that, when bugchecking, we report as the
first parameter of the NPFS_FILE_SYSTEM bugcheck the file ID (in the high word) and the line (in the low word)
where the bugcheck was emitted.
See the MSDN article "Bug Check 0x25: NPFS_FILE_SYSTEM" - http://msdn.microsoft.com/en-us/library/windows/hardware/ff557436(v=vs.85).aspx
for more information.

Inspired from the existing ext2 driver.

Should be done for the other filesystems (FAT, NTFS, CDFS, Redirector, Mailslot, etc...).

git-svn-id: svn://svn.reactos.org/reactos/trunk@60051 97493ccd-5924-5043-b1f5-66cb403b36ce
[NPFS_NEW]
Use _SEH2_YIELD when exiting from a _SEH2 block via a return or a goto (otherwise --> bug in the stack).
This limitation will be removed in SEH3, but it's not used at the moment.

git-svn-id: svn://svn.reactos.org/reactos/trunk@60052 97493ccd-5924-5043-b1f5-66cb403b36ce
Fix other _SEH2_YIELD() issues, spotted for most of them by Pigglesworth, the other by myself.
I'm wondering how much remaining ones are in our code. Only the Lord knows...

git-svn-id: svn://svn.reactos.org/reactos/trunk@60053 97493ccd-5924-5043-b1f5-66cb403b36ce
Attempt to fix CORE-6024

git-svn-id: svn://svn.reactos.org/reactos/trunk@60054 97493ccd-5924-5043-b1f5-66cb403b36ce
[NTOSKRNL]: Make MiCreateImageSection return STATUS_SUCCESS, not some fucked-up ROS-specific status code.
[NTOSKRNL]: Make MmCreateSection do the correct access checks and parameter checks, just like ARM3 does. For example, asking for PAGE_EXECUTE on a non-image file no longer requests SYNCHRONIZE and FILE_READ_DATA...it asks... FILE_EXECUTE. Cause you know... that's what the caller..wants. Anyway, this, among other things, fixes LdrValidateImageChecksum (and those annoying errors 0xC0000022 in the logs). SMSS is now checking the checksums of Known DLLs just like before (in Win7 they stopped doing this to improve boot performance, lol). It also makes Windows' SMSS happy.

git-svn-id: svn://svn.reactos.org/reactos/trunk@60055 97493ccd-5924-5043-b1f5-66cb403b36ce
[NTOSKRNL]: Fix the fix

git-svn-id: svn://svn.reactos.org/reactos/trunk@60056 97493ccd-5924-5043-b1f5-66cb403b36ce
[SMLIB]: Use the right API port name. Now Windows's SMSS works fine in ROS.

git-svn-id: svn://svn.reactos.org/reactos/trunk@60057 97493ccd-5924-5043-b1f5-66cb403b36ce
[USER32]: Make ClientThreadSetup return TRUE, and document how initialization should work. Enable CsrConnectToUser in CSRSRV. Works-4-me(TM).

git-svn-id: svn://svn.reactos.org/reactos/trunk@60058 97493ccd-5924-5043-b1f5-66cb403b36ce
[NTOSKRNL]: Implement ThreadIsTermination info class in NtQueryInformationThread.
[CSRSRV]: CsrInsertThread should call this API to make sure the thread isn't dead already. Update the callers to handle this possible failure.
This behavior was obeserved in Windows' CSRSRV.DLL. It now works in ReactOS as well.

git-svn-id: svn://svn.reactos.org/reactos/trunk@60059 97493ccd-5924-5043-b1f5-66cb403b36ce
[NTMARTA]
- Request the necessary SYNCHRONIZE access right. Fixes advapi32:security regression

git-svn-id: svn://svn.reactos.org/reactos/trunk@60060 97493ccd-5924-5043-b1f5-66cb403b36ce
[NTOSKRNL][KERNEL32]
Fix a few more cases of missing _SEH2_YIELD.

git-svn-id: svn://svn.reactos.org/reactos/trunk@60061 97493ccd-5924-5043-b1f5-66cb403b36ce
[SETUPAPI]
SourceDisksFiles and SourceDisksNames inf section can be platform dependant.


git-svn-id: svn://svn.reactos.org/reactos/trunk@60062 97493ccd-5924-5043-b1f5-66cb403b36ce
[VGA_NEW]
 - Zero out the Int10 Bios call arguments structure before calling Videoprt Int10CallBios
 - Properly check for VESA BIOS return value from such calls
 - Use VGA registers to update the palette when possible.
Now bochs goes up to 3rd stage when using this driver in conjunction with framebuf_new.


git-svn-id: svn://svn.reactos.org/reactos/trunk@60063 97493ccd-5924-5043-b1f5-66cb403b36ce
[VGA_NEW]
 - Use VideoDebugPrint macro instead of VideoPortDebugPrint function.
It's the same, but different (tm).


git-svn-id: svn://svn.reactos.org/reactos/trunk@60064 97493ccd-5924-5043-b1f5-66cb403b36ce
[CSRSRV]: hbelusca: wait a sec ;-) Fix CsrCreateWait and CSR_WAIT_BLOCK to match Windows Server 2003 semantics, which don't have a "UserWaitList". Fix our winsrv not to call CsrCreateWait incorrectly (which corrupted the heap/stack when using windows's csrsrv.dll).

git-svn-id: svn://svn.reactos.org/reactos/trunk@60065 97493ccd-5924-5043-b1f5-66cb403b36ce