Commit graph

42242 commits

Author SHA1 Message Date
Amine Khaldi 995ef3a334 [VERSION]
- Update the referencing of IMAGE_RESOURCE_DIRECTORY_ENTRY fields (the structure was updated in the previous commit).

svn path=/branches/header-work/; revision=47247
2010-05-16 22:39:59 +00:00
Amine Khaldi ac05d7c73c [PSDK]
- winnt.h : ULONG -> DWORD and UCHAR-> BYTE in several structures, update SLIST_HEADER and co, add proper packing of RTL_CRITICAL_SECTION, update IMAGE_AUX_SYMBOL, ReplacesCorHdrNumericDefines, IMAGE_COR20_HEADER, IMAGE_RESOURCE_DIRECTORY_ENTRY, IMAGE_RUNTIME_FUNCTION_ENTRY, SYSTEM_POWER_CAPABILITIES, ACTIVATION_CONTEXT_INFO_CLASS and HEAP_INFORMATION_CLASS, replace IMAGE_LOAD_CONFIG_DIRECTORY with IMAGE_LOAD_CONFIG_DIRECTORY{32,64} with the appropriate conditional and apply consistent formatting for the rest.

svn path=/branches/header-work/; revision=47245
2010-05-16 22:15:24 +00:00
Amine Khaldi 615d59ca2e [PSDK]
- batclass.h : Introduce pragma once, apply a consistent formatting, apply appropriate conditionals, add some missing definitions and group related ones.
- winnt.h : Update JOBOBJECTINFOCLASS, BATTERY_REPORTING_SCALE and POWER_INFORMATION_LEVEL, introduce _ANONYMOUS_UNION in SYSTEM_LOGICAL_PROCESSOR_INFORMATION, and apply a consistent formatting for the rest.

svn path=/branches/header-work/; revision=47239
2010-05-16 12:23:45 +00:00
Amine Khaldi 077ed6cb51 [PSDK]
- Bring back TOKEN_STATISTICS alignment inclusions.

svn path=/branches/header-work/; revision=47230
2010-05-15 22:50:07 +00:00
Amine Khaldi fc4066c4cc [PSDK]
- ntsecpkg.h : merge recent changes from trunk.
- winnt.h : Add missing PROCESSOR_NUMBER, introduce _ANONYMOUS_UNION in NT_TIB{32,64}, update WELL_KNOWN_SID_TYPE & SID_NAME_USE, ULONG -> DWORD in LDT_ENTRY and TOKEN_GROUPS_AND_PRIVILEGES and a consistent formatting for the rest.
[FREELDR]
- setupldr.rbuild : merge recent changes from trunk.

svn path=/branches/header-work/; revision=47221
2010-05-15 16:53:39 +00:00
Amine Khaldi eeb2e93d2d [ARMDDK]
- We don't really need ExiTryToAcquireFastMutex declaration here.
[HAL]
- Fix export for ExTryToAcquireFastMutex. On x86 builds it should forward to ntoskrnl's ExiTryToAcquireFastMutex, arm has it's own implementation. Patch by Timo.

svn path=/branches/header-work/; revision=47204
2010-05-14 20:15:25 +00:00
Amine Khaldi 0756bc5fd0 [FREELDR]
- freeldr.rbuild : Apply a consistent formatting.
- Add the missing AcpiPresent variable to macharm.c
- Exclude a couple of code paths when building for ARM.
[ARMDDK]
- Add missing ExiTryToAcquireFastMutex declaration.

svn path=/branches/header-work/; revision=47202
2010-05-14 18:49:42 +00:00
Amine Khaldi 5b939ffc3c [NTOSKRNL]
- Fix ExInterlockedPopEntryList and ExInterlockedPushEntryList, they were not working at all. Brought to you by Timo ;)

svn path=/branches/header-work/; revision=47201
2010-05-14 18:40:23 +00:00
Amine Khaldi d052e38953 [INTRIN_ARM]
- Implement __yield and __break arm intrinsics.
[DDK]
- Relax INTERLOCKED_RESULT conditional definition.
[PSDK]
- Fix some nasty structure misalignments.
- Fix YieldProcessor definition for ARM.
[ARMDDK]
- Add several missing definitions.

svn path=/branches/header-work/; revision=47196
2010-05-14 11:45:14 +00:00
Amine Khaldi b596fbada4 [XDK]
- Add RESULT_ZERO, RESULT_NEGATIVE and RESULT_POSITIVE definitions for other architectures than X86
[DDK]
- Update ntddk.h to reflect XDK changes.

