Compare commits

...

647 Commits

Author SHA1 Message Date
Amine Khaldi
75d3ae1a35 [0.4.3] * Update the release type.
svn path=/branches/ros-branch-0_4_3/; revision=73222
2016-11-13 10:38:42 +00:00
Amine Khaldi
bd884f3120 [0.4.3] * Merge shell32 fixes by Giannis in r73128. CORE-12106
svn path=/branches/ros-branch-0_4_3/; revision=73131
2016-11-05 11:07:31 +00:00
Amine Khaldi
a6c23e1508 [0.4.3] * Merge FstubReadPartitionTableEFI() fix by Pierre in r73112. CORE-12261
svn path=/branches/ros-branch-0_4_3/; revision=73119
2016-11-04 09:33:03 +00:00
Amine Khaldi
341f08fe62 [0.4.3] * Merge netcfgx changes by Doug in r73117. CORE-12094
svn path=/branches/ros-branch-0_4_3/; revision=73118
2016-11-04 09:30:13 +00:00
Amine Khaldi
2aa1dbe28e [0.4.3] * Merge IoWritePartitionTableEx() fix by Pierre in r73114. CORE-12261
svn path=/branches/ros-branch-0_4_3/; revision=73116
2016-11-04 09:17:52 +00:00
Amine Khaldi
51f682c062 [0.4.3] * Merge disk size computing overflow fix by Vort in r73113. CORE-12261
svn path=/branches/ros-branch-0_4_3/; revision=73115
2016-11-04 09:16:15 +00:00
Thomas Faber
8d7855228e [0.4.3]
- Merge the fastfat fix for Chrome committed in r73072
CORE-12132

svn path=/branches/ros-branch-0_4_3/; revision=73086
2016-10-30 20:32:02 +00:00
Thomas Faber
d85d2f10e7 [0.4.3]
- Revert r72839 & r72835 to avoid the FsRtlIsNameInExpressionPrivate crash from CORE-12121

svn path=/branches/ros-branch-0_4_3/; revision=73081
2016-10-30 18:11:13 +00:00
Amine Khaldi
950ecabf98 [0.4.3] * Merge rpcrt4 noisy fixme removal by Pierre in r73075.
svn path=/branches/ros-branch-0_4_3/; revision=73080
2016-10-30 17:19:18 +00:00
Amine Khaldi
4a8ee0589c [0.4.3] * Merge regsvr32 fix by Mark in r73077. CORE-12209
svn path=/branches/ros-branch-0_4_3/; revision=73079
2016-10-30 17:16:53 +00:00
Amine Khaldi
9c1e755a35 [0.4.3] * Merge eventvwr improvements by Hermès in r73043. CORE-11637
svn path=/branches/ros-branch-0_4_3/; revision=73073
2016-10-29 20:41:45 +00:00
Amine Khaldi
5450d07447 [0.4.3] * Apply the patch that allows us to dynamically change the resolution by resizing in VirtualBox. CORE-6742
svn path=/branches/ros-branch-0_4_3/; revision=73069
2016-10-29 18:25:32 +00:00
Thomas Faber
29accff111 [0.4.3]
- Update start menu banner

svn path=/branches/ros-branch-0_4_3/; revision=73067
2016-10-29 18:11:47 +00:00
Amine Khaldi
836872de4b [0.4.3] Add a hack by Thomas to avoid MmGetPhysicalAddress failures during USB transfers. CORE-9224
svn path=/branches/ros-branch-0_4_3/; revision=73066
2016-10-29 18:07:53 +00:00
Amine Khaldi
f8267425bd [0.4.3] * Disable COMMAND.COM debugging messages. CORE-10710
svn path=/branches/ros-branch-0_4_3/; revision=73065
2016-10-29 18:00:23 +00:00
Amine Khaldi
d7dcbcd3fd [0.4.3] * Apply the Wordpad related hack from CORE-5823 by Jared Smudde.
svn path=/branches/ros-branch-0_4_3/; revision=73064
2016-10-29 17:59:09 +00:00
Amine Khaldi
e1a776f958 [WIN32SS/USER32] Mask exceptions from WndProc, essentially reverting r72495. CORE-11915
svn path=/branches/ros-branch-0_4_3/; revision=73063
2016-10-29 17:57:53 +00:00
Amine Khaldi
5026076e31 [0.4.3] Update the version number.
svn path=/branches/ros-branch-0_4_3/; revision=73057
2016-10-28 21:32:23 +00:00
Ziliang Guo
d043f2969e [0.4.3]
Mark branch builds as release candidates.

svn path=/branches/ros-branch-0_4_3/; revision=73056
2016-10-28 21:06:03 +00:00
Hermès Bélusca-Maïto
c51f0d6551 And the usual thing... "fix build".
svn path=/trunk/; revision=73036
2016-10-25 23:57:35 +00:00
Hermès Bélusca-Maïto
1f9c38b3b9 [EVTLIB]: Create a EvtLib library for manipulating the event log file format from anywhere.
[EVENTLOG]: Make usage of this library.
CORE-11868 #resolve #comment Committed in r73035.

[EVENTLOG]: Protect the global handle table with a lock as it seems to me that this needs serialization. Please notify me if you think this is not actually necessary (and I'll revert that in case).

svn path=/trunk/; revision=73035
2016-10-25 23:50:31 +00:00
Hermès Bélusca-Maïto
34a06851d3 [EVENTLOG]
- Update code source files headers.
- Use explicit unicode functions for RegOpen/Query/SetXXX and safe-string APIs.
- Use GetSystemWindowsDirectoryW where needed instead of GetWindowsDirectoryW (TS-safe).
- Fix some variable names & types.
- Improve some DPRINTs.

svn path=/trunk/; revision=73034
2016-10-25 23:32:20 +00:00
Johannes Anderwald
496573473b [USBAUDIO]
- implement mute control property handler

svn path=/trunk/; revision=73033
2016-10-25 19:20:09 +00:00
Kamil Hornicek
fe5595d60d [GDI32]
- comply with MSDN and stop enumerating font families as soon as the user provided callback returns zero
- fixes bunch of user32:sysparams tests which rely on this

svn path=/trunk/; revision=73032
2016-10-25 17:08:05 +00:00
Peter Hater
263afc07c3 [WSHTCPIP] Don't return NO_ERROR in unimplemented WSHIoctl. It only confuses programs. Return WSAEINVAL. CORE-12104
svn path=/trunk/; revision=73031
2016-10-25 09:23:40 +00:00
Peter Hater
ca5719a178 [MSAFD] Implement WSPIoctl overlapped. CORE-12162 #resolve
svn path=/trunk/; revision=73030
2016-10-25 07:54:00 +00:00
Jérôme Gardou
04442ae74c [NTOS/MM]
- Arch striking again : take everywhere into account the +1 offset introduced in r72988
CORE-12047

svn path=/trunk/; revision=73029
2016-10-23 18:59:42 +00:00
Aleksandar Andrejevic
1ef056a0ed [NTVDM:VBE]: Don't crash if the video mode is invalid.
svn path=/trunk/; revision=73028
2016-10-23 17:21:58 +00:00
Hermès Bélusca-Maïto
6fcebba53b [CMAKE]: Introduce a evil workaround for the problem described in CORE-12205/CORE-12206, that was unveiled by commit r73024. CMake gurus, please review & make suggestions! :)
svn path=/trunk/; revision=73027
2016-10-22 22:51:34 +00:00
Hermès Bélusca-Maïto
00a8b0a3c8 [WLANCONF]: Addendum to r73024.
svn path=/trunk/; revision=73026
2016-10-22 22:15:10 +00:00
Hermès Bélusca-Maïto
6f5d03b414 [MORE]: Rewrite almost completely the MORE command, taking advantage of the console pager functionality of the ConUtils library (see CORE-10504 and commit r73024).
- When displaying files, display the percentage of file read so far in the "Continue" prompt. Otherwise (when being piped or feeded from StdIn), just display the "Continue" prompt without percentage.
- Try to detect the text file encoding (ANSI, UTF16-BE/BE w/ or w/o BOM; UTF-8 to do!!) before displaying it. See the code for more details.

NOTE that the other functionalities of more (being able to scroll one line at a time, other command-line switches, etc...) are still not implemented yet.

svn path=/trunk/; revision=73025
2016-10-22 22:07:28 +00:00
Hermès Bélusca-Maïto
eb198b854d [CONUTILS]
- Introduce new functionalities related to console streams, a console screen management api (almost stubbed), a console pager api (adapted from code from CMD). This new functionality will be used in the future. See CORE-10504 for more details.
- As this library is therefore growing up, split it in small parts (sublibraries) that can be used, with the following dependency scheme: base utils (standalone); streams depending on base; screen depending on streams; pager depending on screen.

[APPS]: As a result, modify the CMakeLists of the different apps that use conutils to make them depend on the correct sublibrary.

svn path=/trunk/; revision=73024
2016-10-22 21:54:29 +00:00
Hermès Bélusca-Maïto
26cf82fa5b [MODE]: Forgot this change too (related to kbd rate before delay).
svn path=/trunk/; revision=73023
2016-10-22 21:46:58 +00:00
Hermès Bélusca-Maïto
0c5fc9b3b5 [CLIP]: Check read status before number of bytes read. Update main resource file.
[COMP]: Code style fix; remove an unused define.
[EVENTCREATE]: Remove an unused define.

[HELP]
- Remove unneeded headers; minor code formatting.
- Remove an unused define.
- Add placeholder Czech resource translation.

[MODE]: Update translation (part 2/x); show the keyboard rate before the delay.

svn path=/trunk/; revision=73022
2016-10-22 21:42:13 +00:00
Johannes Anderwald
a3f82b7d7b [KS]
- enable topology property handlers

svn path=/trunk/; revision=73021
2016-10-22 19:52:51 +00:00
Johannes Anderwald
5dc6c5bb88 [USBAUDIO]
- fix warnings & leaks based on Thomas feedback

svn path=/trunk/; revision=73020
2016-10-22 12:34:03 +00:00
Mark Jansen
d0b74180b2 [FRAGINATOR] Silence a ton of warnings.
svn path=/trunk/; revision=73019
2016-10-22 12:13:34 +00:00
Mark Jansen
9efe78ac9f [OLE32] Stub and export CoGetCancelObject. CORE-12199
svn path=/trunk/; revision=73018
2016-10-22 12:03:33 +00:00
Johannes Anderwald
3e7f31ebe1 - implement MMixerGetDeviceNameWithComponentId, which retrieves the device name via component id
- start implement MMixerHandleTopologyFilter, does not yet fully work

svn path=/trunk/; revision=73017
2016-10-21 21:26:12 +00:00
Johannes Anderwald
a9a9930090 [USBAUDIO]
- implement retrieving string descriptor of product and store it in registry.

svn path=/trunk/; revision=73016
2016-10-21 21:15:01 +00:00
Hermès Bélusca-Maïto
6357011e41 [ADVAPI32_APITEST]: I wasn't alone for writing these tests!
svn path=/trunk/; revision=73015
2016-10-21 21:08:54 +00:00
Johannes Anderwald
3423877df1 [USBCCGP]
- fix invalid device descriptor for composite usb devices

svn path=/trunk/; revision=73014
2016-10-21 20:52:40 +00:00
Hermès Bélusca-Maïto
6672ea6af0 [MODE]: Adjust german resources.
svn path=/trunk/; revision=73013
2016-10-21 20:48:26 +00:00
Robert Naumann
dbf62b106c [MODE] add initial German translation. needs completition!!!
svn path=/trunk/; revision=73012
2016-10-21 20:44:38 +00:00
Peter Hater
08744dfc42 [WS2_32_APITESTS] Add tests for SIO_GET_INTERFACE_LIST. Brought to you by Andreas Maier. Thanks.
Minor modifications by me on comparison and expected flags.
ROSTESTS-246

svn path=/trunk/; revision=73011
2016-10-21 16:47:38 +00:00
Amine Khaldi
3315eae709 [ACPPAGE] Remove unneeded initialization. Should make the x64 bot a tiny bit happier. Spotted by Mark Jansen.
svn path=/trunk/; revision=73010
2016-10-21 09:48:00 +00:00
Amine Khaldi
8a6585ff73 [PSDK] Add missing RpcBindingServerFromClient.
svn path=/trunk/; revision=73009
2016-10-21 09:26:11 +00:00
Amine Khaldi
d61d2809de [URLMON] Stub and export HlinkGoForward(). CORE-12196
svn path=/trunk/; revision=73008
2016-10-21 09:03:45 +00:00
Amine Khaldi
a4cfe8d2da [RPCRT4_WINETEST] Addendum to r73006.
svn path=/trunk/; revision=73007
2016-10-21 09:02:08 +00:00
Amine Khaldi
c0e27b85ab [RPCRT4] Import Wine commit 01290cd by Colin and Christoph: Implement RpcBindingServerFromClient and populate NetworkAddr for each transport.
svn path=/trunk/; revision=73006
2016-10-21 09:01:35 +00:00
Pierre Schweitzer
708359754c [MPR]
Import Wine commit:
- d9c9d9b10f58844a780d8bfc9ed1b6713e37d487, Implement connected resources enumeration.

CORE-11757

svn path=/trunk/; revision=73005
2016-10-21 05:28:29 +00:00
Mark Jansen
a29538f1b9 [WINETESTS] Rename generated_i386.c to generated.c, adjust the CMakeLists.txt accordingly.
svn path=/trunk/; revision=73004
2016-10-20 21:44:12 +00:00
Mark Jansen
9fabe9b420 [SDK] Fix our Delayload notify hook for MSVC x64
svn path=/trunk/; revision=73003
2016-10-20 21:08:17 +00:00
Mark Jansen
a62945fc94 [APPHELP_APITEST] This should not be here.
svn path=/trunk/; revision=73002
2016-10-20 21:03:38 +00:00
Hermès Bélusca-Maïto
252f96e3b1 [KS]: Fix annotations, etc.
svn path=/trunk/; revision=73001
2016-10-20 20:44:02 +00:00
Johannes Anderwald
b8e67c826c [PSDK]
- add missing definition

svn path=/trunk/; revision=73000
2016-10-20 20:29:30 +00:00
Johannes Anderwald
3b8ab07631 [KS]
- implement support for KSPROPSETID_General

svn path=/trunk/; revision=72999
2016-10-20 20:02:43 +00:00
Hermès Bélusca-Maïto
38933ca790 [CMD]: Documentation improvement: we actually support two types of filename completions, windows-cmd like (the default one), and "bash-style" one (that is available through a compile switch). I prefer calling it "bash-style" over "unix-style" because this style of completion looks like the one from the GNU ReadLine library, that is used by Bash, which is not exclusive to unix per se...
svn path=/trunk/; revision=72998
2016-10-20 16:51:07 +00:00
Hermès Bélusca-Maïto
99ef1a3353 [KERNEL32]: Mark Get/SetEnvironmentVariableA/W as hotpatchable since it's needed for Clink 0.4.8 (<rant>btw, if GCC was able to set exported stdcall functions as hotpatchable at a global level, as MSVC does, those "DECLSPEC_HOTPATCH" hacks would not be necessary! </rant>)
svn path=/trunk/; revision=72997
2016-10-19 22:26:04 +00:00
Hermès Bélusca-Maïto
7f59e9a13c [MODE]
- Localization of output based on a patch by Lee Schroeder, but where I haven't modified yet the output localization of errors.
- Dynamically underline the headers of the device status reports (by me).
CORE-12178

svn path=/trunk/; revision=72996
2016-10-19 17:04:29 +00:00
Hermès Bélusca-Maïto
d259d035bc [MODE]
- Rearrange ResizeTextConsole so that it correctly computes the Top & Bottom parts of the window size rectangle;
- Fix its return type;
- Display an error if we failed resizing the console;
- Clear the screen before resizing the console, as the real MODE.COM does.
- Fix a parsing error in SetConsoleStateOld and in SetConsoleCPState.

svn path=/trunk/; revision=72995
2016-10-19 15:04:42 +00:00
Hermès Bélusca-Maïto
4c38c9a07e [MODE]: Code style changes + remove unused parameter for ResizeTextConsole.
svn path=/trunk/; revision=72994
2016-10-19 15:00:32 +00:00
Hermès Bélusca-Maïto
2e6eddbc97 [CONSRV]
- Call TermGetLargestConsoleWindowSize to obtain the largest console window size allowed on the system, and use it for GetConsoleScreenBufferInfo and for SetConsoleWindowInfo too, where it is used to check if the given user window size is not too large.
- Improve GuiGetLargestConsoleWindowSize for multi-monitor situations.
- Remove the redundant definition of GetScreenBufferSizeUnits in guiterm.c (it already exists in conwnd.c).

svn path=/trunk/; revision=72993
2016-10-18 23:51:59 +00:00
Hermès Bélusca-Maïto
be43197190 [CONSRV]: Code style changes only.
svn path=/trunk/; revision=72992
2016-10-18 23:45:19 +00:00
Pierre Schweitzer
a8e3f3a292 [PSDK]
Replace error codes that don't even exist in MS headers (but they are referenced on MSDN?!)
Replace their usage in code

svn path=/trunk/; revision=72991
2016-10-18 20:32:50 +00:00
Jérôme Gardou
3a5149de3e [NTOS/MM]
- Let the zero page thread decide itself whether it is active or not.
 - Raise the low memory limit for our good old balancer
 - Allow the balancer thread to wait for a page to be freed, with a lower limit than for "regular" page faults
 - Let ARM3 notify RosMm when a page gets freed
CORE-12047 #comment Whole patch got in in r72988, 72989 and 72990

svn path=/trunk/; revision=72990
2016-10-18 20:19:00 +00:00
Jérôme Gardou
63bbaff803 [NTOS/MM]
Miscellaneous fixes for legacy Mm section implementation
 - Always allocate a private page for IMAGE_SCN_CNT_UNINITIALIZED_DATA
 - Make sure a shared page is present before writing on a COW mapping and making a private copy.
 - Fix a race condition : when paging out a file section, old Mm lists all of the process maps, removing them one after the other and lowering the page reference count in the process. Sometimes a page fault occur in the process, the mapping is added, but the page refcount is not bumped because it requires locking the corresponding segment. Manage page refcount under segment lock.
CORE-12047

svn path=/trunk/; revision=72989
2016-10-18 20:01:18 +00:00
Jérôme Gardou
d46dd383f6 [NTOS/MM]
- Do not allocate zeroed pagefile entries for legacy Mm
CORE-12047

svn path=/trunk/; revision=72988
2016-10-18 19:55:22 +00:00
Jérôme Gardou
72c8ed3670 [FASTFAT]
- Acquire Paging IO Resource shared when performing paged writes 
Greenlighted by Pierre and tests.
CORE-12184 #resolve 

svn path=/trunk/; revision=72987
2016-10-18 19:28:16 +00:00
Pierre Schweitzer
6fa7ff1eba [PSDK]
Make DECLARE_CONST_UNICODE_STRING() work with something else than MSVC

svn path=/trunk/; revision=72986
2016-10-18 18:28:45 +00:00
Hermès Bélusca-Maïto
0508cc702d [KERNEL32_APITEST]: SetConsoleWindowInfo test:
- Improve the checks done for the tests;
- Add a new test (Test7) that tests the allowed console window sizes wrt. the csbi.dwMaximumWindowSize size.

svn path=/trunk/; revision=72985
2016-10-18 17:44:23 +00:00
Hermès Bélusca-Maïto
76c73fc423 [CONSRV]: Fixes for SetConsoleWindowInfo, where one notices that again the MSDN documentation on SetConsoleWindowInfo is partially wrong.
This makes all the kernel32_apitest:SetConsoleWindowInfo tests pass now.
Also, notify the console window about the size change.

svn path=/trunk/; revision=72984
2016-10-18 17:16:57 +00:00
Hermès Bélusca-Maïto
0d6632cdfb [CONSRV]: Minor fixes:
- Use GetSystemWindowsDirectoryW instead of GetWindowsDirectoryW inside "TranslateConsoleName";
- Don't add scrollbars by default to the console window when it's being created;
- Fix the 2nd parameter of MapVirtualKeyW call;
- Two code style changes in text.c and tuiterm.c.

svn path=/trunk/; revision=72983
2016-10-18 17:12:57 +00:00
Hermès Bélusca-Maïto
916943b1c4 [KERNEL32_APITEST]: Imprrove the SetConsoleWindowInfo test (add a new test case, and now correctly restores the console size after all the tests are done).
svn path=/trunk/; revision=72982
2016-10-18 16:08:34 +00:00
Hermès Bélusca-Maïto
ae221a8274 [KERNEL32_APITEST]: Commit a test for SetConsoleWindowInfo.
svn path=/trunk/; revision=72981
2016-10-18 15:35:06 +00:00
Hermès Bélusca-Maïto
533d9d5f59 [MODE]: Numerous fixes for the MODE utility:
- Parse the command line the same peculiar way as Windows' mode.com tool. This is certainly done such as to be backwards-compatible with MS-DOS' tool.
- Fix serial port string parsing, based on Wine's dll/win32/kernel32/wine/comm.c code. Note that the BuildCommDCB kernel32 API has the same syntax :)
- Implement support for MODE CON codepage, as well as screen size and typematic settings. Screen size code is based on NTVDM's one and will be subject to fixes later on.

MISSING stuff:
- LPT/COM port redirection.
- Localization :)

CORE-12176 #resolve
CORE-7998 CORE-8001

svn path=/trunk/; revision=72980
2016-10-17 22:19:22 +00:00
Johannes Anderwald
cad3120307 [WDMAUD]
- fix a bug in WdmAudControlDeviceType
- clear handle value when opening device interface key fails

svn path=/trunk/; revision=72979
2016-10-17 19:03:01 +00:00
Peter Hater
39544b234b [MSAFD] Add some parameter checks on send/recv based on wine tests. CORE-12104
svn path=/trunk/; revision=72978
2016-10-17 15:24:43 +00:00
Mark Jansen
ee50a9c889 [ATL][ATL_APITEST] Implementation / fixes for varions CRegKey functions, by Katayama Hirofumi MZ. CORE-11746 #resolve
svn path=/trunk/; revision=72977
2016-10-17 12:50:54 +00:00
Thomas Faber
14a0d23f4c [KMTESTS:OB]
- Add a test for the NT directory structure's ACLs
CORE-9184

svn path=/trunk/; revision=72976
2016-10-17 09:28:15 +00:00
Thomas Faber
85fa521728 [NTOS:CM]
- Ignore the KEY_WOW64_32KEY and KEY_WOW64_64KEY flags in NtOpenKey/NtCreateKey, as shown by tests.
CORE-9691 #resolve

svn path=/trunk/; revision=72975
2016-10-15 20:16:47 +00:00
Thomas Faber
0d36dcef60 [NTDLL_APITEST]
- Show that NtOpenKey and NtCreateKey accept, but ignore, KEY_WOW64_32KEY and KEY_WOW64_64KEY
CORE-9691

svn path=/trunk/; revision=72974
2016-10-15 18:33:21 +00:00
Johannes Anderwald
9bd7a7db6d [USBAUDIO]
- implement building topology connections

svn path=/trunk/; revision=72973
2016-10-15 17:56:44 +00:00
Benedikt Freisen
38d01b32ac [MSPAINT]
- fix an odd quirk that resulted from Paint setting wallpaper and wallpaper style in the wrong order
- add the flag SPIF_SENDWININICHANGE

Setting wallpapers now works, whenever the OS natively supports the respective file format for wallpapers.

svn path=/trunk/; revision=72972
2016-10-15 11:44:15 +00:00
Johannes Anderwald
5c2a0471bd [USBAUDIO]
- partly implement BuildUSBAudioFilterTopology

svn path=/trunk/; revision=72971
2016-10-14 22:08:28 +00:00
Johannes Anderwald
1c43c34853 [USBAUDIO]
- partly implement UsbAudioPinDataIntersect

svn path=/trunk/; revision=72970
2016-10-14 13:26:22 +00:00
Johannes Anderwald
4b5428d521 [USBAUDIO]
- specify processings flags in filter descriptor
- implement processing workers
- move code for initializing irp & urb into single function
- usbaudio now successfully captures audio in win2k3.

svn path=/trunk/; revision=72969
2016-10-14 10:35:19 +00:00
Amine Khaldi
25b64d3c35 [SHELL32] Add two missing AVIs. By Jared Smudde. CORE-11641
svn path=/trunk/; revision=72968
2016-10-13 21:46:39 +00:00
Amine Khaldi
e3d7748688 [EVENTVWR][EXPLORER][SHELL32] Russian translation update by Sergey Stopkin. CORE-12153
svn path=/trunk/; revision=72967
2016-10-13 21:39:37 +00:00
Peter Hater
a82f4b1f38 [MSAFD] Implement WSPGetOverlappedResult. Reviewed by Thomas and Art. Thanks! CORE-12134 #resolve
svn path=/trunk/; revision=72966
2016-10-13 20:30:42 +00:00
Mark Jansen
24100643a9 [NETCFGX] RegQueryValueExW accepts a size in bytes, not TCHARS. Also, this local buffer probably shouldnt be used. Uncovered by Victor Martinez Calvo. CORE-9665
svn path=/trunk/; revision=72965
2016-10-13 19:57:29 +00:00
Thomas Faber
6031bd0162 [KMTESTS:IO]
- Add a test for the maximum data length for MDLs
CORE-12132

svn path=/trunk/; revision=72964
2016-10-13 12:28:01 +00:00
Thomas Faber
4b9d31d916 [PSDK]
- ksmedia.h requires ks.h to be included first. Based on a patch by Lee Schroeder.
CORE-6783

svn path=/trunk/; revision=72963
2016-10-13 09:21:57 +00:00
Thomas Faber
1da8f46087 [PSDK]
- Add some KS definitions. Patch by Lee Schroeder
CORE-6783

svn path=/trunk/; revision=72962
2016-10-13 08:53:11 +00:00
Thomas Faber
6a96846321 [MSHTML_WINETEST]
- Re-enable skipped htmldoc tests.
ROSTESTS-113 #resolve

svn path=/trunk/; revision=72961
2016-10-12 21:10:04 +00:00
Thomas Faber
7f94fb8b3d [REGDUMP]
- Fix a buffer overflow. Patch by Víctor Martínez Calvo.
ROSTESTS-203 #resolve

svn path=/trunk/; revision=72960
2016-10-12 12:41:31 +00:00
Thomas Faber
3d2b354712 [USER32]
- Remove IsBadWritePtr hack. Patch by Katayama Hirofumi MZ.
CORE-12136 #resolve

svn path=/trunk/; revision=72959
2016-10-12 12:07:44 +00:00
Hermès Bélusca-Maïto
8fb10f0eea [WINETESTS/SETUPAPI]: setupapi/tests: Determine path to system32 directory at runtime. Synced from Wine-Staging commit 92510a34ed9ec67fec4e580a5c73b8b53c216734
ROSTESTS-234 #comment Updated in r72958.

svn path=/trunk/; revision=72958
2016-10-12 11:36:16 +00:00
Peter Hater
a0257c8b37 [WS2_32_APITESTS] Add super simple WSARecv tests used to test WSAGetOverlappedResult. ROSTESTS-197
svn path=/trunk/; revision=72957
2016-10-11 10:48:47 +00:00
Hermès Bélusca-Maïto
5bcbde18ec [CMD]: Fix the "TYPE" command so that it doesn't interpret the optional /P switch as a filename.
svn path=/trunk/; revision=72956
2016-10-10 19:17:03 +00:00
Hermès Bélusca-Maïto
b408826a0b [CMD]
- Improve the screen pager so that it looks a bit more like MORE's one: display full screen pages, where only the last line contains the "press any key..." prompt, and erase this prompt when a key is pressed and before displaying the other screen page.
- GetScreenSize parameters are pointers (so use NULL instead of 0);
- Use ARRAYSIZE instead of hardcoding buffer number of elements;
- Simplify PrintInfoLine() (use read-only resource string buffer returned by LoadString instead of a temporary buffer, since we are just interested in the counted string).

svn path=/trunk/; revision=72955
2016-10-10 19:15:07 +00:00
Hermès Bélusca-Maïto
8fbd67bc4a [CMD]
- Fix typo in STRING_MEMMORY_xxx symbols (memmory -> memory);
- Remove the trailing newline for the STRING_MISC_HELP1 page prompt, as part of reworking it a bit (see next commit);
- Code formatting in type.c as I'll touch it after.

svn path=/trunk/; revision=72954
2016-10-10 19:11:15 +00:00
Peter Hater
05f82b6443 [MSAFD] We support AF_INET,SOCK_RAW,IPPROTO_RAW and IF_INET,SOCK_RAW,IPPROTO_TCP triples also. Enable them in winsock mapping registry. CORE-12104
svn path=/trunk/; revision=72953
2016-10-10 08:00:20 +00:00
Peter Hater
81eb620cc0 [MSAFD] We support SOCK_RAW and IPPROTO_RAW also. CORE-12104
svn path=/trunk/; revision=72952
2016-10-10 07:57:34 +00:00
Peter Hater
f58ddd3b46 [WINHTTP] Properly initialize winsock. Based on wine tests CORE-12104
svn path=/trunk/; revision=72951
2016-10-10 06:54:56 +00:00
Peter Hater
0ebbe83388 [WININET] initialize winsock with proper version. Based on wine tests CORE-12104
svn path=/trunk/; revision=72950
2016-10-10 06:52:40 +00:00
Peter Hater
9017581a14 [WS2_32_APITESTS] Fix helper by not shutting down send. This way it breaks the test on windows also.
svn path=/trunk/; revision=72949
2016-10-10 06:48:56 +00:00
Peter Hater
91a772cfd5 [MSAFD] Fix some return codes and better parameter checks based on wine tests CORE-12104
svn path=/trunk/; revision=72948
2016-10-10 06:38:52 +00:00
Mark Jansen
aef3f9c467 RegQueryValueExW and RegQueryValueExA calls accept bytes. Patch by Victor Martinez Calvo. CORE-9665 #comment Thanks!
svn path=/trunk/; revision=72947
2016-10-09 20:58:08 +00:00
Mark Jansen
fc0c290789 [MSCONFIG_NEW|SETUP/WELCOME] Capitalize "os" in "ReactOS" part 4 by Adam Stachowicz CORE-9558 #resolve #comment Last patch applied, thanks!
svn path=/trunk/; revision=72946
2016-10-09 20:20:10 +00:00
Benedikt Freisen
2a5f64604f [MSPAINT] get rid of all _stprintf occurrences and the respective magic number sized TCHAR arrays
svn path=/trunk/; revision=72945
2016-10-09 11:42:37 +00:00
Hermès Bélusca-Maïto
84a2080689 [EVENTCREATE]: Update turkish translation, by Erdem Ersoy.
CORE-12120 #resolve #comment Committed, thanks!

svn path=/trunk/; revision=72944
2016-10-08 19:43:16 +00:00
Hermès Bélusca-Maïto
8dd8a9d989 [PING]
- Use a dynamic-allocated buffer with FormatMessageW, fixes messages disappearance (eg. ping help in russian). CORE-12108 #comment Fixed in r72943.
- Remove the unneeded 1-line function "Usage" and instead just directly call the corresponding PrintString function.

svn path=/trunk/; revision=72943
2016-10-08 14:48:18 +00:00
Hermès Bélusca-Maïto
d03fd72465 [DEVMGR]: Fix spacing around "ReactOS" in translated strings.
svn path=/trunk/; revision=72942
2016-10-08 14:20:22 +00:00
Hermès Bélusca-Maïto
8b0c046e3c [FLTMC]: Resource strings do not need to be explicitely NULL-terminated, as ATL helpers know how to deal with them.
svn path=/trunk/; revision=72941
2016-10-08 14:05:06 +00:00
Hermès Bélusca-Maïto
2bc77973f5 [FORMAT]: Fix ukrainian translation by Vort.
svn path=/trunk/; revision=72940
2016-10-08 13:55:30 +00:00
Hermès Bélusca-Maïto
3d9c96162e Fix commit synchronization issue (that's what happens when you work on a patch that somebody else worked on in parallel!!)
svn path=/trunk/; revision=72939
2016-10-08 13:13:38 +00:00
Hermès Bélusca-Maïto
8b14a4a88a [TRANSLATIONS]: Russian translation update by Sergey Stopkin.
CORE-12108 #comment Спасибо!

svn path=/trunk/; revision=72938
2016-10-08 13:12:35 +00:00
Amine Khaldi
aec4ce26d4 [TRANSLATIONS] Russian translation update by Sergey Stopkin. CORE-12108
svn path=/trunk/; revision=72937
2016-10-08 12:57:53 +00:00
Amine Khaldi
d550219e4c [PING] German translation by Joachim Henze. CORE-12117
svn path=/trunk/; revision=72936
2016-10-08 12:50:15 +00:00
Thomas Faber
628956f819 [GDI32]
- Remove handling of BS_DIBPATTERN8X8 in CreateBrushIndirect. Fixes the last gdi32:brush winetest failure. Patch by Víctor Martínez Calvo.
CORE-9673 #resolve

svn path=/trunk/; revision=72935
2016-10-08 08:28:08 +00:00
Mark Jansen
c9c3a517b2 [MSGINA] Fix the order of checking for a valid / visible window, spotted by 'leha-bot' CORE-12028
svn path=/trunk/; revision=72934
2016-10-07 23:11:17 +00:00
Hermès Bélusca-Maïto
330db984fe [DISKPART][NET][WLANCONF]
Make those command tools use the console uilities library, aka. solve all those problems of wrong characters on the console...
CORE-10584 #resolve

[CONUTILS]: Remove the now unneeded compatibility defines.
CORE-10504

svn path=/trunk/; revision=72933
2016-10-07 22:50:32 +00:00
Hermès Bélusca-Maïto
4c4b769ef2 [LOGOFF]: Code formatting fixes, including tabs vs. spaces.
svn path=/trunk/; revision=72932
2016-10-07 22:08:20 +00:00
Hermès Bélusca-Maïto
0b335753ce [CONUTILS]: Fix build:
- Commit the *Puts functions.
- Fix __stdcall that needs to be read __cdecl for variadic functions.

svn path=/trunk/; revision=72931
2016-10-07 21:57:59 +00:00
Hermès Bélusca-Maïto
cc5ded3854 [CACLS][CLIP][COMP][EVENTCREATE][HELP][LOGOFF][SHUTDOWN][CHKDSK][FORMAT][SUBST]
- Use Puts functions where needed;
- Fix a __stdcall that needs to be read __cdecl for a variadic function.

[CACLS]
Fix some resources so that the strings can hold on the width of a standard console screen (80 chars).

svn path=/trunk/; revision=72930
2016-10-07 21:57:12 +00:00
Hermès Bélusca-Maïto
bf2828383e Fix build.
svn path=/trunk/; revision=72929
2016-10-07 20:44:15 +00:00
Hermès Bélusca-Maïto
bc065fb271 [CACLS][CLIP][COMP][HELP][LOGOFF][SHUTDOWN][CHKDSK][FORMAT][SUBST]
Make those command tools use the console uilities library, aka. solve all those problems of wrong characters on the console...
Nitpickers may notice that at some places, the usage of a "Puts"-like function would be better than Printf. Don't worry, I'm on it, it's for another commit.
CORE-10504
CORE-11909 #resolve

svn path=/trunk/; revision=72928
2016-10-07 20:37:36 +00:00
Mark Jansen
2ff4f82972 [NETID] Cleanup the spec file. Patch by Jared Smudde. CORE-11309 #resolve
svn path=/trunk/; revision=72927
2016-10-07 18:40:45 +00:00
Christoph von Wittich
ee7a3fece4 [MSAFD] Implement WSPDuplicateSocket. By Peter Hater. CORE-12092
svn path=/trunk/; revision=72926
2016-10-07 17:51:03 +00:00
Johannes Anderwald
eb204e920d [USBAUDIO]
- use IoInitializeIrp over IoAllocateIrp
- reinitialize irp and urb when resubmitting it
- usbaudio now successfully transfers stream irps (not yet fully working)

svn path=/trunk/; revision=72925
2016-10-07 17:30:27 +00:00
Christoph von Wittich
4c5f898585 [WS2_32] fix various ws2_32:sock failures with return codes. By Peter Hater. CORE-12104
svn path=/trunk/; revision=72924
2016-10-07 16:17:49 +00:00
Thomas Faber
d47e800182 [DWNL]
- Handle arbitrary console buffer width in write_status
CORE-10228 #resolve

svn path=/trunk/; revision=72923
2016-10-07 15:25:20 +00:00
Hermès Bélusca-Maïto
f239ca0f04 [KD]
- When enabling or disabling the kernel debugger and setting the KdDebuggerEnabled flag, also update the corresponding user-mode flag in SharedUserData->KdDebuggerEnabled.
- Turn KdpGetMemorySizeInMBs into a INIT_FUNCTION.
- Print kernel command line & ARC paths even in debug log file mode.

[KD64]
WinKD: Also print our nice ReactOS debug header (version, # of processors & memory MB, kernel command line and ARC paths).

svn path=/trunk/; revision=72922
2016-10-06 19:01:33 +00:00
Amine Khaldi
9593c338c3 [CONUTILS] Addendum to r72913. CORE-10504
svn path=/trunk/; revision=72921
2016-10-06 14:20:16 +00:00
Hermès Bélusca-Maïto
fe98303465 [RAPPS(_NEW)][SETUP]: Last russian translation fixes, by Kudratov Olimjon, amber, and Sergey Stopkin.
CORE-11510 CORE-11636 #resolve #comment Fixed in r72920, thanks to you all!

svn path=/trunk/; revision=72920
2016-10-06 12:51:05 +00:00
Hermès Bélusca-Maïto
baf0c710d8 [RAPPS_NEW]: Whitespace fix in taiwan chinese language.
svn path=/trunk/; revision=72919
2016-10-06 12:48:37 +00:00
Hermès Bélusca-Maïto
5f68ab2401 [RAPPS][RAPPS_NEW]: Try to not hardcode types of variables in sizeofs, and use _countof where possible.
svn path=/trunk/; revision=72918
2016-10-06 12:22:32 +00:00
Amine Khaldi
894fa45ad2 [WS2_32_WINETEST] Sync with Wine Staging 1.9.20.
svn path=/trunk/; revision=72917
2016-10-06 11:15:59 +00:00
Thomas Faber
e8109a02b4 [SYSSETUP]
- Install the DHCP client service as part of nettcpip.inf. This ensures it does not try to run before tcpip is installed.
CORE-12011 #resolve

svn path=/trunk/; revision=72916
2016-10-06 10:57:29 +00:00
Daniel Reimer
48a354d428 [INF]
Update Root CAs removing "Juur-SK", "EBG Elektronik Sertifika Hizmet Saglayicisi" and "IGC/A"

svn path=/trunk/; revision=72915
2016-10-05 22:53:24 +00:00
Daniel Reimer
f37012d4bd [FONTS]
Next time I will update the doc folder, too...

svn path=/trunk/; revision=72914
2016-10-05 22:48:51 +00:00
Hermès Bélusca-Maïto
89db25b0b1 [CONUTILS]: Create a C library for console output/input functions, last-error messages display, etc. to be used for all of our internal command-line utilities. Useless user32.dll dependencies are removed thanks to this lib. Currently only output functions are supported.
CORE-10504

[EVENTCREATE]: Adapt EventCreate to use ConUtils library, as an example of how to use this library.

svn path=/trunk/; revision=72913
2016-10-05 17:40:22 +00:00
Hermès Bélusca-Maïto
b881e7c859 [KERNEL32]: Improve RtlUnwind spec export.
svn path=/trunk/; revision=72912
2016-10-05 17:30:56 +00:00
Hermès Bélusca-Maïto
699e9b4328 [INCLUDES/CRT]: Fix the definition of 'stderr' (that we have wrong since r38292); move it next to the _iob definition.
svn path=/trunk/; revision=72911
2016-10-05 14:30:59 +00:00
Amine Khaldi
5290f6cf12 [MSAFD] Fix socket address length returned in WSPAccept. By Peter Hater. CORE-8549
svn path=/trunk/; revision=72910
2016-10-05 09:39:12 +00:00
Amine Khaldi
cd930de18d [WS2_32] Fix returned size of socketaddr on accepting connection. By Peter Hater. CORE-8549
svn path=/trunk/; revision=72909
2016-10-05 09:37:52 +00:00
Amine Khaldi
c3b215936d [WS2_32_APITEST] Add tests for getnameinfo. By Peter Hater. CORE-8549
svn path=/trunk/; revision=72908
2016-10-05 09:33:03 +00:00
Sylvain Petreolle
9c1da77024 [NtUser]
Revert r72905.

svn path=/trunk/; revision=72907
2016-10-05 08:46:30 +00:00
Colin Finck
a0c5f491cd Add a directory guaranteed to be empty :)
Needed for CORE-11988 to add arbitrary empty directories to the ISO image using mkisofs.
This change can't be expressed in a patch, so I have to do it right here.

svn path=/trunk/; revision=72906
2016-10-04 23:12:55 +00:00
Sylvain Petreolle
63a22e2a2f [NtUser]
Turn an ERR into a TRACE.

svn path=/trunk/; revision=72905
2016-10-04 21:45:39 +00:00
Amine Khaldi
b00ebb4709 [MSAFD] Fix some error translations by Peter Hater. CORE-7487
svn path=/trunk/; revision=72904
2016-10-04 18:36:00 +00:00
Amine Khaldi
fed5729c81 [WS2_32_WINETEST] Enable test_address_list_query() again, now that CORE-12000 is resolved.
svn path=/trunk/; revision=72903
2016-10-04 18:32:09 +00:00
Amine Khaldi
12aba472ef [MSAFD] Partial implementation of SIO_ADDRESS_LIST_QUERY by Peter Hater. CORE-12000
svn path=/trunk/; revision=72902
2016-10-04 18:27:17 +00:00
Thomas Faber
bf8b336ec9 [USER32_APITEST]
- Fix build

svn path=/trunk/; revision=72901
2016-10-04 15:37:25 +00:00
Thomas Faber
0a783e0ff3 [USER32_APITEST]
- Extend GetUserObjectInformation tests by adding tests for UOI_NAME on the default as well as custom window stations/desktops.
CORE-12073

svn path=/trunk/; revision=72900
2016-10-04 15:14:30 +00:00
Colin Finck
dc5f65c8d9 [HOST_TOOLS]
Defining -fshort-wchar globally for all host tools breaks every possibility to interact with the host's Unicode support for some operating systems with 4 byte wchar_t (like Mac OS X).
Let's better define no additional global flags and only add -fshort-wchar for the host modules that really need a 2-byte wchar_t for writing ReactOS data files. These are cmlibhost, inflibhost, mkhive and xml2sdb.

Also add -Wno-multichar only for cmlibhost, where it's required.

In preparation for CORE-11988

svn path=/trunk/; revision=72899
2016-10-04 12:37:52 +00:00
Amine Khaldi
2a4fd5b529 [ADNS][DNSAPI] Fix a local resolving regression that led to some browsers crashing after startup. By Peter Hater. CORE-12072 CORE-12088
svn path=/trunk/; revision=72898
2016-10-04 07:55:15 +00:00
Hermès Bélusca-Maïto
1c4750792d [CLIPBRD][EVENTVWR][MPLAY32][WELCOME][SYSDM]
Fix the ShowLastWin32Error helpers:
- don't display the last error string if it's ERROR_SUCCESS (since the code usually expects to display the last error message in case of errors);
- *always* call FormatMessage with the FORMAT_MESSAGE_IGNORE_INSERTS flag enabled. Indeed if it happens that the message string associated to an error ID contains insert parameter placeholders, and since we don't give here FormatMessage any argument array, the call would result into a crash without this flag.

svn path=/trunk/; revision=72897
2016-10-03 12:22:29 +00:00
Alex Ionescu
eb94308bbb [NTOS]: Handle two complex failure paths, one of which is apparently easily reproducible by ntdll:om test (I'm guessing some invalid object attribute). Thanks to Amine and lentin. Haven't tested this, but hopefully fixes things (and doesn't leak).
svn path=/trunk/; revision=72896
2016-10-03 03:30:11 +00:00
Hermès Bélusca-Maïto
58d0c0b704 [EVENTCREATE]: Update the english, russian & turkish translations:
- Translate a string into english (that I forgot to do: english & turkish);
- Fix the allowed event ID range mentioned in the help (russian);
- The event log names should not be localized (turkish).

svn path=/trunk/; revision=72895
2016-10-02 21:49:03 +00:00
Amine Khaldi
5a80dc6298 [EVENTCREATE] Attempt to fix unrecognized escape sequence issue. Sergey please review. CORE-12069
svn path=/trunk/; revision=72894
2016-10-02 20:40:06 +00:00
Amine Khaldi
b0887ed28d [TRANSLATIONS] Turkish translation update by Erdem Ersoy. CORE-12089
svn path=/trunk/; revision=72893
2016-10-02 20:37:58 +00:00
Amine Khaldi
b88d0f18e9 [EVENTCREATE][PING] Russian translation update by Sergey Stopkin. CORE-12069
svn path=/trunk/; revision=72892
2016-10-02 19:26:45 +00:00
Giannis Adamopoulos
8a0defef3d [SHELL32]
- CNetFolder: Use the Folder class for the items shown. The same is done in shell extensions (in windows) that use the CDefaultContextMenu and want the Open and Explore verbs to be shown. This behaviour was first discovered by gigaherz when ntobjshex was tested in windows.
CORE-12086

svn path=/trunk/; revision=72891
2016-10-02 13:22:01 +00:00
Johannes Anderwald
1cfbbff51a [USBAUDIO]
- edit allocator framing struct to match endpoint requirements
- implement partly PinCaptureProcess, not yet working

svn path=/trunk/; revision=72890
2016-10-02 13:08:23 +00:00
Johannes Anderwald
160d7c5b1e [SDK]
- add missing definitions

svn path=/trunk/; revision=72889
2016-10-02 09:15:13 +00:00
Pierre Schweitzer
67cf4907ae [SHELL32]
When parsing the UNC names, start the connection to allow the user to browse the net folder immediately.
This is required for network providers which require the connections to be started before browsing (as VBoxNP).

This is likely a hack.

ROSAPPS-303
CORE-11757

svn path=/trunk/; revision=72888
2016-10-02 08:46:30 +00:00
Thomas Faber
bbc1b9deba [RTL]
- Only check for MBCS lead bytes in RtlIsTextUnicode if specifically requested
CORE-12027 #resolve for real this time

svn path=/trunk/; revision=72887
2016-10-02 08:34:30 +00:00
Hermès Bélusca-Maïto
e294510fcd [EVENTCREATE]: Update the lang files & make 1 stylistic change + remove trailing whitespace. No functionality changes.
svn path=/trunk/; revision=72886
2016-10-01 23:06:23 +00:00
Hermès Bélusca-Maïto
098c7ec631 [DISKPART]: Harmonize the source file info headers. No code changes.
svn path=/trunk/; revision=72885
2016-10-01 22:58:21 +00:00
Hermès Bélusca-Maïto
3eea4e5f2d [FORMAT]: Fix some resources.
svn path=/trunk/; revision=72884
2016-10-01 21:00:16 +00:00
Benedikt Freisen
66a9815a4e [MSPAINT]
- change type of haccel from HANDLE to HACCEL
- port registry code to ATL::CRegKey, which -- through its destructor -- should prevent handle leaks
- rename some parameters and variables
- incorporate some changes suggested by Carlo Bramini in CORE-12080

svn path=/trunk/; revision=72883
2016-10-01 20:04:43 +00:00
James Tabor
fb8f6fd2aa [NtUser]
- Turn off debug information.

svn path=/trunk/; revision=72882
2016-10-01 19:01:04 +00:00
James Tabor
0b4b25d0ed [User32_wineTest]
- Enable skipped test_activateapp tests.

svn path=/trunk/; revision=72881
2016-10-01 18:51:46 +00:00
James Tabor
d8c3f23447 [NtUser]
- Fix lockup while testing wine test_activateapp (all the tests including the ones commented out). Reordered focus functions to eliminate recursions. Fix ROSTESTS-208.

svn path=/trunk/; revision=72880
2016-10-01 18:48:02 +00:00
Thomas Faber
69ce708392 [ADVAPI32]
- Return ERROR_MORE_DATA instead of ERROR_BUFFER_OVERFLOW from RegEnumKeyExW in case the name or class buffer is too small.
CORE-12030 #resolve

svn path=/trunk/; revision=72879
2016-10-01 16:44:21 +00:00
Mark Jansen
cf6ff20079 [SHELL32] New shortcut overlay icon, fixed Folder Options Dialog icon, and other minor icon fixes by Jared Smudde. CORE-11414 #resolve #comment Thanks!
svn path=/trunk/; revision=72878
2016-10-01 16:35:14 +00:00
Mark Jansen
51a51d3174 [EXPLORER] Make the 'Remove' button in classic start menu properties spawn the remove dialog. Patch by Jared Smudde. CORE-12076 #resolve #comment Thanks!
svn path=/trunk/; revision=72877
2016-10-01 15:57:29 +00:00
Thomas Faber
3a5e3ae774 [ADVAPI32_APITEST]
- Add a test for RegEnumKeyExW showing that it should return ERROR_MORE_DATA instead of ERROR_BUFFER_OVERFLOW when the name buffer is too small. Based on a patch by Doug Lyons.
CORE-12030

svn path=/trunk/; revision=72876
2016-10-01 14:41:41 +00:00
Amine Khaldi
254a9ba114 [SHELL32] Disconnect dialog improvements by Jared Smudde. CORE-11864
svn path=/trunk/; revision=72875
2016-10-01 09:50:53 +00:00
Amine Khaldi
b5806e39e8 [NETSHELL][SAMSRV][SYSSETUP] Fix some misspellings. By Coburn on IRC and Jared Smudde. CORE-12013
svn path=/trunk/; revision=72874
2016-10-01 09:43:24 +00:00
Thomas Faber
531ee01590 [NTOS:EX]
- Acquire ProcessLock before accessing a process's thread list in NtQuerySystemInformation/SystemProcessInformation. Patch by Volodymyr Shcherbyna.
CORE-12001 #resolve

svn path=/trunk/; revision=72873
2016-10-01 09:03:47 +00:00
Amine Khaldi
10cdda5bf5 [MSTSC] Japanese translation improvements by Katayama Hirofumi MZ. CORE-12067
svn path=/trunk/; revision=72872
2016-10-01 08:38:01 +00:00
Thomas Faber
c77ad2e9b5 [WIN32K:NTGDI]
- Handle arbitrary-length DEVMODEW structures in NtGdiOpenDCW. Patch by Katayama Hirofumi MZ with small changes by me.
CORE-12068 #resolve

svn path=/trunk/; revision=72871
2016-10-01 08:25:35 +00:00
Dmitry Chapyshev
c60a62e0de [NTOS:FSRTL] Handle failure case
svn path=/trunk/; revision=72870
2016-09-30 17:33:19 +00:00
Thomas Faber
076a3c9cb7 [NTOS:MM]
- Get rid of MiNonPagedSystemSize, which is misleading because MmNumberOfSystemPtes can change throughout the startup process, thus invalidating this size variable
- Correctly reserve the system PTE space and nonpaged pool expansion space in MiInitSystemMemoryAreas
Should fix the remaining "Bad PTE" bug checks when running out of kernel address space.
CORE-11533 #resolve
CORE-11160 CORE-10611 CORE-11926 CORE-11873 CORE-11554 #comment This should be fixed with r72869, please retest.

svn path=/trunk/; revision=72869
2016-09-30 15:58:23 +00:00
Amine Khaldi
8e21414853 [DNSAPI_APITEST] Add more tests for DnsQuery_A/W. By Peter Hater. ROSTESTS-242
svn path=/trunk/; revision=72868
2016-09-30 15:23:25 +00:00
Amine Khaldi
040de105cc [ADNS][DNSAPI][MSWSOCK] Several fixes and improvements to DnsQuery and co, detailed in CORE-11394. This also fixes CORE-7441, many tests in dnsapi:DnsQuery, ws2_32:getaddrinfo and more. Brought to you by Peter Hater.
svn path=/trunk/; revision=72867
2016-09-30 15:19:29 +00:00
Johannes Anderwald
bc741955ed - fix bugs in USBAudioSelectAudioStreamingInterface
svn path=/trunk/; revision=72866
2016-09-30 09:57:42 +00:00
Johannes Anderwald
8895dae5d0 [USBAUDIO]
- implement GetMaxPacketSizeForInterface, UsbAudioAllocCaptureUrbIso, InitCapturePin

svn path=/trunk/; revision=72865
2016-09-29 22:19:34 +00:00
Daniel Reimer
ad3aa035db [RAPPS_NEW]
When Internet connection is down. Rapps does not generate any msg by Rama Teja Gampa
+ GIT -> SVN Patch manual translation
+ Bitrot fixes
+ Tabs -> Spaces fixes
CORE-10980 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=72864
2016-09-29 21:31:11 +00:00
Daniel Reimer
8ff30df6f3 [RAPPS]
Translate missing string

svn path=/trunk/; revision=72863
2016-09-29 21:25:36 +00:00
Daniel Reimer
60153818ab [ROSAPPS]
Russian translation update by Sergey Stopkin
ROSAPPS-333 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=72862
2016-09-29 21:02:07 +00:00
Daniel Reimer
91d63bd669 [PING]
Russian translation update by Sergey Stopkin + lil build fix by me
CORE-12019 #resolve #comment Committed, thx ^^ Beware of " in string blocks though, these are "" then

svn path=/trunk/; revision=72861
2016-09-29 20:59:03 +00:00
Daniel Reimer
30abd4f6ee [POWERCFG]
Bug fix and improvements to PowerCfg applet by Carlo Bramini
CORE-11801 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=72860
2016-09-29 20:54:58 +00:00
Daniel Reimer
c3df272d43 [3DTEXT]
3d Text Screensaver pt-BR translation by Lucas Raziel
CORE-11672 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=72859
2016-09-29 20:46:14 +00:00
Mark Jansen
137402a3be [DXDIAG] Fix DirectDraw test titles & 16bit icon. Patch by Jared Smudde. CORE-11054 #resolve #comment Thanks!
svn path=/trunk/; revision=72858
2016-09-29 20:29:59 +00:00
Johannes Anderwald
8363fc0f08 [USBAUDIO]
- fix bug in UsbAudioSetFormat

svn path=/trunk/; revision=72857
2016-09-29 19:25:31 +00:00
Hermès Bélusca-Maïto
a8badad1fa [EVENTCREATE]: Check for a better last error after the GetModuleFileNameW call.
svn path=/trunk/; revision=72856
2016-09-29 17:42:20 +00:00
Hermès Bélusca-Maïto
fbebe613b7 Temporarily switch the message file to English language to try to "fix" windmc compilation on linux host (*of course*, this problem didn't happen on the "GNU windmc (GNU Binutils) 2.23.51.20121208" provided in RosBE 2.1.3 for Windows, nor with MC.EXE from MSVC...)
svn path=/trunk/; revision=72855
2016-09-29 16:58:02 +00:00
Hermès Bélusca-Maïto
efc5b376b4 [EVENTCREATE]: Implement the EventCreate command-line tool, which allows reporting custom user events in event logs, by using the old-school NT <= 2k3 logging API.
More information in the JIRA report and in the source code (eventcreate.c).
The generator (evtmsggen) for the event message string templates file "evtmsgstr.mc" is also provided.
CORE-12065 #resolve

svn path=/trunk/; revision=72854
2016-09-29 16:49:27 +00:00
Amine Khaldi
1fbf90a712 [TRANSLATIONS] Turkish translation update by Erdem Ersoy. CORE-12039
svn path=/trunk/; revision=72853
2016-09-29 11:33:25 +00:00
Benedikt Freisen
0e026443cf [PSDK][GDIPLUS]
Make previously untested GDI+ C++ wrappers compilable.  This involves:
- adding the respective headers to gdiplus.h in a sensible order
- adding forward-declarations
- adding friend-declarations, so that the wrapper functions in those classes can access the private GpXXX members
- const-qualifying the getters in class Color
- adding the EmfToWmfBitsFlags enum
- commenting out bits that use unavailable flatapi functions
- commenting out bits that for some reason the compiler does not like
- the typical typo/data type fixes that untested code tends to need
- moving the Font class within the same header to fulfill dependencies
- adding private GpXXX members to otherwise unimplemented classes
- adding a data-members-only implementation of SizeF

svn path=/trunk/; revision=72852
2016-09-29 11:15:10 +00:00
Amine Khaldi
6a6a58912e [IPHLPAPI][KERNEL32] Revert r72722 and apply a proper fix based on tests. By Peter Hater. CORE-10440 ROSTESTS-243
svn path=/trunk/; revision=72851
2016-09-29 10:49:30 +00:00
Amine Khaldi
d3aebbcedc [RTL] Demote this print as we'll be notified when failure occurs.
svn path=/trunk/; revision=72850
2016-09-29 10:00:07 +00:00
Amine Khaldi
c27310bf96 [KERNEL32_APITEST] Add tests that reveal how the GetComputerNameEx fix in r72722 was not proper. By Peter Hater. ROSTESTS-243
svn path=/trunk/; revision=72849
2016-09-29 09:44:57 +00:00
Thomas Faber
1ff9c7f40d [RAPPS]
- Avoid an unintended fall-through and document and intended one in DownloadProgressProc. CID 1341273 (rapps), 1363531 (rapps_new)

svn path=/trunk/; revision=72848
2016-09-29 09:36:33 +00:00
Thomas Faber
e5645b55eb [WIN32K:NTUSER]
- Add missing break in DefWndStartSizeMove. CID 513489
CORE-12064 #resolve

svn path=/trunk/; revision=72847
2016-09-29 08:23:26 +00:00
Hermès Bélusca-Maïto
4b67338a7f [REACTOS]: Do not gather all the generated message resource files in the same directory (sdk/include/reactos/), so that to avoid potential file collisions, but instead place them into their respective per-target directories.
CORE-12062 #resolve

[RAPPS_NEW]: Fix rapps_new message header & resource files inclusion.

[ROSTESTS]: Adjust the CMakeLists files in accordance.

svn path=/trunk/; revision=72846
2016-09-28 23:20:20 +00:00
Dmitry Chapyshev
fb4cb1c8c5 [SHLWAPI] Try to fix regression
svn path=/trunk/; revision=72845
2016-09-28 21:44:01 +00:00
Mark Jansen
8ab805c96c [DEGMGR] Revert r65406, this is not a leak. CORE-9716 #comment Please retest!
svn path=/trunk/; revision=72844
2016-09-28 21:05:39 +00:00
Johannes Anderwald
ff46d90618 [USBAUDIO]
- implement USBAudioSelectAudioStreamingInterface

svn path=/trunk/; revision=72843
2016-09-28 20:31:32 +00:00
Hermès Bélusca-Maïto
d1faa1a99f Addendum to r72841.
svn path=/trunk/; revision=72842
2016-09-28 20:22:33 +00:00
Hermès Bélusca-Maïto
9c77bd1cb7 Use set_module_type() with module type == "module" instead of specifying that the entrypoint is 0, for resource-only dlls.
svn path=/trunk/; revision=72841
2016-09-28 20:21:31 +00:00
Dmitry Chapyshev
0140e3bf68 [KERNEL32] Add check for Flags parameter.
* Fixes 124 tests for kernel32:WideCharToMultiByte

svn path=/trunk/; revision=72840
2016-09-28 19:53:43 +00:00
Dmitry Chapyshev
d507b7555e [NTOS:FSRTL] Rework FsRtlIsDbcsInExpression for correct parsing some expressions
* Fixes 1 test for kmtest:FsRtlExpression

svn path=/trunk/; revision=72839
2016-09-28 19:01:10 +00:00
Mark Jansen
7d865c5974 [KERNEL32] Mute WC_COMPOSITECHECK DPRINT1. CORE-12058 #resolve
svn path=/trunk/; revision=72838
2016-09-28 17:33:36 +00:00
James Tabor
eb207003e7 [Win32SS]
- Fix menu crash, marking the menu object destroyed if the access count is more than one. Must remember these are not GDI objects. Expect a retooling of user objects soon. Set CORE-11892.

svn path=/trunk/; revision=72837
2016-09-28 16:51:53 +00:00
Amine Khaldi
d0e5925de2 [IPHLPAPI_APITEST] Add some tests for GetNetworkParams. By Peter Hater. ROSTESTS-244
svn path=/trunk/; revision=72836
2016-09-28 14:27:48 +00:00
Dmitry Chapyshev
d04540ff98 [NTOS:FSRTL] Rework FsRtlIsNameInExpressionPrivate for correct parsing some expressions
* Fixes 1 test for kmtest:FsRtlExpression and 15 tests for kernel32:file

svn path=/trunk/; revision=72835
2016-09-27 23:00:20 +00:00
Giannis Adamopoulos
1b795376fc [SHELL32]
- CDesktopBrowser: Implement support for multiple monitors. This needs to be disabled since we don't support LVM_SETWORKAREAS in comctl32 yet. Till then confine the desktop window in the default monitor.

svn path=/trunk/; revision=72834
2016-09-27 22:53:39 +00:00
Johannes Anderwald
17cc431d33 [USBAUDIO]
- improve guid mess a bit
- thanks amine 

svn path=/trunk/; revision=72833
2016-09-27 19:56:54 +00:00
Johannes Anderwald
8112191cdb [USBAUDIO]
- implement USBAudioFilterCreate
- partly implement USBAudioPinCreate, USBAudioPinSetDataFormat

svn path=/trunk/; revision=72832
2016-09-27 19:20:00 +00:00
Amine Khaldi
96d5ff4d93 [PING] Minor fixes by Tim Crawford. Please see CORE-12022 for the list of changes.
svn path=/trunk/; revision=72831
2016-09-27 18:37:45 +00:00
Mark Jansen
105f70b1fe [ATL_APITEST] Remove dependency on rpcrt4. CORE-10029
svn path=/trunk/; revision=72830
2016-09-27 18:20:20 +00:00
Amine Khaldi
2735832354 [DNSAPI_APITEST] Add some tests for DnsQuery_A/W. By Peter Hater. ROSTESTS-242
svn path=/trunk/; revision=72829
2016-09-27 18:00:03 +00:00
Thomas Faber
b12f9a0545 [SHELL32]
- Work around what appears to be a bug in the VS 2010 resource compiler (it failed without an error message when processing this file)

svn path=/trunk/; revision=72828
2016-09-27 17:14:39 +00:00
Thomas Faber
16b33b45ab [ATL_APITEST]
- Fix MSVC build

svn path=/trunk/; revision=72827
2016-09-27 16:51:39 +00:00
Daniel Reimer
deb1abff20 [RAPPS]
ooops

svn path=/trunk/; revision=72826
2016-09-27 05:46:09 +00:00
James Tabor
5cb2406405 [NtUser]
- Need more information from callbacks.

svn path=/trunk/; revision=72825
2016-09-27 01:14:49 +00:00
Hermès Bélusca-Maïto
99b8a71b9d [USERINIT]: Addendum to r72823 (sorry for the redundant commits): Fix a use without initialization warning for the 'Success' variable: initialize it to TRUE so that we by default do not perform the main menu loop (in livecd mode).
svn path=/trunk/; revision=72824
2016-09-26 22:52:04 +00:00
Hermès Bélusca-Maïto
3f6ca86312 [USERINIT]: Usability commit: when in LiveCD mode, if we cannot start the shell or the installer, display again the main menu.
svn path=/trunk/; revision=72823
2016-09-26 22:49:13 +00:00
Hermès Bélusca-Maïto
6c90c67259 [USERINIT]: Addendum to r72821 + demote to WARNing the displayed message if the installer could not be started.
svn path=/trunk/; revision=72822
2016-09-26 22:47:25 +00:00
Hermès Bélusca-Maïto
0a81885192 [USERINIT]
- Use explicit unicode functions where possible.
- Use ARRAYSIZE(foo) instead of sizeof(foo)/sizeof(foo[0]).
- Don't hardcode some buffer sizes.
- Try reducing level of code indentation in some functions.
- Make StartShell and StartInstaller return a boolean (TRUE: success; FALSE: failure). Will be needed in the next commit.
- Remove a useless "#pragma warning".

svn path=/trunk/; revision=72821
2016-09-26 22:42:56 +00:00
Mark Jansen
ed8515d7ed [ATL][ATL_APITEST] Implement some basic functionality for CComVariant + tests. CORE-12041
Also adds Detach() to CComBSTR.

svn path=/trunk/; revision=72820
2016-09-26 20:50:36 +00:00
Benedikt Freisen
7c6b473efc [MSPAINT]
- port load and save to ATL::CImage
- let CImage generate the filter lists for the dialogs
- add menu entries "From Scanner or Camera..." and "Send..." (no functionality)
- add menu entries for most recently used files using ATL::CPath and ATL::CString
- manage list of most recently used files in registry using ATL::CRegKey
- use CString in some places instead of TCHAR arrays

Use of CImage for load/save adds support for all GDI+ formats but breaks import/export of dots per meter/inch values.

svn path=/trunk/; revision=72819
2016-09-26 19:53:42 +00:00
Benedikt Freisen
dcea2a97b2 [ATL][ROSTESTS] Tests for: CImage: Add GetImporterFilterString and GetExporterFilterString. Patch by Katayama Hirofumi MZ, CORE-10029
svn path=/trunk/; revision=72818
2016-09-26 19:15:40 +00:00
Benedikt Freisen
61c3571160 [ATL] CImage: Add GetImporterFilterString and GetExporterFilterString. Patch by Katayama Hirofumi MZ, CORE-10029
svn path=/trunk/; revision=72817
2016-09-26 19:08:20 +00:00
Daniel Reimer
d894f5d843 [RAPPS]
Bugfix to correctly identify the size of the programs in RAPPS for the Russian language by amber
CORE-11847 #resolve #comment Committed, thx.
App Manager - NirLauncher has a broken link by Ken Rochard
CORE-11718 #resolve #comment Committed, thx.
App Manager - Audacity has a broken link by Ken Rochard
CORE-11719 #resolve #comment Committed, thx.
Downgrade Python 3.5 to Python 3.4 (if it works) in Rapps by David Kleuker
CORE-11342 #resolve #comment Committed, thx.
App Manager - Libre Office 5.1.3 has a broken link by Ken Rochard
CORE-11670 #resolve #comment Committed, thx.
[RAPPS-DB] Click-N-Type Virtual Keyboard version is wrong by reactosfanboy
CORE-11243 #resolve #comment Committed, thx.

svn path=/trunk/; revision=72816
2016-09-26 18:42:16 +00:00
Benedikt Freisen
b2b90f6342 [ATL]
- implement CStringT::LoadString(UINT nID) via LoadString(_AtlBaseModule.GetResourceInstance(), nID)

[FLTMC]
- add target_link_libraries(fltmc atlnew) so that the linker finds _AtlBaseModule

svn path=/trunk/; revision=72815
2016-09-26 17:50:07 +00:00
Eric Kohl
2f75d2cf5a [LSASRV]
Store the domain name and user SID in the session too.

svn path=/trunk/; revision=72814
2016-09-26 16:28:10 +00:00
Benedikt Freisen
a5bb3a9997 [ATL] cstringt.h: Uncomment and complete Format(UINT nFormatID, ...). It still uses a LoadString-stub, though.
svn path=/trunk/; revision=72813
2016-09-26 14:11:50 +00:00
Dmitry Chapyshev
75df465bbf [NTOS:KE] Use variable instead function calling
svn path=/trunk/; revision=72812
2016-09-26 12:31:26 +00:00
Dmitry Chapyshev
aac32378ed [NTOS:KE] Added *Thread versions of macros with ASSERT(_Thread == KeGetCurrentThread()). Use new macros in _KeAcquireGuardedMutex, _KeReleaseGuardedMutex, _KeTryToAcquireGuardedMutex. Thanks Alex!
svn path=/trunk/; revision=72811
2016-09-26 12:03:57 +00:00
Thomas Faber
4e21017693 [KERNEL32]
- Handle UTF-16 surrogate pairs in IntWideCharToMultiByteUTF8.
CORE-12042 #resolve

svn path=/trunk/; revision=72810
2016-09-26 10:12:58 +00:00
Thomas Faber
8abd9a0386 [KERNEL32_APITEST]
- Add a test for WideCharToMultiByte with CP_UTF8
CORE-12042

svn path=/trunk/; revision=72809
2016-09-26 10:06:55 +00:00
Giannis Adamopoulos
a4aafe9309 [SHELL32]
- CDefView: Overhaul the code that filled the menu bar of explorer. Fill the arrange as menu with the column names from the shell folders instead of hardcoding them. Check the selected arrange mode and view mode in the menu bar and in the context menu. Make the items in the file menu to actually work. It is possible to arrange the icons from the context menu now. 
- Note to translators: Please check that the changes that I did in the 31 resource files make sense. Also note that the "Arrange Icons" menu now is called "Arrange Icons As".

svn path=/trunk/; revision=72808
2016-09-26 00:43:21 +00:00
Robert Naumann
5895908402 [SHELL32]Swedish translation by Andreas Bjerkeholt CORE-12040
svn path=/trunk/; revision=72807
2016-09-25 22:53:05 +00:00
Jérôme Gardou
14628d18e5 [KDGDB]
- Fix a stupid typo, causing all threads to have the same backtrace.

svn path=/trunk/; revision=72806
2016-09-25 22:33:48 +00:00
Benedikt Freisen
844f4e8868 [ATL] atlpath.h: This looked like a bug.
svn path=/trunk/; revision=72805
2016-09-25 21:14:23 +00:00
Benedikt Freisen
ee95d592f0 [ATL] Add atlpath.h, which provides the CPathT class template and the classes CPath, CPathA and CPathW. CORE-12034
svn path=/trunk/; revision=72804
2016-09-25 19:58:22 +00:00
Jérôme Gardou
7b8651cd90 [SDK/GCC_INTRIN]
- Update __invlpg instrinsic for x86_64 compatibility

svn path=/trunk/; revision=72803
2016-09-25 18:35:52 +00:00
Dmitry Chapyshev
28e32eb784 [RTL] Capture parameters with using SEH. Fixes new test for ntdll:RtlAllocateHeap
svn path=/trunk/; revision=72802
2016-09-25 17:05:52 +00:00
Dmitry Chapyshev
92e7c0979a [NTDLL_APITEST] Add test for invalid pointer
svn path=/trunk/; revision=72801
2016-09-25 16:57:55 +00:00
Thomas Faber
3e357794f9 [NTOS:PO]
- Protect against invalid user mode pointers in NtPowerInformation

svn path=/trunk/; revision=72800
2016-09-25 13:46:18 +00:00
Dmitry Chapyshev
7986e05dd7 [NTOS:PO] Stubpliment ProcessorInformation case in NtPowerInformation. Fixes 1 test for ntdll:info
svn path=/trunk/; revision=72799
2016-09-25 13:03:06 +00:00
Benedikt Freisen
9c2f0f7e3a [ATL] atltime.h: fix assertion: hours of a day are in the range 0-23, not 0-59
svn path=/trunk/; revision=72798
2016-09-25 09:33:56 +00:00
Thomas Faber
44408ed371 [RTL]
- Avoid dereferencing a NULL pointer in RtlIsTextUnicode
CORE-12027 #resolve

svn path=/trunk/; revision=72797
2016-09-25 08:25:45 +00:00
Hermès Bélusca-Maïto
558f564017 [EVENTVWR]: Turkish translation update by Erdem Ersoy.
CORE-12031 #resolve #comment Committed, thanks!

svn path=/trunk/; revision=72796
2016-09-24 23:21:05 +00:00
Benedikt Freisen
40e80da24a [SDK][ATL] Add header atltime.h and prerequisites in atlsimpstr.h and atlstr.h. CORE-12023
svn path=/trunk/; revision=72795
2016-09-24 18:01:49 +00:00
Mark Jansen
5fbd6598b7 [MSGINA] Prevent an infinite loop in ShellDimScreen. CORE-12028
svn path=/trunk/; revision=72794
2016-09-24 14:15:23 +00:00
Christoph von Wittich
6476277b5c [CRYPTNET] don't try to prepend a drive letter when there is one already
svn path=/trunk/; revision=72793
2016-09-24 12:19:35 +00:00
Christoph von Wittich
940cde001f [CRYPTNET] disable broken code
svn path=/trunk/; revision=72792
2016-09-24 11:39:17 +00:00
Johannes Anderwald
23829f32f6 [LIBUSBAUDIO]
- delete unused code

svn path=/trunk/; revision=72791
2016-09-24 11:24:07 +00:00
Johannes Anderwald
ceb3c692f3 [USBAUDIO]
- allocate filter descriptor
- fixes hang in win2k3

svn path=/trunk/; revision=72790
2016-09-24 11:17:32 +00:00
Eric Kohl
3c7d74d9d9 [LSASRV]
LsapSetLogonSessionData: Set the logon type and the user name of the selected session.
LsapGetLogonSessionData: Fix the session data marshalling code.
Now we can retrieve the logon type and user name of the logon sessions.

svn path=/trunk/; revision=72789
2016-09-24 09:38:17 +00:00
Dmitry Chapyshev
fdef947fd3 [NTOSKRNL] Add missed _SEH2_YIELD's
svn path=/trunk/; revision=72788
2016-09-24 09:34:09 +00:00
Dmitry Chapyshev
f250bb4eb6 [NTOSKRNL] Remove unneeded sanity checks
svn path=/trunk/; revision=72787
2016-09-24 09:30:06 +00:00
Dmitry Chapyshev
ae49423a04 [ACPPAGE] Update Russian translation
svn path=/trunk/; revision=72786
2016-09-24 09:25:13 +00:00
Johannes Anderwald
5da8ac035d [USBAUDIO]
- add pin dispatch routines

svn path=/trunk/; revision=72785
2016-09-24 08:35:25 +00:00
Christoph von Wittich
fa4bc0ad15 [DNSAPI] sync record.c with wine 1.9.19
svn path=/trunk/; revision=72784
2016-09-24 07:32:25 +00:00
Johannes Anderwald
ebc30bc7c1 [USBAUDIO]
- fix build with gcc

svn path=/trunk/; revision=72783
2016-09-23 22:14:21 +00:00
Johannes Anderwald
f9d6dccd9c [USBAUDIO]
- fix warnings
- implement UsbAudioGetDataRanges for filter descriptor

svn path=/trunk/; revision=72782
2016-09-23 22:07:24 +00:00
Johannes Anderwald
885506056c [USBAUDIO]
- start implementing USBAudioPinBuildDescriptors

svn path=/trunk/; revision=72781
2016-09-23 19:53:19 +00:00
Johannes Anderwald
d034494c4d [KS]
- fix gcc build

svn path=/trunk/; revision=72780
2016-09-23 19:10:44 +00:00
Johannes Anderwald
2380a6ec54 [KS]
- make a copy of KSFILTER_DESCRIPTOR as it might have been allocated from the stack
- always initialize object bag in filter factory 

svn path=/trunk/; revision=72779
2016-09-23 18:35:15 +00:00
Giannis Adamopoulos
ed87e2056d [SHELL32]
- CPrinterFolder: Use the printer icon for printers not the icon for printers folder.

svn path=/trunk/; revision=72778
2016-09-23 15:51:53 +00:00
Dmitry Chapyshev
4a71e9a2bc [SETUPAPI] Implement freeing memory in SetupDiDestroyClassImageList function. Based on patch from CircularTriangle06. Thanks! See CORE-11668
svn path=/trunk/; revision=72777
2016-09-22 21:39:25 +00:00
Giannis Adamopoulos
76bf27c021 [SHELL32]
- SHCreateDefaultContextMenu: Since our shell folders don't pass the array of class keys needed, populate this array right in SHCreateDefaultContextMenu. This code should later be moved to the shell folders so as to make CDefaultContextMenu.cpp agnostic to the kind of items it handles.
- CDefaultContextMenu: Simplify filling the menu by making use of the array of keys passed in the DEFCONTEXTMENU struct.

svn path=/trunk/; revision=72776
2016-09-22 21:34:14 +00:00
Giannis Adamopoulos
05f4321160 [SHELL32]
- CDefaultContextMenu: Simplify some really superfluous code and add more checks for bogus parameters. Create the data object using GetUIObjectOf instead of SHCreateDataObject. Each sell folder should be able to use its own special data object.

svn path=/trunk/; revision=72775
2016-09-22 19:54:15 +00:00
Dmitry Chapyshev
32705690e7 [NLS] Add 1146 and 21025 code pages
svn path=/trunk/; revision=72774
2016-09-22 18:16:30 +00:00
Dmitry Chapyshev
e12d8ec40d [NLS] Add missed code pages
svn path=/trunk/; revision=72773
2016-09-22 18:14:07 +00:00
Giannis Adamopoulos
3fc6a9d6f0 [HIVECLS.INF]
- Drive property page is registered by sehll32.

svn path=/trunk/; revision=72772
2016-09-22 16:48:12 +00:00
Giannis Adamopoulos
adffe02e6f [SHELL32]
- Handle failure in SHELL32_CompareDetails.

svn path=/trunk/; revision=72771
2016-09-22 16:22:44 +00:00
Giannis Adamopoulos
c6db4d179c [SHELL32]
- COpenWithMenu: Don't try to close the same registry key twice.

svn path=/trunk/; revision=72770
2016-09-22 16:14:07 +00:00
Giannis Adamopoulos
e00840033e [SHELL32]
- HCR_GetFolderAttributes already calls GetAttributesOf when needed, calling it when it is not needed can lead to crashes.

svn path=/trunk/; revision=72769
2016-09-22 16:09:28 +00:00
Christoph von Wittich
ef8e98a485 [SHELL32] implement CreateViewWindow3 and fix CreateViewWindow2
svn path=/trunk/; revision=72768
2016-09-22 14:28:44 +00:00
Eric Kohl
e5d301366c [LSASRV]
LsapGetLogonSessionData: Marshall the session data before sending them to the client.

[SECUR32]
LsaConnectUntrusted: Wait for the authentication thread.
LsaGetLogonSessionData: Unmarshall the session data after receiving them from the server.

svn path=/trunk/; revision=72767
2016-09-22 11:27:05 +00:00
Benedikt Freisen
770c7d7cb0 [MSPAINT] Lets
svn path=/trunk/; revision=72766
2016-09-22 10:03:32 +00:00
Amine Khaldi
5d8bf427ca [PING] Rewrite ping. It now uses the Icmp* functions in iphlpapi, supports IPv4 and IPv6, and adds more options than available in the current ReactOS ping. Brought to you by Tim Crawford. CORE-10573
svn path=/trunk/; revision=72765
2016-09-22 08:10:47 +00:00
Christoph von Wittich
e0f1966727 [SHELL32] revert 72685 the testman hang wasn't related
svn path=/trunk/; revision=72764
2016-09-21 19:51:35 +00:00
Mark Jansen
2d582ff542 [CRT] Fix __getmainargs parsing for a commandline ending with spaces. Patch by Yaroslav Veremenko CORE-9199 #comment Thanks, please re-test!
svn path=/trunk/; revision=72763
2016-09-21 19:34:42 +00:00
Mark Jansen
6ee0488c6d [CRT_APITEST] Add tests for __getmainargs, testing a commandline ending with spaces. Patch by Yaroslav Veremenko CORE-9199
svn path=/trunk/; revision=72762
2016-09-21 19:26:47 +00:00
Mark Jansen
1d08fd530f [NETSHELL] Register some COM interfaces to fix a few tests. Patch by Jared Smudde. CORE-12016 #resolve #comment Thanks!
svn path=/trunk/; revision=72761
2016-09-21 19:04:07 +00:00
Mark Jansen
37e073b675 [NETSHELL.RGS] set eol-style so that hopefully the patchbot will eat a patch without choking on it.
svn path=/trunk/; revision=72760
2016-09-21 17:55:35 +00:00
Amine Khaldi
51d329b7e1 [IPHLPAPI] Fix all testIcmpSendEcho tests. By Peter Hater. Please see CORE-11993 for the list of changes.
svn path=/trunk/; revision=72759
2016-09-21 15:53:17 +00:00
Hermès Bélusca-Maïto
640e1bacfc [LSALIB]: Fix build (and 2 dprints in the process).
svn path=/trunk/; revision=72758
2016-09-21 14:02:54 +00:00
Eric Kohl
1b6257ac3f [LSASRV]
Revert all pointless changes from r72751.

svn path=/trunk/; revision=72757
2016-09-21 10:49:40 +00:00
Eric Kohl
73975f8f4a [LSALIB]
- LsaRegisterLogonProcess: Wait for the LSA_AUTHENTICATION_INITIALIZED event.
- LsaDeregisterLogonProcess: Use ZwClose to close the port handle.

svn path=/trunk/; revision=72756
2016-09-21 10:27:06 +00:00
Eric Kohl
dff8dfadb8 [LSASRV]
Open/Create and set the \\SECURITY\\LSA_AUTHENTICATION_INITIALIZED event after the LsaAuthenticationPort has been created.

svn path=/trunk/; revision=72755
2016-09-21 07:27:18 +00:00
Eric Kohl
0b423f6a54 [LSALIB][SECUR32]
- Move LsaConnectUntrusted() from sdk/lib/lsalib/lsa.c to dll/win32/secur32/lsalpc.c as it is not exported from ntoskrnl.
- Remove obsolete code from lsalib.

svn path=/trunk/; revision=72754
2016-09-21 06:19:22 +00:00
Eric Kohl
1df78f4892 [LSALIB]
LsaRegisterLogonProcess: Do not wait for \\SECURITY\\LSA_AUTHENTICATION_INITIALIZED to get signaled as it breaks the boot.

svn path=/trunk/; revision=72753
2016-09-21 06:11:02 +00:00
Eric Kohl
d307723a72 [NTOSKRNL]
- Move the session notification routines from se/lsa.c to se/srm.c.
- Get rid of se/lsa.c.

svn path=/trunk/; revision=72752
2016-09-21 04:57:25 +00:00
Hermès Bélusca-Maïto
9bc48b336f [SECUR32][NTOS]: Update the LSA export signatures for the functions that are implemented in the "lsalib" library.
[LSALIB]
- Add old-school annotations (as we currently do in our main .c code of our stuff).
- Mention that LsaConnectUntrusted is not an API that is exported (& implemented) by ntoskrnl.
- For LsaRegisterLogonProcess, we first wait for the LSA server to be ready (by waiting on its initialization event). This is TODO for LsaConnectUntrusted on the contrary.

[LSALIB][NTOS]
Usa the lsalib as the implementation of the LSA functions exported by ntoskrnl. But for that we need to recompile the lsalib as a library that can be used from inside ntoskrnl, because it needs some functions that are normally exported by ntos. For this purpose I add the library target "ntlsalib" (which also specify different #defines), to differentiate it from the (user-mode) "lsalib" one that is used by secur32.dll (Amine, if you have a better idea on how to do that, please let me know!).

svn path=/trunk/; revision=72751
2016-09-20 23:43:16 +00:00
Amine Khaldi
7d07b21168 [WS2_32] The current ws2_32 served us well, but it's time for ws2_32_new to shine. It took slightly more than 7 years since Ged brought-in Alex' impressive work on this module, and thanks to the great follow-up work by Peter Hater, Andreas Maier, Thomas Faber and everyone else involved in the effort, we now have a chance to retire ws2_32 in favor of ws2_32_new. The test results speak for the excellent achievements, and this serves as a platform to continue inspecting and fixing the remaining test failures. Thank you all for a job well done! Please see CORE-10440 for a summary of the changes performed in this commit.
svn path=/trunk/; revision=72750
2016-09-20 16:51:28 +00:00
Amine Khaldi
840345bf57 [MSAFD] Don't assume SOL_SOCKET is the only socket level. By Peter Hater. CORE-10440 CORE-12008
svn path=/trunk/; revision=72749
2016-09-20 16:31:53 +00:00
Amine Khaldi
e4af4ccb22 [ETC/SERVICES] Update services file as expected by the tests. By Peter Hater. CORE-10440
svn path=/trunk/; revision=72748
2016-09-20 09:45:02 +00:00
Amine Khaldi
e9878b1c6a [IPHLPAPI] Don't (de)initialize ws2 on dll process (attach/detach), do it on IcmpCreateFile/IcmpCloseHandle instead, due to the circular dependency ws2_32 -> mswsock -> dnsapi(adns lib) -> iphlpapi -> ws2_32. This creates 2 references to ws2_32 and ws2_32 can't cleanup on WSACleanup. By Peter Hater. CORE-10440
svn path=/trunk/; revision=72747
2016-09-20 09:42:51 +00:00
Amine Khaldi
b257841ecd [MSAFD] Move WSAAddressToStringA/W and WSAStringToAddressA/W in msafd protocol provider from ws2_32. Other small fixes for return codes. By Peter Hater. CORE-10440
svn path=/trunk/; revision=72746
2016-09-20 08:12:44 +00:00
James Tabor
e38d2daa32 [NtUser]
- Use send message only and fix return for WM_NC/ACTIVATE. See CORE-11979 and CORE-11324.

svn path=/trunk/; revision=72745
2016-09-20 02:00:18 +00:00
Johannes Anderwald
f5f288f652 [USBAUDIO]
- fix minor bugs
- start implementing filter context

svn path=/trunk/; revision=72744
2016-09-19 18:40:44 +00:00
Amine Khaldi
d35ce60785 [PSDK] Apply our headers style to winwlx.h. Supersedes and fixes the "fix whitespace" part of r72741.
svn path=/trunk/; revision=72743
2016-09-19 17:04:27 +00:00
Hermès Bélusca-Maïto
d4b08aa9bb Revert 2 small changes that I didn't want to do.
svn path=/trunk/; revision=72742
2016-09-19 15:51:13 +00:00
Hermès Bélusca-Maïto
9121ca5711 [PSDK]: Add annotations & fix whitespace.
svn path=/trunk/; revision=72741
2016-09-19 15:49:45 +00:00
Dmitry Chapyshev
ab60ef617a [KERNEL32] Sync other functions with Wine 1.9.17
* Fixes 1 test for kernel32:locale

svn path=/trunk/; revision=72740
2016-09-19 11:28:20 +00:00
Dmitry Chapyshev
b44173c769 [KERNEL32] Sync GetStringTypeW with Wine
* Fixes 255 tests for kernel32:locale

svn path=/trunk/; revision=72739
2016-09-19 10:11:19 +00:00
Thomas Faber
8970909ad9 [AFD]
- Fix MDL leak in failure case of AfdGetSockName. Patch by Volodymyr Shcherbyna. CID 1322161.
CORE-11096 #resolve

svn path=/trunk/; revision=72738
2016-09-19 08:15:24 +00:00
Hermès Bélusca-Maïto
9481be0824 [WINLOGON]
- CreateUserEnvironment: if user impersonation fails, just fail the call.
- SetDefaultLanguage: Use the *correct* HKEY_CURRENT_USER key to retrieve the lang., that is, first impersonate the user, then, call RegOpenCurrentUser. We do that because otherwise calling RegOpenKey(Ex) for HKEY_CURRENT_USER just uses the process cached value of HKEY_CURRENT_USER, which does not change *even if* one impersonates an user.

[MSGINA]
- Correctly impersonate the user when opening & initializing the shutdown dialog (in the same way as winlogon does), i.e. call ImpersonateLoggedOnUser and use RegOpenCurrentUser.
- Fill few (but not all) code holes in WlxScreenSaverNotify.

svn path=/trunk/; revision=72737
2016-09-18 23:32:02 +00:00
Hermès Bélusca-Maïto
4b29ab5690 [NTOS]: Code formatting only.
svn path=/trunk/; revision=72736
2016-09-18 23:28:32 +00:00
Amine Khaldi
0fc28afe45 [MSWSOCK] Partially implement Name Service Provider in mswsock. Brought to you by Andreas Maier aka andy-123 with small fixes by Peter Hater and formatting by me. CORE-10024 CORE-10440
svn path=/trunk/; revision=72735
2016-09-18 21:21:28 +00:00
Dmitry Chapyshev
be31da9af7 [KERNEL32] - Remove unneded checks (these values can be received from table). - We have to insert UNICODE_NULL if it is the end of string or in string contains 0.
* Fixes 12 tests for kernel32:codepage

svn path=/trunk/; revision=72734
2016-09-18 21:10:07 +00:00
Dmitry Chapyshev
a7c123661e [KERNEL32] Add missed type-casting
* Fixes 28 tests for kernel32:codepage

svn path=/trunk/; revision=72733
2016-09-18 20:11:05 +00:00
Hermès Bélusca-Maïto
f8ff1c2126 [MSGINA]
- Do not hardcode buffer sizes in function calls, and use _countof when needed.
- Use explicit unicode functions where possible.
- No need to have 342687 versions of the shutdown dialog in msgina, only one is sufficient. The help button should be either shown or hidden, depending on whom is calling the dialog (shell or winlogon) (this is TODO!)
- Therefore, no need to have twice the (almost) same code for the shutdown dialog.
- Fix & rework said code.
- The old duplicated shutdown dialog now becomes the "template" for the "Luna-XP-style Shut Down dialog" (implementation TODO!)
- Reenable the WM_ACTIVATE code that was added in r72720 and temporarily disabled in r72721.
CORE-7559 #comment Numerous fixes committed in r72732.

svn path=/trunk/; revision=72732
2016-09-18 19:37:25 +00:00
Hermès Bélusca-Maïto
c7afe8dea0 [SHELL32]: Code formatting only.
svn path=/trunk/; revision=72731
2016-09-18 19:36:05 +00:00
Dmitry Chapyshev
d0228d56b4 [KERNEL32] Implement MB_ERR_INVALID_CHARS flag for DBCS codepages
* Fixes 3 tests for kernel32:codepage

svn path=/trunk/; revision=72730
2016-09-18 18:21:30 +00:00
Dmitry Chapyshev
84351186d5 [KERNEL32] Implement MB_USEGLYPHCHARS flag for MultiByteToWideChar. Add checks for "Private Use" characters. More correct checks for input parameters.
* Fixes 6 tests for kernel32:codepage

svn path=/trunk/; revision=72729
2016-09-18 17:26:59 +00:00
Amine Khaldi
dc52ede2f3 [WS2_32_WINETEST] Disable test_address_list_query() as the ioctl is not supported yet by winsock helper dll (wshtcpip.dll) and the test is assuming there is info returned which is wrong and crashes. By Peter Hater. CORE-10440 CORE-12000
svn path=/trunk/; revision=72728
2016-09-18 16:20:20 +00:00
Amine Khaldi
0040a2fd32 [ADNS] Use dynamic memory for network info and set domain for searches. By Peter Hater. CORE-10440
svn path=/trunk/; revision=72727
2016-09-18 16:07:29 +00:00
Amine Khaldi
6086defd15 [DNSAPI] Request adns to search servers and domains. By Peter Hater. CORE-10440
svn path=/trunk/; revision=72726
2016-09-18 14:25:39 +00:00
Johannes Anderwald
ad787661bb [USBAUDIO]
- start implementing init routines
- not yet added to build

svn path=/trunk/; revision=72725
2016-09-18 14:24:21 +00:00
Johannes Anderwald
956b933a71 try fix build
svn path=/trunk/; revision=72724
2016-09-18 14:11:47 +00:00
Johannes Anderwald
1b15d09a65 [PSDK]
- add missing definitions

svn path=/trunk/; revision=72723
2016-09-18 14:02:22 +00:00
Amine Khaldi
15b97111e6 [KERNEL32] Try to read 'DhcpDomain' registry value if present, otherwise return 'Domain' one, when domain part is requested from GetComputerNameEx(). By Peter Hater. CORE-10440
svn path=/trunk/; revision=72722
2016-09-18 12:55:45 +00:00
Hermès Bélusca-Maïto
b33dfb3ede [MSGINA][SHELL32]: Temporarily disable the WM_ACTIVATE check because it blocks for whatever reason the dialog to properly close and return its correct return value when the user selects e.g. "Shutdown" and validate by pressing "OK" (effectively disables commit r72720).
svn path=/trunk/; revision=72721
2016-09-17 23:07:46 +00:00
Hermès Bélusca-Maïto
99dcff252e [MSGINA][SHELL32]: Now that CORE-11979 is fixed, automatically close the logoff/shutdown dialog as soon as the user deactivates the window (focus lost) by e.g. pressing Alt-Tab.
svn path=/trunk/; revision=72720
2016-09-17 22:44:50 +00:00
Hermès Bélusca-Maïto
a1895a9da6 [XDK][MSGINA]: Consistency codestyle fixes.
[SHELL32]
- Use explicit unicode functions;
- Use _countof instead of sizeof(foo)/sizeof(foo[0]);
- Enable the shutdown privilege when we need it, and disable as soon as possible (code taken from taskmgr).

svn path=/trunk/; revision=72719
2016-09-17 22:39:54 +00:00
Hermès Bélusca-Maïto
b5fc396ab8 [MSGINA]: Code style fixes:
- Use explicit unicode functions;
- Just use the hdc field of the PAINTSTRUCT initialized by BeginPaint instead of introducing yet another hdc variable;
- Use SetDlgItemTextW instead of GetDlgItem + SetWindowTextW;
- Don't hardcode buffer sizes in functions calls;
- Use _countof instead of sizeof(foo)/sizeof(foo[0]);
- Avoid using raw 'int' variables where possible;
- Remove trailing whitespace.
...

svn path=/trunk/; revision=72718
2016-09-17 22:04:54 +00:00
Dmitry Chapyshev
40f2bef33b [NLS] Update NLS files. Part 5/x
svn path=/trunk/; revision=72717
2016-09-17 21:45:39 +00:00
Dmitry Chapyshev
4969288a3b [NLS] Add source data for NLS-files
svn path=/trunk/; revision=72716
2016-09-17 21:18:13 +00:00
Hermès Bélusca-Maïto
f76faf799a [NTVDM]: Update README.
svn path=/trunk/; revision=72715
2016-09-17 21:12:03 +00:00
Dmitry Chapyshev
20e9303118 [NLS] Update NLS files. Part 4/x
svn path=/trunk/; revision=72714
2016-09-17 21:08:09 +00:00
Dmitry Chapyshev
3855dc8d24 [NLS] Add source data for 10000, 10006, 10007, 10029, 10079, 10081 codepages
svn path=/trunk/; revision=72713
2016-09-17 20:54:14 +00:00
Hermès Bélusca-Maïto
d0c02243d2 [NTVDM]: Add new icons:
- Tango-style icons by Henry Tang Ih and Jared Smudde, arranged by myself for PC-XT and AT style;
- ROS-DOS & VDM-DOS (copied from pifmgr.dll) by DSP2015
CORE-10340

svn path=/trunk/; revision=72712
2016-09-17 20:50:08 +00:00
Dmitry Chapyshev
67862907fb [NLS] Update NLS files. Part 3/x
svn path=/trunk/; revision=72711
2016-09-17 20:48:40 +00:00
Dmitry Chapyshev
4e4d86df9c [NLS] Add source data for 1006, 1026, 1250, 1251, 1252, 1253, 1254, 1255, 1256, 1257, 1258 codepages
svn path=/trunk/; revision=72710
2016-09-17 20:27:00 +00:00
Dmitry Chapyshev
cc3ce56acd [NLS] Update NLS file for 037, 500, 874, 875 codepages
svn path=/trunk/; revision=72709
2016-09-17 20:17:04 +00:00
Dmitry Chapyshev
40a137dfa8 [TXT2NLS] TransUniDefaultChar has to be received from WideCharTable. TransDefaultChar has to be received from MultiByteTable (or from DBCS table)
svn path=/trunk/; revision=72708
2016-09-17 20:03:13 +00:00
Dmitry Chapyshev
c75bd6ee1e [NLS] Add source data for 037, 424, 500, 874, 875 codepages
svn path=/trunk/; revision=72707
2016-09-17 19:27:16 +00:00
Dmitry Chapyshev
0dff1696a2 [NLS] Update NLS files. Part 1/x
svn path=/trunk/; revision=72706
2016-09-17 19:01:54 +00:00
Mark Jansen
d1a6ea86f7 [ATL] Do not corrupt the internal state of the CSimpleArray when allocation fails. Patch by Katayama Hirofumi MZ. CORE-11946 #comment Committed, thanks!
svn path=/trunk/; revision=72705
2016-09-17 17:54:16 +00:00
Dmitry Chapyshev
ea13a8e917 [NLS2TXT] Add missed check for default char
[TXT2NLS] Size of glyph table in words (create_nls uses wrong size)

svn path=/trunk/; revision=72704
2016-09-17 14:04:32 +00:00
Dmitry Chapyshev
fc49388a2a [NLS] Update nls files for 437 and 775 codepages
* Fixes 16 tests for ntdll:RtlGenerate8dot3Name

svn path=/trunk/; revision=72703
2016-09-17 12:41:29 +00:00
Dmitry Chapyshev
25dc758375 [NLS] Added source data for NLS files (generated by nls2txt from our files)
svn path=/trunk/; revision=72702
2016-09-17 12:29:49 +00:00
Dmitry Chapyshev
0d8a2edf6b [TXT2NLS] Write correct size for wide char table
svn path=/trunk/; revision=72701
2016-09-17 12:18:28 +00:00
Dmitry Chapyshev
942c4eff2d [ROSAPPS] Add initial version txt2nls file converter (DBCS codepages not supported yet)
svn path=/trunk/; revision=72700
2016-09-17 01:02:53 +00:00
James Tabor
cb199a866c [NtUser]
- Use desktop thread list to search for related active desktop threads. See CORE-11983.

svn path=/trunk/; revision=72699
2016-09-16 23:58:51 +00:00
Hermès Bélusca-Maïto
6e3b5e1ee2 [PIFMGR]: Update the 16-colour format of some icons; add new icons.
CORE-10253

svn path=/trunk/; revision=72698
2016-09-16 23:17:06 +00:00
Amine Khaldi
b183bab8f7 [DHCPCSVC] Add registry key for DHCP domain if present in DHCP reply. By Peter Hater. CORE-10440
svn path=/trunk/; revision=72697
2016-09-16 13:40:21 +00:00
Thomas Faber
bae3687192 [NTDLL_WINETEST]
- Skip exception test on WHS-Testbot... because problems...
ROSTESTS-240

svn path=/trunk/; revision=72696
2016-09-16 09:33:54 +00:00
Dmitry Chapyshev
8e08a3b453 [NLS2TXT] Remove unneeded imports
svn path=/trunk/; revision=72695
2016-09-15 21:47:22 +00:00
Dmitry Chapyshev
d4e7d0c0ff [GETUNAME] Add import library for nls2txt
svn path=/trunk/; revision=72694
2016-09-15 21:17:03 +00:00
Dmitry Chapyshev
3f3ae1f05b [ROSAPPS] Add NLS to TXT file converter
svn path=/trunk/; revision=72693
2016-09-15 21:13:26 +00:00
Dmitry Chapyshev
434964f61d [RTL] Add internal RtlpDowncaseUnicodeChar function and use instead RtlDowncaseUnicodeChar internally in RTL. RtlMultiAppendUnicodeStringBuffer parameters are specified (it is documented on: http://undoc.airesoft.co.uk/ntdll.dll/RtlMultiAppendUnicodeStringBuffer.php)
svn path=/trunk/; revision=72692
2016-09-15 20:40:29 +00:00
Dmitry Chapyshev
ce4186a1eb [RTL] Add internal RtlpUpcaseUnicodeChar function and use instead RtlUpcaseUnicodeChar internally in RTL
svn path=/trunk/; revision=72691
2016-09-15 20:05:26 +00:00
Mark Jansen
406bb0105f [SYSSETUP][UNATTENDED] Remove dead code for VmwInst. Found by Jared Smudde.
svn path=/trunk/; revision=72690
2016-09-15 19:58:29 +00:00
Mark Jansen
af4f582986 [ATL_APITEST] Update CImage apitest to be in line with the CSimpleArray / CSimpleMap tests. Patch from Katayama Hirofumi MZ. CORE-11946 #resolve #comment Thanks!
svn path=/trunk/; revision=72689
2016-09-15 19:42:45 +00:00
Mark Jansen
639a2c725d [ATL][ATL_APITEST] Implemente CSimpleArray + CSimpleMap. Based on a patch from Katayama Hirofumi MZ. CORE-11946
Most of the code is from Katayama Hirofumi MZ, the placement new / delete is written by me, based on a hint from Giannis.

svn path=/trunk/; revision=72688
2016-09-15 19:41:03 +00:00
Dmitry Chapyshev
f648131f93 [RTL] Add missed IN/OUT/OPTIONAL/PAGED_CODE_RTL
svn path=/trunk/; revision=72687
2016-09-15 19:35:59 +00:00
Dmitry Chapyshev
3c4a2b6d93 [RTL] Formatting only
svn path=/trunk/; revision=72686
2016-09-15 19:17:47 +00:00
Christoph von Wittich
c18c4aa282 [SHELL32] try to fix testman hang, by "breaking" CreateViewWindow2 again
svn path=/trunk/; revision=72685
2016-09-15 16:12:50 +00:00
Christoph von Wittich
a4ff747ee4 [SHELL32] halfplement CreateViewWindow2 (SHELLVIEWID not handled yet)
svn path=/trunk/; revision=72684
2016-09-15 15:09:22 +00:00
Thomas Faber
b64b5f76db [LIBUSB]
- Correctly fail IRP_MN_START_DEVICE if PnpStart failed. Spotted by Vadim Galyant.
CORE-11929 #resolve

svn path=/trunk/; revision=72683
2016-09-15 13:37:26 +00:00
Thomas Faber
a2d24bde65 [NTOS:IO]
- Avoid IRP allocation failure in IopDeleteFile and IopCloseFile. Based on a patch by Volodymyr Shcherbyna.
CORE-11959

svn path=/trunk/; revision=72682
2016-09-15 13:25:20 +00:00
Thomas Faber
f2599dd576 [FASTFAT]
- Acquire DirResource before MainResource in DoQuery to keep locking order consistent and avoid deadlocks. Patch by Volodymyr Shcherbyna with small modification by me.
CORE-11959 CORE-11652

svn path=/trunk/; revision=72681
2016-09-15 13:12:02 +00:00
Christoph von Wittich
a35a286182 [LSASRV] check correct variable for NULL
svn path=/trunk/; revision=72680
2016-09-15 08:41:17 +00:00
Hermès Bélusca-Maïto
368cd76efb Of course, as soon as you see such typos in our code, you can be 90% sure they are repeated elsewhere. And indeed they are. Fix the typos in our code (I leave them in the 3rd party code).
Concerning the fix in the NDK header I've checked that publicly available information about this structure (NirSoft website, Windows Internals book, Windows symbols...) has the member correctly named.

svn path=/trunk/; revision=72679
2016-09-14 22:51:55 +00:00
Amine Khaldi
a957a1d35d [INF] Fix some spelling errors. By Josh Soref. CORE-11986
svn path=/trunk/; revision=72678
2016-09-14 21:30:34 +00:00
Amine Khaldi
7b41c2ebbf [TRANSLATIONS] One step further towards improving our translations. Brought to you by Josh Soref aka timeless. CORE-11985
svn path=/trunk/; revision=72677
2016-09-14 20:38:53 +00:00
James Tabor
585f434ff4 [NtUser]
- Remove unneeded code and information, the problem is in focus.c:SFW. See CORE-11324.

svn path=/trunk/; revision=72676
2016-09-14 14:35:03 +00:00
James Tabor
9e1cd0b7ff [NtUser]
- Fix recursion issues, CORE-8780 and CORE-11979. See CORE-11324 for breakage.

svn path=/trunk/; revision=72675
2016-09-14 14:15:46 +00:00
Thomas Faber
503cf310ad [NTOS]
- Return pool quota before freeing IRPs to a lookaside list
CORE-11962 #resolve

svn path=/trunk/; revision=72674
2016-09-14 12:45:45 +00:00
Thomas Faber
aac3bbc746 [TCPIP]
- Don't try to mark IRPs as pending when they might already be completed. For simplicity, always pend them instead.
CORE-11962

svn path=/trunk/; revision=72673
2016-09-14 11:46:19 +00:00
Amine Khaldi
7d478eb667 [IP] Avoid use-after-free of IPDATAGRAM_REASSEMBLY structures. By Roel Messiant. CORE-11889
svn path=/trunk/; revision=72672
2016-09-14 10:09:02 +00:00
Amine Khaldi
d87e3543c1 [PSDK] Add PFE_EXPORT_FUNC.
svn path=/trunk/; revision=72671
2016-09-14 10:04:40 +00:00
Amine Khaldi
fd3e47079c [FREETYPE] Update to v2.7.0. CORE-11639
svn path=/trunk/; revision=72670
2016-09-14 10:01:27 +00:00
Amine Khaldi
019c2ecb53 [MEDIA/INF] Add raw transport provider from msafd. By Peter Hater. CORE-10440
svn path=/trunk/; revision=72669
2016-09-14 08:55:23 +00:00
Dmitry Chapyshev
a4cd19ec42 [RTL]
- Use correct checks for illegal chars
- Build context and 8.3 name on the basis of it (context can be already presented)

* Fixes 34 tests for ntdll:RtlGenerate8dot3Name (remained 16 tests will be fixed after correction of a problem with NLS files)

svn path=/trunk/; revision=72668
2016-09-14 00:31:30 +00:00
Hermès Bélusca-Maïto
f693e1e83a [PIFMGR]
- Add new icons by DSP2003 under CC-BY-SA 4.0 International License Terms (the .ico and the original .png files).
- Use DSP2003's icons wherever possible, otherwise fallback to "alternative" icons or to the placeholder icon. The aim is to finally convert or create all the remaining icons using DSP2003's style.
CORE-10253

svn path=/trunk/; revision=72667
2016-09-13 21:46:47 +00:00
Pierre Schweitzer
7d2b56ccb0 [NTDLL_APITEST]
RtlGenerate8dot3Name: show that we don't deal correctly with checksums while generating short names.

Dedicated to Christoph

svn path=/trunk/; revision=72666
2016-09-13 09:57:52 +00:00
Mark Jansen
02b4119836 [SHELL32] Do not try to call a NULL m_pSF2Parent. CORE-11969 #comment Please retest!
svn path=/trunk/; revision=72662
2016-09-12 18:05:22 +00:00
Aleksandar Andrejevic
c6f8d6fe2c [KS]
The "Add" routine is optional in the KSDEVICE_DISPATCH structure.
KsDevice.Descriptor should be initialized even if there is no device dispatch.


svn path=/trunk/; revision=72661
2016-09-12 03:59:04 +00:00
Hermès Bélusca-Maïto
4fa77bfbc3 [NTDLL]: Fix misspelling.
svn path=/trunk/; revision=72660
2016-09-11 20:40:41 +00:00
Dmitry Chapyshev
6dd9ac5dc5 [USER32] We have to use the copy of DEVMODEA structure (having size expanded on dmDriverExtra) for support of extra data of the driver
svn path=/trunk/; revision=72659
2016-09-11 20:11:35 +00:00
Dmitry Chapyshev
5e9b9699a6 [USER32_APITEST] Add tests for EnumDisplaySettingsA
svn path=/trunk/; revision=72658
2016-09-11 19:50:16 +00:00
Dmitry Chapyshev
35d777891f [USER32] We have to use the copy of DEVMODEW structure (having size expanded on dmDriverExtra) for support of extra data of the driver
* Fixes 16 tests for EnumDisplaySettings

svn path=/trunk/; revision=72657
2016-09-11 19:05:27 +00:00
Christoph von Wittich
0ec1c73cbf [WIN32K] set lasterror in NtGdiCombineRgn
svn path=/trunk/; revision=72656
2016-09-11 17:27:59 +00:00
Dmitry Chapyshev
10c7e5cb30 [NtUser] Try to fix tests for user32:EnumDisplaySettings
svn path=/trunk/; revision=72655
2016-09-11 16:13:46 +00:00
Christoph von Wittich
db1b0cb26d [KERNEL32] set ExitCode when terminating threads in ExitProcess as well
svn path=/trunk/; revision=72654
2016-09-11 13:22:33 +00:00
Christoph von Wittich
63df102547 [WIN32K] add missing parameter check in NtGdiArcInternal
svn path=/trunk/; revision=72653
2016-09-11 09:01:04 +00:00
James Tabor
4e415d8996 [USER32] - Sync with Wine Staging 1.9.18.
svn path=/trunk/; revision=72652
2016-09-11 00:58:12 +00:00
James Tabor
3e15c24d4c [USER32] - Sync with Wine Staging 1.9.18.
svn path=/trunk/; revision=72651
2016-09-11 00:58:00 +00:00
James Tabor
cf98f01e86 [USER32] - Sync with Wine Staging 1.9.18.
svn path=/trunk/; revision=72650
2016-09-11 00:57:38 +00:00
Dmitry Chapyshev
50ce1f1694 [NtUser] Unnecessary check is removed and correct value of an error code is returned
* Fixes 2 tests for win32knt_apitest:NtUserEnumDisplaySettings

svn path=/trunk/; revision=72649
2016-09-10 22:30:53 +00:00
Dmitry Chapyshev
0bbd5c592b [NtUser] Fix 3 new tests for GET/SET NONCLIENTMETRICS, MINIMIZEDMETRICS, ICONMETRICS
svn path=/trunk/; revision=72648
2016-09-10 18:39:40 +00:00
Dmitry Chapyshev
5d2a362dda [WIN32KNT_APITEST] Add some tests for GET/SET NONCLIENTMETRICS, MINIMIZEDMETRICS, ICONMETRICS. It is checked in win2k3
svn path=/trunk/; revision=72647
2016-09-10 18:36:56 +00:00
Dmitry Chapyshev
47b4a945d2 [NtUser]
- Initialize cbSize for animationinfo
- Use widechar versions of structures

svn path=/trunk/; revision=72646
2016-09-10 17:58:32 +00:00
Dmitry Chapyshev
3776d19ec9 [WIN32KNT_APITEST]
- Remove wrong tests. Win2k3 ignores the size of structure for GET/SET NONCLIENTMETRICS, MINIMIZEDMETRICS, ICONMETRICS

[NtUser]
- Remove wrong checks

svn path=/trunk/; revision=72645
2016-09-10 16:17:35 +00:00
Eric Kohl
796aa0f7b3 [NTOSKRNL]
Fix lock/unlock order in SeLockSubjectContext/SeUnlockSubjectContext.
Patch by  Volodymyr Shcherbyna.
CORE-11966 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=72644
2016-09-10 13:54:16 +00:00
Christoph von Wittich
e44c624a3e [CRT] sync ischira.c to wine 1.9.16
svn path=/trunk/; revision=72643
2016-09-10 11:40:54 +00:00
Christoph von Wittich
acc28413a5 [CRT] fix build
svn path=/trunk/; revision=72642
2016-09-10 07:18:50 +00:00
Christoph von Wittich
2899d91c28 [CRT] sync wtoi64.c with wine 1.9.16
svn path=/trunk/; revision=72641
2016-09-10 06:52:50 +00:00
Christoph von Wittich
d38c74fa76 [SETUPAPI] sync diskspace.c with wine 1.9.16
svn path=/trunk/; revision=72640
2016-09-10 06:20:10 +00:00
Dmitry Chapyshev
e0009ad353 [NtUser]
- Initialize cbSize filed for HIGHCONTRASTW
- SOUNDSENTRY -> SOUNDSENTRYW
- Add checks of size for SPI_GETHIGHCONTRAST and SPI_SETHIGHCONTRAST

svn path=/trunk/; revision=72639
2016-09-09 23:03:42 +00:00
Dmitry Chapyshev
0774f98a1b [NtUser]
- LPICONMETRICS -> LPICONMETRICSW

svn path=/trunk/; revision=72638
2016-09-09 22:39:25 +00:00
Amine Khaldi
87c6f4541c [WIN32K] Fix the size passed to UserSystemParametersInfo(). Addresses test issues revealed by r72636.
svn path=/trunk/; revision=72637
2016-09-09 22:26:55 +00:00
Dmitry Chapyshev
3d5e037772 [WIN32KNT_APITEST]
- Fix copypasta

[NTUSER]
- User's buffer has to be checked before check of size parameters, differently we cannot safely check the sizes of structures

svn path=/trunk/; revision=72636
2016-09-09 20:44:34 +00:00
Dmitry Chapyshev
5b62af8967 [WIN32NT_APITEST]
- Add some tests for NtUserSystemParametersInfo

svn path=/trunk/; revision=72635
2016-09-09 20:27:31 +00:00
Christoph von Wittich
f5f84ed231 [CRT] add #ifdef for easier syncing
svn path=/trunk/; revision=72634
2016-09-09 17:40:53 +00:00
Christoph von Wittich
a9a1a8f8bd [CRT] sync strxfrm.c to wine-1.9.16
svn path=/trunk/; revision=72633
2016-09-09 17:22:29 +00:00
Christoph von Wittich
77685fe543 [CRT] _strtoi64_l should crash on NULL pointer
svn path=/trunk/; revision=72632
2016-09-09 16:54:55 +00:00
James Tabor
2fa1533cf4 [NtGDI]
- Remove unneeded return sets.

svn path=/trunk/; revision=72630
2016-09-09 15:12:04 +00:00
James Tabor
28d8ba0d3e [NtGDI]
- Fix remaining Path test results. Include Flat Path for Stroke Path. See CORE-4990.

svn path=/trunk/; revision=72628
2016-09-09 15:07:42 +00:00
James Tabor
cefd6ab0a1 [NtGDI]
- Fix Ellipse Path test results. See CORE-4990.

svn path=/trunk/; revision=72627
2016-09-09 14:30:44 +00:00
Dmitry Chapyshev
9434ff082b [WIN32K]
- Add missed checks of size
- Initialize cbSize field of structures

* Fixes 6 tests for win32knt_apitest:NtUserSystemParametersInfo

svn path=/trunk/; revision=72626
2016-09-08 22:46:42 +00:00
James Tabor
895906f45d [NtGDI]
- Fix Path issues, Sync/Port wine. See CORE-4990 (Fill Path painting?), CORE-9612 (Fixed) and CORE-11916 (Fixed). Maybe more.
- Pen width might be related to another issue outside Path. See CORE-2527.

svn path=/trunk/; revision=72625
2016-09-08 22:37:41 +00:00
Amine Khaldi
4e5e90c854 [WIN32K] Add some missing parameter checks. Fixes all but 4 tests in win32knt:NtUserEnumDisplaySettings. By Peter Hater. CORE-11524
svn path=/trunk/; revision=72624
2016-09-08 20:25:30 +00:00
Amine Khaldi
d4b414cc35 [WIN32K] Fix a crash in win32knt:NTUserSystemParametersInfo tests. Brought to you by Peter Hater. CORE-11525
svn path=/trunk/; revision=72623
2016-09-08 20:18:41 +00:00
Thomas Faber
8cb8d2d156 [OLE32]
- Gracefully handle NULL clipbrd in clipbrd_wndproc. This is probably not the right fix, but avoids crashing for now.
CORE-11905

svn path=/trunk/; revision=72622
2016-09-08 11:01:43 +00:00
Amine Khaldi
3b9689a4ea [CRT] Apply Wine commit 190c67c by Piotr Caban: Fix __pioinfo block size. CORE-11866
svn path=/trunk/; revision=72621
2016-09-08 10:56:41 +00:00
Amine Khaldi
6485aa2f27 [USER32_WINETEST] Enable the skipped part of clipboard.c as the issue documented in CORE-11953 doesn't happen in the KVM testbot.
svn path=/trunk/; revision=72620
2016-09-08 09:36:26 +00:00
Aleksandar Andrejevic
be20a14b8c [PSDK]
KsStreamPointerUnlock returns VOID, not NTSTATUS.


svn path=/trunk/; revision=72619
2016-09-08 01:23:06 +00:00
Aleksandar Andrejevic
325efbd59e [PSDK]
Add definitions for KsPinGetLeadingEdgeStreamPointer and KsStreamPointerUnlock.


svn path=/trunk/; revision=72618
2016-09-08 01:18:35 +00:00
Amine Khaldi
1c04786553 [WS2_32_WINETEST] Sync with Wine Staging 1.9.18.
svn path=/trunk/; revision=72617
2016-09-07 23:29:52 +00:00
Amine Khaldi
bca9ea7b61 [USER32_WINETEST] Sync with Wine Staging 1.9.18. One skipped part of clipboard.c is documented in CORE-11953
svn path=/trunk/; revision=72616
2016-09-07 23:24:48 +00:00
Amine Khaldi
a38f07f3e8 [SHELL32_WINETEST] Sync with Wine Staging 1.9.18.
svn path=/trunk/; revision=72615
2016-09-07 22:45:39 +00:00
Amine Khaldi
450fb4a3d3 [SETUPAPI_WINETEST] Sync with Wine Staging 1.9.18.
svn path=/trunk/; revision=72614
2016-09-07 22:43:09 +00:00
Amine Khaldi
4ec63eee1b [SERVICES_WINETEST] Sync with Wine Staging 1.9.18.
svn path=/trunk/; revision=72613
2016-09-07 22:35:17 +00:00
Amine Khaldi
ae503d62cc [MSVCRT_WINETEST] Sync with Wine Staging 1.9.18.
svn path=/trunk/; revision=72612
2016-09-07 22:34:15 +00:00
Amine Khaldi
89932f2716 [KERNEL32_WINETEST] Sync with Wine Staging 1.9.18.
svn path=/trunk/; revision=72611
2016-09-07 22:32:56 +00:00
Amine Khaldi
9018c6fe32 [GDI32_WINETEST] Sync with Wine Staging 1.9.18.
svn path=/trunk/; revision=72610
2016-09-07 22:12:51 +00:00
Dmitry Chapyshev
debfd3bfc1 [NTOS]
- Add missed _SEH2_YIELD's

svn path=/trunk/; revision=72609
2016-09-07 18:52:09 +00:00
Dmitry Chapyshev
a039776826 [NTOS:EX]
- Use ExAcquirePushLockShared instead ExAcquirePushLockExclusive (and move it outside enumeration)
- Don't leave a enumeration at ReqSize > Size. It is used for calculation of the size
- ObjectHeader->Type field currupted and I do not know who spoils it. Commented.
- Remove unneeded SEH

svn path=/trunk/; revision=72608
2016-09-07 17:34:17 +00:00
Aleksandar Andrejevic
d97ea85a86 [VGADDI]
Explain how VGA write mode 2 works. No code changes!
CORE-8164


svn path=/trunk/; revision=72607
2016-09-07 14:38:58 +00:00
Amine Khaldi
fc686705cd [CRT] Sync _cputs() with Wine Staging 1.9.16. CORE-11866 CORE-8546
svn path=/trunk/; revision=72606
2016-09-07 09:31:52 +00:00
James Tabor
dc4261f3eb [Win32k]
- Fix a crash while running modified stress test with explorer. See CORE-11913.

svn path=/trunk/; revision=72605
2016-09-07 06:33:44 +00:00
James Tabor
183626a804 [NtGdi]
- Remove Path for MoveTo and Polyline. It is not needed.
- Fix build.

svn path=/trunk/; revision=72604
2016-09-07 03:24:12 +00:00
James Tabor
c2a9c48bbf [NtGdi]
- Remove Path for MoveTo. It is not needed.

svn path=/trunk/; revision=72603
2016-09-07 03:20:18 +00:00
Aleksandar Andrejevic
7049508b80 [PSDK]
Add a definition for KsReleaseDevice to ks.h.


svn path=/trunk/; revision=72602
2016-09-07 01:16:47 +00:00
Ged Murphy
2852cc21e8 [PSDK]
- Add flt error codes to winerror.h

svn path=/trunk/; revision=72601
2016-09-06 20:53:43 +00:00
Ged Murphy
d7b8883f0c Stub 'LoadString(UINT)'
svn path=/trunk/; revision=72600
2016-09-06 20:30:13 +00:00
Ged Murphy
fc9eaeb551 try to fix unix build
svn path=/trunk/; revision=72599
2016-09-06 20:26:26 +00:00
Ged Murphy
cb088390cd [FLTMC]
- Add fltmc to the build
- Add some resource files for translation

svn path=/trunk/; revision=72598
2016-09-06 20:22:04 +00:00
Ged Murphy
245e4929bd [FLTMGR]
- We can now swap the 2k3 fltmgr with ours and successfully boot windows, so we can use the same name from here on.
- Start type is still demand as I've not done too much testing in ros, but it seems to be boot and run fine, so can be changed to boot start for anyone wanting to experiment a bit.

svn path=/trunk/; revision=72597
2016-09-06 17:10:14 +00:00
Ged Murphy
0674b88a50 [FLTMGR]
- Set correct major and minor versions
- Update the cmakelist file
- Export FltRegisterFilter and FltUnregisterFilter
- Minor cleanup

svn path=/trunk/; revision=72596
2016-09-06 17:03:27 +00:00
Ged Murphy
abe4dbbca0 [FLTMGR]
- Add stubs for context registration
- Add dispatch and device control handlers
- Implement the load IOCTL. We can now load minifilters with 'fltmc load <myfilter>'

svn path=/trunk/; revision=72595
2016-09-06 16:59:11 +00:00
Ged Murphy
2c3c2095fb [FLTMGR]
- Implement FltLoadFilter and stub FltUnloadFilter
- Register contexts if the caller requests (coming later)
- Stubpliment FltStartFiltering

svn path=/trunk/; revision=72594
2016-09-06 16:47:43 +00:00
Ged Murphy
72ae4c113e [FLTMGR]
- Properly handle requests that were sent directly to the fltmgr instead of sending them down the stack
- Add a separate callback for IRP_MJ_DEVICE_CONTROL and forward them on to an internal handler
- We can now open a handle to the fltmgr and send IOCTLs down to it.

svn path=/trunk/; revision=72593
2016-09-06 16:33:46 +00:00
Ged Murphy
4e466b10df Turn off building of the fltmgr for now while I (slowly) update it.
svn path=/trunk/; revision=72592
2016-09-06 16:27:38 +00:00
Ged Murphy
e37e1f59d3 [FLTLIB]
- On load, open a handle to fltmgr, not the target driver...
- Fixup the load data we send to the fltmgr to be the same Windows layout. We need to copy this interface to allow component sharing between windows and ros.
- Move IOCTLs to shared header

svn path=/trunk/; revision=72591
2016-09-06 15:52:38 +00:00
Ged Murphy
6cc00bad38 [FLTMGR]
- Add a header for sharing data between fltlib and fltmgr

svn path=/trunk/; revision=72590
2016-09-06 15:48:44 +00:00
Amine Khaldi
70a9414c61 [CRT] Reduce difference of file.c with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72589
2016-09-06 10:04:29 +00:00
Amine Khaldi
3f38d71d2d [CRT] Resort to partially syncing msvcrt_flush_buffer() in order to fix some test regressions. CORE-11866 CORE-11949
svn path=/trunk/; revision=72588
2016-09-05 22:39:59 +00:00
Amine Khaldi
8d8f918c2c [CRT] Sync msvcrt_flush_buffer(), add_std_buffer() and remove_std_buffer() with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72587
2016-09-05 20:58:12 +00:00
Dmitry Chapyshev
f57de63a06 [RTL]
- It is impossible to look for multi byte char in single byte table

svn path=/trunk/; revision=72586
2016-09-05 19:14:22 +00:00
Dmitry Chapyshev
e8b1768ca7 [RTL]
- Use correct table for multibyte code page

svn path=/trunk/; revision=72585
2016-09-05 17:44:05 +00:00
Dmitry Chapyshev
05a9507394 [RTL]
- NlsDbcsUnicodeToAnsiTable -> NlsUnicodeToMbAnsiTable, NlsDbcsUnicodeToOemTable -> NlsUnicodeToMbOemTable
- Change types to USHORT (its not PWCHAR's)

svn path=/trunk/; revision=72584
2016-09-05 17:32:06 +00:00
Thomas Faber
ee0aa584d8 [USBEHCI]
- Correct the definition of END_POINT_CAPABILITIES. Brought to you by Vadim Galyant.
CORE-11893 #resolve
CORE-9296

svn path=/trunk/; revision=72583
2016-09-05 13:06:26 +00:00
Christoph von Wittich
aca10fa72a [SHELL32] fix some typos
svn path=/trunk/; revision=72582
2016-09-05 07:52:52 +00:00
Dmitry Chapyshev
abdc65593f [KMTEST]
- Add null-pointer test for RtlIsValidOemCharacter

svn path=/trunk/; revision=72581
2016-09-04 23:15:08 +00:00
Dmitry Chapyshev
468c2342d6 [RTL]
- Implement RtlIsValidOemCharacter function

* Fixes all new tests for this function

svn path=/trunk/; revision=72580
2016-09-04 22:57:44 +00:00
Dmitry Chapyshev
1a8c432587 [KMTEST]
- Implement tests for RtlIsValidOemCharacter function

svn path=/trunk/; revision=72579
2016-09-04 22:15:53 +00:00
Christoph von Wittich
e3b66d324c [SHELL32] sync CQueryAssociations.cpp with wine
svn path=/trunk/; revision=72578
2016-09-04 20:10:29 +00:00
Amine Khaldi
7028633b58 [BTRFS][ZLIB] Addendum to r72576. CORE-11937
svn path=/trunk/; revision=72577
2016-09-04 17:31:50 +00:00
Pierre Schweitzer
74750c6d1a [BTRFS]
Sync btrfs to 0.6.

CORE-11937

svn path=/trunk/; revision=72576
2016-09-04 15:27:46 +00:00
Pierre Schweitzer
2d33d95a7b [ZLIB]
Revert r72574

svn path=/trunk/; revision=72575
2016-09-04 15:15:01 +00:00
Pierre Schweitzer
329d454546 [ZLIB]
When building zlib, only build portable functions so that we have a portable library.

CORE-11937

svn path=/trunk/; revision=72574
2016-09-04 15:11:26 +00:00
Mark Jansen
3eb3d2d909 [SHELL32] Use the new ShellDimScreen function to fade the background on logoff / shutdown dialogs. CORE-11422 #resolve
svn path=/trunk/; revision=72573
2016-09-04 14:18:41 +00:00
Mark Jansen
87a716926b [MSGINA] Implement ShellDimScreen. CORE-11422
svn path=/trunk/; revision=72572
2016-09-04 14:17:22 +00:00
Hermès Bélusca-Maïto
6a5543002e [NTVDM]: Improve a bit the WOW16 "unsupported" warning message. See CORE-10323
svn path=/trunk/; revision=72571
2016-09-04 11:46:08 +00:00
Amine Khaldi
c15ef5b516 [CRT] Sync undname.c with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72570
2016-09-04 09:04:00 +00:00
Christoph von Wittich
67e98141b8 [USER32] Fix use-after-free. wine patch by Thomas Faller
svn path=/trunk/; revision=72569
2016-09-04 08:57:52 +00:00
Amine Khaldi
25c33a9dae [SHELL32] Partially sync shlmenu.c with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72568
2016-09-04 08:57:08 +00:00
Christoph von Wittich
4d464164e8 [SDK] sync undname.c to wine 1.9.16
svn path=/trunk/; revision=72567
2016-09-04 08:54:06 +00:00
Christoph von Wittich
d054078c72 [SHELL32] some minor wine syncs
svn path=/trunk/; revision=72566
2016-09-04 08:44:20 +00:00
Christoph von Wittich
cd73072e50 [SETUPAPI] Remove dead code. wine patch by André Hentschel
svn path=/trunk/; revision=72565
2016-09-04 08:17:41 +00:00
Christoph von Wittich
b0d2f91e07 [ADVAPI32] Use proper enum member to initialize SECURITY_IMPERSONATION_LEVEL variable wine patch by Nikolay Sivov
svn path=/trunk/; revision=72564
2016-09-04 08:11:52 +00:00
Christoph von Wittich
068c14debb [USER32] on't overwrite 'cb' field with uninitialized data in DdeQueryConvInfo() patch by Nikolay Sivov
svn path=/trunk/; revision=72563
2016-09-04 08:03:23 +00:00
Christoph von Wittich
0bf3b4e81b [PSDK] fix typo
svn path=/trunk/; revision=72562
2016-09-04 07:57:03 +00:00
Christoph von Wittich
9eae1a4984 [SHELL32] add DECLSPEC_HOTPATCH to WinExec function (wine patch from Jacek Caban)
svn path=/trunk/; revision=72561
2016-09-04 07:50:55 +00:00
Christoph von Wittich
09dc7fbe19 [SHELL32] sync shellole.c with wine 1.9.16
svn path=/trunk/; revision=72560
2016-09-04 07:48:41 +00:00
Christoph von Wittich
55a37c4abb shell32: Do nothing if we can't convert PIDL to path in SHAddToRecentDocs (wine commit from Vincent Povirk)
svn path=/trunk/; revision=72559
2016-09-04 07:08:50 +00:00
Christoph von Wittich
4025100ad8 [NTOS] addenum to r72556
svn path=/trunk/; revision=72558
2016-09-04 06:20:53 +00:00
Dmitry Chapyshev
76de8ee7ce [RTL]
- Formatting only (no code changes)

svn path=/trunk/; revision=72557
2016-09-03 22:43:29 +00:00
Hermès Bélusca-Maïto
6d4d06afbb [NTOS]: Fix comments & increase code readability by directly using InterlockedIncrement.
svn path=/trunk/; revision=72556
2016-09-03 22:07:53 +00:00
Dmitry Chapyshev
2e18ad193c [NTOS:KE]
- Don't set value for DpcActive in KeInitializeMutant and KeInitializeMutex

* Fixes 55 tests in kmtest:KeMutex

svn path=/trunk/; revision=72555
2016-09-03 21:48:21 +00:00
Dmitry Chapyshev
8612af94d2 [NTOS:IO]
- Implement Lookaside Floats allocations in IoAllocateIrp and IoFreeIrp

* Fixes 2 tests in kmtest:IoIrp

svn path=/trunk/; revision=72554
2016-09-03 21:25:45 +00:00
Eric Kohl
7dc1fbc420 [SAMSRV]
Implement SamrSetSecurityObject.

svn path=/trunk/; revision=72553
2016-09-03 19:45:09 +00:00
Dmitry Chapyshev
f77ed4dcd6 [NTOS:IO]
- Add dismount checking (function should behave the same in the fastio and the slow case)
- Fix comment

svn path=/trunk/; revision=72552
2016-09-03 19:10:09 +00:00
Dmitry Chapyshev
d94cfe79f5 [NTOS:EX]
- Reset of count of handles prior to enumeration
See issue 11928 for more details.

svn path=/trunk/; revision=72551
2016-09-03 18:52:22 +00:00
Mark Jansen
865a118a60 [ADVAPI32] Do not report failure when closing a predefined registry key.
svn path=/trunk/; revision=72550
2016-09-03 16:31:27 +00:00
Mark Jansen
e61bc91d97 [APPHELP][APPHELP_APITEST] Partially implement SdbGetMatchingExe, SdbInitDatabase and SdbTagRefToTagID. CORE-10367
- SdbGetMatchingExe, SdbInitDatabase partial implementation by Mislav Blažević
- Tests by me, they pass on vista - win10. (Win2k3 has another struct layout)
- Move shared test functions to a common header
- SdbTagRefToTagID misses functionality related to multiple databases, but that is not supported anywhere yet.

svn path=/trunk/; revision=72549
2016-09-03 16:20:52 +00:00
Dmitry Chapyshev
212b70142c [NTOS:IO]
- Fix potential null-pointer dereferencing (we call IopCleanupAfterException in IopDeviceFsIoControl with Irp == NULL)

svn path=/trunk/; revision=72548
2016-09-03 15:49:55 +00:00
Eric Kohl
6c6813d7f7 [SAMSRV]
SamrQuerySecurityObject: Return security information according to the SecurityInformation parameter.

svn path=/trunk/; revision=72547
2016-09-03 15:06:20 +00:00
Dmitry Chapyshev
0a7f15c9c6 [NTOS:IO]
- IopDeviceFsIoControl is paged code
- Incorrect logic at when processing the IsDevIoCtl parameter

svn path=/trunk/; revision=72546
2016-09-03 15:02:57 +00:00
Dmitry Chapyshev
174d181e5c [NTOS:IO]
- It is paged code
- We do not compare with TRUE

svn path=/trunk/; revision=72545
2016-09-03 13:26:27 +00:00
Amine Khaldi
af3b7ffad5 [CRT] Apply Wine commit 21fd1d3 by Nikolay Sivov: Fix calloc() prototype. CORE-11866
svn path=/trunk/; revision=72544
2016-09-03 13:23:43 +00:00
Amine Khaldi
7dfe459bdf [CRT] Reduce difference of file.c with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72543
2016-09-03 12:40:59 +00:00
Dmitry Chapyshev
006abaebe6 [NTOS:FSRTL]
- Rework FsRtlIsHpfsDbcsLegal is similar FsRtlIsFatDbcsLegal

* Fixes 30 tests for kmtest FsRtlLegal

svn path=/trunk/; revision=72542
2016-09-03 10:47:21 +00:00
Amine Khaldi
44bb873f32 [RTL] Partially sync actctx.c with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72541
2016-09-03 10:46:01 +00:00
Amine Khaldi
8ba1bd92d3 [CRT] Apply Wine commit d3a48ee by Piotr Caban: Only check for flag presence in isatty function. CORE-11866 CORE-11904
svn path=/trunk/; revision=72540
2016-09-03 10:32:43 +00:00
Dmitry Chapyshev
f99009a18b [NTOS:FSRTL]
- The order of operations is changed
- Added check on availability of a '.' with a length of name of 8 and more characters (In 8.3 filename has to be a '.')
- Lead DBCS cannot precede the end of a filename

* Fixes 90 tests for kmtest FsRtlLegal

svn path=/trunk/; revision=72539
2016-09-03 00:37:51 +00:00
Mark Jansen
1f8f7ffbe8 [ICMP] Fix IcmpCloseHandle crashing on NULL handle. Patch by Tim Crawford. CORE-10707 #resolve #comment Thanks!
svn path=/trunk/; revision=72538
2016-09-02 21:47:05 +00:00
Hermès Bélusca-Maïto
8f1b88d617 [NDK]: Fix size of reserved member of the RTL_HEAP_INFORMATION structure, signaled by https://github.com/subTee/native-nt-toolkit/issues/5 and confirmed by Process Hacker headers.
svn path=/trunk/; revision=72537
2016-09-02 21:21:00 +00:00
Hermès Bélusca-Maïto
c986fba6d1 [NDK][UNIATA]: Fix typo. See https://github.com/subTee/native-nt-toolkit/issues/2 .
svn path=/trunk/; revision=72536
2016-09-02 21:09:56 +00:00
Dmitry Chapyshev
2725eb9e0b [NTOS:FSRTL]
- The name of the file can be shorter than 3 symbols

* Fixes 36 tests for kmtest FsRtlLegal

svn path=/trunk/; revision=72535
2016-09-02 20:21:02 +00:00
Dmitry Chapyshev
dff1c73022 [GDI32]
- ConvertBitmapInfo returns value of the cjInfoSize variable. We should not ignore this value. Checks are added
- The call of CalculateColorTableSize is not necessary, its value was already returned by ConvertBitmapInfo.

* Fixes 9 tests for gdi32_apitest CreateDIBitmap

svn path=/trunk/; revision=72534
2016-09-02 15:40:32 +00:00
Jérôme Gardou
9598f87c7c [KDGDB]
- Better report kernel stack (real back traces for all threads!)
 - Support reporting loaded libraries (== drivers, hal, etc.). You can even debug KDGDB inside KDGDB :-)
 - A few improvements here and there
CORE-8531

svn path=/trunk/; revision=72533
2016-09-01 22:58:15 +00:00
Dmitry Chapyshev
24834c0492 [NTOS:PS]
- Use ProbeForRead instead ProbeForWrite (ProbeForWrite is a behavior which was in win2000)
- Set returned length after checking buffer size (ntdll_apitest NtQueryInformationProcess has tests only for ProcessTimes, but I checked other cases and always Length is set after check of the size)

* Fixes 4 tests in ntdll_apitest NtQueryInformationProcess (all NtQueryInformationProcess tests passed now)

svn path=/trunk/; revision=72532
2016-09-01 22:38:25 +00:00
Dmitry Chapyshev
e72b567d4e [NTOS:EX]
- More correct exit on failure

svn path=/trunk/; revision=72531
2016-09-01 18:22:48 +00:00
Dmitry Chapyshev
125c4571ad [NTOS:EX]
- Use all handles enumeration in system instead of enumeration for each process
See issue 11906 for more details.

svn path=/trunk/; revision=72530
2016-09-01 16:39:54 +00:00
James Tabor
27e451c99f [NtGDI]
- Allocate initial entries for paths.

svn path=/trunk/; revision=72529
2016-09-01 06:53:28 +00:00
Dmitry Chapyshev
170bf20513 [NTOS:EX]
- Try to fix CORE-11906
See issue 11906 for more details.

svn path=/trunk/; revision=72528
2016-08-31 21:29:40 +00:00
Hermès Bélusca-Maïto
06c287d000 [README]
- Show our URLs using https.
- Add a "FAQ" section to point to the corresponding website URL; feel free to improve the section!

svn path=/trunk/; revision=72527
2016-08-31 21:22:37 +00:00
Mark Jansen
e54a97258b [SHELL32] Disable some controls for a network drive. Patch by Jared Smudde. CORE-11897 #resolve #comment Thanks!
svn path=/trunk/; revision=72526
2016-08-31 21:15:57 +00:00
James Tabor
a83d5e5fe6 [Win32SS]
- Patch by Sebastian Lackner : Do not block sending/posting WM_NOTIFY messages.
- Sync/Port : Fix more msg:msg_queue:test_notify_message results.

svn path=/trunk/; revision=72525
2016-08-31 21:14:35 +00:00
Amine Khaldi
cdce72e067 [BROWSEUI] Present "Is ReactOS legal" in ReactOS readme file. By Joachim Henze. CORE-11800
svn path=/trunk/; revision=72524
2016-08-31 20:54:51 +00:00
James Tabor
1ed7f14359 [NtUser]
- Fixed one of the msg:msg_paint:test_paint_messages while looking for another issue. See CORE-7166.

svn path=/trunk/; revision=72523
2016-08-31 20:38:09 +00:00
James Tabor
684902c4cc [NtUser]
- Fix test results for msg:msg_queue:test_broadcast.

svn path=/trunk/; revision=72522
2016-08-31 17:59:41 +00:00
James Tabor
8496d0aa2e [NtGDI]
- Patch by Sebastian Gasiorek : Fix incorrect placement of the text in the Tab buttons. Implement TA_UPDATECP. See CORE-1578 and CORE-11415.

svn path=/trunk/; revision=72521
2016-08-31 16:20:57 +00:00
James Tabor
303ece2421 [User32]
- MDI Sync/Port from wine head, not sure about Staging.

svn path=/trunk/; revision=72520
2016-08-31 16:05:34 +00:00
Aleksandar Andrejevic
a809e4ff02 [NTVDM:BIOS]
The 640x480x256 video mode has 640 bytes per scanline.


svn path=/trunk/; revision=72519
2016-08-31 15:37:53 +00:00
Aleksandar Andrejevic
724065020c [NTVDM:SVGA]
Halfplement (or perhaps hackplement) SVGA packed pixel addressing.


svn path=/trunk/; revision=72518
2016-08-31 05:38:56 +00:00
James Tabor
17a315285a [NtUser]
- Fix mouse move auto selecting while tracking popup menu. See CORE-2338.

svn path=/trunk/; revision=72517
2016-08-31 02:24:14 +00:00
Aleksandar Andrejevic
81b5e2b655 [NTVDM:BIOS]
Implement VESA function AH = 07h.


svn path=/trunk/; revision=72516
2016-08-30 22:52:49 +00:00
Dmitry Chapyshev
622507d06f [WIN32K]
- Stubpliment UOI_FLAGS flag in NtUserGetObjectInformation

* Fixes 32 tests in user32_apitest GetUserObjectInformation

svn path=/trunk/; revision=72515
2016-08-30 21:45:39 +00:00
Aleksandar Andrejevic
8c89d519a9 [NTVDM:SVGA]
Chain-4 addressing isn't really the same as packed-pixel addressing.
Also, fix a bug in the optimized odd/even mode reading code.


svn path=/trunk/; revision=72514
2016-08-30 21:07:26 +00:00
James Tabor
aa033a5fc4 [NtUser]
- Fix crash while using mouse or keyboard for menu selection in UxThmeme.
- Sync/Ports and copy paste error fixes.

svn path=/trunk/; revision=72513
2016-08-30 19:30:45 +00:00
Dmitry Chapyshev
2ef1af40a1 [KERNEL32]
- Failure if does not come to an end a way with a symbol '\' (exception - a path of a looks like 'C:')

* Fixes 2 tests for kernel32_apitest GetDriveType (all tests for GetDriveType passed now)

svn path=/trunk/; revision=72512
2016-08-30 19:22:00 +00:00
Dmitry Chapyshev
779ba0d221 [KERNEL32]
- Initialization of a string before obtaining information

* Fixes 2 tests for kernel32_apitest GetComputerNameEx (all tests passed now)

svn path=/trunk/; revision=72511
2016-08-30 17:36:01 +00:00
Dmitry Chapyshev
cc64f06a82 [RTL]
- Remove unneeded type-casts

svn path=/trunk/; revision=72510
2016-08-30 16:28:47 +00:00
Dmitry Chapyshev
7b880d99d0 [RTL]
- The Condition parameter every time is compared to VER_EQUAL, but does not change thus. This behavior wrong. We have to receive new Condition every time

* Fixes 7 tests in kernel32_winetest version (all tests passed now)

svn path=/trunk/; revision=72509
2016-08-30 15:10:07 +00:00
Aleksandar Andrejevic
8622e4ccf9 [NTVDM:EMS]
Implement EMS function 4E/03: "Get Size of Page-Mapping Array".


svn path=/trunk/; revision=72508
2016-08-30 02:13:40 +00:00
Dmitry Chapyshev
9df6fe4496 [NTOS:EX]
- Remove duplicate check

svn path=/trunk/; revision=72507
2016-08-29 21:11:01 +00:00
Dmitry Chapyshev
5168c15faa [NTOS:EX]
- Blocking of the user buffer before obtaining information
- Use of ObpGetHandleObject macro for receiving ObjectHeader
- Remove duplicate NULL pointer check for HandleTableEntry

svn path=/trunk/; revision=72506
2016-08-29 20:41:23 +00:00
Hermès Bélusca-Maïto
c56713f129 [CRT]: Fix typo. Thanks DopefishJustin:)
svn path=/trunk/; revision=72505
2016-08-29 16:44:21 +00:00
Hermès Bélusca-Maïto
499b414a4b [DOSKEY]
Our kernel32.lib already exports all of the console API and in particular the console history API, so we can directly link doskey against it and use them, instead of delay-loading at runtime. We just need to add their prototypes in the source code since they are not declared by wincon.h by default.

svn path=/trunk/; revision=72504
2016-08-29 15:39:19 +00:00
Mark Jansen
1dd7857278 [APPHELP][APPHELP_APITEST] Partially implement SdbMakeIndexKeyFromString
svn path=/trunk/; revision=72503
2016-08-29 15:19:55 +00:00
Mark Jansen
71ad0a0f9b [INCLUDE/WINE] Update test.h with a debug function for longlong.
Disabled by default because it introduces a new dependency on ntdll (_aullshr)

svn path=/trunk/; revision=72502
2016-08-29 15:16:50 +00:00
Hermès Bélusca-Maïto
99a31b3e64 [SHELL32]: We are not Windows! (and not completely Wine either).
svn path=/trunk/; revision=72501
2016-08-29 14:30:51 +00:00
Mark Jansen
0c589e512f Fix the build for msvc users.
svn path=/trunk/; revision=72500
2016-08-29 13:15:44 +00:00
Mark Jansen
820426939a [ATL][SHELL32] Add basic support for _ATL_NO_EXCEPTIONS in CString, use it in shell32 so that we can link without exception support. CORE-11841 #comment Please retest!
svn path=/trunk/; revision=72499
2016-08-29 12:29:45 +00:00
Aleksandar Andrejevic
93b57a7a0f [NTVDM:SVGA]
Don't forget to adapt the console attaching code to the new transposed video
memory, and certainly don't forget to make sure the ScanlineSizeLatch and
StartAddressLatch have the correct values before calling VgaVerticalRetrace.


svn path=/trunk/; revision=72498
2016-08-29 04:31:02 +00:00
Jérôme Gardou
0e07d3b761 [NTOS/MM]
- Shuffle parameter chacks in NtMapViewOfSection to make kmtest pass more of them
 - Restore previously lost check on ZeroBits against 21. Use the architecture specific define
 - Better check for ZeroBits and ViewSize

svn path=/trunk/; revision=72497
2016-08-28 21:07:51 +00:00
Aleksandar Andrejevic
78bb256379 [NTVDM:BIOS]
Implement mode 0x5F, otherwise known as VESA mode 0x101 (640x480 256 colors).


svn path=/trunk/; revision=72496
2016-08-28 20:15:03 +00:00
Jérôme Gardou
097bbc5c95 [WIN32SS/USER32]
- Do not mask exceptions from WndProc. If this makes programs crash, fine, fix it, but DON'T HIDE BUGS.
 - Use a wrappper (like wine does) to handle procs with bad calling conventions
ROSTESTS-155 : Please retest, user32 got in the way and masked the exception handler the wine test installed

svn path=/trunk/; revision=72495
2016-08-28 20:04:01 +00:00
Jérôme Gardou
665e8ea561 [NTOS/MM]
- Do not assert on transitions PTEs, we handle them just fine
ROSTESTS-155

svn path=/trunk/; revision=72494
2016-08-28 19:59:13 +00:00
Jérôme Gardou
3bb511ea04 [NTOS/MM]
- Properly chain events when reading a page from disk, aka don't wait on events allocated on the stack of another thread
 - Use proper type pointers, compilers sometimes help making things right

svn path=/trunk/; revision=72493
2016-08-28 19:53:27 +00:00
Dmitry Chapyshev
f25358387b [NTOS:EX]
- Remove duplicate checks

svn path=/trunk/; revision=72492
2016-08-28 19:28:41 +00:00
Dmitry Chapyshev
7fe5f71795 [NTOS]
- Use ExpLookupHandleTableEntry function for enumerate handles of process
- Filling handle information
- Setting ReqSize value before check of the size

* Fixes 2 tests ntdll_winetest info

svn path=/trunk/; revision=72491
2016-08-28 19:18:28 +00:00
Thomas Faber
cc9a7f1482 [NTOS:MM]
- Add MmSysPteIndex, MmSysPteTables and MmSysPteListBySizeCount to make WinDbg's !sysptes extension happy

svn path=/trunk/; revision=72490
2016-08-28 18:03:41 +00:00
Aleksandar Andrejevic
493ad03e52 [NTVDM:SVGA]
Fix the refresh rate calculation, again.


svn path=/trunk/; revision=72489
2016-08-28 16:17:14 +00:00
Dmitry Chapyshev
75ece18c55 [RTL]
- Implement IS_TEXT_UNICODE_DBCS_LEADBYTE flag

* Fixes 4 new tests in advapi32_apitest

svn path=/trunk/; revision=72488
2016-08-28 16:08:25 +00:00
Dmitry Chapyshev
85d39f7ebe [ADVAPI32_APITEST]
- Add tests for IS_TEXT_UNICODE_DBCS_LEADBYTE flag

[SDK]
- Add missed IS_TEXT_UNICODE_DBCS_LEADBYTE definition

svn path=/trunk/; revision=72487
2016-08-28 15:59:29 +00:00
Dmitry Chapyshev
af19896deb [RTL]
- Implement IS_TEXT_UNICODE_ILLEGAL_CHARS and IS_TEXT_UNICODE_ASCII16 flags

* It fixes 7 tests for the IsTextUnicode function in advapi32_apitest. All tests passed now

svn path=/trunk/; revision=72486
2016-08-28 11:05:01 +00:00
Thomas Faber
25d05a1982 [USBHUB]
- Return the correct pointer when handling TargetDeviceRelation, and avoid unnecessarily allocating from NonPagedPool. Patch by Vardan Mikayelyan, merged from r72376.

svn path=/trunk/; revision=72485
2016-08-28 10:52:40 +00:00
Dmitry Chapyshev
c49c7bb373 [ADVAPI32_APITEST]
- Add tests for IS_TEXT_UNICODE_ILLEGAL_CHARS flag (not passed on ReactOS)

svn path=/trunk/; revision=72484
2016-08-28 10:42:32 +00:00
Jérôme Gardou
92a722fd03 [NTOS/MM]
- NtQuerySection : Add initial support for ARM3 sections

svn path=/trunk/; revision=72483
2016-08-28 09:38:54 +00:00
Thomas Faber
4359ce1117 [NTOS:MM]
- Improve a debug print

svn path=/trunk/; revision=72482
2016-08-28 08:17:03 +00:00
Aleksandar Andrejevic
c93742a831 [NTVDM:BIOS]
Properly implement INT 15h, AH = 86h.


svn path=/trunk/; revision=72481
2016-08-28 02:00:10 +00:00
Aleksandar Andrejevic
fd7db0e65b [NTVDM:SVGA]
Fix the refresh rate calculation.


svn path=/trunk/; revision=72480
2016-08-28 01:53:52 +00:00
Aleksandar Andrejevic
3ecb5aa01a [NTVDM:SVGA]
Fix read mode 1.


svn path=/trunk/; revision=72479
2016-08-27 23:40:44 +00:00
James Tabor
b4743181f7 - Fix GCC build.
svn path=/trunk/; revision=72478
2016-08-27 23:05:51 +00:00
Aleksandar Andrejevic
4966051e96 [NTVDM]
Move the framebuffer update to the start of the display cycle to reduce tearing.
Stabilize the IPS calculation.


svn path=/trunk/; revision=72477
2016-08-27 21:55:34 +00:00
Dmitry Chapyshev
e5bc9e5062 [RTL]
- Implement IS_TEXT_UNICODE_REVERSE_ASCII16, IS_TEXT_UNICODE_REVERSE_STATISTICS flags
- Fix IS_TEXT_UNICODE_STATISTICS

* It fixes 2 tests for RtlIsTextUnicode function. Now all rtlstr in winetest are passed successfully

svn path=/trunk/; revision=72476
2016-08-27 20:18:18 +00:00
Hermès Bélusca-Maïto
148354095a [HAL]
Update the PCI hardware IDs database. Extracted from the pci.ids database from http://pci-ids.ucw.cz/ from 2016-08-26 03:15:02
Maintained by Albert Pool, Martin Mares, and other volunteers from the PCI ID Project at http://pci-ids.ucw.cz/.
CORE-11903 #resolve

svn path=/trunk/; revision=72475
2016-08-27 19:12:11 +00:00
Aleksandar Andrejevic
1bfb13f4fb [NTVDM:SVGA]
Properly implement the vertical retrace interval. The starting address and the
scanline size are calculated at the start, and the actual update is performed at
the end. This allows software to change the pixel panning and some other
parameters during the vertical retrace.
Also, normalize the CRTC register names.


svn path=/trunk/; revision=72474
2016-08-27 17:10:08 +00:00
Jérôme Gardou
acd35552c3 [NTOS/MM]
- Addendum to r72472 : address nodes are not VADs for the base section AVL table
CORE-11900

svn path=/trunk/; revision=72473
2016-08-27 13:22:17 +00:00
Jérôme Gardou
707280b695 [NTOS/MM]
- Keep the control area as being created through the whole creation process in MmCreateArm3Section
 - Use the segment length to find a suitable place for SEC_BASED sections
 - Properly remove the global section node when deleting a based section
CORE-11900 #resolve

svn path=/trunk/; revision=72472
2016-08-27 13:17:10 +00:00
Thomas Faber
5c207cc611 [USBHUB]
- Fix memory leaks in failure case of CreateUsbChildDeviceObject. Patch by Vardan Mikayelyan, merged from r72366.

svn path=/trunk/; revision=72471
2016-08-27 11:29:42 +00:00
James Tabor
c064e95689 [NtUser]
- Fix crash when there are no system cursors created. See CORE-11899.

svn path=/trunk/; revision=72470
2016-08-26 23:43:19 +00:00
Jérôme Gardou
2215ccef67 [NTOS/MM]
- Fix ZeroBits check in NtMapViewOfSection
 - Implement handling MEM_DOS_LIM AllocationType
This fixes all but a few NtMapViewOfSection (due to some temp file not being removed) wine tests + tests from 72468


svn path=/trunk/; revision=72469
2016-08-26 21:15:06 +00:00
Jérôme Gardou
9726a48493 [NTDLL_APITEST]
- Add some tests which show how Windows handles the ZeroBits argument

svn path=/trunk/; revision=72468
2016-08-26 21:08:24 +00:00
Jérôme Gardou
c0b63bd391 [KDGDB]
- Add a ugly and grotesque hack to give "o" back to RtlAssert so that we actually break on ASSERTs
 - Check for the breakpoint instruction for deciding when to move forward the ProgramCounter. This is OK since KD removes all breakpoints set when hitting a soft BP


svn path=/trunk/; revision=72467
2016-08-26 21:07:27 +00:00
Hermès Bélusca-Maïto
2e18c7a3cf Fix translation (cf. r72465) CORE-11763
svn path=/trunk/; revision=72466
2016-08-26 11:09:34 +00:00
Amine Khaldi
4959899003 * Please at least compile before committing patches. CORE-11763
svn path=/trunk/; revision=72465
2016-08-26 10:53:33 +00:00
Aleksandar Andrejevic
5aa44019cc [NTVDM:SVGA]
Implement the extended wrapping control (64 KB / 1 MB).
Transpose the video memory so that it corresponds to chain-4 and packed-pixel
modes. This allows us to optimize video memory access, since the majority of all
SVGA modes are packed-pixel. Only VgaReadMemory has been optimized so far.


svn path=/trunk/; revision=72464
2016-08-26 01:22:00 +00:00
Hermès Bélusca-Maïto
5108bc5af6 [CMAKE]: Update baseaddress_msvc.cmake with the updated scripts from CORE-11382 , with RTC1 enabled so that we get a bit of space margin. Dedicated to Thomas Faber :)
svn path=/trunk/; revision=72463
2016-08-25 18:26:13 +00:00
Hermès Bélusca-Maïto
c1a625b590 [IERUNONCE]: CORE-11763 #comment Addendum to r72456 : comment out one of the IDS_INCORRECTFORMAT strings (since only one can exist at a time!). Somebody (Sergey?) should choose the best translation between the two. Also re-add the original IDS_NOEXPORT string that just vanished out.
svn path=/trunk/; revision=72461
2016-08-25 17:13:24 +00:00
Hermès Bélusca-Maïto
d099454223 [TRANSLATIONS]: Update russian translation, by 'amber'.
CORE-11510 #comment Only the translations that did not collide with existing ones were committed! Please recheck :)

svn path=/trunk/; revision=72460
2016-08-25 14:32:50 +00:00
Thomas Faber
640b2bece9 [MSTSC]
- Unbreak build

svn path=/trunk/; revision=72458
2016-08-25 12:08:58 +00:00
Hermès Bélusca-Maïto
890ccaa0c2 [SHORTCUTS]: Update russian translations, by 'amber'.
CORE-11510

svn path=/trunk/; revision=72457
2016-08-25 10:49:37 +00:00
Hermès Bélusca-Maïto
70fe9b43c2 [TRANSLATIONS][ACPPAGE][IERNONCE]: Update ReactOS russian translation, by Sergey Stopkin.
CORE-11763 #resolve #comment Committed, thanks!

svn path=/trunk/; revision=72456
2016-08-25 10:44:39 +00:00
Hermès Bélusca-Maïto
d6026c7465 [TRANSLATIONS][USETUP][EXPLORER]: Update ReactOS russian translation, by Kudratov Olimjon. Part 2
CORE-11636

svn path=/trunk/; revision=72455
2016-08-25 10:35:42 +00:00
Hermès Bélusca-Maïto
10c087b83b [TRANSLATIONS]: Update ReactOS russian translation, by Kudratov Olimjon. Part 1
CORE-11636

svn path=/trunk/; revision=72454
2016-08-25 10:22:26 +00:00
Aleksandar Andrejevic
d26178a938 [TRANSLATIONS]
Japanese translations for the following libraries: browseui, credui, ieframe,
iernonce, msports, msvfw32, mycomput, oleacc, samsrv, serialui, shimgvw, and
wldap32.
Patch by Katayama Hirofumi MZ. Thanks!
CORE-11884 #resolve #comment Committed in revision r72452.


svn path=/trunk/; revision=72452
2016-08-25 03:44:29 +00:00
Aleksandar Andrejevic
e7339745af [NTVDM:BIOS]
Implement VBE function AH = 0x05, "CPU Video Memory Control".


svn path=/trunk/; revision=72451
2016-08-25 03:01:18 +00:00
Hermès Bélusca-Maïto
e145ed06c6 [BOOTDATA]
- Remove invalid "ServiceType" registry value of the MPU401 driver.
- Fix MUP driver group.
- Fix MountMgr driver group.
- Fix rosfltmgr driver group.
- Add "Base" group list (until we have it inside some driver inf).
- Add tags for acpi, pci, null, beep and ksecdd drivers.

svn path=/trunk/; revision=72450
2016-08-24 19:55:12 +00:00
Eric Kohl
1161db9756 [LSASRV]
LsarSetSecurityObject: Impersonate the client and retrieve the client token when the owner sid will be set.

svn path=/trunk/; revision=72449
2016-08-23 21:14:17 +00:00
Amine Khaldi
15d8c32ada [ACPPAGE] Improve header inclusions.
svn path=/trunk/; revision=72448
2016-08-23 19:37:31 +00:00
Amine Khaldi
fd8f2bb80e [STRMBASE] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72447
2016-08-23 19:35:53 +00:00
Amine Khaldi
dd7d00f90d [RPCSS] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72446
2016-08-23 19:34:57 +00:00
Amine Khaldi
89a86c50c7 [WRITE] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72445
2016-08-23 19:34:21 +00:00
Amine Khaldi
55188dfb8c [WORDPAD] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72444
2016-08-23 19:32:58 +00:00
Amine Khaldi
5e7598a6d2 [WINHLP32] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72443
2016-08-23 19:31:44 +00:00
Amine Khaldi
444f693e31 [FREELDR] Fix a regression introduced in r70687. Dedicated to Sylvain Deverre.
svn path=/trunk/; revision=72442
2016-08-23 19:20:44 +00:00
Amine Khaldi
91dfb227f8 [WINMINE] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72441
2016-08-23 19:08:37 +00:00
Giannis Adamopoulos
4542952e42 [EXPLORER]
- CTrayWindow: Reorganise the code in logical groups to make it more readable. Move command handlers at the top of the file followed by the code that manages moving and resizing the taskbar. After that is code that paints the taskbar and the implementation of the ITrayWindow interface which I really doubt if it is needed. Finally at the bottom are the message handlers.

svn path=/trunk/; revision=72440
2016-08-23 16:52:05 +00:00
James Tabor
cf7c648a68 [NtUser]
- Properly sync wine menu code. Attempt to fix CORE-11892.

svn path=/trunk/; revision=72439
2016-08-23 16:33:44 +00:00
Hermès Bélusca-Maïto
df8d9cbd28 [CMAKE]: Update baseaddress_msvc.cmake with the updated scripts from CORE-11382 , after the recent translations of some of the message compiler files.
svn path=/trunk/; revision=72438
2016-08-23 12:15:12 +00:00
Aleksandar Andrejevic
c50b9d7c96 [NTVDM:SVGA]
Implement starting address extensions, scanline offset extensions and memory
address extensions.
No more 64 KB memory banks. The code now uses SVGA_BANK_SIZE (1 MB) for
everything.


svn path=/trunk/; revision=72436
2016-08-22 22:41:01 +00:00
Jérôme Gardou
fa5fed4f1d [KDGDB]
- Implement setting and removing breakpoints
 - Implement single-stepping
 - Only get past the breakpoint instruction when it comes from RtlpBreakWithStatus
 - Implement writing to memory
 - Always send the thread raising the exception to GDB to avoid confusing it
 - Let GDB find the program counter alone by querying the registers (support was already there before.)
 - Properly escape special characters on input
Ladies and gentlemen : the almost-fully functional GDB stub. (still no real multi-process support :-( )
To enable , in CMakeCache.txt :
 - Set GDB:BOOL=TRUE
 - Set _WINKD_:BOOL=TRUE
 - Set KDBG:BOOL=FALSE
To do : give GDB the list of loaded drivers. Loading ntoskrnl.exe symbols at 0x80801000 already does a good enough job.
Default output is on COM1. Can be configure to any othe COM port with usual kernel options.
Hope you'll like it as much as I do ;-)

svn path=/trunk/; revision=72435
2016-08-22 22:24:30 +00:00
Dmitry Chapyshev
e41a81db0b [TRANSLATIONS]
- Update Russian translation

svn path=/trunk/; revision=72434
2016-08-22 21:18:42 +00:00
Dmitry Chapyshev
05e9013f07 [SDK]
- It is partially translated into Russian

* Now there is a possibility of the translation of *.mc of files

svn path=/trunk/; revision=72433
2016-08-22 16:48:55 +00:00
Dmitry Chapyshev
840bf2046f [CMAKE]
- Update kernel32 address

svn path=/trunk/; revision=72432
2016-08-22 14:34:53 +00:00
Dmitry Chapyshev
bac50c092f [CMAKE]
- Convert all *.mc files to UTF16 LE (without BOM) at build
- Use unicode flag in windmc/mc for source files
- Switch UNICODE_SOURCE files to UNICODE (must check for the presence of regression tests)

svn path=/trunk/; revision=72431
2016-08-22 14:02:42 +00:00
Dmitry Chapyshev
bdc447f6cd [UTF16LE]
- Fix MSVC build

svn path=/trunk/; revision=72430
2016-08-22 13:49:12 +00:00
James Tabor
f7b2e13609 [NtUser]
- Defer the changing of the window region while setting the window position.
- Patch based on Stefano Toncich work. See CORE-6897 and possibly CORE-7229.

svn path=/trunk/; revision=72429
2016-08-22 13:28:02 +00:00
Dmitry Chapyshev
f5b4891559 Maybe strcasecmp?
svn path=/trunk/; revision=72428
2016-08-22 13:22:32 +00:00
Dmitry Chapyshev
bbe68b6347 [UTF16LE]
Try to fix build

svn path=/trunk/; revision=72427
2016-08-22 13:18:26 +00:00
Dmitry Chapyshev
457d4cff98 [UTF16LE]
- Implement ability to disable BOM writing

svn path=/trunk/; revision=72426
2016-08-22 13:14:41 +00:00
Dmitry Chapyshev
6ba5e47c0e [KERNEL32]
- Update Russian translation

svn path=/trunk/; revision=72425
2016-08-22 12:15:00 +00:00
Eric Kohl
2cb8276b6c [LSASRV]
Implement LsarSetSecurityObject.

svn path=/trunk/; revision=72421
2016-08-21 21:39:02 +00:00
Eric Kohl
fcf959d784 [INCLUDE]
Add the RtlLengthSecurityDescriptor prototype to the NDK.

svn path=/trunk/; revision=72420
2016-08-21 21:31:40 +00:00
Eric Kohl
72f1555249 [LSASRV]
Implement LsaIFree_LSAPR_TRANSLATED_SIDS.

svn path=/trunk/; revision=72419
2016-08-21 21:24:10 +00:00
Mark Jansen
cf27bf75e9 Addendum to r72417. CORE-11858 #resolve
svn path=/trunk/; revision=72418
2016-08-21 20:07:05 +00:00
Mark Jansen
11d1368d04 [WIN32SS] Fix argument name, spotted by Hermes. CORE-11858
svn path=/trunk/; revision=72417
2016-08-21 20:03:19 +00:00
Mark Jansen
963d66822f [SHELL32] Partially implement CFolderItems. Thanks to Giannis for the advice :)
svn path=/trunk/; revision=72416
2016-08-21 19:58:32 +00:00
Mark Jansen
63fae88fbc [SHELL32] Fix a crash in shell32:shelldispatch by returning an empty CFolderItems object instead of nothing.
svn path=/trunk/; revision=72415
2016-08-21 18:48:48 +00:00
Mark Jansen
8b95cbf0e2 [WIN32SS] Implement windows class versioning, by Sylvain Deverre. CORE-11858 #comment Committed, thanks!
svn path=/trunk/; revision=72414
2016-08-21 18:28:33 +00:00
Amine Khaldi
7e6c5db9a4 [CRT] Sync wctype.c with Wine Staging 1.9.16 and document this. CORE-11866
svn path=/trunk/; revision=72413
2016-08-21 18:24:21 +00:00
Amine Khaldi
9c71618a0d [FDEBUG] Improve header inclusions.
svn path=/trunk/; revision=72410
2016-08-21 17:25:07 +00:00
Amine Khaldi
1cd18d016a [WIDL] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72409
2016-08-21 17:22:27 +00:00
Amine Khaldi
7cf942787a [UNICODE] Sync with Wine Staging 1.9.16. CORE-11866
svn path=/trunk/; revision=72408
2016-08-21 16:47:13 +00:00
Amine Khaldi
0825399200 [README.WINE] Update some paths.
svn path=/trunk/; revision=72407
2016-08-21 16:44:35 +00:00
Amine Khaldi
761db77da5 [CDMAKE][CTR] Fix strtok_s for empty strings. Part of Wine commit 4fa616c by Bernhard Übelacker.
svn path=/trunk/; revision=72406
2016-08-21 16:30:06 +00:00
Amine Khaldi
f6aaf58005 [CRT] Sync strtok_s() with Wine Staging 1.9.16 and mark strtok() as synced. CORE-11866
svn path=/trunk/; revision=72405
2016-08-21 16:24:00 +00:00
Eric Kohl
c7c1b36949 [LSASRV]
Implement LsaIFree_LSAPR_SR_SECURITY_DESCRIPTOR and LsaIFree_LSAPR_TRANSLATED_NAMES.

svn path=/trunk/; revision=72404
2016-08-21 14:56:54 +00:00
Daniel Reimer
6f5011a861 [RAPPS]
Fix Audacity/NIRLauncher/Tahoma and Watercolor entries.

svn path=/trunk/; revision=72403
2016-08-21 11:45:05 +00:00
Amine Khaldi
7785437568 [TRANSLATIONS] Japanese translation of control panel applets by Katayama Hirofumi MZ. CORE-11882
svn path=/trunk/; revision=72402
2016-08-21 10:40:42 +00:00
Giannis Adamopoulos
56970603ce [SHELL32]
- CMenuBand: Do not open the context menu on mouse down but on mouse up.
- Patch by Joachim Henze (reactosfanboy)
CORE-10830

svn path=/trunk/; revision=72401
2016-08-20 22:05:12 +00:00
Mark Jansen
f156a8d727 [WIN32NT_APITEST] Add additional tests for NtUserCreateWindowEx by Sylvain Deverre. ROSTESTS-237 #resolve #comment Thanks!
svn path=/trunk/; revision=72400
2016-08-20 16:58:20 +00:00
Giannis Adamopoulos
68ed94281d [SHELL32]
- Use ExpandEnvironmentStringsW instead of PathUnExpandEnvStringsW in the pick icon dialog.
- Patch by Jared Smudde.
CORE-10962

svn path=/trunk/; revision=72399
2016-08-20 09:53:55 +00:00
Giannis Adamopoulos
8f70f4395e [SHELL32]
- Fail to delete any file if one is invalid.
- Patch by andy-123
CORE-9959

svn path=/trunk/; revision=72398
2016-08-20 09:43:09 +00:00
Giannis Adamopoulos
e4743d51be [SHELL32]
- Show an error message when creating a directory fails.
- Patch by Jared Smudde
CORE-11661

svn path=/trunk/; revision=72397
2016-08-20 09:34:25 +00:00
Jérôme Gardou
3bae10b2bc [SERVICES]
- Properly invalidate service handles when closing/freeing them
Dedicated to Hermès and any regression chaser. FalsePositives--

svn path=/trunk/; revision=72396
2016-08-19 22:15:53 +00:00
Jérôme Gardou
690941472d [NTOS/MM]
- Implement copy on write support in ARM3 page fault handler
CORE-8541 #resolve #comment committed in r72395

svn path=/trunk/; revision=72395
2016-08-19 17:24:53 +00:00
1998 changed files with 475582 additions and 34493 deletions

View File

@@ -94,8 +94,6 @@ if(NOT CMAKE_CROSSCOMPILING)
add_definitions(/D_ALLOW_KEYWORD_MACROS)
endif()
add_definitions(/Dinline=__inline)
else()
add_compile_flags("-fshort-wchar -Wno-multichar")
endif()
include_directories(sdk/include/host)
@@ -235,6 +233,7 @@ else()
${REACTOS_BINARY_DIR}/sdk/include/dxsdk
${REACTOS_BINARY_DIR}/sdk/include/ddk
${REACTOS_BINARY_DIR}/sdk/include/reactos
${REACTOS_BINARY_DIR}/sdk/include/reactos/mc
sdk/include/crt
sdk/include/ddk
sdk/include/ndk

View File

@@ -14,7 +14,7 @@ The ReactOS project, although currently focused on Windows Server 2003
compatibility, is always keeping an eye toward compatibility with
Windows Vista and future Windows NT releases.
More information is available at: http://www.reactos.org
More information is available at: https://www.reactos.org
2. Building ReactOS
-------------------

View File

@@ -9,6 +9,7 @@ add_subdirectory(control)
add_subdirectory(dxdiag)
add_subdirectory(extrac32)
add_subdirectory(findstr)
add_subdirectory(fltmc)
add_subdirectory(fontview)
add_subdirectory(games)
add_subdirectory(hh)

View File

@@ -1,6 +1,8 @@
list(APPEND SOURCE cacls.c cacls.rc)
add_executable(cacls ${SOURCE})
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/conutils)
add_executable(cacls cacls.c cacls.rc)
set_module_type(cacls win32cui UNICODE)
target_link_libraries(cacls conutils_stream ${PSEH_LIB})
add_importlibs(cacls advapi32 user32 shell32 msvcrt kernel32)
add_cd_file(TARGET cacls DESTINATION reactos/system32 FOR all)

View File

@@ -33,155 +33,17 @@ static GENERIC_MAPPING FileGenericMapping =
};
static
INT
LengthOfStrResource(IN HINSTANCE hInst,
IN UINT uID)
static VOID
PrintError(DWORD dwError)
{
HRSRC hrSrc;
HGLOBAL hRes;
LPWSTR lpName, lpStr;
if (dwError == ERROR_SUCCESS)
return;
if (hInst == NULL)
{
hInst = GetModuleHandle(NULL);
}
/* There are always blocks of 16 strings */
lpName = (LPWSTR)MAKEINTRESOURCE((uID >> 4) + 1);
/* Find the string table block */
hrSrc = FindResourceW(hInst, lpName, (LPWSTR)RT_STRING);
if (hrSrc)
{
hRes = LoadResource(hInst, hrSrc);
if (hRes)
{
lpStr = LockResource(hRes);
if (lpStr)
{
UINT x;
/* Find the string we're looking for */
uID &= 0xF; /* position in the block, same as % 16 */
for (x = 0; x < uID; x++)
{
lpStr += (*lpStr) + 1;
}
/* Found the string */
return (int)(*lpStr);
}
}
}
return -1;
ConMsgPuts(StdErr, FORMAT_MESSAGE_FROM_SYSTEM,
NULL, dwError, LANG_USER_DEFAULT);
}
static
INT
AllocAndLoadString(OUT LPTSTR *lpTarget,
IN HINSTANCE hInst,
IN UINT uID)
{
INT ln;
ln = LengthOfStrResource(hInst,
uID);
if (ln++ > 0)
{
(*lpTarget) = (LPTSTR)HeapAlloc(GetProcessHeap(),
0,
ln * sizeof(TCHAR));
if ((*lpTarget) != NULL)
{
INT Ret;
Ret = LoadString(hInst,
uID,
*lpTarget,
ln);
if (!Ret)
{
HeapFree(GetProcessHeap(),
0,
*lpTarget);
}
return Ret;
}
}
return 0;
}
static
VOID
PrintHelp(VOID)
{
LPTSTR szHelp;
if (AllocAndLoadString(&szHelp,
NULL,
IDS_HELP) != 0)
{
_tprintf(_T("%s"),
szHelp);
HeapFree(GetProcessHeap(),
0,
szHelp);
}
}
static
VOID
PrintErrorMessage(IN DWORD dwError)
{
LPTSTR szError;
if (FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_IGNORE_INSERTS |
FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
dwError,
MAKELANGID(LANG_NEUTRAL,
SUBLANG_DEFAULT),
(LPTSTR)&szError,
0,
NULL) != 0)
{
_tprintf(_T("%s"),
szError);
LocalFree((HLOCAL)szError);
}
}
static
DWORD
LoadAndPrintString(IN HINSTANCE hInst,
IN UINT uID)
{
TCHAR szTemp[255];
DWORD Len;
Len = (DWORD)LoadString(hInst,
uID,
szTemp,
sizeof(szTemp) / sizeof(szTemp[0]));
if (Len != 0)
{
_tprintf(_T("%s"),
szTemp);
}
return Len;
}
static
BOOL
static BOOL
PrintFileDacl(IN LPTSTR FilePath,
IN LPTSTR FileName)
{
@@ -199,10 +61,8 @@ PrintFileDacl(IN LPTSTR FilePath,
return FALSE;
}
_tcscpy(FullFileName,
FilePath);
_tcscat(FullFileName,
FileName);
_tcscpy(FullFileName, FilePath);
_tcscat(FullFileName, FileName);
/* find out how much memory we need */
if (!GetFileSecurity(FullFileName,
@@ -318,8 +178,7 @@ BuildSidString:
}
/* print the file name or space */
_tprintf(_T("%s "),
FullFileName);
ConPrintf(StdOut, L"%s ", FullFileName);
/* attempt to map the SID to a user name */
if (AceIndex == 0)
@@ -335,35 +194,29 @@ BuildSidString:
/* print the domain and/or user if possible, or the SID string */
if (Name != NULL && Domain[0] != _T('\0'))
{
_tprintf(_T("%s\\%s:"),
Domain,
Name);
ConPrintf(StdOut, L"%s\\%s:", Domain, Name);
IndentAccess = (DWORD)_tcslen(Domain) + _tcslen(Name);
}
else
{
LPTSTR DisplayString = (Name != NULL ? Name : SidString);
_tprintf(_T("%s:"),
DisplayString);
ConPrintf(StdOut, L"%s:", DisplayString);
IndentAccess = (DWORD)_tcslen(DisplayString);
}
/* print the ACE Flags */
if (Ace->Header.AceFlags & CONTAINER_INHERIT_ACE)
{
IndentAccess += LoadAndPrintString(NULL,
IDS_ABBR_CI);
IndentAccess += ConResPuts(StdOut, IDS_ABBR_CI);
}
if (Ace->Header.AceFlags & OBJECT_INHERIT_ACE)
{
IndentAccess += LoadAndPrintString(NULL,
IDS_ABBR_OI);
IndentAccess += ConResPuts(StdOut, IDS_ABBR_OI);
}
if (Ace->Header.AceFlags & INHERIT_ONLY_ACE)
{
IndentAccess += LoadAndPrintString(NULL,
IDS_ABBR_IO);
IndentAccess += ConResPuts(StdOut, IDS_ABBR_IO);
}
IndentAccess += 2;
@@ -375,13 +228,11 @@ BuildSidString:
{
if (AccessMask == FILE_ALL_ACCESS)
{
LoadAndPrintString(NULL,
IDS_ABBR_NONE);
ConResPuts(StdOut, IDS_ABBR_NONE);
}
else
{
LoadAndPrintString(NULL,
IDS_DENY);
ConResPuts(StdOut, IDS_DENY);
goto PrintSpecialAccess;
}
}
@@ -389,24 +240,20 @@ BuildSidString:
{
if (AccessMask == FILE_ALL_ACCESS)
{
LoadAndPrintString(NULL,
IDS_ABBR_FULL);
ConResPuts(StdOut, IDS_ABBR_FULL);
}
else if (!(Ace->Mask & (GENERIC_READ | GENERIC_EXECUTE)) &&
AccessMask == (FILE_GENERIC_READ | FILE_EXECUTE))
{
LoadAndPrintString(NULL,
IDS_ABBR_READ);
ConResPuts(StdOut, IDS_ABBR_READ);
}
else if (AccessMask == (FILE_GENERIC_READ | FILE_GENERIC_WRITE | FILE_EXECUTE | DELETE))
{
LoadAndPrintString(NULL,
IDS_ABBR_CHANGE);
ConResPuts(StdOut, IDS_ABBR_CHANGE);
}
else if (AccessMask == FILE_GENERIC_WRITE)
{
LoadAndPrintString(NULL,
IDS_ABBR_WRITE);
ConResPuts(StdOut, IDS_ABBR_WRITE);
}
else
{
@@ -446,38 +293,32 @@ BuildSidString:
{STANDARD_RIGHTS_ALL, IDS_STANDARD_RIGHTS_ALL},
};
LoadAndPrintString(NULL,
IDS_ALLOW);
ConResPuts(StdOut, IDS_ALLOW);
PrintSpecialAccess:
LoadAndPrintString(NULL,
IDS_SPECIAL_ACCESS);
ConResPuts(StdOut, IDS_SPECIAL_ACCESS);
/* print the special access rights */
x = sizeof(AccessRights) / sizeof(AccessRights[0]);
x = ARRAYSIZE(AccessRights);
while (x-- != 0)
{
if ((Ace->Mask & AccessRights[x].Access) == AccessRights[x].Access)
{
_tprintf(_T("\n%s "),
FullFileName);
for (x2 = 0;
x2 < IndentAccess;
x2++)
ConPrintf(StdOut, L"\n%s ", FullFileName);
for (x2 = 0; x2 < IndentAccess; x2++)
{
_tprintf(_T(" "));
ConPuts(StdOut, L" ");
}
LoadAndPrintString(NULL,
AccessRights[x].uID);
ConResPuts(StdOut, AccessRights[x].uID);
}
}
_tprintf(_T("\n"));
ConPuts(StdOut, L"\n");
}
}
_tprintf(_T("\n"));
ConPuts(StdOut, L"\n");
/* free up all resources */
if (Name != NULL)
@@ -541,7 +382,7 @@ GetPathOfFile(LPTSTR FilePath, LPCTSTR pszFiles)
*pch = 0;
if (!GetFullPathName(FilePath, MAX_PATH, FullPath, NULL))
{
PrintErrorMessage(GetLastError());
PrintError(GetLastError());
return FALSE;
}
lstrcpyn(FilePath, FullPath, MAX_PATH);
@@ -549,7 +390,7 @@ GetPathOfFile(LPTSTR FilePath, LPCTSTR pszFiles)
attrs = GetFileAttributes(FilePath);
if (attrs == 0xFFFFFFFF || !(attrs & FILE_ATTRIBUTE_DIRECTORY))
{
PrintErrorMessage(ERROR_DIRECTORY);
PrintError(ERROR_DIRECTORY);
return FALSE;
}
}
@@ -591,7 +432,7 @@ PrintDaclsOfFiles(LPCTSTR pszFiles)
LastError = GetLastError();
if (LastError == ERROR_ACCESS_DENIED)
{
PrintErrorMessage(LastError);
PrintError(LastError);
if (!OptionC)
{
FindClose(hFind);
@@ -599,17 +440,21 @@ PrintDaclsOfFiles(LPCTSTR pszFiles)
}
}
else
{
break;
}
}
else
_tprintf(_T("\n"));
{
ConPuts(StdOut, L"\n");
}
} while(FindNextFile(hFind, &FindData));
LastError = GetLastError();
FindClose(hFind);
if (LastError != ERROR_NO_MORE_FILES)
{
PrintErrorMessage(LastError);
PrintError(LastError);
return FALSE;
}
@@ -771,7 +616,7 @@ ChangeACLsOfFiles(LPCTSTR pszFiles)
LastError = GetLastError();
if (LastError == ERROR_ACCESS_DENIED)
{
PrintErrorMessage(LastError);
PrintError(LastError);
if (!OptionC)
{
FindClose(hFind);
@@ -788,7 +633,7 @@ ChangeACLsOfFiles(LPCTSTR pszFiles)
if (LastError != ERROR_NO_MORE_FILES)
{
PrintErrorMessage(LastError);
PrintError(LastError);
return FALSE;
}
@@ -826,7 +671,7 @@ ChangeACLsOfFilesInCurDir(LPCTSTR pszFiles)
LastError = GetLastError();
if (LastError == ERROR_ACCESS_DENIED)
{
PrintErrorMessage(LastError);
PrintError(LastError);
if (!OptionC)
{
FindClose(hFind);
@@ -843,7 +688,7 @@ ChangeACLsOfFilesInCurDir(LPCTSTR pszFiles)
if (LastError != ERROR_NO_MORE_FILES)
{
PrintErrorMessage(LastError);
PrintError(LastError);
return FALSE;
}
@@ -872,7 +717,7 @@ ChangeACLsOfFilesInCurDir(LPCTSTR pszFiles)
LastError = GetLastError();
if (LastError == ERROR_ACCESS_DENIED)
{
PrintErrorMessage(LastError);
PrintError(LastError);
if (!OptionC)
{
FindClose(hFind);
@@ -889,26 +734,29 @@ ChangeACLsOfFilesInCurDir(LPCTSTR pszFiles)
if (LastError != ERROR_NO_MORE_FILES)
{
PrintErrorMessage(LastError);
PrintError(LastError);
return FALSE;
}
return TRUE;
}
int
__cdecl
_tmain(int argc, const TCHAR *argv[])
int _tmain(int argc, const TCHAR *argv[])
{
INT i;
LPTSTR pch;
BOOL InvalidParameter = FALSE;
/* Initialize the Console Standard Streams */
ConInitStdStreams();
if (argc <= 1)
{
PrintHelp();
ConResPuts(StdOut, IDS_HELP);
return 0;
}
// FIXME: Convert to proper parsing, with support for /?
/*
* parse command line options
*/
@@ -991,8 +839,8 @@ _tmain(int argc, const TCHAR *argv[])
if (InvalidParameter)
{
PrintErrorMessage(ERROR_INVALID_PARAMETER);
PrintHelp();
PrintError(ERROR_INVALID_PARAMETER);
ConResPuts(StdOut, IDS_HELP);
return 1;
}

View File

@@ -23,7 +23,8 @@ CACLS όνομα_αρχείου [/T] [/E] [/C] [/G χρήστης:άδειες [
C Αλλαγή (εγγραφή)\n\
F Πλήρης έλεγχος\n\
/D user Αποτροπή χρήστη από προσπέλαση.\n\
Τα Wildcards μπορούν να χρησιμοποιηθούν για να προσδιορίσουν παραπαπάνω από ένα αρχεία στην εντολή.\n\
Τα Wildcards μπορούν να χρησιμοποιηθούν για να προσδιορίσουν παραπαπάνω από\n\
ένα αρχεία στην εντολή.\n\
Μπορείτε να προσδιορίσετε παρπαάνω από έναν χρήστη στην εντολή.\n\n\
Abbreviations:\n\
CI - Container Inherit.\n\

View File

@@ -18,7 +18,8 @@ CACLS archivo [/T] [/E] [/C] [/G user:perm [...]] [/R usuario [...]]\n\
W Escribir\n\
C Cambiar (escribir)\n\
F Control total\n\
/R usuario Revoca los derechos de acceso al usuario especificado (unicamente válido con /E).\n\
/R usuario Revoca los derechos de acceso al usuario especificado\n\
(unicamente válido con /E).\n\
/P user:perm Reemplaza los derechos de acceso del usuario especificado.\n\
Perm puede ser: N Ninguno\n\
R Leer\n\

View File

@@ -15,7 +15,8 @@ CACLS nomfichier [/T] [/E] [/C] [/G user:perm [...]] [/R user [...]]\n\
W Écriture\n\
C Modification (Écriture)\n\
F Contrôle total\n\
/R user Supprime les droits d'accès de l'utilisateur spécifié (valide uniquement avec /E).\n\
/R user Supprime les droits d'accès de l'utilisateur spécifié\n\
(valide uniquement avec /E).\n\
/P user:perm Remplace les droits d'accès de l'utilisateur spécifié.\n\
Perm peut valoir : N Aucun \n\
R Lecture\n\
@@ -23,7 +24,8 @@ CACLS nomfichier [/T] [/E] [/C] [/G user:perm [...]] [/R user [...]]\n\
C Modification (Écriture)\n\
F Contrôle total\n\
/D user Interdit l'accès à l'utilisateur spécifié.\n\
Il est possible d'utiliser des caractères joker pour sélectionner plus d'un fichier avec une commande.\n\
Il est possible d'utiliser des caractères joker pour sélectionner plus d'un\n\
fichier avec une commande.\n\
Il est possible de spécifier plus d'un utilisateur dans une commande.\n\n\
Abréviations:\n\
CI - Héritage du conteneur.\n\

View File

@@ -2,7 +2,9 @@ LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_HELP "ACL's (Access Control Lists, toegangslijsten) van bestanden weergeven\nof bewerken\n\nCACLS bestandsnaam [/T] [/E] [/C] [/G gebr:toeg] [/R gebruiker [...]]\n\
IDS_HELP "ACL's (Access Control Lists, toegangslijsten) van bestanden weergeven\n\
of bewerken\n\n\
CACLS bestandsnaam [/T] [/E] [/C] [/G gebr:toeg] [/R gebruiker [...]]\n\
[/P gebr:toeg [...]] [/D gebruiker [...]]\n\
bestandsnaam ACL's weergeven.\n\
/T ACL's wijzigen van opgegeven bestanden in\n\

View File

@@ -24,7 +24,8 @@ CACLS nazwa pliku [/T] [/E] [/C] [/G użytkownik:dostęp [...]] [/R użytkownik
W Zapis\n\
C Zmiana (zapis)\n\
F Pełny dostęp\n\
/R użytkownik Odwołuje prawa dostępu określonemu użytkownikowi (działa tylko z opcją /E).\n\
/R użytkownik Odwołuje prawa dostępu określonemu użytkownikowi\n\
(działa tylko z opcją /E).\n\
/P użytkownik:dostęp Edytuje prawa dostępu określonego użytkownika.\n\
Poziom dostępu:\n\
N Brak\n\
@@ -33,7 +34,8 @@ CACLS nazwa pliku [/T] [/E] [/C] [/G użytkownik:dostęp [...]] [/R użytkownik
C Zmiana (zapis)\n\
F Pełny dostęp\n\
/D użytkownik Odbiera prawa dostępu określonemu użytkownikowi.\n\
W jednym poleceniu można edytować prawa dostępu do wielu plików, używając symboli wieloznacznych.\n\
W jednym poleceniu można edytować prawa dostępu do wielu plików, używając\n\
symboli wieloznacznych.\n\
W jednym poleceniu można edytować prawa dostępu wielu użytkowników.\n\n\
Skróty:\n\
CI - Dziedziczenie kontenera.\n\

View File

@@ -2,11 +2,14 @@
#define _CACLS_PRECOMP_H
#include <stdarg.h>
#include <tchar.h>
#include <windef.h>
#include <winbase.h>
#include <winuser.h>
#include <winuser.h> // For CharPrev
#include <sddl.h>
#include <tchar.h>
#include <conutils.h>
#include "resource.h"

View File

@@ -331,7 +331,7 @@ BEGIN
END
POPUP "&Help"
BEGIN
MENUITEM "&Help topics", IDM_HELP_HELP
MENUITEM "&Help Topics", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "&About ReactOS Calc", IDM_HELP_ABOUT
END
@@ -364,7 +364,7 @@ BEGIN
END
POPUP "&Help"
BEGIN
MENUITEM "&Help topics", IDM_HELP_HELP
MENUITEM "&Help Topics", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "&About ReactOS Calc", IDM_HELP_ABOUT
END
@@ -387,7 +387,7 @@ BEGIN
END
POPUP "&Help"
BEGIN
MENUITEM "&Help topics", IDM_HELP_HELP
MENUITEM "&Help Topics", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "&About ReactOS Calc", IDM_HELP_ABOUT
END

View File

@@ -314,9 +314,9 @@ BEGIN
END
POPUP "В&ид"
BEGIN
MENUITEM "Обычный", IDM_VIEW_STANDARD
MENUITEM "Научный", IDM_VIEW_SCIENTIFIC
MENUITEM "Преобразование", IDM_VIEW_CONVERSION
MENUITEM "&Обычный", IDM_VIEW_STANDARD
MENUITEM "&Инженерный", IDM_VIEW_SCIENTIFIC
MENUITEM "П&еревод величин", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "&Шестнадцатеричный\tF5", IDM_VIEW_HEX, CHECKED
MENUITEM "&Десятичный\tF6", IDM_VIEW_DEC, CHECKED
@@ -327,7 +327,7 @@ BEGIN
MENUITEM "Радиа&ны\tF3", IDM_VIEW_RAD, CHECKED
MENUITEM "Гр&ады\tF4", IDM_VIEW_GRAD, CHECKED
MENUITEM SEPARATOR
MENUITEM "Количество цифр в группе", IDM_VIEW_GROUP, CHECKED
MENUITEM "Группировать &цифры", IDM_VIEW_GROUP, CHECKED
END
POPUP "&Справка"
BEGIN
@@ -346,9 +346,9 @@ BEGIN
END
POPUP "В&ид"
BEGIN
MENUITEM "Обычный", IDM_VIEW_STANDARD
MENUITEM "Научный", IDM_VIEW_SCIENTIFIC
MENUITEM "Преобразование", IDM_VIEW_CONVERSION
MENUITEM "&Обычный", IDM_VIEW_STANDARD
MENUITEM "&Инженерный", IDM_VIEW_SCIENTIFIC
MENUITEM "П&еревод величин", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "&Шестнадцатеричный\tF5", IDM_VIEW_HEX, CHECKED
MENUITEM "&Десятичный\tF6", IDM_VIEW_DEC, CHECKED
@@ -360,7 +360,7 @@ BEGIN
MENUITEM "&2 байт\tF3", IDM_VIEW_WORD, CHECKED
MENUITEM "&1 байт\tF4", IDM_VIEW_BYTE, CHECKED
MENUITEM SEPARATOR
MENUITEM "Количество цифр в группе", IDM_VIEW_GROUP, CHECKED
MENUITEM "Группировать &цифры", IDM_VIEW_GROUP, CHECKED
END
POPUP "&Справка"
BEGIN
@@ -372,18 +372,18 @@ END
IDR_MENU_STANDARD MENU
BEGIN
POPUP "Правка"
POPUP "&Правка"
BEGIN
MENUITEM "&Копировать\tCTRL-C", IDM_EDIT_COPY
MENUITEM "Вст&авить\tCTRL-V", IDM_EDIT_PASTE
END
POPUP "В&ид"
BEGIN
MENUITEM "Обычный", IDM_VIEW_STANDARD
MENUITEM "Научный", IDM_VIEW_SCIENTIFIC
MENUITEM "Преобразование", IDM_VIEW_CONVERSION
MENUITEM "&Обычный", IDM_VIEW_STANDARD
MENUITEM "&Инженерный", IDM_VIEW_SCIENTIFIC
MENUITEM "П&еревод величин", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Количество цифр в группе", IDM_VIEW_GROUP, CHECKED
MENUITEM "Группировать &цифры", IDM_VIEW_GROUP, CHECKED
END
POPUP "&Справка"
BEGIN

View File

@@ -320,14 +320,14 @@ BEGIN
MENUITEM "&Bilimlik", IDM_VIEW_SCIENTIFIC
MENUITEM "&Dönüştürme", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "&Onaltılık\tİ5", IDM_VIEW_HEX, CHECKED
MENUITEM "O&nluk\tİ6", IDM_VIEW_DEC, CHECKED
MENUITEM "&Sekizlik\tİ7", IDM_VIEW_OCT, CHECKED
MENUITEM "&İkilik\tİ8", IDM_VIEW_BIN, CHECKED
MENUITEM "&Onaltılık\tF5", IDM_VIEW_HEX, CHECKED
MENUITEM "O&nluk\tF6", IDM_VIEW_DEC, CHECKED
MENUITEM "&Sekizlik\tF7", IDM_VIEW_OCT, CHECKED
MENUITEM "&İkilik\tF8", IDM_VIEW_BIN, CHECKED
MENUITEM SEPARATOR
MENUITEM "D&erece\tİ2", IDM_VIEW_DEG, CHECKED
MENUITEM "&Radyan\tİ3", IDM_VIEW_RAD, CHECKED
MENUITEM "&Gradyan\tİ4", IDM_VIEW_GRAD, CHECKED
MENUITEM "D&erece\tF2", IDM_VIEW_DEG, CHECKED
MENUITEM "&Radyan\tF3", IDM_VIEW_RAD, CHECKED
MENUITEM "&Gradyan\tF4", IDM_VIEW_GRAD, CHECKED
MENUITEM SEPARATOR
MENUITEM "B&asamakları Takımla", IDM_VIEW_GROUP, CHECKED
END
@@ -352,15 +352,15 @@ BEGIN
MENUITEM "&Bilimlik", IDM_VIEW_SCIENTIFIC
MENUITEM "&Dönüştürme", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "&Onaltılık\tİ5", IDM_VIEW_HEX, CHECKED
MENUITEM "O&nluk\tİ6", IDM_VIEW_DEC, CHECKED
MENUITEM "&Sekizlik\tİ7", IDM_VIEW_OCT, CHECKED
MENUITEM "&İkilik\tİ8", IDM_VIEW_BIN, CHECKED
MENUITEM "&Onaltılık\tF5", IDM_VIEW_HEX, CHECKED
MENUITEM "O&nluk\tF6", IDM_VIEW_DEC, CHECKED
MENUITEM "&Sekizlik\tF7", IDM_VIEW_OCT, CHECKED
MENUITEM "&İkilik\tF8", IDM_VIEW_BIN, CHECKED
MENUITEM SEPARATOR
MENUITEM "Dö&rtlü Sözcük\tİ12", IDM_VIEW_QWORD, CHECKED
MENUITEM "İ&kili Sözcük\tİ2", IDM_VIEW_DWORD, CHECKED
MENUITEM "Sö&zcük\tİ3", IDM_VIEW_WORD, CHECKED
MENUITEM "&Çoklu\tİ4", IDM_VIEW_BYTE, CHECKED
MENUITEM "Dö&rtlü Sözcük\tF12", IDM_VIEW_QWORD, CHECKED
MENUITEM "İ&kili Sözcük\tF2", IDM_VIEW_DWORD, CHECKED
MENUITEM "Sö&zcük\tF3", IDM_VIEW_WORD, CHECKED
MENUITEM "&Çoklu\tF4", IDM_VIEW_BYTE, CHECKED
MENUITEM SEPARATOR
MENUITEM "B&asamakları Takımla", IDM_VIEW_GROUP, CHECKED
END

View File

@@ -10,7 +10,7 @@ BEGIN
POPUP "&File"
BEGIN
MENUITEM "&Open...", CMD_OPEN
MENUITEM "Save &as...", CMD_SAVE_AS
MENUITEM "Save &As...", CMD_SAVE_AS
MENUITEM SEPARATOR
MENUITEM "E&xit", CMD_EXIT
END

View File

@@ -45,17 +45,17 @@ BEGIN
STRING_CF_UNKNOWN "Неизвестный формат"
STRING_CF_TEXT "Текст"
STRING_CF_BITMAP "Точечный рисунок"
STRING_CF_OEMTEXT "OEM текст"
STRING_CF_UNICODETEXT "Юникод текст"
STRING_CF_DIB "DIB точечный рисунок"
STRING_CF_LOCALE "Locale Data"
STRING_CF_ENHMETAFILE "Enhanced Metafile"
STRING_CF_METAFILEPICT "Metafile"
STRING_CF_OEMTEXT "Текст в кодировке OEM"
STRING_CF_UNICODETEXT "Текст в кодировке Юникод"
STRING_CF_DIB "Аппаратно-независимый точечный рисунок (DIB)"
STRING_CF_LOCALE "Языковые данные"
STRING_CF_ENHMETAFILE "Расширенный метафайл"
STRING_CF_METAFILEPICT "Метафайл"
STRING_CF_PALETTE "Цветовая палитра"
STRING_CF_DIBV5 "DIB точечный рисунок (Версия 5)"
STRING_CF_SYLK "Symbolic Link Format"
STRING_CF_DIF "Data Interchange Format"
STRING_CF_HDROP "Drop Data"
STRING_CF_DIBV5 "Аппаратно-независимый точечный рисунок (DIB) (Версия 5)"
STRING_CF_SYLK "Формат символических ссылок"
STRING_CF_DIF "Формат обмена данными"
STRING_CF_HDROP "Очистить данные"
END
STRINGTABLE

View File

@@ -14,9 +14,21 @@ void ShowLastWin32Error(HWND hwndParent)
LPWSTR lpMsgBuf = NULL;
dwError = GetLastError();
if (dwError == ERROR_SUCCESS)
return;
if (!FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
dwError,
LANG_USER_DEFAULT,
(LPWSTR)&lpMsgBuf,
0, NULL))
{
return;
}
FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
NULL, dwError, 0, (LPWSTR)&lpMsgBuf, 0, NULL);
MessageBoxW(hwndParent, lpMsgBuf, NULL, MB_OK | MB_ICONERROR);
LocalFree(lpMsgBuf);
}

View File

@@ -3,6 +3,7 @@ add_subdirectory(comp)
add_subdirectory(cscript)
add_subdirectory(dbgprint)
add_subdirectory(doskey)
add_subdirectory(eventcreate)
add_subdirectory(find)
add_subdirectory(help)
add_subdirectory(hostname)

View File

@@ -1,5 +1,8 @@
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/conutils)
add_executable(clip clip.c clip.rc)
set_module_type(clip win32cui UNICODE)
add_importlibs(clip user32 msvcrt kernel32 advapi32)
target_link_libraries(clip conutils_stream ${PSEH_LIB})
add_importlibs(clip advapi32 user32 msvcrt kernel32)
add_cd_file(TARGET clip DESTINATION reactos/system32 FOR all)

View File

@@ -12,31 +12,17 @@
#include <winbase.h>
#include <winuser.h>
#include <conutils.h>
#include "resource.h"
static void PrintError(void)
VOID PrintError(DWORD dwError)
{
DWORD dwError;
LPWSTR lpMsgBuf = NULL;
dwError = GetLastError();
if (dwError == NO_ERROR)
if (dwError == ERROR_SUCCESS)
return;
FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
NULL, dwError, 0, (LPWSTR)&lpMsgBuf, 0, NULL);
wprintf(L"%s", lpMsgBuf);
LocalFree(lpMsgBuf);
}
static void PrintResourceString(UINT uID)
{
WCHAR buff[500];
if (LoadStringW(GetModuleHandle(NULL), uID, buff, ARRAYSIZE(buff)))
{
wprintf(L"%s", buff);
}
ConMsgPuts(StdErr, FORMAT_MESSAGE_FROM_SYSTEM,
NULL, dwError, LANG_USER_DEFAULT);
}
static BOOL IsDataUnicode(HGLOBAL hGlobal)
@@ -61,28 +47,27 @@ int wmain(int argc, wchar_t** argv)
LPBYTE lpBuffer;
SIZE_T dwSize = 0;
/* Initialize the Console Standard Streams */
hInput = GetStdHandle(STD_INPUT_HANDLE);
ConInitStdStreams();
/* Check for usage */
if (argc > 1 && wcsncmp(argv[1], L"/?", 2) == 0)
{
PrintResourceString(IDS_HELP);
ConResPuts(StdOut, IDS_HELP);
return 0;
}
if (GetFileType(hInput) == FILE_TYPE_CHAR)
{
PrintResourceString(IDS_USAGE);
ConResPuts(StdOut, IDS_USAGE);
return 0;
}
/* Initialize a growable buffer for holding clipboard data */
hBuffer = GlobalAlloc(GMEM_MOVEABLE | GMEM_ZEROINIT, 4096);
if (!hBuffer)
{
PrintError();
return -1;
}
goto Failure;
/*
* Read data from the input stream by chunks of 4096 bytes
@@ -92,7 +77,7 @@ int wmain(int argc, wchar_t** argv)
{
lpBuffer = GlobalLock(hBuffer);
if (!lpBuffer)
goto cleanup;
goto Failure;
bStatus = ReadFile(hInput, lpBuffer + dwSize, 4096, &dwBytesRead, NULL);
dwSize += dwBytesRead;
@@ -100,11 +85,11 @@ int wmain(int argc, wchar_t** argv)
hTemp = GlobalReAlloc(hBuffer, GlobalSize(hBuffer) + 4096, GMEM_ZEROINIT);
if (!hTemp)
goto cleanup;
goto Failure;
hBuffer = hTemp;
}
while (dwBytesRead > 0 && bStatus);
while (bStatus && dwBytesRead > 0);
/*
* Resize the buffer to the total size of data read.
@@ -118,7 +103,7 @@ int wmain(int argc, wchar_t** argv)
/* Attempt to open the clipboard */
if (!OpenClipboard(NULL))
goto cleanup;
goto Failure;
/* Empty it, copy our data, then close it */
@@ -138,8 +123,8 @@ int wmain(int argc, wchar_t** argv)
CloseClipboard();
return 0;
cleanup:
GlobalFree(hBuffer);
PrintError();
Failure:
if (hBuffer) GlobalFree(hBuffer);
PrintError(GetLastError());
return -1;
}

View File

@@ -2,6 +2,8 @@
#include "resource.h"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Clip Command"
#define REACTOS_STR_INTERNAL_NAME "clip"
#define REACTOS_STR_ORIGINAL_FILENAME "clip.exe"

View File

@@ -1,5 +1,8 @@
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/conutils)
add_executable(comp comp.c comp.rc)
set_module_type(comp win32cui UNICODE)
add_importlibs(comp user32 msvcrt kernel32)
target_link_libraries(comp conutils_stream ${PSEH_LIB})
add_importlibs(comp msvcrt kernel32)
add_cd_file(TARGET comp DESTINATION reactos/system32 FOR all)

View File

@@ -26,39 +26,18 @@
#include <stdio.h>
#include <stdlib.h>
// #include <string.h>
// #include <wchar.h>
#include <assert.h>
#define WIN32_NO_STATUS
#include <windef.h>
#include <winbase.h>
#include <winuser.h>
#include <conutils.h>
#include "resource.h"
#define STRBUF 1024
VOID PrintResourceString(INT resID, ...)
{
WCHAR bufSrc[RC_STRING_MAX_SIZE];
WCHAR bufFormatted[RC_STRING_MAX_SIZE];
CHAR bufFormattedOem[RC_STRING_MAX_SIZE];
va_list args;
va_start(args, resID);
if (LoadStringW(GetModuleHandleW(NULL), resID, bufSrc, ARRAYSIZE(bufSrc)))
vswprintf(bufFormatted, bufSrc, args);
else
swprintf(bufFormatted, L"Resource loading error!");
CharToOemW(bufFormatted, bufFormattedOem);
fputs(bufFormattedOem, stdout);
va_end(args);
}
/* getline: read a line, return length */
INT GetBuff(PBYTE buff, FILE* in)
{
@@ -76,14 +55,8 @@ INT FileSize(FILE* fd)
return result;
}
/* Print program usage */
VOID Usage(VOID)
{
PrintResourceString(IDS_HELP);
}
int wmain (int argc, WCHAR* argv[])
int wmain(int argc, WCHAR* argv[])
{
INT i;
@@ -106,30 +79,33 @@ int wmain (int argc, WCHAR* argv[])
INT FilesOK = 1;
INT Status = EXIT_SUCCESS;
/* Initialize the Console Standard Streams */
ConInitStdStreams();
/* Parse command line for options */
for (i = 1; i < argc; i++)
{
if (argv[i][0] == L'/')
{
switch (argv[i][1])
switch (towlower(argv[i][1]))
{
case L'A':
case L'a':
bAscii = TRUE;
NumberOfOptions++;
break;
case L'L':
case L'l':
bLineNos = TRUE;
NumberOfOptions++;
break;
case L'?':
Usage();
ConResPuts(StdOut, IDS_HELP);
return EXIT_SUCCESS;
default:
PrintResourceString(IDS_INVALIDSWITCH, argv[i][1]);
Usage();
ConResPrintf(StdErr, IDS_INVALIDSWITCH, argv[i][1]);
ConResPuts(StdOut, IDS_HELP);
return EXIT_FAILURE;
}
}
@@ -142,14 +118,14 @@ int wmain (int argc, WCHAR* argv[])
}
else
{
PrintResourceString(IDS_BADSYNTAX);
ConResPuts(StdErr, IDS_BADSYNTAX);
return EXIT_FAILURE;
}
Buff1 = (PBYTE)malloc(STRBUF);
if (Buff1 == NULL)
{
wprintf(L"Can't get free memory for Buff1\n");
ConPuts(StdErr, L"Can't get free memory for Buff1\n");
Status = EXIT_FAILURE;
goto Cleanup;
}
@@ -157,30 +133,30 @@ int wmain (int argc, WCHAR* argv[])
Buff2 = (PBYTE)malloc(STRBUF);
if (Buff2 == NULL)
{
wprintf(L"Can't get free memory for Buff2\n");
ConPuts(StdErr, L"Can't get free memory for Buff2\n");
Status = EXIT_FAILURE;
goto Cleanup;
}
if ((fp1 = _wfopen(File1, L"rb")) == NULL)
{
PrintResourceString(IDS_FILEERROR, File1);
ConResPrintf(StdErr, IDS_FILEERROR, File1);
Status = EXIT_FAILURE;
goto Cleanup;
}
if ((fp2 = _wfopen(File2, L"rb")) == NULL)
{
PrintResourceString(IDS_FILEERROR, File2);
ConResPrintf(StdErr, IDS_FILEERROR, File2);
Status = EXIT_FAILURE;
goto Cleanup;
}
PrintResourceString(IDS_COMPARING, File1, File2);
ConResPrintf(StdOut, IDS_COMPARING, File1, File2);
FileSizeFile1 = FileSize(fp1);
if (FileSizeFile1 == -1)
{
PrintResourceString(IDS_FILESIZEERROR, File1);
ConResPrintf(StdErr, IDS_FILESIZEERROR, File1);
Status = EXIT_FAILURE;
goto Cleanup;
}
@@ -188,14 +164,14 @@ int wmain (int argc, WCHAR* argv[])
FileSizeFile2 = FileSize(fp2);
if (FileSizeFile2 == -1)
{
PrintResourceString(IDS_FILESIZEERROR, File2);
ConResPrintf(StdErr, IDS_FILESIZEERROR, File2);
Status = EXIT_FAILURE;
goto Cleanup;
}
if (FileSizeFile1 != FileSizeFile2)
{
PrintResourceString(IDS_SIZEDIFFERS);
ConResPuts(StdOut, IDS_SIZEDIFFERS);
Status = EXIT_FAILURE;
goto Cleanup;
}
@@ -209,7 +185,7 @@ int wmain (int argc, WCHAR* argv[])
if (ferror(fp1) || ferror(fp2))
{
PrintResourceString(IDS_READERROR);
ConResPuts(StdErr, IDS_READERROR);
Status = EXIT_FAILURE;
goto Cleanup;
}
@@ -226,23 +202,19 @@ int wmain (int argc, WCHAR* argv[])
/* Reporting here a mismatch */
if (bLineNos)
{
PrintResourceString(IDS_MISMATCHLINE, LineNumber);
}
ConResPrintf(StdOut, IDS_MISMATCHLINE, LineNumber);
else
{
PrintResourceString(IDS_MISMATCHOFFSET, Offset);
}
ConResPrintf(StdOut, IDS_MISMATCHOFFSET, Offset);
if (bAscii)
{
PrintResourceString(IDS_ASCIIDIFF, 1, Buff1[i]);
PrintResourceString(IDS_ASCIIDIFF, 2, Buff2[i]);
ConResPrintf(StdOut, IDS_ASCIIDIFF, 1, Buff1[i]);
ConResPrintf(StdOut, IDS_ASCIIDIFF, 2, Buff2[i]);
}
else
{
PrintResourceString(IDS_HEXADECIMALDIFF, 1, Buff1[i]);
PrintResourceString(IDS_HEXADECIMALDIFF, 2, Buff2[i]);
ConResPrintf(StdOut, IDS_HEXADECIMALDIFF, 1, Buff1[i]);
ConResPrintf(StdOut, IDS_HEXADECIMALDIFF, 2, Buff2[i]);
}
}
@@ -254,7 +226,7 @@ int wmain (int argc, WCHAR* argv[])
}
if (FilesOK)
PrintResourceString(IDS_MATCH);
ConResPuts(StdOut, IDS_MATCH);
Cleanup:
if (fp2)

View File

@@ -1,7 +1,5 @@
#pragma once
#define RC_STRING_MAX_SIZE 4096
#define IDS_HELP 100
#define IDS_INVALIDSWITCH 101
#define IDS_BADSYNTAX 102

View File

@@ -1,12 +1,31 @@
#include <stdarg.h>
#include <stdio.h>
#include <wchar.h>
#include <locale.h>
#include <windef.h>
#include <winbase.h>
#include <winuser.h>
#include <wincon.h>
#include <stdio.h>
#include <wchar.h>
#include <assert.h>
#include <locale.h>
/* Console API functions which are absent from wincon.h */
VOID
WINAPI
ExpungeConsoleCommandHistoryW(LPCWSTR lpExeName);
DWORD
WINAPI
GetConsoleCommandHistoryW(LPWSTR lpHistory,
DWORD cbHistory,
LPCWSTR lpExeName);
DWORD
WINAPI
GetConsoleCommandHistoryLengthW(LPCWSTR lpExeName);
BOOL
WINAPI
SetConsoleNumberOfCommandsW(DWORD dwNumCommands,
LPCWSTR lpExeName);
#include "doskey.h"
@@ -14,19 +33,12 @@
WCHAR szStringBuf[MAX_STRING];
LPWSTR pszExeName = L"cmd.exe";
/* Function pointers */
typedef DWORD (WINAPI *GetConsoleCommandHistoryW_t) (LPWSTR sCommands, DWORD nBufferLength, LPWSTR sExeName);
typedef DWORD (WINAPI *GetConsoleCommandHistoryLengthW_t) (LPWSTR sExeName);
typedef BOOL (WINAPI *SetConsoleNumberOfCommandsW_t)(DWORD nNumber, LPWSTR sExeName);
typedef VOID (WINAPI *ExpungeConsoleCommandHistoryW_t)(LPWSTR sExeName);
GetConsoleCommandHistoryW_t pGetConsoleCommandHistoryW;
GetConsoleCommandHistoryLengthW_t pGetConsoleCommandHistoryLengthW;
SetConsoleNumberOfCommandsW_t pSetConsoleNumberOfCommandsW;
ExpungeConsoleCommandHistoryW_t pExpungeConsoleCommandHistoryW;
static VOID SetInsert(DWORD dwFlag)
{
/*
* NOTE: Enabling the ENABLE_INSERT_MODE mode can also be done by calling
* kernel32:SetConsoleCommandHistoryMode(CONSOLE_OVERSTRIKE) .
*/
DWORD dwMode;
HANDLE hConsole = GetStdHandle(STD_INPUT_HANDLE);
GetConsoleMode(hConsole, &dwMode);
@@ -36,7 +48,7 @@ static VOID SetInsert(DWORD dwFlag)
static VOID PrintHistory(VOID)
{
DWORD Length = pGetConsoleCommandHistoryLengthW(pszExeName);
DWORD Length = GetConsoleCommandHistoryLengthW(pszExeName);
PBYTE HistBuf;
WCHAR *Hist;
WCHAR *HistEnd;
@@ -48,9 +60,13 @@ static VOID PrintHistory(VOID)
Hist = (WCHAR *)HistBuf;
HistEnd = (WCHAR *)&HistBuf[Length];
if (pGetConsoleCommandHistoryW(Hist, Length, pszExeName))
if (GetConsoleCommandHistoryW(Hist, Length, pszExeName))
{
for (; Hist < HistEnd; Hist += wcslen(Hist) + 1)
{
wprintf(L"%s\n", Hist);
}
}
HeapFree(GetProcessHeap(), 0, HistBuf);
}
@@ -102,8 +118,12 @@ static VOID PrintMacros(LPWSTR pszExeName, LPWSTR Indent)
AliasEnd = (WCHAR *)&AliasBuf[Length];
if (GetConsoleAliasesW(Alias, Length * sizeof(BYTE), pszExeName))
{
for (; Alias < AliasEnd; Alias += wcslen(Alias) + 1)
{
wprintf(L"%s%s\n", Indent, Alias);
}
}
HeapFree(GetProcessHeap(), 0, AliasBuf);
}
@@ -198,23 +218,12 @@ wmain(VOID)
{
WCHAR *pArgStart;
WCHAR *pArgEnd;
HMODULE hKernel32;
setlocale(LC_ALL, "");
/* Get the full command line using GetCommandLine(). We can't just use argv,
* because then a parameter like "gotoroot=cd \" wouldn't be passed completely. */
pArgEnd = GetCommandLineW();
hKernel32 = LoadLibraryW(L"kernel32.dll");
/* Get function pointers */
pGetConsoleCommandHistoryW = (GetConsoleCommandHistoryW_t)GetProcAddress( hKernel32, "GetConsoleCommandHistoryW");
pGetConsoleCommandHistoryLengthW = (GetConsoleCommandHistoryLengthW_t)GetProcAddress( hKernel32, "GetConsoleCommandHistoryLengthW");
pSetConsoleNumberOfCommandsW = (SetConsoleNumberOfCommandsW_t)GetProcAddress( hKernel32, "SetConsoleNumberOfCommandsW");
pExpungeConsoleCommandHistoryW = (ExpungeConsoleCommandHistoryW_t)GetProcAddress( hKernel32, "ExpungeConsoleCommandHistoryW");
assert(pGetConsoleCommandHistoryW && pGetConsoleCommandHistoryLengthW &&
pSetConsoleNumberOfCommandsW && pExpungeConsoleCommandHistoryW);
/* Skip the application name */
GetArg(&pArgStart, &pArgEnd);
@@ -242,11 +251,11 @@ wmain(VOID)
}
else if (!_wcsnicmp(pArgStart, L"/LISTSIZE=", 10))
{
pSetConsoleNumberOfCommandsW(_wtoi(pArgStart + 10), pszExeName);
SetConsoleNumberOfCommandsW(_wtoi(pArgStart + 10), pszExeName);
}
else if (!wcsicmp(pArgStart, L"/REINSTALL"))
{
pExpungeConsoleCommandHistoryW(pszExeName);
ExpungeConsoleCommandHistoryW(pszExeName);
}
else if (!wcsicmp(pArgStart, L"/INSERT"))
{

View File

@@ -0,0 +1,12 @@
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/conutils)
## The message string templates are in ANSI to reduce binary size
add_message_headers(ANSI evtmsgstr.mc)
add_executable(eventcreate eventcreate.c eventcreate.rc)
set_module_type(eventcreate win32cui UNICODE)
add_dependencies(eventcreate evtmsgstr)
target_link_libraries(eventcreate conutils_stream ${PSEH_LIB})
add_importlibs(eventcreate advapi32 msvcrt kernel32)
add_cd_file(TARGET eventcreate DESTINATION reactos/system32 FOR all)

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,29 @@
#include <windef.h>
#include "resource.h"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS EventCreate Command"
#define REACTOS_STR_INTERNAL_NAME "eventcreate"
#define REACTOS_STR_ORIGINAL_FILENAME "eventcreate.exe"
#include <reactos/version.rc>
/* Message Table resource for the message string templates */
#include <evtmsgstr.rc>
/* UTF-8 */
#pragma code_page(65001)
#ifdef LANGUAGE_EN_US
#include "lang/en-US.rc"
#endif
#ifdef LANGUAGE_FR_FR
#include "lang/fr-FR.rc"
#endif
#ifdef LANGUAGE_RU_RU
#include "lang/ru-RU.rc"
#endif
#ifdef LANGUAGE_TR_TR
#include "lang/tr-TR.rc"
#endif

View File

@@ -0,0 +1,105 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS EventCreate Command
* FILE: base/applications/cmdutils/eventcreate/evtmsggen.c
* PURPOSE: Generator for the event message string templates file.
* Creates the message string file in the current directory.
* PROGRAMMER: Hermes Belusca-Maito
*
* You can compile this generator:
* with GCC : $ gcc -o evtmsggen.exe evtmsggen.c
* with MSVC: $ cl evtmsggen.c (or: $ cl /Fe"evtmsggen.exe" evtmsggen.c)
*/
#include <stdio.h>
/*
* Enable/disable this option to use "English" for the message table language.
* The default behaviour when the option is disabled selects "Neutral" language.
*/
// #define ENGLISH
/* The default End-Of-Line control for the message file */
#define EOL "\r\n"
static void usage(char* name)
{
fprintf(stdout, "Usage: %s ID_min ID_max outfile.mc\n", name);
}
int main(int argc, char* argv[])
{
FILE* outFile;
unsigned int id_min, id_max;
unsigned int i;
/* Validate the arguments */
if (argc != 4)
{
usage(argv[0]);
return -1;
}
id_min = (unsigned int)atoi(argv[1]);
id_max = (unsigned int)atoi(argv[2]);
if (id_min > id_max)
{
fprintf(stderr, "ERROR: Min ID %u cannot be strictly greater than Max ID %u !\n", id_min, id_max);
return -1;
}
/* Open the file */
outFile = fopen(argv[3], "wb");
if (!outFile)
{
fprintf(stderr, "ERROR: Could not create output file '%s'.\n", argv[3]);
return -1;
}
/* Generate the file */
/* Write the header */
fprintf(outFile,
";/*" EOL
"; * %s" EOL
"; * Contains event message string templates for the EventCreate Command." EOL
"; *" EOL
"; * This file is autogenerated, do not edit." EOL
"; * Generated with:" EOL
"; * %s %u %u %s" EOL
"; */" EOL
EOL
#ifdef ENGLISH
"LanguageNames=(English=0x409:MSG00409)" EOL
#else
"LanguageNames=(Neutral=0x0000:MSG00000)" EOL
#endif
"MessageIdTypedef=DWORD" EOL
EOL,
argv[3],
argv[0], id_min /* argv[1] */, id_max /* argv[2] */, argv[3]);
/* Write the message string templates */
for (i = id_min; i <= id_max; ++i)
{
fprintf(outFile,
"MessageId=0x%X" EOL
#ifdef ENGLISH
"Language=English" EOL
#else
"Language=Neutral" EOL
#endif
"%%1" EOL
"." EOL
EOL,
i);
}
/* Close the file */
fclose(outFile);
return 0;
}
/* EOF */

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,69 @@
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
STRINGTABLE
BEGIN
IDS_USAGE "Type ""EVENTCREATE /?"" for usage information.\n"
IDS_HELP "\n\
EVENTCREATE [/S computer [/U [domain\\]user [/P password]]] /ID EventID\n\
{[/L logname] | [/SO source]} /T type /C category /D description\n\
\n\
Description:\n\
This tool enables an administrator to create a custom event in\n\
a specified event log.\n\
\n\
Parameters:\n\
/S computer Specifies the remote computer where to connect.\n\
\n\
/U [domain\\]user Specifies the user account under which the command\n\
should execute.\n\
\n\
/P [password] Specifies the password of the user account.\n\
Prompts for input if omitted.\n\
\n\
/L logname Specifies the name of the log where the event will be\n\
created. The valid names are:\n\
Application, System, Security\n\
(the latter is reserved only for the SYSTEM account).\n\
\n\
/SO source Specifies the source name to use for the event\n\
(if not specified, the default source name\n\
will be 'eventcreate').\n\
A valid source can be any string and should represent\n\
the application or the component that is generating\n\
the event.\n\
\n\
/T type Specifies the type of event to create.\n\
The valid types are: SUCCESS, ERROR, WARNING,\n\
INFORMATION.\n\
\n\
/C category Specifies the event category (integer) for the event.\n\
\n\
/ID EventID Specifies the event ID for the event. This must be\n\
an integer between 0 and 65535.\n\
\n\
/D description Specifies the description to use for the newly\n\
created event.\n\
\n\
/? Displays this help screen.\n\
"
IDS_INVALIDSWITCH "Invalid switch - '%s'.\n"
IDS_BADSYNTAX_0 "Bad command line syntax.\n"
IDS_BADSYNTAX_1 "Bad command line syntax. The option '%s' requires a value.\n"
IDS_BADSYNTAX_2 "Bad command line syntax. The value for the option '%s' cannot be empty.\n"
IDS_BADSYNTAX_3 "Bad command line syntax. The value '%s' is not allowed for the option '%s'.\n"
IDS_BADSYNTAX_4 "Bad command line syntax. The value cannot be specified for the option '%s'.\n"
IDS_BADSYNTAX_5 "Bad command line syntax. The option '%s' is not allowed more than %lu times.\n"
IDS_BADSYNTAX_6 "Bad command line syntax. The mandatory option '%s' is absent.\n"
// IDS_BADSYNTAX_7 "Bad command line syntax. The value for the option '%s' is outside the allowed range.\n"
IDS_BADSYNTAX_7 "Bad command line syntax. The value for the option '%s' must be between %d and %d.\n"
IDS_LOG_NOT_FOUND "The log '%s' does not exist. Cannot create the event.\n"
IDS_SOURCE_NOCREATE "The new source cannot be created because the log name is not specified.\nPlease use the /L switch to specify the log name.\n"
IDS_SOURCE_EXISTS "The source already exists in the log '%s' and cannot be duplicated.\n"
IDS_SOURCE_NOT_CUSTOM "The Source parameter is used to identify the custom scripts/applications\n(not the installed applications).\n"
IDS_SUCCESS_1 "Operation successful: an event of type '%s' has been created in the log '%s'.\n"
IDS_SUCCESS_2 "Operation successful: an event of type '%s' has been created with the source '%s'.\n"
IDS_SUCCESS_3 "Operation successful: an event of type '%s' has been created\nin the log '%s' with the source '%s'.\n"
IDS_SWITCH_UNIMPLEMENTED "The option '%s' is not currently supported, sorry for the inconvenience!\n"
END

View File

@@ -0,0 +1,70 @@
LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_USAGE "Entrez ""EVENTCREATE /?"" pour afficher la syntaxe.\n"
IDS_HELP "\n\
EVENTCREATE [/S système [/U utilisateur [/P mot_de_passe]]] /ID id_événement\n\
{[/L journal] | [/SO source]} /T type /C catégorie /D description\n\
\n\
Description :\n\
Cet outil permet à un administrateur de créer un événement ayant un\n\
message et un identificateur personnalisés dans un journal d'événements\n\
spécifié.\n\
\n\
Liste de paramètres :\n\
/S système Spécifie le système distant auquel se connecter.\n\
\n\
/U [domaine\\]utili. Spécifie le contexte de l'utilisateur\n\
sous lequel la commande doit s'exécuter.\n\
\n\
/P [mot_de_passe] Spécifie le mot de passe du contexte\n\
utilisateur donné. Il est demandé s'il est omis.\n\
\n\
/L journal Spécifie le journal d'événement dans lequel\n\
l'événementest créé. Les noms valides sont :\n\
Application, System, Security\n\
(le dernier est réservé seulement pour le compte\n\
SYSTEM).\n\
\n\
/SO source Spécifie la source devant être utilisée pour\n\
l'événement (s'il n'est pas spécifié, la valeur\n\
par défaut de la source sera 'eventcreate').\n\
Une source valide peut être une chaîne et doit\n\
représenter l'application ou le composant qui génère\n\
l'événement.\n\
\n\
/T type Spécifie le type d'événement à créer.\n\
Les types autorisés sont : SUCCESS, ERROR, WARNING,\n\
INFORMATION.\n\
\n\
/C catégorie Spécifie la catégorie de l'événement (nombre entier).\n\
\n\
/ID identificateur Spécifie l'ID de l'événement. Un identificateur\n\
peut être un nombre entier compris entre 0 et 65535.\n\
\n\
/D description Spécifie la description du nouvel événement.\n\
\n\
/? Affiche cet écran d'aide.\n\
"
IDS_INVALIDSWITCH "Option invalide - '%s'.\n"
IDS_BADSYNTAX_0 "Syntaxe incorrecte.\n"
IDS_BADSYNTAX_1 "Syntaxe incorrecte. L'option '%s' requiert une valeur.\n"
IDS_BADSYNTAX_2 "Syntaxe incorrecte. La valeur pour l'option '%s' ne peut pas être vide.\n"
IDS_BADSYNTAX_3 "Syntaxe incorrecte. La valeur '%s' n'est pas autorisée pour l'option '%s'.\n"
IDS_BADSYNTAX_4 "Syntaxe incorrecte. La valeur ne peut pas être spécifiée pour l'option '%s'.\n"
IDS_BADSYNTAX_5 "Syntaxe incorrecte. L'option '%s' n'est pas autorisée plus de %lu fois.\n"
IDS_BADSYNTAX_6 "Syntaxe incorrecte. L'option obligatoire '%s' est absente.\n"
// IDS_BADSYNTAX_7 "Syntaxe incorrecte. La valeur pour l'option '%s' est en dehors de la plage autorisée.\n"
IDS_BADSYNTAX_7 "Syntaxe incorrecte. La valeur pour l'option '%s' doit être comprise entre %d et %d.\n"
IDS_LOG_NOT_FOUND "Le journal '%s' n'existe pas. Impossible de créer l'événement.\n"
IDS_SOURCE_NOCREATE "La nouvelle source ne peut être créée car le nom du journal n'est pas spécifié.\nUtilisez le commutateur /L pour spécifier le nom du journal.\n"
IDS_SOURCE_EXISTS "La source existe déjà dans le journal '%s' et ne peut pas être dupliquée.\n"
IDS_SOURCE_NOT_CUSTOM "Le paramètre Source est utilisé pour identifier les scripts/applications\npersonnalisées (pas les applications installées).\n"
IDS_SUCCESS_1 "Opération réussie : un événement de type '%s' a été créé dans le journal '%s'.\n"
IDS_SUCCESS_2 "Opération réussie : un événement de type '%s' a été créé avec la source '%s'.\n"
IDS_SUCCESS_3 "Opération réussie : un événement de type '%s' a été créé\ndans le journal '%s' avec la source '%s'.\n"
IDS_SWITCH_UNIMPLEMENTED "L'option '%s' n'est pas supporté pour le moment, désolé pour le désagrément!\n"
END

View File

@@ -0,0 +1,68 @@
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_USAGE "Введите ""EVENTCREATE /?"" для получения справки по использованию.\n"
IDS_HELP "\n\
EVENTCREATE [/S система [/U [домен\\]пользователь [/P пароль]]] /ID код_события\n\
{[/L имя_журнала] | [/SO источник]} /T тип /C категория /D описание\n\
\n\
Описание:\n\
Эта команда позволяет администратору создать запись об особом событии \n\
в указанном журнале событий.\n\
\n\
Список параметров:\n\
/S система Определяет удаленную систему для подключения.\n\
\n\
/U [домен\\]польз. Определяет контекст пользователя, под которым\n\
выполняется данная команда.\n\
\n\
/P [пароль] Задает пароль для данного контекста пользователя.\n\
Запрашивает ввод пароля, если он не был задан.\n\
\n\
/L журнал Журнал в котором будет создано событие.\n\
Доступными именами являются:\n\
Application, System, Security\n\
(последний зарезервирован только для учетной записи SYSTEM).\n\
\n\
/SO источник Задает имя источника, используемого для события\n\
(если не указано, то по умолчанию имя источника\n\
будет 'eventcreate').\n\
Допустимым источником является любая строка, представляющая\n\
приложение или компонент, который генерирует\n\
событие.\n\
\n\
/T тип Тип создаваемого события.\n\
Допустимыми типами являются: SUCCESS, ERROR, WARNING,\n\
INFORMATION.\n\
\n\
/C категория Определяет категорию события (число) для события.\n\
\n\
/ID код_события Код события для этого события. Допустимым кодом\n\
является число в диапазоне от 0 до 65535.\n\
\n\
/D описание Описание для создаваемого события.\n\
\n\
/? Показать эту справку.\n\
"
IDS_INVALIDSWITCH "Неправильный параметр или аргумент - '%s'.\n"
IDS_BADSYNTAX_0 "Синтаксическая ошибка.\n"
IDS_BADSYNTAX_1 "Синтаксическая ошибка. Для параметра '%s' должно быть указано значение.\n"
IDS_BADSYNTAX_2 "Синтаксическая ошибка. Значение опции '%s' не может быть пустым.\n"
IDS_BADSYNTAX_3 "Синтаксическая ошибка. Значение '%s' является недопустимым для опции '%s'.\n"
IDS_BADSYNTAX_4 "Синтаксическая ошибка. Для опции '%s' не может быть указано значение.\n"
IDS_BADSYNTAX_5 "Синтаксическая ошибка. Опция '%s' не допускается более чем %lu раз.\n"
IDS_BADSYNTAX_6 "Синтаксическая ошибка. Отсутствует обязательный параметр '%s'.\n"
// IDS_BADSYNTAX_7 "Синтаксическая ошибка. Значение для опции '%s' за пределами разрешенного диапазона.\n"
IDS_BADSYNTAX_7 "Синтаксическая ошибка. Значение для опции '%s' должно быть в диапазоне от %d до %d.\n"
IDS_LOG_NOT_FOUND "Журнал '%s' не существует. Не удалось создать событие.\n"
IDS_SOURCE_NOCREATE "Новый источник не может быть создан, поскольку имя журнала не указано.\nИспользуйте параметр /L чтобы указать имя журнала.\n"
IDS_SOURCE_EXISTS "Источник уже существует в журнале '%s' и не может быть продублирован.\n"
IDS_SOURCE_NOT_CUSTOM "Параметр Источник используется для идентификации сценариев/программ\nпользовательских приложений (не установленных приложений).\n"
IDS_SUCCESS_1 "Операция выполнена успешно: событие с типом '%s' было успешно создано в журнале '%s'.\n"
IDS_SUCCESS_2 "Операция выполнена успешно: событие с типом '%s' было успешно создано с источником '%s'.\n"
IDS_SUCCESS_3 "Операция выполнена успешно: событие с типом '%s' было успешно создано\nв журнале '%s' с источником '%s'.\n"
IDS_SWITCH_UNIMPLEMENTED "Опция '%s' не поддерживается, приносим извинения за возможное неудобство!\n"
END

View File

@@ -0,0 +1,72 @@
/* TRANSLATOR: 2016 Erdem Ersoy (eersoy93) (erdemersoy@live.com) */
LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_USAGE "Kullanım bilgisi için ""EVENTCREATE /?"" yazınız.\n"
IDS_HELP "\n\
EVENTCREATE [/S bilgisayar [/U [etki alanı\\]kullanıcı [/P şifre]]] \n\
/ID olay kimliği {[/L kayıt adı] | [/SO kaynak]} /T tür /C ulam\n\
/D tanım\n\
\n\
Tanım:\n\
Bu araç, bir yöneticiye belirli bir olay kaydı içinde husûsî bir olay\n\
oluşturmayı sağlar.\n\
\n\
Değişkenler:\n\
/S bilgisayar Bağlanacak uzak bilgisayarı belirtir.\n\
\n\
/U [etki alanı\\]kullanıcı Altında komutun çalışacağı kullanıcı hesâbını\n\
belirtir.\n\
\n\
/P [şifre] Kullanıcı hesâbının şifresini belirtir.\n\
Kullanılmazsa girdi için sorar.\n\
\n\
/L kayıt adı Oluşturulacak olayın kayıt adını belirtir.\n\
Geçerli adlar şunlardır:\n\
Application, System, Security\n\
(İkincisi yalnızca DİZGE hesâbına ayrılmıştır.)\n\
\n\
/SO kaynak Olay için kullanılacak kaynak adını belirtir.\n\
(Belirtilmezse ön tanımlı kaynak adı\n\
'eventcreate' olacaktır.)\n\
Geçerli bir kaynak, rastgele bir dizgi olabilir ve olayı\n\
oluşturan uygulamayı veyâ bileşeni belirtmelidir.\n\
\n\
/T tür Oluşturulacak olayın türünü belirtir.\n\
Geçerli türler: SUCCESS, ERROR, WARNING,\n\
INFORMATION.\n\
\n\
/C ulam Olaya göre olay ulamını (tamsayı) belirtir.\n\
\n\
/ID olay kimliği Olaya göre olay kimliğini belirtir. Bu\n\
0 ile 65535 arasında bir tamsayı olmalıdır.\n\
\n\
/D tanım Yeni oluşturulan olay için kullanılacak\n\
tanımı belirtir.\n\
\n\
/? Bu yardım görüntülüğünü görüntüler.\n\
"
IDS_INVALIDSWITCH "Geçersiz değişken - ""%s"".\n"
IDS_BADSYNTAX_0 "Geçersiz komut yatacı yazımı.\n"
IDS_BADSYNTAX_1 "Geçersiz komut yatacı yazımı. ""%s"" seçeneği bir değer gerektirir.\n"
IDS_BADSYNTAX_2 "Geçersiz komut yatacı yazımı. ""%s"" seçeneği için değer boş olamaz.\n"
IDS_BADSYNTAX_3 "Geçersiz komut yatacı yazımı. Değer ""%s"", ""%s"" seçeneği için izin verilmedi.\n"
IDS_BADSYNTAX_4 "Geçersiz komut yatacı yazımı. ""%s"" seçeneği için değer belirtilemiyor.\n"
IDS_BADSYNTAX_5 "Geçersiz komut yatacı yazımı. ""%s"" seçeneğine %lu kezden çok izin verilmiyor.\n"
IDS_BADSYNTAX_6 "Geçersiz komut yatacı yazımı. Zorunlu ""%s"" seçeneği yok.\n"
// IDS_BADSYNTAX_7 "Geçersiz komut yatacı yazımı. ""%s"" seçeneği için değer izin verilen aralığın dışında.\n"
IDS_BADSYNTAX_7 "Geçersiz komut yatacı yazımı. ""%s"" seçeneği için değer %d ile %d arasında olmalı.\n"
IDS_LOG_NOT_FOUND """%s"" kaydı yok. Olay oluşturulamıyor.\n"
IDS_SOURCE_NOCREATE "Kayıt adı belirtilmediğinden yeni kaynak oluşturulamıyor.\nKayıt adını belirtmek için lütfen /L seçeneğini kullanınız.\n"
IDS_SOURCE_EXISTS "Kaynak ""%s"" kaydında önceden var ve çoğaltılamaz.\n"
IDS_SOURCE_NOT_CUSTOM "Kaynak değişkeni, husûsî betikleri veyâ husûsî uygulamaları\n(kurulu uygulamaları değil) belirlemek için kullanılıyor.\n"
IDS_SUCCESS_1 "İşlem başarılı: ""%s"" türünde bir olay ""%s"" kaydında oluşturuldu.\n"
IDS_SUCCESS_2 "İşlem başarılı: ""%s"" türünde bir olay ""%s"" kaynağıyla oluşturuldu.\n"
IDS_SUCCESS_3 "İşlem başarılı: ""%s"" türünde bir olay ""%s"" kaydında ""%s"" kaynağıyla oluşturuldu.\n"
IDS_SWITCH_UNIMPLEMENTED """%s"" seçeneği şimdilik desteklenmiyor, sıkıntı için üzgünüm!\n"
END

View File

@@ -0,0 +1,24 @@
#pragma once
#define IDS_USAGE 100
#define IDS_HELP 101
#define IDS_INVALIDSWITCH 102
#define IDS_BADSYNTAX_0 103
#define IDS_BADSYNTAX_1 104
#define IDS_BADSYNTAX_2 105
#define IDS_BADSYNTAX_3 106
#define IDS_BADSYNTAX_4 107
#define IDS_BADSYNTAX_5 108
#define IDS_BADSYNTAX_6 109
#define IDS_BADSYNTAX_7 110
#define IDS_LOG_NOT_FOUND 120
#define IDS_SOURCE_NOCREATE 121
#define IDS_SOURCE_EXISTS 122
#define IDS_SOURCE_NOT_CUSTOM 123
#define IDS_SUCCESS_1 130
#define IDS_SUCCESS_2 131
#define IDS_SUCCESS_3 132
#define IDS_SWITCH_UNIMPLEMENTED 135

View File

@@ -1,6 +1,9 @@
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/conutils)
add_executable(cmd_help help.c help.rc)
set_module_type(cmd_help win32cui UNICODE)
add_importlibs(cmd_help user32 msvcrt kernel32)
target_link_libraries(cmd_help conutils_stream ${PSEH_LIB})
add_importlibs(cmd_help msvcrt kernel32)
set_target_properties(cmd_help PROPERTIES OUTPUT_NAME "help")
add_cd_file(TARGET cmd_help DESTINATION reactos/system32 FOR all)

View File

@@ -7,38 +7,21 @@
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
#include <stdio.h>
#include <stdlib.h>
#include <wchar.h>
#define WIN32_NO_STATUS
#include <windef.h>
#include <winbase.h>
#include <winuser.h>
#include <wincon.h>
#include <strsafe.h>
#include <conutils.h>
#include "help.h"
#include "resource.h"
VOID PrintResourceString(INT resID, ...)
{
WCHAR bufSrc[RC_STRING_MAX_SIZE];
WCHAR bufFormatted[RC_STRING_MAX_SIZE];
CHAR bufFormattedOem[RC_STRING_MAX_SIZE];
va_list args;
va_start(args, resID);
LoadStringW(GetModuleHandleW(NULL), resID, bufSrc, ARRAYSIZE(bufSrc));
vswprintf(bufFormatted, bufSrc, args);
CharToOemW(bufFormatted, bufFormattedOem);
fputs(bufFormattedOem, stdout);
va_end(args);
}
BOOL IsInternalCommand(LPCWSTR Cmd)
static BOOL
IsInternalCommand(PCWSTR Cmd)
{
size_t i;
int res;
@@ -73,24 +56,27 @@ int wmain(int argc, WCHAR* argv[])
{
WCHAR CmdLine[CMDLINE_LENGTH];
/* Initialize the Console Standard Streams */
ConInitStdStreams();
/*
* If the user hasn't asked for specific help,
* then print out the list of available commands.
*/
if (argc <= 1)
{
PrintResourceString(IDS_HELP1);
PrintResourceString(IDS_HELP2);
ConResPuts(StdOut, IDS_HELP1);
ConResPuts(StdOut, IDS_HELP2);
return 0;
}
/*
* Bad usage (too much options) or we use the /? switch.
* Display help for the help command.
* Display help for the HELP command.
*/
if ((argc > 2) || (wcscmp(argv[1], L"/?") == 0))
{
PrintResourceString(IDS_USAGE);
ConResPuts(StdOut, IDS_USAGE);
return 0;
}
@@ -100,7 +86,7 @@ int wmain(int argc, WCHAR* argv[])
*/
if (!IsInternalCommand(argv[1]))
{
PrintResourceString(IDS_NO_ENTRY, argv[1]);
ConResPrintf(StdOut, IDS_NO_ENTRY, argv[1]);
return 0;
}

View File

@@ -0,0 +1,73 @@
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_NO_ENTRY "This command is not supported by the help utility.\nTry ""%s /?""\n."
END
STRINGTABLE
BEGIN
IDS_USAGE "Provides Help information for ReactOS commands.\n\n\
HELP [command]\n\n\
command - Display help information for this command.\n"
IDS_HELP1 "List of all available commands (+ description)\n\n\
help command\n\
command /? For more information on a specific command\n\n\
? List all available commands (without description).\n\
ALIAS Sets, removes or shows aliases.\n\
ATTRIB Displays or changes file attributes.\n\
BEEP Beep the speaker.\n\
CALL Calls one batch program from another.\n\
CD Displays the name of or changes the current directory.\n\
CHCP Displays or sets the active code page number.\n\
CHOICE Waits for the user to choose one of a set of choices.\n\
CLS Clears the screen.\n\
CMD Starts a new instance of the ReactOS command interpreter.\n\
COLOR Sets the default console foreground and background colors.\n\
COPY Copies one or more files to another location.\n\
DATE Displays or sets the date.\n\
DELETE Deletes one or more files.\n\
DIR Displays a list of files and subdirectories in a directory.\n\
ECHO Displays messages, or turns command echoing on or off.\n\
ERASE Deletes one or more files.\n\
EXIT Quits the CMD.EXE program (command interpreter).\n\
FOR Runs a specified command for each file in a set of files.\n\
FREE (free) disc space.\n\
GOTO Directs the ReactOS command interpreter to a labeled line in\n\
a batch program.\n\
HELP Provides Help information for ReactOS commands.\n\
HISTORY List all commands which has been used\n\
IF Performs conditional processing in batch programs.\n\
LABEL Creates, changes, or deletes the volume label of a disk.\n\
MD Creates a directory.\n\
MKDIR Creates a directory.\n\
MKLINK Creates a filesystem link object.\n\
MOVE Moves one or more files from one directory to another\n\
directory.\n\
PATH Displays or sets a search path for executable files.\n\
PAUSE Suspends processing of a batch file and displays a message.\n\
POPD Restores the previous value of the current directory saved by\n\
PUSHD.\n\
PROMPT Changes the command prompt.\n\
PUSHD Saves the current directory then changes it.\n\
RD Removes a directory.\n\
REM Records comments (remarks) in batch files.\n\
REN Renames a file or files.\n\
RENAME Renames a file or files.\n\
REPLACE Replaces files.\n\
RMDIR Removes a directory.\n\
SCREEN Move cursor and optionally print text.\n\
SET Displays, sets, or removes ReactOS environment variables.\n\
SHIFT Shifts the position of replaceable parameters in batch files.\n"
IDS_HELP2 "START Starts a separate window to run a specified program or command.\n\
Executes command.\n\
TIME Displays or sets the system time.\n\
TIMER Allow the use of ten stopwatches.\n\
TITLE Sets the window title for a CMD.EXE session.\n\
TYPE Displays the contents of a text file.\n\
VER Displays the ReactOS version.\n\
VERIFY Tells ReactOS whether to verify that your files are written\n\
correctly to a disk.\n\
VOL Displays a disk volume label and serial number.\n"
END

View File

@@ -18,7 +18,7 @@ HELP [komut]\n\n\
? Tüm kullanılabilir komutları dizelgele (tanımlar olmadan).\n\
ALIAS Başka adları ayarlar, siler ya da gösterir.\n\
ATTRIB Kütük öz niteliklerini görüntüler ya da değiştirir.\n\
BEEP Hoparlörden ""biip"" sesi çıkart.\n\
BEEP Hoparlörden ""bip"" sesi çıkart.\n\
CALL Bir toplu iş izlencesini bir başkasından çağırır.\n\
CD Şimdiki dizinin adını görüntüler ya da şimdiki dizini değiştirir.\n\
CHCP Etkin kod sayfası numarasını görüntüler ya da ayarlar.\n\

View File

@@ -1,7 +1,5 @@
#pragma once
#define RC_STRING_MAX_SIZE 4096
#define IDS_USAGE 100
#define IDS_HELP1 101
#define IDS_HELP2 102

View File

@@ -1,6 +1,9 @@
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/conutils)
add_executable(mode mode.c mode.rc)
set_module_type(mode win32cui UNICODE)
set_target_properties(mode PROPERTIES SUFFIX ".com")
target_link_libraries(mode conutils_stream ${PSEH_LIB})
add_importlibs(mode user32 msvcrt kernel32)
set_target_properties(mode PROPERTIES SUFFIX ".com")
add_cd_file(TARGET mode DESTINATION reactos/system32 FOR all)

View File

@@ -0,0 +1,68 @@
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_USAGE "Konfiguriert Geräte im System.\n\n\
Gerätestatus: MODE [Gerät] [/STATUS]\n\
Serieller Anschluss: MODE COMm[:] [BAUD=b] [PARITY=p] [DATA=d] [STOP=s]\n\
[to=on|off] [xon=on|off] [odsr=on|off]\n\
[octs=on|off] [dtr=on|off|hs]\n\
[rts=on|off|hs|tg] [idsr=on|off]\n\
Druckausgabe umleiten: MODE LPTn[:]=COMm[:]\n\
Codepage auswählen: MODE CON[:] CP SELECT=yyy\n\
Codepagestatus: MODE CON[:] CP [/STATUS]\n\
Anzeigemodus: MODE CON[:] [COLS=c] [LINES=n]\n\
Tastaturwiederholrate: MODE CON[:] [RATE=r DELAY=d]\n"
IDS_QUERY_SERIAL_FOUND " Serieller Anschluss gefunden - %s\n"
IDS_QUERY_PRINTER_FOUND " Drucker gefunden - %s\n"
IDS_QUERY_PARALLEL_FOUND " Paralleler Anschluss gefunden - %s\n"
IDS_QUERY_DOSDEV_FOUND " Found DOS device - %s\n"
// IDS_QUERY_MISC_FOUND " Found other device - %s\n"
// IDS_QUERY_DEVICE_FOUND " Found %s device - %s\n"
// IDS_SERIAL "serial"
// IDS_PRINTER "parallel"
// IDS_OTHER "other"
END
STRINGTABLE
BEGIN
IDS_DEVICE_STATUS_HEADER "Status von Gerät %s:"
IDS_COM_STATUS_BAUD " Baud: %ld\n"
IDS_COM_STATUS_PARITY " Parität: %s\n"
IDS_COM_STATUS_DATA_BITS " Datenbits: %d\n"
IDS_COM_STATUS_STOP_BITS " Stopbits: %s\n"
IDS_COM_STATUS_TIMEOUT " Timeout: %s\n"
IDS_COM_STATUS_XON_XOFF " XON/XOFF: %s\n"
IDS_COM_STATUS_CTS_HANDSHAKING " CTS handshaking: %s\n"
IDS_COM_STATUS_DSR_HANDSHAKING " DSR handshaking: %s\n"
IDS_COM_STATUS_DSR_SENSITIVITY " DSR sensitivity: %s\n"
IDS_COM_STATUS_DTR_CIRCUIT " DTR circuit: %s\n"
IDS_COM_STATUS_RTS_CIRCUIT " RTS circuit: %s\n"
IDS_CONSOLE_STATUS_LINES " Zeilen: %d\n"
IDS_CONSOLE_STATUS_COLS " Spalten: %d\n"
IDS_CONSOLE_KBD_RATE " Wiederholrate: %ld\n"
IDS_CONSOLE_KBD_DELAY " Verzögerungszeit: %ld\n"
IDS_CONSOLE_CODEPAGE " Codepage: %d\n"
IDS_PRINTER_OUTPUT_NOT_REROUTED " Druckausgabe wird nicht umgeleitet.\n"
IDS_PRINTER_OUTPUT_REROUTED_SERIAL " Druckausgabe wird an seriellen Anschluss %s umgeleitet.\n"
END
STRINGTABLE
BEGIN
IDS_ERROR_QUERY_DEVICES "ERROR: Unable to query DOS devices (0x%lx).\n"
IDS_ERROR_QUERY_DEVICES_FORM " QueryDosDeviceW(%s) returned unrecognised form %s.\n"
IDS_ERROR_SET_PARALLEL_STATE "SetParallelState(%d) - DefineDosDevice(%s) (0x%lx)\n"
IDS_ERROR_INVALID_PARAMETER "ERROR: Unzulässiger Parameter - %s\n"
IDS_ERROR_ILLEGAL_DEVICE_NAME "ERROR: Unzulässiger Gerätename - %s (0x%lx)\n"
IDS_ERROR_STATUS_GET_DEVICE "ERROR: Failed to get the status for device COM%d:\n"
IDS_ERROR_STATUS_SET_DEVICE "ERROR: Failed to set the status for device COM%d:\n"
IDS_ERROR_INVALID_PARITY_BITS "ERROR: Invalid value for Parity Bits %d:\n"
IDS_ERROR_INVALID_STOP_BITS "ERROR: Invalid value for Stop Bits %d:\n"
IDS_ERROR_NO_MEMORY "ERROR: Not enough memory.\n"
IDS_ERROR_SCREEN_LINES_COL "ERROR: The screen cannot be set to the number of lines and columns specified.\n"
END

View File

@@ -0,0 +1,68 @@
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_USAGE "Configure System Devices.\n\n\
Device Status: MODE [device] [/STATUS]\n\
Serial port: MODE COMm[:] [BAUD=b] [PARITY=p] [DATA=d] [STOP=s]\n\
[to=on|off] [xon=on|off] [odsr=on|off]\n\
[octs=on|off] [dtr=on|off|hs]\n\
[rts=on|off|hs|tg] [idsr=on|off]\n\
Redirect printing: MODE LPTn[:]=COMm[:]\n\
Select code page: MODE CON[:] CP SELECT=yyy\n\
Code page status: MODE CON[:] CP [/STATUS]\n\
Display mode: MODE CON[:] [COLS=c] [LINES=n]\n\
Typematic rate: MODE CON[:] [RATE=r DELAY=d]\n"
IDS_QUERY_SERIAL_FOUND " Found serial device - %s\n"
IDS_QUERY_PRINTER_FOUND " Found printer device - %s\n"
IDS_QUERY_PARALLEL_FOUND " Found parallel device - %s\n"
IDS_QUERY_DOSDEV_FOUND " Found DOS device - %s\n"
// IDS_QUERY_MISC_FOUND " Found other device - %s\n"
// IDS_QUERY_DEVICE_FOUND " Found %s device - %s\n"
// IDS_SERIAL "serial"
// IDS_PRINTER "parallel"
// IDS_OTHER "other"
END
STRINGTABLE
BEGIN
IDS_DEVICE_STATUS_HEADER "Status for device %s:"
IDS_COM_STATUS_BAUD " Baud: %ld\n"
IDS_COM_STATUS_PARITY " Parity: %s\n"
IDS_COM_STATUS_DATA_BITS " Data Bits: %d\n"
IDS_COM_STATUS_STOP_BITS " Stop Bits: %s\n"
IDS_COM_STATUS_TIMEOUT " Timeout: %s\n"
IDS_COM_STATUS_XON_XOFF " XON/XOFF: %s\n"
IDS_COM_STATUS_CTS_HANDSHAKING " CTS handshaking: %s\n"
IDS_COM_STATUS_DSR_HANDSHAKING " DSR handshaking: %s\n"
IDS_COM_STATUS_DSR_SENSITIVITY " DSR sensitivity: %s\n"
IDS_COM_STATUS_DTR_CIRCUIT " DTR circuit: %s\n"
IDS_COM_STATUS_RTS_CIRCUIT " RTS circuit: %s\n"
IDS_CONSOLE_STATUS_LINES " Lines: %d\n"
IDS_CONSOLE_STATUS_COLS " Columns: %d\n"
IDS_CONSOLE_KBD_RATE " Keyboard rate: %ld\n"
IDS_CONSOLE_KBD_DELAY " Keyboard delay: %ld\n"
IDS_CONSOLE_CODEPAGE " Code page: %d\n"
IDS_PRINTER_OUTPUT_NOT_REROUTED " Printer output is not being rerouted.\n"
IDS_PRINTER_OUTPUT_REROUTED_SERIAL " Printer output is being rerouted to serial port %s.\n"
END
STRINGTABLE
BEGIN
IDS_ERROR_QUERY_DEVICES "ERROR: Unable to query DOS devices (0x%lx).\n"
IDS_ERROR_QUERY_DEVICES_FORM " QueryDosDeviceW(%s) returned unrecognised form %s.\n"
IDS_ERROR_SET_PARALLEL_STATE "SetParallelState(%d) - DefineDosDevice(%s) (0x%lx)\n"
IDS_ERROR_INVALID_PARAMETER "ERROR: Invalid parameter - %s\n"
IDS_ERROR_ILLEGAL_DEVICE_NAME "ERROR: Illegal device name - %s (0x%lx)\n"
IDS_ERROR_STATUS_GET_DEVICE "ERROR: Failed to get the status for device COM%d:\n"
IDS_ERROR_STATUS_SET_DEVICE "ERROR: Failed to set the status for device COM%d:\n"
IDS_ERROR_INVALID_PARITY_BITS "ERROR: Invalid value for Parity Bits %d:\n"
IDS_ERROR_INVALID_STOP_BITS "ERROR: Invalid value for Stop Bits %d:\n"
IDS_ERROR_NO_MEMORY "ERROR: Not enough memory.\n"
IDS_ERROR_SCREEN_LINES_COL "ERROR: The screen cannot be set to the number of lines and columns specified.\n"
END

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,20 @@
#include <windef.h>
#include "resource.h"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Mode Utility"
#define REACTOS_STR_INTERNAL_NAME "mode"
#define REACTOS_STR_ORIGINAL_FILENAME "mode.com"
#include <reactos/version.rc>
/* UTF-8 */
#pragma code_page(65001)
#ifdef LANGUAGE_DE_DE
#include "lang/de-DE.rc"
#endif
#ifdef LANGUAGE_EN_US
#include "lang/en-US.rc"
#endif

View File

@@ -0,0 +1,48 @@
#ifndef RESOURCE_H
#define RESOURCE_H
#define IDS_USAGE 0
#define IDS_QUERY_SERIAL_FOUND 1
#define IDS_QUERY_PRINTER_FOUND 2
#define IDS_QUERY_PARALLEL_FOUND 3
// #define IDS_QUERY_MISC_FOUND 4
#define IDS_QUERY_DOSDEV_FOUND 4
// #define IDS_QUERY_DEVICE_FOUND 1
// #define IDS_SERIAL 2
// #define IDS_PRINTER 3
// #define IDS_OTHER 4
#define IDS_DEVICE_STATUS_HEADER 5
#define IDS_COM_STATUS_BAUD 6
#define IDS_COM_STATUS_PARITY 7
#define IDS_COM_STATUS_DATA_BITS 8
#define IDS_COM_STATUS_STOP_BITS 9
#define IDS_COM_STATUS_TIMEOUT 10
#define IDS_COM_STATUS_XON_XOFF 11
#define IDS_COM_STATUS_CTS_HANDSHAKING 12
#define IDS_COM_STATUS_DSR_HANDSHAKING 13
#define IDS_COM_STATUS_DSR_SENSITIVITY 14
#define IDS_COM_STATUS_DTR_CIRCUIT 15
#define IDS_COM_STATUS_RTS_CIRCUIT 16
#define IDS_CONSOLE_STATUS_LINES 17
#define IDS_CONSOLE_STATUS_COLS 18
#define IDS_CONSOLE_KBD_RATE 19
#define IDS_CONSOLE_KBD_DELAY 20
#define IDS_CONSOLE_CODEPAGE 21
#define IDS_PRINTER_OUTPUT_NOT_REROUTED 22
#define IDS_PRINTER_OUTPUT_REROUTED_SERIAL 23
#define IDS_ERROR_QUERY_DEVICES 24
#define IDS_ERROR_QUERY_DEVICES_FORM 25
#define IDS_ERROR_SET_PARALLEL_STATE 26
#define IDS_ERROR_INVALID_PARAMETER 27
#define IDS_ERROR_ILLEGAL_DEVICE_NAME 28
#define IDS_ERROR_STATUS_GET_DEVICE 29
#define IDS_ERROR_STATUS_SET_DEVICE 30
#define IDS_ERROR_INVALID_PARITY_BITS 31
#define IDS_ERROR_INVALID_STOP_BITS 32
#define IDS_ERROR_NO_MEMORY 33
#define IDS_ERROR_SCREEN_LINES_COL 34
#endif /* RESOURCE_H */

View File

@@ -1,6 +1,11 @@
PROJECT(more)
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/conutils)
add_executable(more more.c more.rc)
set_module_type(more win32cui)
set_module_type(more win32cui UNICODE)
target_link_libraries(more conutils_pager ${PSEH_LIB})
add_importlibs(more advapi32 user32 msvcrt kernel32)
set_target_properties(more PROPERTIES SUFFIX ".com")
add_importlibs(more user32 msvcrt kernel32)
add_cd_file(TARGET more DESTINATION reactos/system32 FOR all)

View File

@@ -9,6 +9,7 @@ BEGIN
[Устройство:][Път]Файлово име Файл, чието съдържание да бъде показано.\n\
Команда\t\t Команда, чийто изход да бъде показан.\n\n\
При въпроса ""-- Продължаване --"" натиснете произволен клавиш, за показаване на следващата страница.\n"
IDS_CONTINUE " -- Продължаване (100%) -- "
IDS_FILE_ACCESS "Няма достъп до файл %s."
IDS_CONTINUE "-- Продължаване --"
IDS_CONTINUE_PROGRESS "-- Продължаване (%d%%) --"
IDS_FILE_ACCESS "Няма достъп до файл %s.\n"
END

View File

@@ -9,6 +9,7 @@ BEGIN
[Unitat:][Ruta]Nom del fitxer Un fitxer, el contingut del qual serà mostrat.\n\
Instrucció\t\t Una instrucció, el resultat de la qual serà mostrada.\n\n\
Al visualitzar ""-- Continua --"" heu de premer qualsevol tecla per visualitzar la següent pàgina.\n"
IDS_CONTINUE " -- Continua (100%) -- "
IDS_FILE_ACCESS "No puc accedir al fitxer %s."
IDS_CONTINUE "-- Continua --"
IDS_CONTINUE_PROGRESS "-- Continua (%d%%) --"
IDS_FILE_ACCESS "No puc accedir al fitxer %s.\n"
END

View File

@@ -16,6 +16,7 @@ BEGIN
Příkaz\t\t Příkaz, jehož výstup bude zobrazen.\n\n\
Při výzvě ""-- Pokračovat --"" lze stisknout libovolnou klávesu\n\
pro zobrazení další stránky.\n"
IDS_CONTINUE " -- Pokračovat (100%) -- "
IDS_FILE_ACCESS "Nelze získat přístup k souboru %s."
IDS_CONTINUE "-- Pokračovat --"
IDS_CONTINUE_PROGRESS "-- Pokračovat (%d%%) --"
IDS_FILE_ACCESS "Nelze získat přístup k souboru %s.\n"
END

View File

@@ -10,6 +10,7 @@ BEGIN
Befehl\t\t Ein Befehl, dessen Ausgabe angezeigt werden soll.\n\n\
An der Eingabeaufforderung ""-- Fortsetzung --"" kann eine beliebige\n\
Taste gedrückt werden, um die nächste Seite anzuzeigen.\n"
IDS_CONTINUE " -- Fortsetzung (100%) -- "
IDS_FILE_ACCESS "Auf die Datei %s kann nicht zugegriffen werden."
IDS_CONTINUE "-- Fortsetzung --"
IDS_CONTINUE_PROGRESS "-- Fortsetzung (%d%%) --"
IDS_FILE_ACCESS "Auf die Datei %s kann nicht zugegriffen werden.\n"
END

View File

@@ -9,6 +9,7 @@ BEGIN
[Δίσκος:][Μονοπάτι]Όνομα αρχείου Το αρχείο, τα δεδομένα του οποίου θα εμφανιστούν.\n\
Εντολή\t\t Η εντολή, της οποίας η έξοδος θα εμφανιστεί.\n\n\
Στη γραμμή εντολών ""-- Συνέχεια --"" μπορείτε να πατήσετε οποιοδήποτε κουμπί για να δείτε την επόμενη σελίδα.\n"
IDS_CONTINUE " -- Συνέχεια (100%) -- "
IDS_FILE_ACCESS "Δεν ήταν δυνατή η προσπέλαση του αρχείου %s."
IDS_CONTINUE "-- Συνέχεια --"
IDS_CONTINUE_PROGRESS "-- Συνέχεια (%d%%) --"
IDS_FILE_ACCESS "Δεν ήταν δυνατή η προσπέλαση του αρχείου %s.\n"
END

View File

@@ -9,6 +9,7 @@ BEGIN
[Drive:][Path]File name A file, whose content shall be displayed.\n\
Command\t\t A command, whose output shall be displayed.\n\n\
At the prompt ""-- Continue --"" you can press any key to show the next page.\n"
IDS_CONTINUE " -- Continue (100%) -- "
IDS_FILE_ACCESS "Cannot access the file %s."
IDS_CONTINUE "-- Continue --"
IDS_CONTINUE_PROGRESS "-- Continue (%d%%) --"
IDS_FILE_ACCESS "Cannot access the file %s.\n"
END

View File

@@ -9,6 +9,7 @@ BEGIN
[Unidad:][Ruta]Nombre del archivo Un archivo, cuyo contenido pueda ser mostrado.\n\
Comando\t\t Un comando, cuya salida pueda ser mostrada.\n\n\
Al visualizar ""-- Continuar --"" presione cualquier tecla para mostrar la siguiente página.\n"
IDS_CONTINUE " -- Continuar (100%) -- "
IDS_FILE_ACCESS "No se puede acceder al fichero %s."
IDS_CONTINUE "-- Continuar --"
IDS_CONTINUE_PROGRESS "-- Continuar (%d%%) --"
IDS_FILE_ACCESS "No se puede acceder al fichero %s.\n"
END

View File

@@ -9,6 +9,7 @@ BEGIN
[Lecteur:][Chemin]Nom du fichier Un fichier, dont le contenu sera affiché.\n\
Commande\t\t Une commande, dont la sortie sera affichée.\n\n\
À l'invite ""-- Continuer --"" Vous pouvez appuyer sur n'importe quelle touche pour afficher la page suivante.\n"
IDS_CONTINUE " -- Continuer (100%) -- "
IDS_FILE_ACCESS "Impossible d'accéder au fichier %s."
IDS_CONTINUE "-- Continuer --"
IDS_CONTINUE_PROGRESS "-- Continuer (%d %%) --"
IDS_FILE_ACCESS "Impossible d'accéder au fichier %s.\n"
END

View File

@@ -9,6 +9,7 @@ BEGIN
[Drive:][Path]File Il file da visualizzare.\n\
Comando\t\t Il comando di cui l'output dev'essere visualizzato.\n\n\
Alla richiesta ""-- Continua --"" premere un tasto qualsiasi per visualizzare la pagina successiva.\n"
IDS_CONTINUE " -- Continua (100%) -- "
IDS_FILE_ACCESS "Impossibile accedere al file %s."
IDS_CONTINUE "-- Continua --"
IDS_CONTINUE_PROGRESS "-- Continua (%d%%) --"
IDS_FILE_ACCESS "Impossibile accedere al file %s.\n"
END

View File

@@ -21,6 +21,7 @@ BEGIN
būti atvaizduotas.\n\n\
Pasirodžius raginimui ""-- Toliau --"" spauskite bet kurį klavišą, kad\n\
pamatytumėte sekantį puslapį.\n"
IDS_CONTINUE " -- Toliau (100%) -- "
IDS_FILE_ACCESS "Nepavyko atverti bylos %s."
IDS_CONTINUE "-- Toliau --"
IDS_CONTINUE_PROGRESS "-- Toliau (%d%%) --"
IDS_FILE_ACCESS "Nepavyko atverti bylos %s.\n"
END

View File

@@ -9,6 +9,7 @@ BEGIN
[Stasjon:][Mappe]Filnavn En fil, Velg innhold som skal vises.\n\
Command\t\t En kommando, Velg output som skal vises.\n\n\
At the prompt ""-- Fortsett --"" du kan trykke en tast for å vise neste side.\n"
IDS_CONTINUE " -- Fortsett (100%) -- "
IDS_FILE_ACCESS "Får ikke tilgang til filen %s."
IDS_CONTINUE "-- Fortsett --"
IDS_CONTINUE_PROGRESS "-- Fortsett (%d%%) --"
IDS_FILE_ACCESS "Får ikke tilgang til filen %s.\n"
END

View File

@@ -17,6 +17,7 @@ BEGIN
[Napęd:][Ścieżka]Nazwa pliku Plik, którego zawartość ma być wyświetlona.\n\
Polecenie\t\t Polecenie, którego wynik ma być wyświetlony.\n\n\
Po wyświetleniu ""-- Kontynuuj --"" możesz nacisnąć dowolny klawisz, aby przejść do następnej strony.\n"
IDS_CONTINUE " -- Kontynuuj (100%) -- "
IDS_FILE_ACCESS "Brak dostępu do pliku: %s."
IDS_CONTINUE "-- Kontynuuj --"
IDS_CONTINUE_PROGRESS "-- Kontynuuj (%d%%) --"
IDS_FILE_ACCESS "Brak dostępu do pliku: %s.\n"
END

View File

@@ -18,6 +18,7 @@ BEGIN
Comandă Comanda a cărei ieșire va fi afișată.\n\n\
La vederea sugestiei ""-- Continuă --"" veți apăsa o tastă pentru afișarea\n\
următoarei pagini.\n"
IDS_CONTINUE " -- Continuă (100%) -- "
IDS_FILE_ACCESS "Fișierul «%s» nu poate fi accesat!"
IDS_CONTINUE "-- Continuă --"
IDS_CONTINUE_PROGRESS "-- Continuă (%d%%) --"
IDS_FILE_ACCESS "Fișierul «%s» nu poate fi accesat!\n"
END

View File

@@ -17,6 +17,7 @@ BEGIN
[диск:][путь]имя_файла Файл, отображаемый по фрагментам.\n\
имя_команды Команда, вывод которой отображается на экране.\n\n\
При запросе ""-- Продолжить --"" вы можете нажать любую клавишу для отображения следующего экрана.\n"
IDS_CONTINUE " -- Продолжить (100%) -- "
IDS_FILE_ACCESS "Нет доступа к файлу %s."
IDS_CONTINUE "-- Продолжить --"
IDS_CONTINUE_PROGRESS "-- Продолжить (%d%%) --"
IDS_FILE_ACCESS "Нет доступа к файлу %s.\n"
END

View File

@@ -14,6 +14,7 @@ BEGIN
Príkaz\t\t Príkaz, ktorého výstup má byť zobrazený.\n\n\
Pri výzve ""-- Pokračujte --"" môžete stlačiť ľubovoľný kláves\n\
k zobrazeniu nasledujúcej stránky.\n"
IDS_CONTINUE " -- Pokračujte (100%) -- "
IDS_FILE_ACCESS "Neviem získať prístup k súboru %s."
IDS_CONTINUE "-- Pokračujte --"
IDS_CONTINUE_PROGRESS "-- Pokračujte (%d%%) --"
IDS_FILE_ACCESS "Neviem získať prístup k súboru %s.\n"
END

View File

@@ -13,6 +13,7 @@ BEGIN
[Drive:][Path]File name Nje dokument, përmbajtja e të cilit do të shfaqet.\n\
Komandë\t\t Nje komande, nxjerrja e te cilit do të shfaqet.\n\n\
At the prompt ""-- Vazhdo --"" ju mund të shtypni çfarëdo butoni për të vazhduar në faqen tjetër.\n"
IDS_CONTINUE " -- Vazhdo (100%) -- "
IDS_FILE_ACCESS "Nuk mund të aksesoj dokumentin %s."
IDS_CONTINUE "-- Vazhdo --"
IDS_CONTINUE_PROGRESS "-- Vazhdo (%d%%) --"
IDS_FILE_ACCESS "Nuk mund të aksesoj dokumentin %s.\n"
END

View File

@@ -16,6 +16,7 @@ BEGIN
[Enhet:][Mapp]Filnamn En fil, Välj innehåll som skall visas.\n\
Kommando\t\t Ett kommando, Välj vad som skall visas.\n\n\
vid prompten ""-- Fortsätt --"" du kan trycka valfri knapp för att visa nästa sida.\n"
IDS_CONTINUE " -- Fortsätt (100%) -- "
IDS_FILE_ACCESS "Får inte tillgång till filen %s."
IDS_CONTINUE "-- Fortsätt --"
IDS_CONTINUE_PROGRESS "-- Fortsätt (%d%%) --"
IDS_FILE_ACCESS "Får inte tillgång till filen %s.\n"
END

View File

@@ -11,6 +11,7 @@ BEGIN
[Sürücü:][Yol]Kütük adı İçeriği görüntülenecek bir kütük.\n\
Komut\t\t Çıkışı görüntülenecek bir komut.\n\n\
İstemde ""-- Sürdür --"" ile bir sonraki sayfayı göstermek için rastgele bir düğmeye basabilirsiniz.\n"
IDS_CONTINUE " -- Sürdür (%100) -- "
IDS_FILE_ACCESS "%s kütüğüne erişilemiyor."
IDS_CONTINUE "-- Sürdür --"
IDS_CONTINUE_PROGRESS "-- Sürdür (%%%d) --"
IDS_FILE_ACCESS "%s kütüğüne erişilemiyor.\n"
END

View File

@@ -17,6 +17,7 @@ BEGIN
[Диск:][Шлях]Ім'я_файлу Файл, вмiст якого треба вивести на екран.\n\
Command\t\t Команда, результат роботи якої треба вивести на екран.\n\n\
На запрошення ""-- Далi --"" Ви можете натиснути будь-яку клавiшу щоб побачити наступну сторiнку.\n"
IDS_CONTINUE " -- Далi (100%) -- "
IDS_FILE_ACCESS "Не можу отримати доступ до файла %s."
IDS_CONTINUE "-- Далi --"
IDS_CONTINUE_PROGRESS "-- Далi (%d%%) --"
IDS_FILE_ACCESS "Не можу отримати доступ до файла %s.\n"
END

View File

@@ -11,6 +11,7 @@ BEGIN
[驱动器:][路径]文件名 一个将要被如此显示内容的文件。\n\
命令\t\t 一个输出将要被如此显示的命令。\n\n\
在 ""-- 继续 --"" 的提示出现时你可以按任意键来显示下一页。\n"
IDS_CONTINUE " -- 继续 (100%) -- "
IDS_FILE_ACCESS "无法访问文件 %s。"
IDS_CONTINUE "-- 继续 --"
IDS_CONTINUE_PROGRESS "-- 继续 (%d%%) --"
IDS_FILE_ACCESS "无法访问文件 %s。\n"
END

View File

@@ -11,6 +11,7 @@ BEGIN
[磁碟機:][路徑]檔案名 一個將要被如此顯示內容的檔案。\n\
命令\t\t 一個輸出將要被如此顯示的命令。\n\n\
在 ""-- 繼續 --"" 的提示出現時你可以按任意鍵來顯示下一頁。\n"
IDS_CONTINUE " -- 繼續 (100%) -- "
IDS_FILE_ACCESS "無法訪問檔案 %s。"
IDS_CONTINUE "-- 繼續 --"
IDS_CONTINUE_PROGRESS "-- 繼續 (%d%%) --"
IDS_FILE_ACCESS "無法訪問檔案 %s。\n"
END

View File

@@ -1,3 +1,14 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS More Command
* FILE: base/applications/cmdutils/more/more.c
* PURPOSE: Displays text stream from STDIN or from an arbitrary number
* of files to STDOUT, with screen capabilities (more than CAT,
* but less than LESS ^^).
* PROGRAMMERS: Paolo Pantaleo
* Timothy Schepens
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
/*
* MORE.C - external command.
*
@@ -5,208 +16,615 @@
*
* 26 Sep 1999 - Paolo Pantaleo <paolopan@freemail.it>
* started
*
* Oct 2003 - Timothy Schepens <tischepe at fastmail dot fm>
* use window size instead of buffer size.
*/
#include <stdio.h>
#include <malloc.h>
#include <tchar.h>
#include <windef.h>
#include <winbase.h>
#include <winnls.h>
#include <winuser.h>
#include <wincon.h>
#include <conutils.h>
#include "resource.h"
static TCHAR szCont[128];
static DWORD szContLength;
static HINSTANCE hApp;
/* PagePrompt statistics for the current file */
DWORD dwFileSize; // In bytes
DWORD dwSumReadBytes, dwSumReadChars;
// The average number of bytes per character is equal to
// dwSumReadBytes / dwSumReadChars. Note that dwSumReadChars
// will never be == 0 when ConWritePaging (and possibly PagePrompt)
// is called.
/*handle for file and console*/
HANDLE hStdIn;
HANDLE hStdOut;
HANDLE hStdErr;
/* Handles for file and console */
HANDLE hFile = INVALID_HANDLE_VALUE;
HANDLE hStdIn, hStdOut;
HANDLE hKeyboard;
static VOID
GetScreenSize (PSHORT maxx, PSHORT maxy)
static BOOL
__stdcall
PagePrompt(PCON_PAGER Pager, DWORD Done, DWORD Total)
{
CONSOLE_SCREEN_BUFFER_INFO csbi;
HANDLE hInput = ConStreamGetOSHandle(StdIn);
DWORD dwMode;
KEY_EVENT_RECORD KeyEvent;
GetConsoleScreenBufferInfo (hStdOut, &csbi);
*maxx = (csbi.srWindow.Right - csbi.srWindow.Left) + 1;
*maxy = (csbi.srWindow.Bottom - csbi.srWindow.Top) - 4;
}
static
VOID ConOutPuts (LPTSTR szText)
{
DWORD dwWritten;
WriteFile (GetStdHandle (STD_OUTPUT_HANDLE), szText, _tcslen(szText), &dwWritten, NULL);
WriteFile (GetStdHandle (STD_OUTPUT_HANDLE), "\n", 1, &dwWritten, NULL);
}
static VOID
ConInKey (VOID)
{
INPUT_RECORD ir;
DWORD dwRead;
do
/*
* Just use the simple prompt if the file being displayed is the STDIN,
* otherwise use the prompt with progress percentage.
*
* The progress percentage is evaluated as follows.
* So far we have read a total of 'dwSumReadBytes' bytes from the file.
* Amongst those is the latest read chunk of 'dwReadBytes' bytes, to which
* correspond a number of 'dwReadChars' characters with which we have called
* ConWritePaging who called PagePrompt. We then have: Total == dwReadChars.
* During this ConWritePaging call the PagePrompt was called after 'Done'
* number of characters over 'Total'.
* It should be noted that for 'dwSumReadBytes' number of bytes read it
* *roughly* corresponds 'dwSumReadChars' number of characters. This is
* because there may be some failures happening during the conversion of
* the bytes read to the character string for a given encoding.
* Therefore the number of characters displayed on screen is equal to:
* dwSumReadChars - Total + Done ,
* but the best corresponding approximed number of bytes would be:
* dwSumReadBytes - (Total - Done) * (dwSumReadBytes / dwSumReadChars) ,
* where the ratio is the average number of bytes per character.
* The percentage is then computed relative to the total file size.
*/
if (hFile == hStdIn)
{
ReadConsoleInput (hKeyboard, &ir, 1, &dwRead);
if ((ir.EventType == KEY_EVENT) &&
(ir.Event.KeyEvent.bKeyDown == TRUE))
return;
}
while (TRUE);
}
static VOID
WaitForKey (VOID)
{
DWORD dwWritten;
WriteFile (hStdErr, szCont , szContLength, &dwWritten, NULL);
ConInKey();
WriteFile (hStdErr, _T("\n"), 1, &dwWritten, NULL);
// FlushConsoleInputBuffer (hConsoleIn);
}
//INT CommandMore (LPTSTR cmd, LPTSTR param)
int main (int argc, char **argv)
{
SHORT maxx,maxy;
SHORT line_count=0,ch_count=0;
DWORD i, last;
HANDLE hFile = INVALID_HANDLE_VALUE;
TCHAR szFullPath[MAX_PATH];
TCHAR szMsg[1024];
/*reading/writing buffer*/
TCHAR *buff;
/*bytes written by WriteFile and ReadFile*/
DWORD dwRead,dwWritten;
/*ReadFile() return value*/
BOOL bRet;
hStdIn = GetStdHandle(STD_INPUT_HANDLE);
hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
hStdErr = GetStdHandle(STD_ERROR_HANDLE);
hApp = GetModuleHandle(NULL);
buff=malloc(4096);
if (!buff)
{
ConOutPuts(_T("Error: no memory"));
return 1;
}
if (argc > 1 && _tcsncmp (argv[1], _T("/?"), 2) == 0)
{
if (LoadString(hApp, IDS_USAGE, buff, 4096 / sizeof(TCHAR)) < (int)(4096 / sizeof(TCHAR)))
{
CharToOem(buff, buff);
ConOutPuts(buff);
}
free(buff);
return 0;
}
hKeyboard = CreateFile (_T("CONIN$"), GENERIC_READ|GENERIC_WRITE,
0,NULL,OPEN_ALWAYS,0,0);
GetScreenSize(&maxx,&maxy);
FlushConsoleInputBuffer (hKeyboard);
if(argc > 1)
{
GetFullPathNameA(argv[1], MAX_PATH, szFullPath, NULL);
hFile = CreateFile (szFullPath,
GENERIC_READ,
0,
NULL,
OPEN_EXISTING,
0,
0);
if (hFile == INVALID_HANDLE_VALUE)
{
if (LoadString(hApp, IDS_FILE_ACCESS, szMsg, sizeof(szMsg) / sizeof(TCHAR)) < (int)(sizeof(szMsg) / sizeof(TCHAR)))
{
_stprintf(buff, szMsg, szFullPath);
CharToOem(buff, buff);
ConOutPuts(buff);
}
free(buff);
return 0;
}
ConResPuts(Pager->Screen->Stream, IDS_CONTINUE);
}
else
{
hFile = hStdIn;
ConResPrintf(Pager->Screen->Stream, IDS_CONTINUE_PROGRESS,
// (dwSumReadChars - Total + Done) * 100 / dwFileSize
(dwSumReadBytes - (Total - Done) *
(dwSumReadBytes / dwSumReadChars)) * 100 / dwFileSize
);
}
if (!LoadString(hApp, IDS_CONTINUE, szCont, sizeof(szCont) / sizeof(TCHAR)))
{
/* Shouldn't happen, so exit */
free(buff);
return 1;
}
szContLength = _tcslen(szCont);
// TODO: Implement prompt read line!
// FIXME: Does not support TTY yet!
/* RemoveBreakHandler */
SetConsoleCtrlHandler(NULL, TRUE);
/* ConInDisable */
GetConsoleMode(hInput, &dwMode);
dwMode &= ~ENABLE_PROCESSED_INPUT;
SetConsoleMode(hInput, dwMode);
do
{
bRet = ReadFile(hFile,buff,4096,&dwRead,NULL);
// FIXME: Does not support TTY yet!
for(last=i=0;i<dwRead && bRet;i++)
// ConInKey(&KeyEvent);
INPUT_RECORD ir;
DWORD dwRead;
do
{
ch_count++;
if(buff[i] == _T('\n') || ch_count == maxx)
ReadConsoleInput(hInput, &ir, 1, &dwRead);
}
while ((ir.EventType != KEY_EVENT) || (!ir.Event.KeyEvent.bKeyDown));
/* Got our key, return to caller */
KeyEvent = ir.Event.KeyEvent;
}
while ((KeyEvent.wVirtualKeyCode == VK_SHIFT) ||
(KeyEvent.wVirtualKeyCode == VK_MENU) ||
(KeyEvent.wVirtualKeyCode == VK_CONTROL));
/* AddBreakHandler */
SetConsoleCtrlHandler(NULL, FALSE);
/* ConInEnable */
GetConsoleMode(hInput, &dwMode);
dwMode |= ENABLE_PROCESSED_INPUT;
SetConsoleMode(hInput, dwMode);
/*
* Erase the full line where the cursor is, and move
* the cursor back to the beginning of the line.
*/
ConClearLine(Pager->Screen->Stream);
if ((KeyEvent.wVirtualKeyCode == VK_ESCAPE) ||
((KeyEvent.wVirtualKeyCode == L'C') &&
(KeyEvent.dwControlKeyState & (LEFT_CTRL_PRESSED | RIGHT_CTRL_PRESSED))))
{
ch_count=0;
line_count++;
if (line_count == maxy)
/* We break, output a newline */
WCHAR ch = L'\n';
ConStreamWrite(Pager->Screen->Stream, &ch, 1);
return FALSE;
}
return TRUE;
}
/*
* See base/applications/cmdutils/clip/clip.c!IsDataUnicode()
* and base/applications/notepad/text.c!ReadText() for more details.
* Also some good code example can be found at:
* https://github.com/AutoIt/text-encoding-detect
*/
typedef enum
{
ENCODING_ANSI = 0,
ENCODING_UTF16LE = 1,
ENCODING_UTF16BE = 2,
ENCODING_UTF8 = 3
} ENCODING;
static BOOL
IsDataUnicode(
IN PVOID Buffer,
IN DWORD BufferSize,
OUT ENCODING* Encoding OPTIONAL,
OUT PDWORD SkipBytes OPTIONAL)
{
PBYTE pBytes = Buffer;
ENCODING encFile = ENCODING_ANSI;
DWORD dwPos = 0;
/*
* See http://archives.miloush.net/michkap/archive/2007/04/22/2239345.html
* for more details about the algorithm and the pitfalls behind it.
* Of course it would be actually great to make a nice function that
* would work, once and for all, and put it into a library.
*/
/* Look for Byte Order Marks */
if ((BufferSize >= 2) && (pBytes[0] == 0xFF) && (pBytes[1] == 0xFE))
{
line_count = 0;
WriteFile(hStdOut,&buff[last], i-last+1, &dwWritten, NULL);
last=i+1;
FlushFileBuffers (hStdOut);
WaitForKey ();
encFile = ENCODING_UTF16LE;
dwPos = 2;
}
else if ((BufferSize >= 2) && (pBytes[0] == 0xFE) && (pBytes[1] == 0xFF))
{
encFile = ENCODING_UTF16BE;
dwPos = 2;
}
else if ((BufferSize >= 3) && (pBytes[0] == 0xEF) && (pBytes[1] == 0xBB) && (pBytes[2] == 0xBF))
{
encFile = ENCODING_UTF8;
dwPos = 3;
}
if (last<dwRead && bRet)
WriteFile(hStdOut,&buff[last], dwRead-last, &dwWritten, NULL);
else
{
/*
* Try using statistical analysis. Do not rely on the return value of
* IsTextUnicode as we can get FALSE even if the text is in UTF-16 BE
* (i.e. we have some of the IS_TEXT_UNICODE_REVERSE_MASK bits set).
* Instead, set all the tests we want to perform, then just check
* the passed tests and try to deduce the string properties.
*/
/*
* This mask contains the 3 highest bits from IS_TEXT_UNICODE_NOT_ASCII_MASK
* and the 1st highest bit from IS_TEXT_UNICODE_NOT_UNICODE_MASK.
*/
#define IS_TEXT_UNKNOWN_FLAGS_MASK ((7 << 13) | (1 << 11))
/* Flag out the unknown flags here, the passed tests will not have them either */
INT Tests = (IS_TEXT_UNICODE_NOT_ASCII_MASK |
IS_TEXT_UNICODE_NOT_UNICODE_MASK |
IS_TEXT_UNICODE_REVERSE_MASK | IS_TEXT_UNICODE_UNICODE_MASK)
& ~IS_TEXT_UNKNOWN_FLAGS_MASK;
INT Results;
IsTextUnicode(Buffer, BufferSize, &Tests);
Results = Tests;
/*
* As the IS_TEXT_UNICODE_NULL_BYTES or IS_TEXT_UNICODE_ILLEGAL_CHARS
* flags are expected to be potentially present in the result without
* modifying our expectations, filter them out now.
*/
Results &= ~(IS_TEXT_UNICODE_NULL_BYTES | IS_TEXT_UNICODE_ILLEGAL_CHARS);
/*
* NOTE: The flags IS_TEXT_UNICODE_ASCII16 and
* IS_TEXT_UNICODE_REVERSE_ASCII16 are not reliable.
*
* NOTE2: Check for potential "bush hid the facts" effect by also
* checking the original results (in 'Tests') for the absence of
* the IS_TEXT_UNICODE_NULL_BYTES flag, as we may presumably expect
* that in UTF-16 text there will be at some point some NULL bytes.
* If not, fall back to ANSI. This shows the limitations of using the
* IsTextUnicode API to perform such tests, and the usage of a more
* improved encoding detection algorithm would be really welcome.
*/
if (!(Results & IS_TEXT_UNICODE_NOT_UNICODE_MASK) &&
!(Results & IS_TEXT_UNICODE_REVERSE_MASK) &&
(Results & IS_TEXT_UNICODE_UNICODE_MASK) &&
(Tests & IS_TEXT_UNICODE_NULL_BYTES))
{
encFile = ENCODING_UTF16LE;
dwPos = (Results & IS_TEXT_UNICODE_SIGNATURE) ? 2 : 0;
}
else
if (!(Results & IS_TEXT_UNICODE_NOT_UNICODE_MASK) &&
!(Results & IS_TEXT_UNICODE_UNICODE_MASK) &&
(Results & IS_TEXT_UNICODE_REVERSE_MASK) &&
(Tests & IS_TEXT_UNICODE_NULL_BYTES))
{
encFile = ENCODING_UTF16BE;
dwPos = (Results & IS_TEXT_UNICODE_REVERSE_SIGNATURE) ? 2 : 0;
}
else
{
/*
* Either 'Results' has neither of those masks set, as it can be
* the case for UTF-8 text (or ANSI), or it has both as can be the
* case when analysing pure binary data chunk. This is therefore
* invalid and we fall back to ANSI encoding.
* FIXME: In case of failure, assume ANSI (as long as we do not have
* correct tests for UTF8, otherwise we should do them, and at the
* very end, assume ANSI).
*/
encFile = ENCODING_ANSI; // ENCODING_UTF8;
dwPos = 0;
}
}
while(dwRead>0 && bRet);
free (buff);
CloseHandle (hKeyboard);
if (hFile != hStdIn)
CloseHandle (hFile);
if (Encoding)
*Encoding = encFile;
if (SkipBytes)
*SkipBytes = dwPos;
return (encFile != ENCODING_ANSI);
}
/*
* Adapted from base/shell/cmd/misc.c!FileGetString(), but with correct
* text encoding support. Also please note that similar code should be
* also used in the CMD.EXE 'TYPE' command.
* Contrary to CMD's FileGetString() we do not stop at new-lines.
*
* Read text data from a file and convert it from a given encoding to UTF-16.
*
* IN OUT PVOID pCacheBuffer and IN DWORD CacheBufferLength :
* Implementation detail so that the function uses an external user-provided
* buffer to store the data temporarily read from the file. The function
* could have used an internal buffer instead. The length is in number of bytes.
*
* IN OUT PWSTR* pBuffer and IN OUT PDWORD pnBufferLength :
* Reallocated buffer containing the string data converted to UTF-16.
* In input, contains a pointer to the original buffer and its length.
* In output, contains a pointer to the reallocated buffer and its length.
* The length is in number of characters.
*
* At first call to this function, pBuffer can be set to NULL, in which case
* when the function returns the pointer will point to a valid buffer.
* After the last call to this function, free the pBuffer pointer with:
* HeapFree(GetProcessHeap(), 0, *pBuffer);
*
* If Encoding is set to ENCODING_UTF16LE or ENCODING_UTF16BE, since we are
* compiled in UNICODE, no extra conversion is performed and therefore
* pBuffer is unused (remains unallocated) and one can directly use the
* contents of pCacheBuffer as it is expected to contain valid UTF-16 text.
*
* OUT PDWORD pdwReadBytes : Number of bytes read from the file (optional).
* OUT PDWORD pdwReadChars : Corresponding number of characters read (optional).
*/
static BOOL
FileGetString(
IN HANDLE hFile,
IN ENCODING Encoding,
IN OUT PVOID pCacheBuffer,
IN DWORD CacheBufferLength,
IN OUT PWCHAR* pBuffer,
IN OUT PDWORD pnBufferLength,
OUT PDWORD pdwReadBytes OPTIONAL,
OUT PDWORD pdwReadChars OPTIONAL)
{
BOOL Success;
UINT CodePage = (UINT)-1;
DWORD dwReadBytes;
INT len;
// ASSERT(pCacheBuffer && (CacheBufferLength > 0));
// ASSERT(CacheBufferLength % 2 == 0); // Cache buffer length MUST BE even!
// ASSERT(pBuffer && pnBufferLength);
/* Always reset the retrieved number of bytes/characters */
if (pdwReadBytes) *pdwReadBytes = 0;
if (pdwReadChars) *pdwReadChars = 0;
Success = ReadFile(hFile, pCacheBuffer, CacheBufferLength, &dwReadBytes, NULL);
if (!Success || dwReadBytes == 0)
return FALSE;
if (pdwReadBytes) *pdwReadBytes = dwReadBytes;
if ((Encoding == ENCODING_ANSI) || (Encoding == ENCODING_UTF8))
{
/* Conversion is needed */
if (Encoding == ENCODING_ANSI)
CodePage = GetConsoleCP(); // CP_ACP; // FIXME: Cache GetConsoleCP() value.
else // if (Encoding == ENCODING_UTF8)
CodePage = CP_UTF8;
/* Retrieve the needed buffer size */
len = MultiByteToWideChar(CodePage, 0, pCacheBuffer, dwReadBytes,
NULL, 0);
if (len == 0)
{
/* Failure, bail out */
return FALSE;
}
/* Initialize the conversion buffer if needed... */
if (*pBuffer == NULL)
{
*pnBufferLength = len;
*pBuffer = HeapAlloc(GetProcessHeap(), 0, *pnBufferLength * sizeof(WCHAR));
if (*pBuffer == NULL)
{
// *pBuffer = NULL;
*pnBufferLength = 0;
// WARN("DEBUG: Cannot allocate memory for *pBuffer!\n");
// ConErrFormatMessage(GetLastError());
return FALSE;
}
}
/* ... or reallocate only if the new length is greater than the old one */
else if (len > *pnBufferLength)
{
PWSTR OldBuffer = *pBuffer;
*pnBufferLength = len;
*pBuffer = HeapReAlloc(GetProcessHeap(), 0, *pBuffer, *pnBufferLength * sizeof(WCHAR));
if (*pBuffer == NULL)
{
/* Do not leak old buffer */
HeapFree(GetProcessHeap(), 0, OldBuffer);
// *pBuffer = NULL;
*pnBufferLength = 0;
// WARN("DEBUG: Cannot reallocate memory for *pBuffer!\n");
// ConErrFormatMessage(GetLastError());
return FALSE;
}
}
/* Now perform the conversion proper */
len = MultiByteToWideChar(CodePage, 0, pCacheBuffer, dwReadBytes,
*pBuffer, len);
dwReadBytes = len;
}
else
{
/*
* No conversion needed, just convert from big to little endian if needed.
* pBuffer and pnBufferLength are left untouched and pCacheBuffer can be
* directly used.
*/
PWCHAR pWChars = pCacheBuffer;
DWORD i;
dwReadBytes /= sizeof(WCHAR);
if (Encoding == ENCODING_UTF16BE)
{
for (i = 0; i < dwReadBytes; i++)
{
/* Equivalent to RtlUshortByteSwap: reverse high/low bytes */
pWChars[i] = MAKEWORD(HIBYTE(pWChars[i]), LOBYTE(pWChars[i]));
}
}
// else if (Encoding == ENCODING_UTF16LE), we are good, nothing to do.
}
/* Return the number of characters (dwReadBytes is converted) */
if (pdwReadChars) *pdwReadChars = dwReadBytes;
return TRUE;
}
// INT CommandMore(LPTSTR cmd, LPTSTR param)
int wmain(int argc, WCHAR* argv[])
{
// FIXME this stuff!
CON_SCREEN Screen = {StdOut};
CON_PAGER Pager = {&Screen, 0};
int i;
BOOL bRet, bContinue;
ENCODING Encoding;
DWORD SkipBytes = 0;
#define FileCacheBufferSize 4096
PVOID FileCacheBuffer = NULL;
PWCHAR StringBuffer = NULL;
DWORD StringBufferLength = 0;
DWORD dwReadBytes, dwReadChars;
TCHAR szFullPath[MAX_PATH];
hStdIn = GetStdHandle(STD_INPUT_HANDLE);
hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
/* Initialize the Console Standard Streams */
ConStreamInit(StdIn , GetStdHandle(STD_INPUT_HANDLE) , UTF8Text, INVALID_CP);
ConStreamInit(StdOut, GetStdHandle(STD_OUTPUT_HANDLE), UTF8Text, INVALID_CP);
ConStreamInit(StdErr, GetStdHandle(STD_ERROR_HANDLE) , UTF8Text, INVALID_CP);
/*
* Bad usage (too much options) or we use the /? switch.
* Display help for the MORE command.
*/
if (argc > 1 && wcscmp(argv[1], L"/?") == 0)
{
ConResPuts(StdOut, IDS_USAGE);
return 0;
}
// FIXME: Parse all the remaining parameters.
// Then the file list can be found at the very end.
// FIXME2: Use the PARSER api that can be found in EVENTCREATE.
// NOTE: We might try to duplicate the ConOut for read access... ?
hKeyboard = CreateFileW(L"CONIN$", GENERIC_READ|GENERIC_WRITE,
FILE_SHARE_READ|FILE_SHARE_WRITE, NULL,
OPEN_EXISTING, 0, NULL);
FlushConsoleInputBuffer(hKeyboard);
ConStreamSetOSHandle(StdIn, hKeyboard);
FileCacheBuffer = HeapAlloc(GetProcessHeap(), 0, FileCacheBufferSize);
if (!FileCacheBuffer)
{
ConPuts(StdErr, L"Error: no memory\n");
CloseHandle(hKeyboard);
return 1;
}
/* Special case where we run 'MORE' without any argument: we use STDIN */
if (argc <= 1)
{
/*
* Assign STDIN handle to hFile so that the page prompt function will
* know the data comes from STDIN, and will take different actions.
*/
hFile = hStdIn;
/* Update the statistics for PagePrompt */
dwFileSize = 0;
dwSumReadBytes = dwSumReadChars = 0;
/* We suppose we read text from the file */
/* For STDIN we always suppose we are in ANSI mode */
// SetFilePointer(hFile, 0, NULL, FILE_BEGIN);
Encoding = ENCODING_ANSI; // ENCODING_UTF8;
bContinue = ConPutsPaging(&Pager, PagePrompt, TRUE, L"");
if (!bContinue)
goto Quit;
do
{
bRet = FileGetString(hFile, Encoding,
FileCacheBuffer, FileCacheBufferSize,
&StringBuffer, &StringBufferLength,
&dwReadBytes, &dwReadChars);
if (!bRet || dwReadBytes == 0 || dwReadChars == 0)
{
/* We failed at reading the file, bail out */
break;
}
/* Update the statistics for PagePrompt */
dwSumReadBytes += dwReadBytes;
dwSumReadChars += dwReadChars;
bContinue = ConWritePaging(&Pager, PagePrompt, FALSE,
StringBuffer, dwReadChars);
/* If we Ctrl-C/Ctrl-Break, stop everything */
if (!bContinue)
goto Quit;
}
while (bRet && dwReadBytes > 0);
goto Quit;
}
/* We have files: read them and output them to STDOUT */
for (i = 1; i < argc; i++)
{
GetFullPathNameW(argv[i], ARRAYSIZE(szFullPath), szFullPath, NULL);
hFile = CreateFileW(szFullPath,
GENERIC_READ,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
0, // FILE_ATTRIBUTE_NORMAL,
NULL);
if (hFile == INVALID_HANDLE_VALUE)
{
ConResPrintf(StdErr, IDS_FILE_ACCESS, szFullPath);
continue;
}
/* We currently do not support files too big */
dwFileSize = GetFileSize(hFile, NULL);
if (dwFileSize == INVALID_FILE_SIZE)
{
ConPuts(StdErr, L"ERROR: Invalid file size!\n");
CloseHandle(hFile);
continue;
}
/* We suppose we read text from the file */
/* Check whether the file is UNICODE and retrieve its encoding */
SetFilePointer(hFile, 0, NULL, FILE_BEGIN);
bRet = ReadFile(hFile, FileCacheBuffer, FileCacheBufferSize, &dwReadBytes, NULL);
IsDataUnicode(FileCacheBuffer, dwReadBytes, &Encoding, &SkipBytes);
SetFilePointer(hFile, SkipBytes, NULL, FILE_BEGIN);
/* Update the statistics for PagePrompt */
dwSumReadBytes = dwSumReadChars = 0;
bContinue = ConPutsPaging(&Pager, PagePrompt, TRUE, L"");
if (!bContinue)
{
CloseHandle(hFile);
goto Quit;
}
do
{
bRet = FileGetString(hFile, Encoding,
FileCacheBuffer, FileCacheBufferSize,
&StringBuffer, &StringBufferLength,
&dwReadBytes, &dwReadChars);
if (!bRet || dwReadBytes == 0 || dwReadChars == 0)
{
/*
* We failed at reading the file, bail out and
* continue with the other files.
*/
break;
}
/* Update the statistics for PagePrompt */
dwSumReadBytes += dwReadBytes;
dwSumReadChars += dwReadChars;
if ((Encoding == ENCODING_UTF16LE) || (Encoding == ENCODING_UTF16BE))
{
bContinue = ConWritePaging(&Pager, PagePrompt, FALSE,
FileCacheBuffer, dwReadChars);
}
else
{
bContinue = ConWritePaging(&Pager, PagePrompt, FALSE,
StringBuffer, dwReadChars);
}
/* If we Ctrl-C/Ctrl-Break, stop everything */
if (!bContinue)
{
CloseHandle(hFile);
goto Quit;
}
}
while (bRet && dwReadBytes > 0);
CloseHandle(hFile);
}
Quit:
if (StringBuffer) HeapFree(GetProcessHeap(), 0, StringBuffer);
HeapFree(GetProcessHeap(), 0, FileCacheBuffer);
CloseHandle(hKeyboard);
return 0;
}

View File

@@ -2,6 +2,8 @@
#include "resource.h"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS More Command"
#define REACTOS_STR_INTERNAL_NAME "more"
#define REACTOS_STR_ORIGINAL_FILENAME "more.com"
@@ -9,6 +11,7 @@
/* UTF-8 */
#pragma code_page(65001)
#ifdef LANGUAGE_BG_BG
#include "lang/bg-BG.rc"
#endif

View File

@@ -2,4 +2,5 @@
#define IDS_USAGE 100
#define IDS_CONTINUE 101
#define IDS_FILE_ACCESS 102
#define IDS_CONTINUE_PROGRESS 102
#define IDS_FILE_ACCESS 103

View File

@@ -14,23 +14,23 @@ STRINGTABLE
STRING_UNSUPPORTED_TYPE, "Ошибка: Неподдерживаемый тип\n"
STRING_MISSING_INTEGER, "Ошибка: Задайте допустимое целочисленное значение параметра [/d]\n"
STRING_MISSING_HEXDATA, "Ошибка: Задайте допустимое шестнадцатеричное значение параметра [/d]\n"
STRING_UNHANDLED_TYPE, "reg: Unhandled registry data type [/t 0x%1!x!, /d %2]\n"
STRING_UNHANDLED_TYPE, "reg: Неизвестный тип данных реестра [/t 0x%1!x!, /d %2]\n"
STRING_OVERWRITE_VALUE, "Параметр '%1' уже существует. Заменить?"
STRING_YESNO, " (Yes|No)"
STRING_YESNO, "(Y-да/N-нет)"
STRING_YES, "Y"
STRING_NO, "N"
STRING_CANCELLED, "Операция отменена\n"
STRING_DEFAULT_VALUE, "(По умолчанию)"
STRING_DEFAULT_VALUE, "(по умолчанию)"
STRING_DELETE_VALUE, "Удалить раздел реестра '%1' без возможности восстановления?"
STRING_DELETE_VALUEALL, "Удалить все параметры из раздела реестра '%1'?"
STRING_DELETE_SUBKEY, "Удалить параметр реестра '%1' без возможности восстановления?"
STRING_INVALID_STRING, "reg: The option [/d] must be followed by a valid string\n"
STRING_VALUEALL_FAILED, "reg: Unable to delete all registry values in '%1'. An unexpected error occurred.\n"
STRING_GENERAL_FAILURE, "reg: Unable to complete the specified operation. An unexpected error occurred.\n"
STRING_INVALID_STRING, "reg: Опция [/d] должна сопровождаться допустимой строкой\n"
STRING_VALUEALL_FAILED, "reg: Невозможно удалить все значения реестра в '%1'. Произошла непредвиденная ошибка.\n"
STRING_GENERAL_FAILURE, "reg: Не удалось выполнить указанную операцию. Произошла непредвиденная ошибка.\n"
STRING_MATCHES_FOUND, "Поиск завершен. Количество совпадений: %1!d!\n"
STRING_INVALID_SYNTAX, "Ошибка: Неверный синтаксис. "
STRING_INVALID_OPTION, "Ошибка: Недопустимый аргумент или параметр [%1]. "
STRING_REG_HELP, "Введите ""REG /?"" для получения справки по использованию..\n"
STRING_FUNC_HELP, "Введите ""REG %1 /?"" для получения справки по использованию..\n"
STRING_VALUE_NOT_SET, "(value not set)"
STRING_VALUE_NOT_SET, "(значение не указано)"
}

View File

@@ -34,5 +34,5 @@ STRINGTABLE
STRING_INVALID_OPTION, "reg: Geçersiz seçenek [%1]. "
STRING_REG_HELP, "Yardım için ""REG /?"" yazınız.\n"
STRING_FUNC_HELP, "Yardım için ""REG %1 /?"" yazınız.\n"
STRING_VALUE_NOT_SET, "(value not set)"
STRING_VALUE_NOT_SET, "(Değer belirlenmemiş.)"
}

View File

@@ -11,8 +11,8 @@ STRINGTABLE
STRING_COPY, "%1!d! файл(ов) скопировано.\n"
STRING_QISDIR, "'%1' является файлом или папкой?\n\
(F - Файл, D - Папка)\n"
STRING_SRCPROMPT,"%1? (Yes|No)\n"
STRING_OVERWRITE,"Переписать %1? (Yes|No|All)\n"
STRING_SRCPROMPT,"%1? (Yes-Да|No-Нет)\n"
STRING_OVERWRITE,"Переписать %1? (Yes-Да|No-Нет|All-Все)\n"
STRING_COPYFAIL, "При копировании '%1' в '%2' произошла ошибка: %3!d!\n"
STRING_OPENFAIL, "Невозможно открыть '%1'\n"
STRING_READFAIL, "При чтении '%1' произошла ошибка\n"

View File

@@ -31,7 +31,7 @@ BOOL StartDDTest(HWND hWnd, HINSTANCE hInstance, INT resTestDescription, INT res
WCHAR szError[256];
BOOL Result;
LoadStringW(hInstance, IDS_DDTEST_TITLE, szCaption, sizeof(szCaption) / sizeof(WCHAR));
LoadStringW(hInstance, IDS_MAIN_DIALOG, szCaption, sizeof(szCaption) / sizeof(WCHAR));
LoadStringW(hInstance, IDS_DDTEST_ERROR, szError, sizeof(szError) / sizeof(WCHAR));
LoadStringW(hInstance, resTestDescription, szTestDescription, sizeof(szTestDescription) / sizeof(WCHAR));
LoadStringW(hInstance, resResult, szResult, sizeof(szResult) / sizeof(WCHAR));
@@ -103,7 +103,7 @@ VOID DDTests()
}
LoadStringW(hInstance, IDS_DDTEST_DESCRIPTION, szDescription, sizeof(szDescription) / sizeof(WCHAR));
LoadStringW(hInstance, IDS_DDTEST_DESCRIPTION, szCaption, sizeof(szCaption) / sizeof(WCHAR));
LoadStringW(hInstance, IDS_MAIN_DIALOG, szCaption, sizeof(szCaption) / sizeof(WCHAR));
if(MessageBox(NULL, szDescription, szCaption, MB_YESNO | MB_ICONQUESTION) == IDNO)
return;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -5,5 +5,6 @@ include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/atl)
add_executable(fltmc fltmc.cpp fltmc.rc)
set_module_type(fltmc win32cui UNICODE)
target_link_libraries(fltmc atlnew)
add_importlibs(fltmc fltlib msvcrt kernel32 advapi32)
add_cd_file(TARGET fltmc DESTINATION reactos/system32 FOR all)

View File

@@ -19,7 +19,7 @@
#else
#include <Windows.h>
#endif
#include <fltUser.h>
#include <fltuser.h>
#include <atlstr.h>
#include "resource.h"

View File

@@ -5,56 +5,56 @@
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Filter Manager Control Program"
#define REACTOS_STR_INTERNAL_NAME "fltmc"
#define REACTOS_STR_ORIGINAL_FILENAME "fltmc.exe"
//#include <reactos/version.rc>
#include <reactos/version.rc>
/* UTF-8 */
#pragma code_page(65001)
//#ifdef LANGUAGE_BG_BG
// #include "lang/bg-BG.rc"
//#endif
//#ifdef LANGUAGE_CS_CZ
// #include "lang/cs-CZ.rc"
//#endif
//#ifdef LANGUAGE_DE_DE
// #include "lang/de-DE.rc"
//#endif
//#ifdef LANGUAGE_EN_US
#ifdef LANGUAGE_BG_BG
#include "lang/bg-BG.rc"
#endif
#ifdef LANGUAGE_CS_CZ
#include "lang/cs-CZ.rc"
#endif
#ifdef LANGUAGE_DE_DE
#include "lang/de-DE.rc"
#endif
#ifdef LANGUAGE_EN_US
#include "lang/en-US.rc"
//#endif
//#ifdef LANGUAGE_ES_ES
// #include "lang/es-ES.rc"
//#endif
//#ifdef LANGUAGE_FR_FR
// #include "lang/fr-FR.rc"
//#endif
//#ifdef LANGUAGE_IT_IT
// #include "lang/it-IT.rc"
//#endif
//#ifdef LANGUAGE_PL_PL
// #include "lang/pl-PL.rc"
//#endif
//#ifdef LANGUAGE_RO_RO
// #include "lang/ro-RO.rc"
//#endif
//#ifdef LANGUAGE_RU_RU
// #include "lang/ru-RU.rc"
//#endif
//#ifdef LANGUAGE_SV_SE
// #include "lang/sv-SE.rc"
//#endif
//#ifdef LANGUAGE_SQ_AL
// #include "lang/sq-AL.rc"
//#endif
//#ifdef LANGUAGE_TR_TR
// #include "lang/tr-TR.rc"
//#endif
//#ifdef LANGUAGE_UK_UA
// #include "lang/uk-UA.rc"
//#endif
//#ifdef LANGUAGE_ZH_CN
// #include "lang/zh-CN.rc"
//#endif
//#ifdef LANGUAGE_ZH_TW
// #include "lang/zh-TW.rc"
//#endif
#endif
#ifdef LANGUAGE_ES_ES
#include "lang/es-ES.rc"
#endif
#ifdef LANGUAGE_FR_FR
#include "lang/fr-FR.rc"
#endif
#ifdef LANGUAGE_IT_IT
#include "lang/it-IT.rc"
#endif
#ifdef LANGUAGE_PL_PL
#include "lang/pl-PL.rc"
#endif
#ifdef LANGUAGE_RO_RO
#include "lang/ro-RO.rc"
#endif
#ifdef LANGUAGE_RU_RU
#include "lang/ru-RU.rc"
#endif
#ifdef LANGUAGE_SV_SE
#include "lang/sv-SE.rc"
#endif
#ifdef LANGUAGE_SQ_AL
#include "lang/sq-AL.rc"
#endif
#ifdef LANGUAGE_TR_TR
#include "lang/tr-TR.rc"
#endif
#ifdef LANGUAGE_UK_UA
#include "lang/uk-UA.rc"
#endif
#ifdef LANGUAGE_ZH_CN
#include "lang/zh-CN.rc"
#endif
#ifdef LANGUAGE_ZH_TW
#include "lang/zh-TW.rc"
#endif

View File

@@ -0,0 +1,27 @@
LANGUAGE LANG_BULGARIAN, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_USAGE "\nValid commands :\n\
load Loads a Filter driver\n\
unload Unloads a Filter driver\n\
filters Lists the Filters currently registered in the system\n\n"
IDS_USAGE_LOAD "Loads a filter driver\n"
IDS_USAGE_UNLOAD "Unloads a filter driver\n"
IDS_USAGE_FILTERS "Lists all registered filters\n"
END
STRINGTABLE
BEGIN
IDS_DISPLAY_FILTERS1 "Filter Name Num Instances Altitude Frame\n"
IDS_DISPLAY_FILTERS2 "Filter Name Num Instances Frame\n"
END
STRINGTABLE
BEGIN
IDS_ERROR_PRIV "Failed to set the driver load privilige (0x%X)\n"
IDS_ERROR_FILTERS "Failed to list the filters (0x%X)\n"
IDS_ERROR_LOAD "Failed to load the filter (0x%X)\n"
IDS_ERROR_UNLOAD "Failed to unload the filter (0x%X)\n"
END

View File

@@ -0,0 +1,27 @@
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_USAGE "\nValid commands :\n\
load Loads a Filter driver\n\
unload Unloads a Filter driver\n\
filters Lists the Filters currently registered in the system\n\n"
IDS_USAGE_LOAD "Loads a filter driver\n"
IDS_USAGE_UNLOAD "Unloads a filter driver\n"
IDS_USAGE_FILTERS "Lists all registered filters\n"
END
STRINGTABLE
BEGIN
IDS_DISPLAY_FILTERS1 "Filter Name Num Instances Altitude Frame\n"
IDS_DISPLAY_FILTERS2 "Filter Name Num Instances Frame\n"
END
STRINGTABLE
BEGIN
IDS_ERROR_PRIV "Failed to set the driver load privilige (0x%X)\n"
IDS_ERROR_FILTERS "Failed to list the filters (0x%X)\n"
IDS_ERROR_LOAD "Failed to load the filter (0x%X)\n"
IDS_ERROR_UNLOAD "Failed to unload the filter (0x%X)\n"
END

View File

@@ -0,0 +1,27 @@
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_USAGE "\nValid commands :\n\
load Loads a Filter driver\n\
unload Unloads a Filter driver\n\
filters Lists the Filters currently registered in the system\n\n"
IDS_USAGE_LOAD "Loads a filter driver\n"
IDS_USAGE_UNLOAD "Unloads a filter driver\n"
IDS_USAGE_FILTERS "Lists all registered filters\n"
END
STRINGTABLE
BEGIN
IDS_DISPLAY_FILTERS1 "Filter Name Num Instances Altitude Frame\n"
IDS_DISPLAY_FILTERS2 "Filter Name Num Instances Frame\n"
END
STRINGTABLE
BEGIN
IDS_ERROR_PRIV "Failed to set the driver load privilige (0x%X)\n"
IDS_ERROR_FILTERS "Failed to list the filters (0x%X)\n"
IDS_ERROR_LOAD "Failed to load the filter (0x%X)\n"
IDS_ERROR_UNLOAD "Failed to unload the filter (0x%X)\n"
END

View File

@@ -5,23 +5,23 @@ BEGIN
IDS_USAGE "\nValid commands :\n\
load Loads a Filter driver\n\
unload Unloads a Filter driver\n\
filters Lists the Filters currently registered in the system\n\n\0"
filters Lists the Filters currently registered in the system\n\n"
IDS_USAGE_LOAD "Loads a filter driver\n\0"
IDS_USAGE_UNLOAD "Unloads a filter driver\n\0"
IDS_USAGE_FILTERS "Lists all registered filters\n\0"
IDS_USAGE_LOAD "Loads a filter driver\n"
IDS_USAGE_UNLOAD "Unloads a filter driver\n"
IDS_USAGE_FILTERS "Lists all registered filters\n"
END
STRINGTABLE
BEGIN
IDS_DISPLAY_FILTERS1 "Filter Name Num Instances Altitude Frame\n\0"
IDS_DISPLAY_FILTERS2 "Filter Name Num Instances Frame\n\0"
IDS_DISPLAY_FILTERS1 "Filter Name Num Instances Altitude Frame\n"
IDS_DISPLAY_FILTERS2 "Filter Name Num Instances Frame\n"
END
STRINGTABLE
BEGIN
IDS_ERROR_PRIV "Failed to set the driver load privilige (0x%X)\n\0"
IDS_ERROR_FILTERS "Failed to list the filters (0x%X)\n\0"
IDS_ERROR_LOAD "Failed to load the filter (0x%X)\n\0"
IDS_ERROR_UNLOAD "Failed to unload the filter (0x%X)\n\0"
IDS_ERROR_PRIV "Failed to set the driver load privilige (0x%X)\n"
IDS_ERROR_FILTERS "Failed to list the filters (0x%X)\n"
IDS_ERROR_LOAD "Failed to load the filter (0x%X)\n"
IDS_ERROR_UNLOAD "Failed to unload the filter (0x%X)\n"
END

View File

@@ -0,0 +1,27 @@
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_USAGE "\nValid commands :\n\
load Loads a Filter driver\n\
unload Unloads a Filter driver\n\
filters Lists the Filters currently registered in the system\n\n"
IDS_USAGE_LOAD "Loads a filter driver\n"
IDS_USAGE_UNLOAD "Unloads a filter driver\n"
IDS_USAGE_FILTERS "Lists all registered filters\n"
END
STRINGTABLE
BEGIN
IDS_DISPLAY_FILTERS1 "Filter Name Num Instances Altitude Frame\n"
IDS_DISPLAY_FILTERS2 "Filter Name Num Instances Frame\n"
END
STRINGTABLE
BEGIN
IDS_ERROR_PRIV "Failed to set the driver load privilige (0x%X)\n"
IDS_ERROR_FILTERS "Failed to list the filters (0x%X)\n"
IDS_ERROR_LOAD "Failed to load the filter (0x%X)\n"
IDS_ERROR_UNLOAD "Failed to unload the filter (0x%X)\n"
END

View File

@@ -0,0 +1,27 @@
LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_USAGE "\nValid commands :\n\
load Loads a Filter driver\n\
unload Unloads a Filter driver\n\
filters Lists the Filters currently registered in the system\n\n"
IDS_USAGE_LOAD "Loads a filter driver\n"
IDS_USAGE_UNLOAD "Unloads a filter driver\n"
IDS_USAGE_FILTERS "Lists all registered filters\n"
END
STRINGTABLE
BEGIN
IDS_DISPLAY_FILTERS1 "Filter Name Num Instances Altitude Frame\n"
IDS_DISPLAY_FILTERS2 "Filter Name Num Instances Frame\n"
END
STRINGTABLE
BEGIN
IDS_ERROR_PRIV "Failed to set the driver load privilige (0x%X)\n"
IDS_ERROR_FILTERS "Failed to list the filters (0x%X)\n"
IDS_ERROR_LOAD "Failed to load the filter (0x%X)\n"
IDS_ERROR_UNLOAD "Failed to unload the filter (0x%X)\n"
END

View File

@@ -0,0 +1,27 @@
LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_USAGE "\nValid commands :\n\
load Loads a Filter driver\n\
unload Unloads a Filter driver\n\
filters Lists the Filters currently registered in the system\n\n"
IDS_USAGE_LOAD "Loads a filter driver\n"
IDS_USAGE_UNLOAD "Unloads a filter driver\n"
IDS_USAGE_FILTERS "Lists all registered filters\n"
END
STRINGTABLE
BEGIN
IDS_DISPLAY_FILTERS1 "Filter Name Num Instances Altitude Frame\n"
IDS_DISPLAY_FILTERS2 "Filter Name Num Instances Frame\n"
END
STRINGTABLE
BEGIN
IDS_ERROR_PRIV "Failed to set the driver load privilige (0x%X)\n"
IDS_ERROR_FILTERS "Failed to list the filters (0x%X)\n"
IDS_ERROR_LOAD "Failed to load the filter (0x%X)\n"
IDS_ERROR_UNLOAD "Failed to unload the filter (0x%X)\n"
END

View File

@@ -0,0 +1,27 @@
LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_USAGE "\nValid commands :\n\
load Loads a Filter driver\n\
unload Unloads a Filter driver\n\
filters Lists the Filters currently registered in the system\n\n"
IDS_USAGE_LOAD "Loads a filter driver\n"
IDS_USAGE_UNLOAD "Unloads a filter driver\n"
IDS_USAGE_FILTERS "Lists all registered filters\n"
END
STRINGTABLE
BEGIN
IDS_DISPLAY_FILTERS1 "Filter Name Num Instances Altitude Frame\n"
IDS_DISPLAY_FILTERS2 "Filter Name Num Instances Frame\n"
END
STRINGTABLE
BEGIN
IDS_ERROR_PRIV "Failed to set the driver load privilige (0x%X)\n"
IDS_ERROR_FILTERS "Failed to list the filters (0x%X)\n"
IDS_ERROR_LOAD "Failed to load the filter (0x%X)\n"
IDS_ERROR_UNLOAD "Failed to unload the filter (0x%X)\n"
END

View File

@@ -0,0 +1,27 @@
LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_USAGE "\nValid commands :\n\
load Loads a Filter driver\n\
unload Unloads a Filter driver\n\
filters Lists the Filters currently registered in the system\n\n"
IDS_USAGE_LOAD "Loads a filter driver\n"
IDS_USAGE_UNLOAD "Unloads a filter driver\n"
IDS_USAGE_FILTERS "Lists all registered filters\n"
END
STRINGTABLE
BEGIN
IDS_DISPLAY_FILTERS1 "Filter Name Num Instances Altitude Frame\n"
IDS_DISPLAY_FILTERS2 "Filter Name Num Instances Frame\n"
END
STRINGTABLE
BEGIN
IDS_ERROR_PRIV "Failed to set the driver load privilige (0x%X)\n"
IDS_ERROR_FILTERS "Failed to list the filters (0x%X)\n"
IDS_ERROR_LOAD "Failed to load the filter (0x%X)\n"
IDS_ERROR_UNLOAD "Failed to unload the filter (0x%X)\n"
END

View File

@@ -0,0 +1,27 @@
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_USAGE "\nДопустимые команды :\n\
load Загрузить драйвер фильтра\n\
unload Выгрузить драйвер фильтра\n\
filters Список фильтров, зарегистрированных в системе\n\n"
IDS_USAGE_LOAD "Загружает драйвер фильтра\n"
IDS_USAGE_UNLOAD "Выгружает драйвер фильтра\n"
IDS_USAGE_FILTERS "Выводит список всех зарегистрированных фильтров\n"
END
STRINGTABLE
BEGIN
IDS_DISPLAY_FILTERS1 "Filter Name Num Instances Altitude Frame\n"
IDS_DISPLAY_FILTERS2 "Filter Name Num Instances Frame\n"
END
STRINGTABLE
BEGIN
IDS_ERROR_PRIV "Не удалось установить привилегии загрузки фильтра (0x%X)\n"
IDS_ERROR_FILTERS "Не удалось получить список фильтров (0x%X)\n"
IDS_ERROR_LOAD "Не удалось загрузить фильтр (0x%X)\n"
IDS_ERROR_UNLOAD "Не удалось выгрузить фильтр (0x%X)\n"
END

View File

@@ -0,0 +1,27 @@
LANGUAGE LANG_ALBANIAN, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_USAGE "\nValid commands :\n\
load Loads a Filter driver\n\
unload Unloads a Filter driver\n\
filters Lists the Filters currently registered in the system\n\n"
IDS_USAGE_LOAD "Loads a filter driver\n"
IDS_USAGE_UNLOAD "Unloads a filter driver\n"
IDS_USAGE_FILTERS "Lists all registered filters\n"
END
STRINGTABLE
BEGIN
IDS_DISPLAY_FILTERS1 "Filter Name Num Instances Altitude Frame\n"
IDS_DISPLAY_FILTERS2 "Filter Name Num Instances Frame\n"
END
STRINGTABLE
BEGIN
IDS_ERROR_PRIV "Failed to set the driver load privilige (0x%X)\n"
IDS_ERROR_FILTERS "Failed to list the filters (0x%X)\n"
IDS_ERROR_LOAD "Failed to load the filter (0x%X)\n"
IDS_ERROR_UNLOAD "Failed to unload the filter (0x%X)\n"
END

View File

@@ -0,0 +1,27 @@
LANGUAGE LANG_SWEDISH, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_USAGE "\nValid commands :\n\
load Loads a Filter driver\n\
unload Unloads a Filter driver\n\
filters Lists the Filters currently registered in the system\n\n"
IDS_USAGE_LOAD "Loads a filter driver\n"
IDS_USAGE_UNLOAD "Unloads a filter driver\n"
IDS_USAGE_FILTERS "Lists all registered filters\n"
END
STRINGTABLE
BEGIN
IDS_DISPLAY_FILTERS1 "Filter Name Num Instances Altitude Frame\n"
IDS_DISPLAY_FILTERS2 "Filter Name Num Instances Frame\n"
END
STRINGTABLE
BEGIN
IDS_ERROR_PRIV "Failed to set the driver load privilige (0x%X)\n"
IDS_ERROR_FILTERS "Failed to list the filters (0x%X)\n"
IDS_ERROR_LOAD "Failed to load the filter (0x%X)\n"
IDS_ERROR_UNLOAD "Failed to unload the filter (0x%X)\n"
END

View File

@@ -0,0 +1,29 @@
/* TRANSLATOR: 2016 Erdem Ersoy (eersoy93) (erdemersoy@live.com) */
LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_USAGE "\nGeçerli komutlar:\n\
load Bir süzgeç sürücüsünü yükler\n\
unload Bir süzgeç sürücüsünü kaldırır\n\
filters Dizgede şimdilik kayıtlı süzgeçleri dizelgeler\n\n"
IDS_USAGE_LOAD "Bir süzgeç sürücüsünü yükler\n"
IDS_USAGE_UNLOAD "Bir süzgeç sürücüsünü kaldırır\n"
IDS_USAGE_FILTERS "Kayıtlı tüm süzgeçleri dizelgeler\n"
END
STRINGTABLE
BEGIN
IDS_DISPLAY_FILTERS1 "Süzgeç Adı Örnek Sayısı Yükseklik Kare\n"
IDS_DISPLAY_FILTERS2 "Süzgeç Adı Örnek Sayısı Kare\n"
END
STRINGTABLE
BEGIN
IDS_ERROR_PRIV "Sürücü yüklemesi ayrıcalığı ayarlama başarısız (0x%X)\n"
IDS_ERROR_FILTERS "Süzgeçleri dizelgeleme başarısız (0x%X)\n"
IDS_ERROR_LOAD "Süzgeçleri yükleme başarısız (0x%X)\n"
IDS_ERROR_UNLOAD "Süzgeçleri kaldırma başarısız (0x%X)\n"
END

View File

@@ -0,0 +1,27 @@
LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_USAGE "\nValid commands :\n\
load Loads a Filter driver\n\
unload Unloads a Filter driver\n\
filters Lists the Filters currently registered in the system\n\n"
IDS_USAGE_LOAD "Loads a filter driver\n"
IDS_USAGE_UNLOAD "Unloads a filter driver\n"
IDS_USAGE_FILTERS "Lists all registered filters\n"
END
STRINGTABLE
BEGIN
IDS_DISPLAY_FILTERS1 "Filter Name Num Instances Altitude Frame\n"
IDS_DISPLAY_FILTERS2 "Filter Name Num Instances Frame\n"
END
STRINGTABLE
BEGIN
IDS_ERROR_PRIV "Failed to set the driver load privilige (0x%X)\n"
IDS_ERROR_FILTERS "Failed to list the filters (0x%X)\n"
IDS_ERROR_LOAD "Failed to load the filter (0x%X)\n"
IDS_ERROR_UNLOAD "Failed to unload the filter (0x%X)\n"
END

View File

@@ -0,0 +1,27 @@
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
STRINGTABLE
BEGIN
IDS_USAGE "\nValid commands :\n\
load Loads a Filter driver\n\
unload Unloads a Filter driver\n\
filters Lists the Filters currently registered in the system\n\n"
IDS_USAGE_LOAD "Loads a filter driver\n"
IDS_USAGE_UNLOAD "Unloads a filter driver\n"
IDS_USAGE_FILTERS "Lists all registered filters\n"
END
STRINGTABLE
BEGIN
IDS_DISPLAY_FILTERS1 "Filter Name Num Instances Altitude Frame\n"
IDS_DISPLAY_FILTERS2 "Filter Name Num Instances Frame\n"
END
STRINGTABLE
BEGIN
IDS_ERROR_PRIV "Failed to set the driver load privilige (0x%X)\n"
IDS_ERROR_FILTERS "Failed to list the filters (0x%X)\n"
IDS_ERROR_LOAD "Failed to load the filter (0x%X)\n"
IDS_ERROR_UNLOAD "Failed to unload the filter (0x%X)\n"
END

View File

@@ -0,0 +1,27 @@
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL
STRINGTABLE
BEGIN
IDS_USAGE "\nValid commands :\n\
load Loads a Filter driver\n\
unload Unloads a Filter driver\n\
filters Lists the Filters currently registered in the system\n\n"
IDS_USAGE_LOAD "Loads a filter driver\n"
IDS_USAGE_UNLOAD "Unloads a filter driver\n"
IDS_USAGE_FILTERS "Lists all registered filters\n"
END
STRINGTABLE
BEGIN
IDS_DISPLAY_FILTERS1 "Filter Name Num Instances Altitude Frame\n"
IDS_DISPLAY_FILTERS2 "Filter Name Num Instances Frame\n"
END
STRINGTABLE
BEGIN
IDS_ERROR_PRIV "Failed to set the driver load privilige (0x%X)\n"
IDS_ERROR_FILTERS "Failed to list the filters (0x%X)\n"
IDS_ERROR_LOAD "Failed to load the filter (0x%X)\n"
IDS_ERROR_UNLOAD "Failed to unload the filter (0x%X)\n"
END

View File

@@ -74,7 +74,7 @@ BEGIN
MENUITEM "De&ck...", IDM_GAME_DECK
MENUITEM "&Options...", IDM_GAME_OPTIONS
MENUITEM SEPARATOR
MENUITEM "&Exit", IDM_GAME_EXIT
MENUITEM "E&xit", IDM_GAME_EXIT
END
POPUP "&Help"
BEGIN

View File

@@ -69,7 +69,7 @@ IDR_MENU1 MENU
BEGIN
POPUP "&Oyun"
BEGIN
MENUITEM "&Dağıt\tİ2", IDM_GAME_NEW
MENUITEM "&Dağıt\tF2", IDM_GAME_NEW
MENUITEM SEPARATOR
MENUITEM "D&esteler...", IDM_GAME_DECK
MENUITEM "&Seçenekler...", IDM_GAME_OPTIONS
@@ -78,7 +78,7 @@ BEGIN
END
POPUP "&Yardım"
BEGIN
MENUITEM "&İçindekiler\tİ1", IDM_HELP_CONTENTS
MENUITEM "&İçindekiler\tF1", IDM_HELP_CONTENTS
MENUITEM "&Üzerine...", IDM_HELP_ABOUT
END
END

View File

@@ -64,7 +64,7 @@ BEGIN
MENUITEM SEPARATOR
MENUITEM "&Deck...", IDM_GAME_DECK
MENUITEM SEPARATOR
MENUITEM "&Exit", IDM_GAME_EXIT
MENUITEM "E&xit", IDM_GAME_EXIT
END
POPUP "&Help"
BEGIN

View File

@@ -60,7 +60,7 @@ IDR_MENU1 MENU
BEGIN
POPUP "&Oyun"
BEGIN
MENUITEM "&Dağıt\tİ2", IDM_GAME_NEW
MENUITEM "&Dağıt\tF2", IDM_GAME_NEW
MENUITEM SEPARATOR
MENUITEM "D&esteler...", IDM_GAME_DECK
MENUITEM SEPARATOR
@@ -68,7 +68,7 @@ BEGIN
END
POPUP "&Yardım"
BEGIN
MENUITEM "&İçindekiler\tİ1", IDM_HELP_CONTENTS
MENUITEM "&İçindekiler\tF1", IDM_HELP_CONTENTS
MENUITEM "&Üzerine...", IDM_HELP_ABOUT
END
END

View File

@@ -3,7 +3,7 @@ LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_APPNAME "WineMine"
IDS_NOBODY "Nobody"
IDS_NOBODY "Игрок"
IDS_ABOUT "Copyright 2000 Joshua Thielen"
END

Some files were not shown because too many files have changed in this diff Show More