reactos.git
13 years agoRemove BOM from UTF-8 rc files.
Sylvain Petreolle [Tue, 20 Jul 2010 16:37:22 +0000 (16:37 +0000)]
Remove BOM from UTF-8 rc files.

svn path=/trunk/; revision=48138

13 years ago[HEADERS]
Amine Khaldi [Tue, 20 Jul 2010 15:51:44 +0000 (15:51 +0000)]
[HEADERS]
- Make the header inclusion MSVC compatible.
- compstui now compiles with MSVC.

svn path=/trunk/; revision=48137

13 years ago[FREELDR]
Timo Kreuzer [Tue, 20 Jul 2010 15:45:53 +0000 (15:45 +0000)]
[FREELDR]
- Update isobtrt.asm to handle new PE bootloader, should fix bootcdregtest
- Disable debugging in isoboot.asm

svn path=/trunk/; revision=48136

13 years ago[HEADERS]
Amine Khaldi [Tue, 20 Jul 2010 14:15:51 +0000 (14:15 +0000)]
[HEADERS]
- Make the header inclusion MSVC compatible.
- localspl now compiles with MSVC.

svn path=/trunk/; revision=48135

13 years ago[HEADERS]
Amine Khaldi [Tue, 20 Jul 2010 14:11:43 +0000 (14:11 +0000)]
[HEADERS]
- Make the header inclusion MSVC compatible.

svn path=/trunk/; revision=48134

13 years ago[MINGW-W64]
Amine Khaldi [Tue, 20 Jul 2010 13:04:56 +0000 (13:04 +0000)]
[MINGW-W64]
- Group MSVC related definitions.

svn path=/trunk/; revision=48133

13 years ago[ACPI]
Amine Khaldi [Tue, 20 Jul 2010 12:11:17 +0000 (12:11 +0000)]
[ACPI]
- Define WIN32 when compiling with MSVC

svn path=/trunk/; revision=48132

13 years ago[MINGW-W64]
Amine Khaldi [Tue, 20 Jul 2010 12:10:10 +0000 (12:10 +0000)]
[MINGW-W64]
- Define WIN32_LEAN_AND_MEAN.
- Include stdlib.h for _winmajor.

svn path=/trunk/; revision=48131

13 years ago[MINGW-W64]
Amine Khaldi [Tue, 20 Jul 2010 10:14:07 +0000 (10:14 +0000)]
[MINGW-W64]
- reactos.diff was pushed upstream, so it's not needed anymore.
- Add a missing section.
- Include sect_attribs.h into tlssup.c

svn path=/trunk/; revision=48130

13 years ago[CMD]
Timo Kreuzer [Tue, 20 Jul 2010 04:22:04 +0000 (04:22 +0000)]
[CMD]
Remove BOMs from rc files. Let me know if something's wrong with that.

svn path=/trunk/; revision=48129

13 years ago[RBUILD]
Timo Kreuzer [Tue, 20 Jul 2010 03:01:57 +0000 (03:01 +0000)]
[RBUILD]
For amd64 builds, invoke wrc directly, instead of using gcc to preprocess the files. The reason is that newer gcc versions (like 4.5.0) don't support multiline continuation  (backslash-newline) except for preprocessor directives, but that breaks wine resource strings. This might have to be done for i386 builds too, sooner or later.

svn path=/trunk/; revision=48128

13 years ago[wine/commctrl.h]
Timo Kreuzer [Tue, 20 Jul 2010 02:53:55 +0000 (02:53 +0000)]
[wine/commctrl.h]
Don't use #include_next, instead imclude psdk/commctrl.h

svn path=/trunk/; revision=48127

13 years ago[sdkddkver.h]
Timo Kreuzer [Tue, 20 Jul 2010 02:52:40 +0000 (02:52 +0000)]
[sdkddkver.h]
Add UL suffix to some constants.

svn path=/trunk/; revision=48126

13 years ago[rpcndr.h]
Timo Kreuzer [Mon, 19 Jul 2010 23:47:00 +0000 (23:47 +0000)]
[rpcndr.h]
Add a tag to NDR_SCONTEXT struct. MS headers don't have it, but gcc 4.5.x requires it, because without the tag, the struct would be from an unnamed namespace and can't be shared by different compilation units in C++. Yeah whatever...

svn path=/trunk/; revision=48125

13 years ago[FREELDR]
Timo Kreuzer [Mon, 19 Jul 2010 23:18:31 +0000 (23:18 +0000)]
[FREELDR]
Convert freeldr and setupldr to PE format.
Previously freeldr was a raw binary file, which made handling by the bootsector very easy, but it disqualified it from proper debugging with gdb using symbols. This is possible with having unstripped PE files.
As we don't have any space to do proper PE loading from the bootsector (I already had to trim some strings to get enough space for the new jump code), we need to make sure, that the PE file doesn't contain a .bss section, which is achieved by a linker script. The next thing is to make sure, we don't have any symbols in the output file, because they would make freeldr too big to be loaded into memory and they are useless anyway. On the other hand we like to keep the symbols in the .nostrip.sys files if requested, as this is the primary purpose. This is in theory not a problem, as we could simply strip the file at the end, but binutils throw a monkey wrench in our plans: both strip and objcopy disrespect the file alignment and create unaligned sections, that don't naturally match their VAs. This is solved by hacking rbuild to do invoke ld 2 times, one time without and one time with the symbols (if requested).
Now the bootsectors also got some changes: instead of jumping to the loading address (0x8000) they get the address of the entry point from the image optional header. This is slightly simplified, by assuming the NtHeader begins at offset 0xE0. This finally allows source level debugging of freeldr with gdb.