svn path=/branches/header-work/; revision=47176
2010-05-12 18:43:23 +00:00
Amine Khaldi 1f071790b9 [KDCOM]
- Include ntifs.h instead of ntddk.h (and don't include both at the same time).

svn path=/branches/header-work/; revision=47171
2010-05-12 18:19:05 +00:00
Amine Khaldi e360db369f [XDK]
- Remove RESULT_NEGATIVE, RESULT_ZERO and RESULT_POSITIVE from amd64/ke.h
- INTERLOCKED_RESULT isn't x86 only.
[DDK]
- Update wdm.h and ntddk.h to reflect the XDK changes.

svn path=/branches/header-work/; revision=47170
2010-05-12 13:02:44 +00:00
Amine Khaldi cf73dc7621 - Sync with trunk up to r46941.
[VMWINST]
- Rename FileExists() to DoesFileExist() to avoid clashing with the real API.

svn path=/branches/header-work/; revision=47155
2010-05-10 19:04:41 +00:00
Amine Khaldi f14be1ee47 [PSDK]
- Fix PREVENT_MEDIA_REMOVAL redefinition.
- Add some missing winnt.h and winuser.h definitions.
[NDK]
- Remove some redundant definitions (that now exist in winnt.h)
[KERNEL32]
- Remove a useless undef (although the hack above it still remains for now)
[ADVAPI32]
- Fix some TraceMessage params types.

svn path=/branches/header-work/; revision=47153
2010-05-09 22:53:41 +00:00
Amine Khaldi cd5c660bf9 Revert the sync.
We only can safely sync up to r46941.

svn path=/branches/header-work/; revision=47096
2010-05-03 16:42:07 +00:00
Amine Khaldi 69b36d050f Sync with trunk head (part 1 of 2)
svn path=/branches/header-work/; revision=47094
2010-05-03 12:54:59 +00:00
Amine Khaldi daef20d74b - DriverEntry is ULONG.
svn path=/branches/header-work/; revision=47092
2010-05-03 11:22:34 +00:00
Cameron Gutman 66482fa4f3 - Remove a forgotten debug print
svn path=/trunk/; revision=47091
2010-05-03 00:30:49 +00:00
Cameron Gutman c55eb25c06 [NDIS]
- Provide a IRP_MJ_CREATE and IRP_MJ_CLOSE handler for miniport drivers so IoGetDeviceObjectPointer doesn't fail (and consequently, IoSetDeviceInterfaceState)

svn path=/trunk/; revision=47090
2010-05-03 00:28:29 +00:00
Cameron Gutman 2fce2d1d8f [NETCFGX]
- Remove the hack that set DI_NEEDRESTART for all network adapters which prevented us from starting the miniport driver
- Part of the fix for bug 3716

svn path=/trunk/; revision=47089
2010-05-03 00:06:31 +00:00
Timo Kreuzer 567bf0c188 [NTDLL]
The harderror message for STATUS_DLL_NOT_FOUND expects an ANSI dll name.

svn path=/trunk/; revision=47088
2010-05-02 23:26:06 +00:00
Cameron Gutman 31c846d674 [VGA]
- Return SPS_ACCEPT_NOEXCLUDE from DrvSetPointerShape because we completed the requested operation successfully
- Patch by Daniel Zimmermann
- Fixes bug 4347

svn path=/trunk/; revision=47087
2010-05-02 21:04:47 +00:00
Johannes Anderwald dc3a34f70b [SETUPAPI]
- Store device settings in the "Device Parameters" key, as the kernel now does it too
- Fixes display of AC97 device in audio cpl

svn path=/trunk/; revision=47084
2010-05-02 19:19:28 +00:00
Michael Martin 91e196a64f [win32k]
- co_UserDestroyWindow: ThreadInfo->pDeskInfo->hShell holds the hWnd of the Shells Desktop Window. Set it to NULL if that windows is being destroyed. Fixes bug #4902.

svn path=/trunk/; revision=47082
2010-05-02 16:40:05 +00:00
Aleksey Bragin 2b896af128 Gabriel Ilardi:
- Update spanish %temp% path, part of bug 2482.

svn path=/trunk/; revision=47081
2010-05-02 11:47:19 +00:00
Michael Martin d94aa6cafd [win32k]
- IntMouseInput: Add the state of virtual keys to wParam before calling MsqInsertSystemMessage. Fixes bug #5066.
- Add and Remove MK_XBUTTON1/2 flags to CurInfo->ButtonsDown vice XBUTTON1/2.
- Code based on patches in bug #5066.

svn path=/trunk/; revision=47080
2010-05-02 11:34:13 +00:00
Eric Kohl 2d25ad0d85 - Convert hivedef_i386.inf to Unicode.
- Add Strings-Sections for several languages and add TEMP_DIR string.

Please translate the TEMP_DIR string as this is the sollution for bug #2482.

svn path=/trunk/; revision=47079
2010-05-01 22:17:34 +00:00
Eric Kohl 1f235be55f Delete ANSI version.
svn path=/trunk/; revision=47078
2010-05-01 22:16:44 +00:00
Eric Kohl f6cb22d04e Remove duplicate line. WRC complains about the control id already being in use.
svn path=/trunk/; revision=47077
2010-05-01 22:00:09 +00:00
Eric Kohl 4f7643e5b3 [CMLIB/NEWINFLIB/MKHIVE]
- Make cmlib, newinflib and mkhive use the Wine unicode lib instead of the host_wcsfuncs lib.
- Only the header file include/host/wcsfuncs.h is still used to map str*W functions to wcs* functions in WIN32 builds.
- Remove obsolete rtl functions.
- Make mkhive use the newinflib instead of inflib.

ATTENTION: This might break the build bot although it has been tested on Windows and Linux!!!

svn path=/trunk/; revision=47076
2010-05-01 20:17:11 +00:00
Michael Martin 35ff67b13e [win32k]
- Only call ExFreePool.. if Buffer is not NULL, which can occur if the Unicode String MessageNameUnsafe coming from user mode is incorrect. Fixes a bugcheck when using OllyDbg V2.0.

svn path=/trunk/; revision=47075
2010-05-01 13:32:38 +00:00
Timo Kreuzer f4fd1abac0 [GDI32]
- Fix pointer arithmetics in the gdi batch code (&pTeb->GdiTebBatch.Buffer[0] is a PULONG, but pTeb->GdiTebBatch.Offset is a byte offset)
- To prevent this from happening again, refactor the code to use one common routine GdiAllocBatchCommand to do most of the stuff.
- Reenable gdi batch for SelectObject
- Fixes gdi handle leak, causes some drawing problems in Acrobat reader, but those are less critical and I'll investigate those.

svn path=/trunk/; revision=47074
2010-05-01 13:02:46 +00:00
Michael Martin 18af76559c [win32k]
- Revert the hack done in 47059 to apply a better solution. 
- co_IntCreateWindowEx: Add the WNDS2_WMCREATEMSGPROCESSED flag to state2 member of WND after sending the WM_CREATE message.
- By setting this flag it can be examined elsewhere to determine if the window was created successfully.
- co_UserDestroyWindow: Examine above mentioned flag to make sure the windows was created before calling hook procedure to inform of destroying window.

svn path=/trunk/; revision=47073
2010-05-01 12:02:23 +00:00
Johannes Anderwald daff774a1a - Partly revert 470470
svn path=/trunk/; revision=47072
2010-05-01 10:47:23 +00:00
Eric Kohl d771ba8ec6 [NEWINFLIB]
- Change Unicode string functions from wcs* to str*W because glibc (Linux build) provides the wcs* functions but they use a wchar_t size of 32 bits instead of the required 16 bits.
- Add a str*W to wcs* wrapper (infrosrtl.c) in order to use the wcs* function for the WIN32 build.
- Add required str*W functions to the host library.

ATTENTION: This might break the build bot although it has been tested on Windows and Linux!!!

svn path=/trunk/; revision=47071
2010-05-01 10:43:39 +00:00
Johannes Anderwald 06ef98d273 [WIN32K]
- Add an assert to PostTimerMessages to catch null pointer windows
- Add another assert to catch special windows (Window == 1)
- Improve check if the window is '1'

svn path=/trunk/; revision=47070
2010-05-01 10:42:45 +00:00
Johannes Anderwald a0790104cc [WIN32K]
<bug>
- The timer implementation uses a bitmap to store window-less timers. As an optimization to find the first free index, it uses the variable "HintIndex" which points to the first timer index. In order to find the next free index, the RtlFindClearBitsAndSet function is used. When a new timer is allocated, the "HintIndex" variable is increased, which increases the search offset. Now if more than NUM_WINDOW_LESS_TIMERS (1024) timers are allocated, no more timers can be allocated because RtlFindClearBitsAndSet will claim no more index are available, because the free indexes are below the search offset. 
</bug>
<fix>
Everytime a timer gets freed, store the freed index in "HintIndex". As a result the timer implementation will always find a free timer index (when there is one)
</fix>

svn path=/trunk/; revision=47069
2010-05-01 09:55:16 +00:00
Cameron Gutman e66431b123 [PCI]
- Store correct bus and slot information in resource lists that we give in response to IRP_MN_QUERY_RESOURCES and IRP_MN_QUERY_RESOURCE_REQUIREMENTS
- Fixes bug 4354

svn path=/trunk/; revision=47068
2010-05-01 01:52:47 +00:00
Timo Kreuzer 9bb0bed655 [WIN32K]
- Fix IntDumpHandleTable, it was very broken.

svn path=/trunk/; revision=47067
2010-04-30 22:48:43 +00:00
Timo Kreuzer 8dc269c258 [NTOSKRNL]
- Fix RtlWalkFrameChain to do usermode back traces for threads that are not system threads. Also use _SEH2_YIELD when leaving the SEH block.

svn path=/trunk/; revision=47066
2010-04-30 22:47:44 +00:00
Michael Martin 0409ef75e8 [win32k]
- When calling NtUserCallNextHookEx check that the current hook is not the first in the chain. If so don't call the hook proc and just return, as it has already been called and it makes no sense for the NextHook function to call the first hook proc. Fixes bugs #4461 and #4407.
- The previous commit claiming to fix bug #4461 was incorrect, it may have actually fixed bug #5320. Testers please test.

svn path=/trunk/; revision=47065
2010-04-30 11:23:17 +00:00
Cameron Gutman 174a4670ea [NTOSKRNL]
- Fix a horrible casting bug
- EventCategoryData1 is a pointer to a GUID not a pointer to a UNICODE_STRING
- Convert the GUID into a UNICODE_STRING properly by using RtlStringFromGUID and pass that string to RtlCompareUnicodeString
- Fix another bug which results in us sending EventCategoryHardwareProfileChange and EventCategoryTargetDeviceChange events to everyone registered for PnP notifications
- Fixes sending EventCategoryDeviceInterfaceChange notifications that happen after calling IoRegisterPlugPlayNotification

svn path=/trunk/; revision=47064
2010-04-29 22:35:49 +00:00
Timo Kreuzer 04c6b45023 [MSIMTF]
Silence debug spam

svn path=/trunk/; revision=47063
2010-04-29 20:51:28 +00:00
Benedikt Freisen 93baff6f05 [PAINT]
- angle rounding for lines and polygons when SHIFT key is pressed
- equal width and height for (rounded) rectangles and ellipses when SHIFT key is pressed
Based on a patch by Katayama Hirofumi, see #5285

svn path=/trunk/; revision=47062
2010-04-29 19:56:18 +00:00
Cameron Gutman 8e5ba15296 [INF]
- Comment out the service installation for VBE and VGA so the configuration set in first-stage won't get overwritten
- Nasty graphical glitches still remain in VGA mode
- Fixes bug 2073 and bug 4192

svn path=/trunk/; revision=47061
2010-04-29 19:20:32 +00:00
Timo Kreuzer 91a35b7ec1 [NTOSKRNL]
- On backtraces, print the address of the call instruction (assumed 5 bytes lentgh) instead of the return address, which in many cases does not make sense. (WinDbg does it this way, too)
- Fix Ke386SaveFpuState to store the fpu state in the buffer, but in the pointer to the buffer
- Anable Ke386SaveFpuState to save the floating point state in KiNpxHandler and KiTrap13Handler, so we know what error we got.
- Disable saving debug registers in the trap frame, as long as the kernel doesn't support this
- Fixes ntdll_winetest exception / OllyDbg freeze/reboot

See issue #5301 for more details.

svn path=/trunk/; revision=47060
2010-04-29 16:39:52 +00:00
Michael Martin d34a8d86bc [win32k]
- Fix a problem where application that used WH_CBT hook procedures were receiving destroy window notification on windows that were never created. The window was never created because the application had returned a non zero value when it was notified of window creation, which effectively destroys the window and returns failure for window creation. See CBTProc Function on MSDN. Fixes bug #4461.

svn path=/trunk/; revision=47059
2010-04-29 13:41:32 +00:00
Giannis Adamopoulos 0ec839d544 [win32k]
- Do not do callbacks to user mode while holding a lock
- Fix when WH_MOUSE_LL and WH_JOURNALRECORD are called
See issue #4926 for more details.

svn path=/trunk/; revision=47058
2010-04-29 07:48:43 +00:00
Cameron Gutman 3ec3baec08 [NTOSKRNL]
- Rewrite IoOpenDeviceInterfaceRegistryKey using the same helper function that is used in IoGetDeviceInterfaces and IoSetDeviceInterfaceState to reduce complexity and chance of bugs (tested and confirmed working)
- Revert r46748
- Fixes bug #5321 (AC97)

svn path=/trunk/; revision=47057
2010-04-29 01:44:20 +00:00
Cameron Gutman 62b639c945 [NTOSKRNL]
- Fix length calculation of symbolic links with reference strings attached
- Fixes opening registry keys for symbolic links with reference strings (such as audio devices)

svn path=/trunk/; revision=47056
2010-04-28 20:06:28 +00:00