[WIN32K/USER32]
 - Simplify an overcomplicated way to get buffer size from win32k
 - Do not spaghettize between string length and buffer size.
 - Properly use GetModuleFileName.

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@64938 97493ccd-5924-5043-b1f5-66cb403b36ce
[WIN32K]
 - Properly free classes small icon handles
 - Do not use LR_SHARED when copying them from the large icon. There's no reason for them to outlive the class.
Should fix remaining failures in user32:class that I introduced.

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@64939 97493ccd-5924-5043-b1f5-66cb403b36ce
[WIN32K]
 - Fix hook leaks.
User object manager creates object with 2 (two, deux, zwei, dos) reference counts.

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@64942 97493ccd-5924-5043-b1f5-66cb403b36ce
[FREELDR]
Move the BIOS call buffer to physical address 0x4000, making another page available at the top, moving the margin down to 0x9E000. Should fix boot with machines that have a large EBDA.
CORE-8692 #comment please retest.

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@64945 97493ccd-5924-5043-b1f5-66cb403b36ce
[NTOS:IO]
- Normalize, er.. simplify IopNormalizeImagePath a bit and use pool tagging

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@64946 97493ccd-5924-5043-b1f5-66cb403b36ce
[NTOSKRNL]
Do not try to dereference Irp->UserIosb if it is NULL, to avoid unnecessary exceptions (inside SEH).

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@64947 97493ccd-5924-5043-b1f5-66cb403b36ce
[USER32]
- Zero-initialize result in SendMessageTimeout
CORE-8699 #resolve

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@64949 97493ccd-5924-5043-b1f5-66cb403b36ce
[NTOS:IO]
- Don't delete the device node for root enumerated device objects on failure. It's pointless, since IopEnumerateDevice will just recreate it, and more importantly it causes a use-after-free because IopFreeDeviceNode does not unset the DeviceNode member of the device object extension, so IopEnumerateDevice will try to access the freed node
- Set the device object's DeviceNode pointer to NULL in IopFreeDeviceNode
- Use consistent pool tagging for device nodes
CORE-8671 #resolve

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@64950 97493ccd-5924-5043-b1f5-66cb403b36ce
[NTOS:IO]
- Introduce IopDriverLoadResource to protect against concurrent driver loading
CORE-8696 #resolve

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@64951 97493ccd-5924-5043-b1f5-66cb403b36ce
[NTOS:IO]
- Serialize device enumeration requests
CORE-8697 #resolve

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@64952 97493ccd-5924-5043-b1f5-66cb403b36ce
[WIN32K]
 - Add a proper Alpha blending implementation for 16bpp surfaces
CORE-8695

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@64953 97493ccd-5924-5043-b1f5-66cb403b36ce
[WIN32K]
 - Do not dereference hook objects when it's not needed.
 - Avoid use after free.
CORE-8698 #resolve

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@64954 97493ccd-5924-5043-b1f5-66cb403b36ce
[WIN32K]
 - Keep track of the PDEV which we create a compatible bitmap for.
 - Allow attaching a DDB to a DC if they are from the same PDEV
Fixes various problems after mode switching, including the infamous "Where is desk.cpl palette bitmap"

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@64955 97493ccd-5924-5043-b1f5-66cb403b36ce
[ADVAPI32]
* Move cred.c to the wine folder.
CORE-8540

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@64956 97493ccd-5924-5043-b1f5-66cb403b36ce
[ADVAPI32]
* Move sid.c to the wine folder as a starting point for security.c.
CORE-8540

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@64957 97493ccd-5924-5043-b1f5-66cb403b36ce
[ADVAPI32]
* Reorder functions and definitions to reduce difference to the Wine source file.
CORE-8540

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@64958 97493ccd-5924-5043-b1f5-66cb403b36ce
[ADVAPI32]
* Move PrivilegeCheck() to security.c.
CORE-8540

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@64959 97493ccd-5924-5043-b1f5-66cb403b36ce
[ADVAPI32]
* Move some functions from token.c to security.c.
CORE-8540

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@64962 97493ccd-5924-5043-b1f5-66cb403b36ce
[ADVAPI32]
* Reorder AllocateLocallyUniqueId() to reduce difference to Wine.
CORE-8540

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@64963 97493ccd-5924-5043-b1f5-66cb403b36ce
[WIN32K]
- Move call to UserRegisterClass out of SEH. All parameters are kernel pointers, so exceptions here are critical kernel bugs that shouldn't be hidden.
CORE-8702 #resolve

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