svn path=/trunk/; revision=48124

13 years ago[WIN32K]
Jérôme Gardou [Mon, 19 Jul 2010 22:41:35 +0000 (22:41 +0000)]
[WIN32K]
  - rewrite UserDrawIconEx, taken from yarotows, with same small modifications.
Fixes a whole bunch of user32:cursoricon tests

svn path=/trunk/; revision=48123

13 years ago[RTL]
Timo Kreuzer [Mon, 19 Jul 2010 21:18:33 +0000 (21:18 +0000)]
[RTL]
- Update amd64 specific code to be MSVC compatible
- Remove Leading underscores from symbols

svn path=/trunk/; revision=48122

13 years ago[ADVAPI32]
Eric Kohl [Mon, 19 Jul 2010 20:27:36 +0000 (20:27 +0000)]
[ADVAPI32]
LookupAccountSidA:
- Change variable prefixes according to the variable type.
- Initialize Unicode strings after the call to LookupAccountSidW because the string length is not set properly otherwise.

svn path=/trunk/; revision=48121

13 years ago[NDK]
Timo Kreuzer [Mon, 19 Jul 2010 19:43:09 +0000 (19:43 +0000)]
[NDK]
Protect LDT_ENTRY from redefinition

svn path=/trunk/; revision=48120

13 years ago[KERNEL32]
Timo Kreuzer [Mon, 19 Jul 2010 18:52:18 +0000 (18:52 +0000)]
[KERNEL32]
Merge r34770, r36475, r36990, r37019, r43852, r43952, r43954, r43979, r43981, r46868 from amd64 branch:
- Multiple ULONG / SIZE_T fixes
- Use UlongToHandle / HandleToUlong to convert between DWORD ProcessId and ClientId.UniqueProcess
- implement amd64 version of _dump_context
- Make IsConsoleHandle 64bit safe
- Update kernel32.pspec with a lot of Win7 (commented out) and some amd64 specific exports, add some more comments and fix sorting
- Implement amd64 version of BaseThreadStartupThunk and BaseProcessStartThunk
- Stub amd64 version of SwitchToFiber
- Implement amd64 version of BasepInitializeContext

svn path=/trunk/; revision=48119

