Commit Graph
6500 Commits
Author SHA1 Message Date
Hermès Bélusca-Maïto 98b3cac350 [KERNEL32]
Remove a spurious cast, and add a note for the pInputControl parameter of ReadConsole.

[CONSRV]
- Move some input/output console function helpers to condrv.
- The way we notify for the presence of new input data, or for console pausing/unpausing, should be reconsidered (who should do this? The console driver? The active front-end?)

svn path=/trunk/; revision=59345
2013-06-27 00:20:58 +00:00
Amine Khaldi 583b6cfed0 [WBEMPROX]
* Import from Wine 1.5.26

svn path=/trunk/; revision=59324
2013-06-23 20:41:42 +00:00
Amine Khaldi 5323dbcb6c [DXGI]
* Import from Wine 1.5.26.

svn path=/trunk/; revision=59323
2013-06-23 19:14:50 +00:00
Sylvain Petreolle 1d319c931b [VERSION]
Replace binary tool in repository by a Windows one to get current date. (supported since Windows XP/2003)

svn path=/trunk/; revision=59294
2013-06-22 22:33:49 +00:00
Thomas Faber e9df952de3 [C++]
- Enable STLPort build on MSVC
- Configure STLPort not to generate static constant definitions (which MSVC doesn't like)
- Link C++ modules to stlport and cpprt as appropriate
- Fix comsupp and atl C++ options
CORE-6950

svn path=/trunk/; revision=59290
2013-06-22 15:57:36 +00:00
Amine Khaldi 1d814c38a6 [QUARTZ]
* Sync with Wine 1.5.26.
[STRMBASE]
* Import from Wine 1.5.26.
[DXSDK]
* Remove a redundant (and outdated) strmif.idl.
* Update axextend.idl.
[PSDK]
* Update control.idl and strmif.idl.
* Correct the OVERLAPPED structure.
[CMAKE]
* Look for inclusions in psdk before dxsdk.
[DEVENUM]
* Adapt to the axextend.idl update.

svn path=/trunk/; revision=59265
2013-06-20 12:07:29 +00:00
Daniel Reimer 30262ea0ce zlib: Sync to v1.2.8 by r3ddr4g0n
CORE-7217 #resolve #comment Committed in revision r59243, thanks for help

svn path=/trunk/; revision=59243
2013-06-16 22:08:36 +00:00
Hermès Bélusca-Maïto 3e3200acef [KERNEL32]
- Change the argument types of both GetConsoleFontInfo() and SetConsoleFont() to be more complete. This research is based off of the examining of source code from the jockx-the-game project (licensed under a BSD license). Specifically, the files containing the functions are in both ConsoleFont.cpp and ConsoleFont.h:
  * http://code.google.com/p/jockx-the-game/source/browse/DamageCalc/ConsoleFont.cpp?r=a8ee04a8a8156de58754c4190f48435c32cfefaf
  * http://code.google.com/p/jockx-the-game/source/browse/DamageCalc/ConsoleFont.h?r=a8ee04a8a8156de58754c4190f48435c32cfefaf
- Since the code for jockx-the-game used a 0 for the boolean argument for GetConsoleFontInfo() in ConsoleFont.cpp, the patch creator currently doesn't know what the argument does exactly.
  **NOTE**: Using http://pages.videotron.com/lyra/PowerBASIC/ConsoleFont.html too, the patch committer (hbelusca) was able to deduce that the boolean has the same meaning as the bMaximumWindow parameter of the GetCurrentConsoleFont function (http://msdn.microsoft.com/en-us/library/windows/desktop/ms683176(v=vs.85).aspx).

Patch by Lee Schroeder, modified by me as explained above.
CORE-7015 #resolve #comment Committed in revision r, thanks :)

Extras:
- Fix the return type of GetCurrentConsoleFont
- Add both GetConsoleFontSize and GetCurrentConsoleFont prototypes (documented) to wincon.h

svn path=/trunk/; revision=59240
2013-06-16 21:35:18 +00:00
Hermès Bélusca-Maïto aa910aeae4 [KERNEL32]
- Simplify initialization of CONSOLE_START_INFO objects by also initializing their AppPath member in InitConsoleInfo.
- Add two members IconPath and IconIndex in the CONSOLE_START_INFO structure, to be used in a future work...

[HEADERS]
- CHAR_INFO* == PCHAR_INFO
- Add two informative comments for two fields of the CONSOLE_READOUTPUT structure (again, to be used in a future work...)

svn path=/trunk/; revision=59234
2013-06-16 17:16:33 +00:00
Amine Khaldi 3d0929403b [DBGHELP]
* Sync with Wine 1.5.26.

svn path=/trunk/; revision=59221
2013-06-15 11:57:55 +00:00
Johannes Anderwald 042a365171 [HIDPARSER, HIDPARSE, INCLUDE]
- Fix function signatures
CORE-7183 #comment fixed #resolve

svn path=/trunk/; revision=59217
2013-06-15 06:18:02 +00:00
Hermès Bélusca-Maïto 3ada1fe593 [KERNEL32]
Code formatting only + member variable type fix.

svn path=/trunk/; revision=59211
2013-06-14 01:00:49 +00:00
Timo Kreuzer 740772014c [NDK]
- Add NUMBER_POOL_LOOKASIDE_LISTS constant
- Add PAT MSR constants for amd64
- Add missing extern "C"
[NTOSKRNL]
- Fix pool lookaside list usage for 64 bit

svn path=/trunk/; revision=59194
2013-06-09 08:54:33 +00:00
Hermès Bélusca-Maïto 6922a068e7 [KERNEL32-RTL]
Fix return type and usage of RtlDetermineDosPathNameType_U, and use the declaration of RTL_PATH_TYPE in winternl.h instead of the wineism DOS_PATHNAME_TYPE.

See r59183 and 59184 for more information.

svn path=/trunk/; revision=59185
2013-06-07 20:40:34 +00:00
Sylvain Petreolle d93b910537 Revert 59183 on hbelusca's request.
svn path=/trunk/; revision=59184
2013-06-07 09:36:37 +00:00
Hermès Bélusca-Maïto 917be25184 [KERNEL32-RTL]
Fix return type and usage of RtlDetermineDosPathNameType_U, and use the declaration of RTL_PATH_TYPE in winternl.h instead of the wineism DOS_PATHNAME_TYPE.

[RTL:PATH]
- Make usage of the IS_PATH_SEPARATOR(...) macro instead of automatically checking for L'\\' or L'/', and of OBJ_NAME_PATH_SEPARATOR when checking for L'\\' only or setting the character L'\\' (just code consistency only).

<Test fixes:>
- Fix a search loop and a check in RtlpWin32NTNameToNtPathName_U (a problem of setting the pointer *PartName via the variable p existed (always 1 character shift wrt. the expected result, and now *PartName is set to NULL even if p == NewBuffer).
- Zero out an optional parameter (if present) in RtlDosSearchPath_Ustr.
- Zero out the return buffer in RtlGetFullPathName_U (function from Wine).

Those fixes ^ correct the following tests:
* ntdll:RtlDosPathNameToNtPathName_U (58 errors to 4 errors remaining due to UNC path handling).
* ntdll:RtlDosSearchPath_U (9 errors to 6 errors remaining due to the fact that our RtlDosSearchPath_U doesn't throw exception on bad arguments because it checks the validity of its arguments (pointers especially), whereas on Windows it seems it doesn't happen to be the case).
* ntdll:RtlDosSearchPath_Ustr (4 errors to full success).
* ntdll:RtlGetFullPathName_U (31 errors to 8 errors).
* ntdll:RtlGetFullPathName_UstrEx (29 errors to 6 errors).

svn path=/trunk/; revision=59183
2013-06-07 01:25:57 +00:00
Timo Kreuzer a6ced69e11 [DDK/XDK]
- Change inclusion order. This is necessary when using VS static analyze, which requires IRQL level constants to be defined before IRQL annotations are used.
- Comment out 2 ASSERTS in amd64 specific code for now.
- Add cmtypes to ntddk.template.h to account, replacing the manually added structures

svn path=/trunk/; revision=59154
2013-06-02 19:15:35 +00:00
Timo Kreuzer 0bacae2af9 [PSDK]
- Add proper definition for DBG_UNREFERENCED_PARAMETER and DBG_UNREFERENCED_LOCAL_VARIABLE

[NTOSKRNL/RTL]
- Fix a number of warnings about unreferenced local variables
- Add 2 assertions that unmapping a section succeeds

svn path=/trunk/; revision=59151
2013-06-02 19:04:02 +00:00
Hermès Bélusca-Maïto 1e2b31b8bc [KERNEL32-CONSRV]
- Implement SetConsoleCursor and ShowConsoleCursor (set the shape of the cursor, and show/hide it). It appears that SetConsoleCursor acts only on graphics screen buffers (tested on Windows).
  I personnaly think it's a limitation we can suppress, but at the moment I keep it.
- Implement SetConsoleMaximumWindowSize which does nothing else than returning TRUE but doesn't give any constraint on the maximum size of the console window (tested on Windows Server 2003).

See http://undoc.airesoft.co.uk/kernel32.dll/SetConsoleCursor.php , http://undoc.airesoft.co.uk/kernel32.dll/ShowConsoleCursor.php and http://undoc.airesoft.co.uk/kernel32.dll/SetConsoleMaximumWindowSize.php for more details.

Useful for the NTVDM interface !

[CONSRV:Gui frontend]
- Fix "Select all" action.
- Enable or disable "Copy" and "Paste" commands in the edition menu.

svn path=/trunk/; revision=59135
2013-06-01 22:49:50 +00:00
Hermès Bélusca-Maïto 8765fbb397 [KERNEL32-CONSRV]
- Implement ConsoleMenuControl; see http://undoc.airesoft.co.uk/kernel32.dll/ConsoleMenuControl.php for more information.
- Implement SetConsoleMenuClose; see http://www.mail-archive.com/[email protected]/msg27509.html (or http://harbour-devel.1590103.n2.nabble.com/Question-about-hb-gt-win-CtrlHandler-usage-td4670862i20.html ) for more information.

[CONSRV]
Remove two unneeded DPRINTs.

svn path=/trunk/; revision=59112
2013-05-30 00:50:03 +00:00
Hermès Bélusca-Maïto 7c2b066810 [CONSOLE.CPL-KERNEL32]
Fix some compilation warnings with MSVC.

[KERNEL32-CONSRV]
- Implement console graphics screen buffers, as described in http://blog.airesoft.co.uk/2012/10/things-ms-can-do-that-they-dont-tell-you-about-console-graphics/ .
  The idea is that the console server creates a memory shared section to be shared with the client console application (it increases performance). A mutex is used to "say" to the console server that he can repaint the screen. The function InvalidateConsoleDIBits is implemented too. The definition of the structure CONSOLE_GRAPHICS_BUFFER_INFO comes directly from the site.
- CreateConsoleScreenBuffer was modified to be able to create such buffers.
This is needed for a working NTVDM-like application.

[CONSRV]
- Rework the console buffer structures so that text-mode buffers and graphics-mode buffers can "inherit" from an "abstract" structure, CONSOLE_SCREEN_BUFFER. Add few helper functions for manipulating them.
- Reorganize the output code in "graphics.c" and "text.c" files to separate text-mode only code from graphics-mode only code, both in the console server and in the GUI front-end.

Other fixes:
- Fix mouse handling (left and right clicks when one goes away from the "Selection" mode); do not handle mouse signal when we reactivate the GUI front-end window by a click.
- Fix GetLargestConsoleWindowSize API in console server side. Now pressing Alt+F9 in Far Manager to "change" the "video" mode works correctly.

Finally:
- Start to implement a (fake, i.e. not using directly a VGA driver) console fullscreen mode. Currently Alt-Enter key presses call a stub which just alternates DPRINTing between "switch to fullscreen mode" and "switch to windowed mode".

Images here:
- Example of an application (a 16-bit emulator by Mysoft) which uses the console graphics screen-buffer functionality: http://img577.imageshack.us/img577/1693/mysoftemulatorargon.png
- A potpourri of console applications which use graphics screen-buffers: http://img571.imageshack.us/img571/6526/consoledelirium.png

Enjoy :)

svn path=/trunk/; revision=59099
2013-05-29 00:29:07 +00:00
Timo Kreuzer 5057af6764 [INCLUDE]
- Add some missing 64 bit intrinsics
- Fix a warning in intsafe.h
- Use SAL2 annotations in sspi.h
- Fix some annotations

svn path=/trunk/; revision=59094
2013-05-27 20:55:23 +00:00
Amine Khaldi f76f7f14bb [WINDOWSCODECS]
* Sync with Wine 1.5.26.
[PSDK]
* Update wincodec.idl.

svn path=/trunk/; revision=59071
2013-05-23 16:39:54 +00:00
Eric Kohl a4283325e7 [NETAPI32]
- Add stubs for missing NetGroup functions.
- Update header file.

svn path=/trunk/; revision=59070
2013-05-23 15:20:29 +00:00
Amine Khaldi f3e41bd1fc [WINHTTP]
* Sync with Wine 1.5.26.
* Update winhttp_ros.diff.
[PSDK]
* Update winhttp.h.

svn path=/trunk/; revision=59064
2013-05-21 20:06:46 +00:00
Amine Khaldi 7f2d1fc323 [WININET]
* Sync with Wine 1.5.26.
* Update wininet_ros.diff.
[PSDK]
* Update wininet.h and winineti.h.

svn path=/trunk/; revision=59061
2013-05-20 21:42:26 +00:00
Amine Khaldi aac49827b9 [MSHTML]
* Sync with Wine 1.5.26 and update Wine gecko package to 1.9.
[PSDK]
* Update mshtmdid.h and mshtml.idl.
[APPWIZ]
* Import the new way of handling Wine gecko package.
[BOOTDATA/PACKAGES]
* Account for the new Wine gecko package slipstreaming.

svn path=/trunk/; revision=59047
2013-05-19 21:21:20 +00:00
Amine Khaldi deed915ead [PSDK]
* Update shdeprecated.idl.

svn path=/trunk/; revision=59043
2013-05-19 14:38:17 +00:00
Amine Khaldi b4edec9989 [DXSDK]
* We no longer need amvideo.h.
* Update amvideo.idl.

svn path=/trunk/; revision=59041
2013-05-19 13:52:15 +00:00
Amine Khaldi 9ffdd562a1 [BROWSEUI]
* Fix ITravelLogClient::GetWindowData() definition (parameters) and correct its use.
* Account for tlogstg.h where the ITravelLogClient interface is now defined.
[PSDK]
* Import tlogstg.idl from Wine 1.5.26.
* Remove the now duplicated definitions from shobjidl.idl.
[UUID]
* Add tlogstg.idl.

svn path=/trunk/; revision=59024
2013-05-17 11:19:48 +00:00
Amine Khaldi 5e4681d91e [PSDK]
* Add some missing definitions in activscp.idl.

svn path=/trunk/; revision=59016
2013-05-15 17:28:21 +00:00
James Tabor 016d53260e [Win32k]
- ATI fixup CORE-6551.
- Giannis Adamopoulos fragment patch 18.

svn path=/trunk/; revision=58986
2013-05-10 22:28:18 +00:00
Hermès Bélusca-Maïto 91ef640fe5 Merge my current work done on the kd++ branch:
- FreeLdr is able now to load personalized Kernel Debugger Transport DLLs by reading at the kernel command line and interpreting the /DEBUGPORT=xxx entry (--> loads KDxxx.DLL dll in \SystemRoot\System32\).
  Therefore we can not only load the "default" kdcom.dll, but also 3rd-party ones such as kdbazis.dll from VirtualKD (from revision 58902).
- The GCC-compiled-only version of kdcom, containing legacy COM code, was removed and put directly along KDBG. It remains only a stub / template for future kdcom-like dlls. The MSVC-version remains untouched.
- Make those functions ^ use directly the CPORTLIB library.

svn path=/trunk/; revision=58974
2013-05-09 13:12:58 +00:00
Amine Khaldi 018f811091 [XDK/DDK]
* The event parameter in IoBuildDeviceIoControlRequest is optional. Spotted by Nikolay Borisov.
CORE-7172 #resolve

svn path=/trunk/; revision=58965
2013-05-08 10:26:24 +00:00
Amine Khaldi 800947d692 [PSDK]
* Add NT_CONSOLE_PROPS and NT_FE_CONSOLE_PROPS and fix EXP_SZ_LINK.
* Add SHELL_LINK_INFO_* and some Shell Link Extra Data structures (for IShellLinkDataList).
[USERINIT][CPLS][DLLS]
* Add the now necessary wincon.h inclusion.
* Brought to you by Dominik Hornung.
CORE-7162 #resolve #comment Committed in r58930. Danke !

svn path=/trunk/; revision=58930
2013-05-04 20:43:16 +00:00
Amine Khaldi 148e43e691 [CRT]
* Annotate sys/utime.h.

svn path=/trunk/; revision=58929
2013-05-04 20:42:43 +00:00
Amine Khaldi 5ffb258f8a [FUSION]
* Sync with Wine 1.5.26.

svn path=/trunk/; revision=58927
2013-05-04 20:21:39 +00:00
Jérôme Gardou 703a1db75e [PSDK]
* Add complete definition of KEY_INFORMATION_CLASS
[DDK]
 * Add KEY_NAME_INFORMATION structure declaration

svn path=/trunk/; revision=58915
2013-05-03 18:28:34 +00:00
Amine Khaldi f93d55e8a9 [CRT]
* Annotate tchar.h.

svn path=/trunk/; revision=58912
2013-05-02 17:09:34 +00:00
Amine Khaldi b3a3a9d7ac [CRT]
* Annotate memory.h.

svn path=/trunk/; revision=58911
2013-05-02 14:21:18 +00:00
Eric Kohl c4682b16cb [INCLUDE]
Add missing LSA_TOKEN_INFORMATION_NULL and LSA_TOKEN_INFORMATION_V1 types.

svn path=/trunk/; revision=58900
2013-05-01 13:44:24 +00:00
Hermès Bélusca-Maïto e1ef078741 Create this branch to work on loading of different Kernel-Debugger DLL providers, and see whether it is possible to move KDBG from ntoskrnl to a new DLL called, say, KDROSDBG.DLL.
The idea then would be to have the following behaviour (when specifying the following options in the kernel command line):

/DEBUGPORT=COMi --> load KDCOM.DLL and use COMi port (i == 1,2,3,4) if possible.
/DEBUGPORT=FOO  --> load KDFOO.DLL (useful for KDUSB.DLL, KD1394.DLL, KDBAZIS.DLL for VirtualKD, etc...)
/DEBUGPORT=ROSDBG:[COMi|SCREEN|FILE|GDB|...] --> load KDROSDBG.DLL which contains the ROS kernel debugger, and use COMi or SCREEN or... as output port.

svn path=/branches/kd++/; revision=58883
2013-04-28 13:26:45 +00:00
Thomas Faber 6b3b943c2e [PSDK]
- Add SHELL_LINK_HEADER structure. Update SHELL_LINK_DATA_FLAGS. Patch by Dominik Hornung (dominikhornung at gmx dot de).
CORE-7099

svn path=/trunk/; revision=58880
2013-04-28 09:49:09 +00:00
Thomas Faber d0becb5ee6 [PSDK]
- Replace winsafer.h with a usable version
CORE-6942

svn path=/trunk/; revision=58866
2013-04-27 09:01:02 +00:00
Hermès Bélusca-Maïto f892276e85 [PSDK]
Clarify the meaning of the parameters of MAKEWORD/MAKELONG

svn path=/trunk/; revision=58853
2013-04-25 22:20:00 +00:00
Hermès Bélusca-Maïto e214308f84 [CPORTLIB]
Add a #pragma once directive to forbid multiple inclusions of the same header.

[NTOSKRNL:KD64]
Code formatting only

svn path=/trunk/; revision=58805
2013-04-21 14:03:07 +00:00
Amine Khaldi d2577f2eff [PSDK]
* Sync some exdisp.idl changes with Wine.

svn path=/trunk/; revision=58796
2013-04-20 22:21:07 +00:00
Hermès Bélusca-Maïto 25aef73037 [PSDK]
Fix some declarations (checked against Windows PSDK and Arwinss, which showed me the Truth :P).

svn path=/trunk/; revision=58784
2013-04-18 22:13:50 +00:00
Amine Khaldi 00ac0d48b1 [IEFRAME]
* Import from Wine 1.5.26.
[PSDK]
* Import docobjectservice.idl and htiface.idl from Wine.
* Add some missing definitions in shlobj.h.
[UUID]
* Add docobjectservice.idl and htiface.idl to the list.
* Add CGID_DocHostCommandHandler.

svn path=/trunk/; revision=58783
2013-04-18 21:46:58 +00:00
Giannis Adamopoulos 0754d3be29 [uxtheme]
- Stub OpenThemeDataFromFile and DrawNCPreview that will be used by desk.cpl in the future

svn path=/trunk/; revision=58778
2013-04-18 17:09:20 +00:00