13 years agoLast code in PciScanBus: call to PciGetfunctionLimits now implement (call PcipGetfunc...
evb [Mon, 19 Jul 2010 16:35:52 +0000 (16:35 +0000)]
Last code in PciScanBus: call to PciGetfunctionLimits now implement (call PcipGetfunctionLimits if PciSkipThisFunction say no)
PcipGetfunctionLimits support PCI_HACK_CRITICAL_DEVICE and PCI Debug Device by use IPI code (PciExecuteCriticalSystemRoutine implement)
PciConfigurators table define for Device, PCI-to-PCI (PP) Bridge plus CardBus Bridge but all configurator stub now
Configurator chain: Init (Massage) -> [WRITE INIT] (PciWriteLimitsAndRestoreCurrent) -> Restore -> SaveLimit -> SaveCurrent
Support ExpectedWritebackFailure
Fix bug in PciApplyHacks (found by me testing sir_richard code)
Now pass 7000 SLOC ^_^;~ Good night!

svn path=/trunk/; revision=48118

13 years ago[HALACPI]: Wherever I(?) copy pasted the original HalAdjustResourceList from, in...
Sir Richard [Mon, 19 Jul 2010 15:32:13 +0000 (15:32 +0000)]
[HALACPI]: Wherever I(?) copy pasted the original HalAdjustResourceList from, in the ACPI HAL, I have no idea, but the definition was totally wrong. Should fix the build.

svn path=/trunk/; revision=48117

13 years agoJoint patch
Sir Richard [Mon, 19 Jul 2010 15:15:39 +0000 (15:15 +0000)]
Joint patch
By sir_richard: [PCIX]: - Implement PciIsSlotPresentInParentMethod for ACPI query, and PcoDecodeEnable utility function.
                 - Implement PciConfigureIdeController based on WDHC Whitepaper "How Windows Switches a Controller to Native Mode". Check for PciEanbleNativeModeATA in registry, InitSafeBootMode, and call the ACPI driver to evaluate if NATA is present on the slot. Only configure the controller if both channels support native mode, as this is a Windows restriction.
                        - Implement PciApplyHacks for enumeration and resource update cases. In the first case, we handle legacy DEC Alpha Intel i82375 and i82378 PCI-to-(E)ISA bridges with invalid class codes. In the second, we configure IDE controllers for Native mode, except the OPTi Viper-M, which is known to cause issues. We also support cards with legacy VGA decodes by telling the arbiter to enable full access to the rangesm and finally we completely disable the decodes on Compaq PCI Hotplug Controllers (Revision 17) on PAE systems, as they have bugs handling 64-bit addresses. Finally, on resource updates, we apply a vendor-specific errata to the IBM 20H2999 PCI Docking Bridge (Hotplug) used on Thinkpad 600 Series laptops, and we attempt to avoid issues that can happen on certain devices that are plugged into an ICH1/2/3/4 Intel Hub when it has been configured to do subtractive decode. Full information on these workarounds can be seen in the comments. Finally, we also enable CardBUS devices for ACPI-compliant mode, by crossing out the LegacyBaseAddress in the CardBUS Type 2 PCI Configuration Header.
- Miscelleaneous code cleanups.
By eVb: More PciScanBus support, for debug PCI caps that driver use are dump, and detect nonBIOS configure device (spec is said that CacheLineSize != 0, LatencyTimer != 0 (on PCI-X, != 64)), if found NeedsHotPlugConfiguration to be set
By eVb: Support PCI_HACK_VIDEO_LEGACY_DECODE (call ario_ApplyBrokenVideoHack, but no arb support to do work)

svn path=/trunk/; revision=48116

13 years ago[NDK]: Add a missing HAL function.
Sir Richard [Mon, 19 Jul 2010 15:14:34 +0000 (15:14 +0000)]
[NDK]: Add a missing HAL function.
[PCI]: Update hack flags.

svn path=/trunk/; revision=48115

13 years ago[MINGW]
Amine Khaldi [Mon, 19 Jul 2010 09:58:51 +0000 (09:58 +0000)]
[MINGW]
- __attribute__ ((__unused__)) -> __UNUSED_PARAM, which is MSVC compatible.

svn path=/trunk/; revision=48114

13 years ago[PSDK]
Amine Khaldi [Mon, 19 Jul 2010 01:06:32 +0000 (01:06 +0000)]
[PSDK]
- Fix IOCTL_STORAGE_* redefinitions.

svn path=/trunk/; revision=48112

13 years ago[CRT]
Amine Khaldi [Mon, 19 Jul 2010 00:25:54 +0000 (00:25 +0000)]
[CRT]
- Fix the double use of _CRTIMP.

svn path=/trunk/; revision=48111

13 years ago- Fix _InterlockedExchangeAdd16, _InterlockedCompareExchangePointer and _InterlockedE...
Amine Khaldi [Sun, 18 Jul 2010 22:43:04 +0000 (22:43 +0000)]
- Fix _InterlockedExchangeAdd16, _InterlockedCompareExchangePointer and _InterlockedExchangePointer intrinsics.

svn path=/trunk/; revision=48110

13 years agoMerge r45430 from amd64-bringup : Add #pragma intrinsic for msvc intrinsics.
Amine Khaldi [Sun, 18 Jul 2010 21:55:54 +0000 (21:55 +0000)]
Merge r45430 from amd64-bringup : Add #pragma intrinsic for msvc intrinsics.

svn path=/trunk/; revision=48109

13 years ago[ADVAPI32/LSASRV]
Eric Kohl [Sun, 18 Jul 2010 20:34:34 +0000 (20:34 +0000)]
[ADVAPI32/LSASRV]
- LookupAccountNameW: Call LsaLookupNames instead of returning a dummy name.
- Implement LsaLookupNames. Calls LsarLookupNames.
- LsarLookupNames: return dummy names.

svn path=/trunk/; revision=48108

13 years agoCan't sleep so write more source codes! add scan bus functions to get power caps...
evb [Sun, 18 Jul 2010 18:58:33 +0000 (18:58 +0000)]
Can't sleep so write more source codes! add scan bus functions to get power caps (PciGetEnhancedCapabilities) and AGP caps, use PciReadDeviceCapability util function, now can get wake levels, PCI power state plus target AGP ID. Now can find PCI Device that can't sleep neither! Ha-ha!
Support PCI_HACK_NO_PM_CAPS, PCI_HACK_PRESERVE_COMMAND, PCI_HACK_DONT_DISABLE_DECOES
Add scan bus function to set power for PCI, for now to power up (PciSetPowerManagedDevicePowerState), with support for device that is critical/broken (PciCanDisableDecodes)
Check spec-correct with PciStallForPowerChange after define PciPowerDelayTable for D0<->D3 crossmatrix spec timings (add PciReadDeviceConfig for support)
If bad spec timing use PCI verifier support (PciVerifierRetrieveFailureData) + STATUS_DEVICE_PROTOCOL_ERROR
Add PciVerifierFailureTable with all failure type
Almost the time for resource discovery of BARs!

svn path=/trunk/; revision=48107

13 years ago[W32KNAPI] - More tests to NtUserGetIconInfo
Jérôme Gardou [Sun, 18 Jul 2010 16:57:32 +0000 (16:57 +0000)]
[W32KNAPI]  - More tests to NtUserGetIconInfo

svn path=/trunk/; revision=48106

13 years agoFix my grotesque mistake of r48104
Jérôme Gardou [Sun, 18 Jul 2010 16:45:05 +0000 (16:45 +0000)]
Fix my grotesque mistake of r48104

svn path=/trunk/; revision=48105

13 years ago[W32KNAPI] - Add some more NtUserGetIconInfo tests
Jérôme Gardou [Sun, 18 Jul 2010 16:40:15 +0000 (16:40 +0000)]
[W32KNAPI]  - Add some more NtUserGetIconInfo tests

svn path=/trunk/; revision=48104

13 years ago[W32KNAPI] - Add some more NtUserGetIconInfo tests
Jérôme Gardou [Sun, 18 Jul 2010 16:34:14 +0000 (16:34 +0000)]
[W32KNAPI]  - Add some more NtUserGetIconInfo tests

svn path=/trunk/; revision=48103

13 years ago[PSDK]
Amine Khaldi [Sat, 17 Jul 2010 21:19:38 +0000 (21:19 +0000)]
[PSDK]
- Fix a couple of FIXMEs : UNALIGNED and RESTRICTED_POINTER definitions

svn path=/trunk/; revision=48102

13 years ago[LSASRV]
Eric Kohl [Sat, 17 Jul 2010 18:15:34 +0000 (18:15 +0000)]
[LSASRV]
LsarLookupSids: Return ReferencedDomains information.

svn path=/trunk/; revision=48101

13 years agoMore PciScanBus codes now to check saved PCI BIOS config header saved in registry...
evb [Sat, 17 Jul 2010 16:53:18 +0000 (16:53 +0000)]
More PciScanBus codes now to check saved PCI BIOS config header saved in registry (PciGetBiosConfig, PciSaveBiosConfig) and support load save compare (PcipIsSameDevice) if change in interrupt line
Also for interrupt line use HAL to get parent bus IRQ# if device connected (PciGetAdjustedInterruptLine)
For PCI debug HW PciIsDeviceOnDebugPath to detect, but have not real machine with this kind of device to test
Support PCI_HACK_NO_SUBSYSTEM and PCI_HACK_NO_SUBSYSTEM/REVISION_AFTER_D3 for when compareing
New config function required PciWriteDeviceConfig to update IRQ line from BIOS registry data
Save initial, current Command enables to PDO extension, interrupt data too

svn path=/trunk/; revision=48100

13 years agoImplement PciPdoCreate and add all PDO IRP stub functions, set dispatch table for...
evb [Sat, 17 Jul 2010 15:59:09 +0000 (15:59 +0000)]
Implement PciPdoCreate and add all PDO IRP stub functions, set dispatch table for major/minor command, add PciIrpInvalidDeviceRequest
Fix bug in PciFindPdoByFunction should check device slot info too
Add more enumeration codes in PciScanBus to create PDO
PCI_HACK_FAKE_CLASS_CODE support
Build PDO extension, set ready for PnP manger, now 41 QDR returned
Add PCI/CardBus Bridge to list
Detect bridge/IDE controller with no power down support, hack for Intel 82375 PCI to EISA bridge for Alpha thanks to sir_richard
QUERY_ID is sent to PDOs now!

svn path=/trunk/; revision=48099

13 years agoMore implement of PciScanBus, now read hack flags from table (PciGetHAckFlags), and...
evb [Sat, 17 Jul 2010 15:09:19 +0000 (15:09 +0000)]
More implement of PciScanBus, now read hack flags from table (PciGetHAckFlags), and check for critical device (PciIsCriticalDeviceClass) and VGA device on PCI bridge
Do check for skipping some function (double decker ghost, Intel Alder SMP Pentium Pro machine, hacl flag, more), PciSkipThisfunction
Do check for PDO already exist for function (PciFindPdoByFunction)
Finish impement PciFindParentPciFdoExtension

svn path=/trunk/; revision=48098

13 years ago[PSDK]
Amine Khaldi [Sat, 17 Jul 2010 13:13:18 +0000 (13:13 +0000)]
[PSDK]
- Add missing netevent.h definitions.

svn path=/trunk/; revision=48097

13 years ago[DDK]
Amine Khaldi [Sat, 17 Jul 2010 10:09:09 +0000 (10:09 +0000)]
[DDK]
- Move netevent.h to PSDK.

svn path=/trunk/; revision=48096

13 years ago[DDK]
Amine Khaldi [Sat, 17 Jul 2010 09:42:56 +0000 (09:42 +0000)]
[DDK]
- Move ntddndis.h to PSDK.

svn path=/trunk/; revision=48095

13 years ago[PSDK]
Amine Khaldi [Sat, 17 Jul 2010 09:01:00 +0000 (09:01 +0000)]
[PSDK]
- Fix a couple of typos

svn path=/trunk/; revision=48094

13 years ago[LSASRV]
Eric Kohl [Sat, 17 Jul 2010 07:37:47 +0000 (07:37 +0000)]
[LSASRV]
Use a single table for mapping privilege names to values and values to names.

svn path=/trunk/; revision=48093

13 years ago[KERNEL32]
Timo Kreuzer [Sat, 17 Jul 2010 05:18:31 +0000 (05:18 +0000)]
[KERNEL32]
DWORD -> SIZE_T in ReadProcessMemory

svn path=/trunk/; revision=48092

13 years agoAdd config interface start (PciReadWriteConfigSpace, PciReadSlotConfig)
evb [Sat, 17 Jul 2010 01:31:26 +0000 (01:31 +0000)]
Add config interface start (PciReadWriteConfigSpace, PciReadSlotConfig)
Add PDO_EXTENSION structure and PCI_FUNCTION_RESOURCES, now delete #if0 in old code since PDO_EXTENSION is now exist defintion
Add ID Class/Subclass to description functions (PciGetDeviceDescriptionMessage, PciGetDescriptionMessage), use pciclass.mc from sir_richard
New debug: PciDebugDumpCommonConfig
Implement IRP_MN_QUERY_DEVICE_RELATIONS with PciFdoIrpQueryDeviceRelations and PciQueryDeviceRelations
Begin PciScanBus, now just dump all found device with no more work (0 QDR return)

svn path=/trunk/; revision=48091

13 years agoFix CryptReleaseContext parameter, wine uses an outdated version (< NTDDI_WINXP)
Timo Kreuzer [Fri, 16 Jul 2010 21:30:29 +0000 (21:30 +0000)]
Fix CryptReleaseContext parameter, wine uses an outdated version (< NTDDI_WINXP)

svn path=/trunk/; revision=48090

13 years ago[WS2_32]
Timo Kreuzer [Fri, 16 Jul 2010 20:24:32 +0000 (20:24 +0000)]
[WS2_32]
DWORD -> DWORD_PTR

svn path=/trunk/; revision=48089

13 years ago[VIDEOPRT]
Timo Kreuzer [Fri, 16 Jul 2010 19:20:49 +0000 (19:20 +0000)]
[VIDEOPRT]
Merge r40926 from amd64 branch:
return ERROR_INVALID_FUNCTION on amd64, not ERROR_INVALID_ACCESS from VideoPortEn/DisableInterrupt. Fixes compilation of videoprt for amd64.

svn path=/trunk/; revision=48088

13 years ago[NTOSKRNL]
Timo Kreuzer [Fri, 16 Jul 2010 17:53:00 +0000 (17:53 +0000)]
[NTOSKRNL]
- #if out RtlpCaptureStackLimits on amd64 as well

svn path=/trunk/; revision=48087

13 years ago[NDK]
Timo Kreuzer [Fri, 16 Jul 2010 17:20:46 +0000 (17:20 +0000)]
[NDK]
Merge r44053 from amd64 branch:
- Add KEXCEPTION_FRAME

svn path=/trunk/; revision=48086

13 years ago[NTOSKRNL]
Timo Kreuzer [Fri, 16 Jul 2010 17:14:53 +0000 (17:14 +0000)]
[NTOSKRNL]
Add MM_HIGHEST_VAD_ADDRESS for amd64

svn path=/trunk/; revision=48085

13 years ago[NTOSKRNL]
Timo Kreuzer [Fri, 16 Jul 2010 16:30:05 +0000 (16:30 +0000)]
[NTOSKRNL]
#if out another broken C_ASSERT on amd64

svn path=/trunk/; revision=48084

13 years ago[NTOSKRNL]
Timo Kreuzer [Fri, 16 Jul 2010 15:11:44 +0000 (15:11 +0000)]
[NTOSKRNL]
Comment out a broken C_ASSERT on amd64 to make it compile.

svn path=/trunk/; revision=48083

13 years ago[CRT]
Timo Kreuzer [Fri, 16 Jul 2010 15:08:03 +0000 (15:08 +0000)]
[CRT]
Move #include <precomp.h> to the top, as precompiled headers must be the first thing that is included or it won't take advantage of being precompiled

svn path=/trunk/; revision=48082

13 years ago[NTOSKRNL]
Timo Kreuzer [Fri, 16 Jul 2010 14:56:36 +0000 (14:56 +0000)]
[NTOSKRNL]
ULONG -> SIZE_T

svn path=/trunk/; revision=48081

13 years agoFix build, sorry. Thanks Timo.
Gabriel Ilardi [Fri, 16 Jul 2010 13:37:29 +0000 (13:37 +0000)]
Fix build, sorry. Thanks Timo.

svn path=/trunk/; revision=48080

13 years agoMerge r44143 from amd64 branch
Timo Kreuzer [Fri, 16 Jul 2010 13:23:43 +0000 (13:23 +0000)]
Merge r44143 from amd64 branch
Initialize MmDebugPte from MiDebugMapping variable instead of using MiAddressToPte for a constant initializer. This way the page can be set dynamically. Use MmDebugPte to determine if ready for mapping physical pages.

svn path=/trunk/; revision=48079

13 years ago[CRT]
Gabriel Ilardi [Fri, 16 Jul 2010 13:00:02 +0000 (13:00 +0000)]
[CRT]
Add a debug print to help bugs like 5486.

svn path=/trunk/; revision=48078

13 years ago[PATCH] user32: DrawText: CJK and Thai line-wrapping
Daniel Reimer [Fri, 16 Jul 2010 12:52:37 +0000 (12:52 +0000)]
[PATCH] user32: DrawText: CJK and Thai line-wrapping
[PATCH] appwiz: check if path is valid
Both by Katayama Hirofumi

svn path=/trunk/; revision=48077

13 years ago[NTOSKRNL]
Timo Kreuzer [Fri, 16 Jul 2010 12:27:40 +0000 (12:27 +0000)]
[NTOSKRNL]
ULONG -> ULONG_PTR

svn path=/trunk/; revision=48076

13 years agoIRP_MN_START_DEVICE implement for ROOT FDO (PciFdoStartDevice)
evb [Fri, 16 Jul 2010 01:14:52 +0000 (01:14 +0000)]
IRP_MN_START_DEVICE implement for ROOT FDO (PciFdoStartDevice)
PciInitializeArbiterRanges implement to scan arbiter   not yet construct since Arb library missing
Add PCI state machine (PciBeginStateTransition, PciCancelStateTransition, PciCommitStateTransition) andtransition array (PnpStateTransitionArray) to check if valid
Now IRP_MN_QUERY_DEVICE_RELATIONS sent to ROOT FDO means time to enumerate bus!

svn path=/trunk/; revision=48075

13 years agoFix for code to handle IRP dispatching when unrecognized IRP (Thanks you sir_richard)
evb [Fri, 16 Jul 2010 00:39:54 +0000 (00:39 +0000)]
Fix for code to handle IRP dispatching when unrecognized IRP (Thanks you sir_richard)
Add FDO IRP_MN_QUERY_INTERFACE support (it calls PciQueryInterface)
Add all PCI interface descriptor: PciLocationInterface (GUID_PNP_LOCATION_INTERFACE), PciPmeInterface (GUID_PCI_PME_INTERFACE), PciCardbusPrivateInterface (GUID_PCI_CARDBUS_INTERFACE_PRIVATE), PciLegacyDeviceDetectionInterface (GUID_LEGACY_DEVICE_DETECTION_STANDARD), AgpTargetInterface (GUID_AGP_TARGET_BUS_INTERFACE_STANDARD), PciRoutingInterface (GUID_INT_ROUTE_INTERFACE_STANDARD), BusHandlerInterface (GUID_BUS_INTERFACE_STANDARD) and stub initializer and constructor.
Add missing devhere.c interface file
Add all PCI arbiter descritptor: ArbiterInterfaceBusNumber, ArbiterInterfaceMemory, ArbiterInterfaceIo. Write constructor stub but not handled ArbitersInitialized == TRUE
Also add last-resort PCI interface: TranslatorInterfaceInterrupt (GUID_TRANSLATOR_INTERFACE_STANDARD) and part implement tranirq_Constructor
Add PciQueryInterface to find correct FDO/PDO/ROOT interface for a request and call interface constructor
Fix interface signatures, fix interface constructor type and PCI_INTERFACE, add interface flags (Thanks sir_richard)
Fix Aribtriter code (Thanks sir_richard)
Now another 1200 codes added, soon time for enumeration code!

svn path=/trunk/; revision=48074

13 years agoMerge 36852, 37322, 37333, 37334, 43428, 43451, 44259, 46404 from amd64 branch.
Timo Kreuzer [Fri, 16 Jul 2010 00:34:26 +0000 (00:34 +0000)]
Merge 36852, 37322, 37333, 37334, 43428, 43451, 44259, 46404 from amd64 branch.
- Multiple ULONG/ULONG_PTR/SIZE_T issues
- Use SLIST_ENTRY instead of SINGLE_LIST_ENTRY with InterlockedPushEntrySList
- Use %p to print pointer sized values

svn path=/trunk/; revision=48073

13 years agoAdd MI_MIN_SECONDARY_COLORS, MI_SECONDARY_COLORS and MI_MAX_SECONDARY_COLORS for...
Timo Kreuzer [Fri, 16 Jul 2010 00:03:03 +0000 (00:03 +0000)]
Add MI_MIN_SECONDARY_COLORS, MI_SECONDARY_COLORS and MI_MAX_SECONDARY_COLORS for amd64

svn path=/trunk/; revision=48072

13 years ago[NTOSKRNL]
Timo Kreuzer [Thu, 15 Jul 2010 23:56:53 +0000 (23:56 +0000)]
[NTOSKRNL]
Some ULONG vs SIZE_T fixes

svn path=/trunk/; revision=48071

13 years agoMerge 44257 from amd64 branch:
Timo Kreuzer [Thu, 15 Jul 2010 22:50:12 +0000 (22:50 +0000)]
Merge 44257 from amd64 branch:
PFN_TYPE -> PFN_NUMBER

svn path=/trunk/; revision=48070

13 years agoRemove svn:mergeinfo property
Timo Kreuzer [Thu, 15 Jul 2010 22:43:13 +0000 (22:43 +0000)]
Remove svn:mergeinfo property

svn path=/trunk/; revision=48069

13 years ago[PSDK]
Amine Khaldi [Thu, 15 Jul 2010 19:34:21 +0000 (19:34 +0000)]
[PSDK]
- Fix WS2TCPIP_INLINE : extern inline -> static inline

svn path=/trunk/; revision=48067

13 years agoSVN wins again... What's that?
Jérôme Gardou [Thu, 15 Jul 2010 19:29:45 +0000 (19:29 +0000)]
SVN wins again... What's that?
Revert everything that's not related to 48064 of 48065.

svn path=/trunk/; revision=48066

13 years agoMerge 48064 from yarotows
Jérôme Gardou [Thu, 15 Jul 2010 19:19:48 +0000 (19:19 +0000)]
Merge 48064 from yarotows
This had nothing to do in yarotows in the first place

svn path=/trunk/; revision=48065

13 years ago[NTOSKRNL]
Timo Kreuzer [Thu, 15 Jul 2010 11:24:17 +0000 (11:24 +0000)]
[NTOSKRNL]
Fix some amd64 KGDT constant names

svn path=/trunk/; revision=48063

13 years ago[NTOSKNL]
Timo Kreuzer [Thu, 15 Jul 2010 11:20:22 +0000 (11:20 +0000)]
[NTOSKNL]
#undef IoAllocateAdapterChannel before implementing it

svn path=/trunk/; revision=48062

13 years ago[shellapi.h] Fix build copy pasta spotted by encoded
Gabriel Ilardi [Thu, 15 Jul 2010 07:16:08 +0000 (07:16 +0000)]
[shellapi.h] Fix build copy pasta spotted by encoded

svn path=/trunk/; revision=48061

13 years ago[NTOSKRNL]
Timo Kreuzer [Thu, 15 Jul 2010 01:34:50 +0000 (01:34 +0000)]
[NTOSKRNL]
Fix ExInitializeRundownProtectionCacheAware parameter (ULONG -> SIZE_T)

svn path=/trunk/; revision=48060

13 years ago[NTOSKRNL]
Timo Kreuzer [Thu, 15 Jul 2010 01:10:18 +0000 (01:10 +0000)]
[NTOSKRNL]
- Define PD_COUNT, PDE_COUNT, PTE_COUNT for amd64, we should probably use PTE_PER_PAGE... instead
- Fix incompatible declaration of MmResidentAvailablePages
- Prevent duplicate definitions

svn path=/trunk/; revision=48059

13 years ago[NTOSKRNL]
Timo Kreuzer [Thu, 15 Jul 2010 00:42:26 +0000 (00:42 +0000)]
[NTOSKRNL]
Remove the old amd64 compilation hack

svn path=/trunk/; revision=48058

13 years ago[NTOSKRNL]
Timo Kreuzer [Thu, 15 Jul 2010 00:24:38 +0000 (00:24 +0000)]
[NTOSKRNL]
Apply a workaround for WDK headers

svn path=/trunk/; revision=48057

13 years ago[NTOSKRNL]
Timo Kreuzer [Thu, 15 Jul 2010 00:07:31 +0000 (00:07 +0000)]
[NTOSKRNL]
KeQuerySystemTime and KeQueryInterruptTime are not implemenetd on amd64

svn path=/trunk/; revision=48056

13 years ago[shellapi.h]
Timo Kreuzer [Wed, 14 Jul 2010 23:52:48 +0000 (23:52 +0000)]
[shellapi.h]
fix inclusion of pshpack / poppack (global and not for _WIN64)

svn path=/trunk/; revision=48055

13 years ago[ntdll_winetest]
Timo Kreuzer [Wed, 14 Jul 2010 23:13:31 +0000 (23:13 +0000)]
[ntdll_winetest]
Comment out some tests for WIN64 builds (wine headers are broken)

svn path=/trunk/; revision=48054

13 years agoFix build
Timo Kreuzer [Wed, 14 Jul 2010 22:32:06 +0000 (22:32 +0000)]
Fix build

svn path=/trunk/; revision=48053

13 years agogdi32:generated should now build on x64.
Sylvain Petreolle [Wed, 14 Jul 2010 22:08:19 +0000 (22:08 +0000)]
gdi32:generated should now build on x64.

svn path=/trunk/; revision=48052

13 years agoA little closer to x64 compat in GDI headers.
Sylvain Petreolle [Wed, 14 Jul 2010 22:02:51 +0000 (22:02 +0000)]
A little closer to x64 compat in GDI headers.
Patch by Samuel Serapion.

svn path=/trunk/; revision=48051

13 years ago[GDI32_WINETEST]
Timo Kreuzer [Wed, 14 Jul 2010 21:36:24 +0000 (21:36 +0000)]
[GDI32_WINETEST]
Don't compile generated.c on amd64

svn path=/trunk/; revision=48050

13 years ago[PING]
Cameron Gutman [Wed, 14 Jul 2010 19:32:03 +0000 (19:32 +0000)]
[PING]
- Fix a bug in the lost packet counter code which could result in a negative received value

svn path=/trunk/; revision=48046

13 years agoBug 5413: [PATCH] regedit: app key on treeview/listview
Daniel Reimer [Wed, 14 Jul 2010 18:15:43 +0000 (18:15 +0000)]
Bug 5413: [PATCH] regedit: app key on treeview/listview
Bug 5473: [PATCH] regedit: selection on hexedit
Both from Katayama Hirofumi

svn path=/trunk/; revision=48045

13 years agoFix setupapi setupcab winetest. (Samuel Serapion)
Daniel Reimer [Wed, 14 Jul 2010 17:18:49 +0000 (17:18 +0000)]
Fix setupapi setupcab winetest. (Samuel Serapion)

svn path=/trunk/; revision=48044

13 years agoFix libtiff's external functions.
Daniel Reimer [Wed, 14 Jul 2010 17:12:22 +0000 (17:12 +0000)]
Fix libtiff's external functions.

svn path=/trunk/; revision=48043

13 years ago[WIN32K]
Jérôme Gardou [Wed, 14 Jul 2010 16:12:32 +0000 (16:12 +0000)]
[WIN32K]
  - Properly initialize hVisRgn in CLIPPING_UpdateGCRegion
This fixes a whole bunch of "IntGdiCombineRgn requires hSrc2 != NULL for combine mode 1!", and probably some bugs.
Dedicated to encod3d.

svn path=/trunk/; revision=48042

13 years ago[USER32]
Jérôme Gardou [Wed, 14 Jul 2010 15:42:44 +0000 (15:42 +0000)]
[USER32]
  - WINE creates an alpha bitmap on icon creation, we do it when drawing it, so we need to create a bitmap which holds alpha information.
  - Add error handling to CreateIconIndirect.

svn path=/trunk/; revision=48041

13 years ago[WIN32K, USER32]
Jérôme Gardou [Wed, 14 Jul 2010 15:01:02 +0000 (15:01 +0000)]
[WIN32K, USER32]
  - Get rid of ONEPARAM_ROUTINE_CREATECURICONHANDLE

svn path=/trunk/; revision=48040

13 years ago[W32KNAPI]
Jérôme Gardou [Wed, 14 Jul 2010 14:56:53 +0000 (14:56 +0000)]
[W32KNAPI]
  - Test ONE_PARAM_ROUTINE_CREATEEMPTYCUROBJECT
  - Test NtUserGetIconInfo

svn path=/trunk/; revision=48039

13 years agoReapply some Win32 specific magic to properly build a Windows DLL of libjpeg. (Samuel...
Daniel Reimer [Wed, 14 Jul 2010 14:53:35 +0000 (14:53 +0000)]
Reapply some Win32 specific magic to properly build a Windows DLL of libjpeg. (Samuel Serapion)

svn path=/trunk/; revision=48038

13 years agoBye, old Downloader.
Daniel Reimer [Wed, 14 Jul 2010 11:00:31 +0000 (11:00 +0000)]
Bye, old Downloader.

svn path=/trunk/; revision=48037

13 years agoBug 5501: [PATCH] Adding Wing32 support by Carlo Bramini
Daniel Reimer [Wed, 14 Jul 2010 10:59:32 +0000 (10:59 +0000)]
Bug 5501: [PATCH] Adding Wing32 support by Carlo Bramini

svn path=/trunk/; revision=48036

13 years agoBye bye NtUserCreateCursorHandle.
Jérôme Gardou [Wed, 14 Jul 2010 10:23:13 +0000 (10:23 +0000)]
Bye bye NtUserCreateCursorHandle.
Thanks GedMurphy for explaining me how to suppress that.
Please clean win32k after this commit.

svn path=/trunk/; revision=48035

13 years ago[USER32]
Jérôme Gardou [Wed, 14 Jul 2010 09:54:44 +0000 (09:54 +0000)]
[USER32]
  - There is no exported "CopyCursor", it's a macro.
  - There is no "NtUserCreateCursorIconHandle" function in win32k. Use correct functions to create a cursorIcon handle.
  - Bring in WINE's CreateIconIndirect
[WIN32K]
  - Dereference CursorIcon Object in NtUserCallOneParam
  - Shared Icons need their bitmaps to be unowned

svn path=/trunk/; revision=48034

13 years ago[USER32]
Jérôme Gardou [Tue, 13 Jul 2010 21:38:34 +0000 (21:38 +0000)]
[USER32]
  - Partly merge 48026

svn path=/trunk/; revision=48031