Compare commits

...

321 Commits

Author SHA1 Message Date
Colin Finck
2ad47f0104 - Change the root "readme.txt" file to have a CLT2011 text.
- Add all CD options to "welcome.exe", modify its code a bit to support this.

This is all stuff which has already been done last year, see r46065.

svn path=/branches/ros-branch-0_3_13-clt2011/; revision=51078
2011-03-16 23:19:36 +00:00
Colin Finck
77565b18aa Import my Hybrid-CD stuff from last year.
Hopefully the kernel hack is not required anymore..

svn path=/branches/ros-branch-0_3_13-clt2011/; revision=51077
2011-03-16 22:34:40 +00:00
Colin Finck
93e878aefe Add the CLT2011 wallpaper (2/2)
svn path=/branches/ros-branch-0_3_13-clt2011/; revision=51076
2011-03-16 22:14:40 +00:00
Colin Finck
86ee618d32 Add the CLT2011 wallpaper (1/2)
svn path=/branches/ros-branch-0_3_13-clt2011/; revision=51075
2011-03-16 22:12:30 +00:00
Colin Finck
bca2d0d658 Change version to 0.3.13-CLT2011
svn path=/branches/ros-branch-0_3_13-clt2011/; revision=51074
2011-03-16 21:33:38 +00:00
Colin Finck
03dc76ef23 Merge 51053, 51069
svn path=/branches/ros-branch-0_3_13/; revision=51070
2011-03-16 16:57:58 +00:00
Colin Finck
43903288f4 Merge r51067
svn path=/branches/ros-branch-0_3_13/; revision=51068
2011-03-16 16:17:03 +00:00
Colin Finck
bdd21d454d Hackfix for Far 1.65.
Although the file manager didn't become fully usable with this patch, it works better than without and the patch doesn't seem to have negative side effects.

See issue #5503 for more details.

svn path=/branches/ros-branch-0_3_13/; revision=51066
2011-03-16 15:09:31 +00:00
Colin Finck
d4028b14b9 Merge 51058, 51062-51063
svn path=/branches/ros-branch-0_3_13/; revision=51064
2011-03-16 14:08:30 +00:00
Colin Finck
f7404c57db Merge r51046-r51048
svn path=/branches/ros-branch-0_3_13/; revision=51049
2011-03-14 14:58:36 +00:00
Colin Finck
e15adf5dd5 [RAPPS]
- Add a "mIRC 6" entry to have a working IRC client while keeping "mIRC 7" for testing. (see bug 6005)
  Keep in mind that the automatically downloaded app database is the same for previous releases, current releases and Trunk, so just changing the version for the release wouldn't have been a solution.
- Add SumatraPDF 1.2 (working) to the app database. Patch by Vincenzo Cotugno (vins820 at hotmail dot com), German translation by me.
- Change all .txt files to svn:eol-style CRLF, these are target files which should have Windows line-endings.

svn path=/trunk/; revision=51048
2011-03-14 14:31:19 +00:00
Johannes Anderwald
3f8643ca67 [MSAFD]
- Print the caller in MsafdReturnWithErrno
- Initialize SockAsyncCompletionPort handle
- Check if the creation of the completion port failed
- Defer free of the socket information struct until the socket handle has been closed because the socket may have a pending select. When the socket is closed, the pending select is canceled, thus a apc routine is invoked which access the freed socket information struct.
- Fixes mIRC crash
- Should be merged to 0.3.13 branch

svn path=/trunk/; revision=51047
2011-03-14 12:48:28 +00:00
Pierre Schweitzer
95dbb35059 [RAPPS]
Added French translation for all the available applications. Only strings that other translators have translated are translated here.
Regarding OOo 2.4, as 2.4.3 version isn't available in French (wut?!), it has been set to 2.4.2.
If anything wrong, let me know.

svn path=/trunk/; revision=51046
2011-03-14 08:40:09 +00:00
Colin Finck
867a0ff468 Merge r51043 and r51044
svn path=/branches/ros-branch-0_3_13/; revision=51045
2011-03-13 22:10:29 +00:00
Colin Finck
58e86efe04 [RAPPS]
Adam Stachowicz (saibamenppl@gmail.com)
- Fix mIRC version number in Rapps

See issue #5999 for more details.

svn path=/trunk/; revision=51044
2011-03-13 22:00:28 +00:00
Colin Finck
4bcca728f3 Michael Martin
- Fix "EnableUserModePnpManager() failed!" in second stage setup.

Tested by Eric Kohl and igorko.
See issue #5989 for more details.

svn path=/trunk/; revision=51043
2011-03-13 21:55:49 +00:00
Roel Messiant
b16c59e50e [WDMAUD.DRV]
- Correct function declaration of WdmAudOpenSoundDeviceByLegacy and remove a duplicate (wut..).  Should fix build.

svn path=/trunk/; revision=51042
2011-03-13 21:28:51 +00:00
Roel Messiant
9009dd37ad [DLL]
- Change () to (VOID) in function declarators. Part 4/XX.

svn path=/trunk/; revision=51041
2011-03-13 20:56:27 +00:00
Colin Finck
03c991f93b Revert r51031
[13:43]	<smiley1_>	fuck
[13:44]	<smiley1_>	INVALID_KERNEL_HANDLE ?!?
[13:45]	<smiley1_>	Caemyr: after my latest commit 5 tests end with this bugcheck

svn path=/branches/ros-branch-0_3_13/; revision=51040
2011-03-13 18:05:43 +00:00
Roel Messiant
338d63e19c [BASE]
- Change () to (VOID) in function declarators. Part 3/XX.

svn path=/trunk/; revision=51039
2011-03-13 17:59:02 +00:00
Colin Finck
9cccfb8a2d Get rid of the "old boot method" entries.
In contrast to my previous commit, this should indeed be merged to Trunk, but please don't forget to get rid of the corresponding FreeLDR code as well then.

svn path=/branches/ros-branch-0_3_13/; revision=51038
2011-03-13 17:54:42 +00:00
Colin Finck
d2eb058174 - Change the version to 0.3.13
- Set "Angelus_02_ROSWP.bmp" as the default wallpaper
- Add a shortcut to RApps to the Desktop
- Change the boot logo to update the copyright year. Done with GIMP this time as it was one of the few tools to create proper 4-bit RLE files.
  This logo shall not be merged back to Trunk, because Aleksey wants to have another bitmap ready by the next release.

svn path=/branches/ros-branch-0_3_13/; revision=51037
2011-03-13 17:49:31 +00:00
Colin Finck
d99032f362 [RAPPS]
Rafal Harabien (rafalh1992@o2.pl)
- Fix links and descriptions in the Rapps database, also update some application versions

I took the last patch in the bug report and applied the changes to remood.txt manually (due to mixed encoding within the same file).
See issue #5999 for more details.

svn path=/trunk/; revision=51034
2011-03-13 12:49:37 +00:00
Colin Finck
4956af0dbc [RAPPS]
Fix a bug while testing Rapps under Windows. If you had an application with no registered DisplayName installed, Rapps used to consider every application with no RegName in its database (= currently all Rapps applications) installed. Therefore the list of available applications has always been empty.
Now an application is always added to the ListView if no RegName is set for it.

svn path=/trunk/; revision=51033
2011-03-13 12:44:58 +00:00
Pierre Schweitzer
2ad9ba56bd [RAPPS]
Fix french translation file encoding

svn path=/trunk/; revision=51032
2011-03-13 12:10:41 +00:00
Giannis Adamopoulos
d1a2f235a3 [win32]
- Rafal Harabien:
- Always call IntKeyboardInput and co_MsqPostKeyboardMessage while holding the user lock
- Simplify cleaning up sent messages
See issue #5580 for more details.

svn path=/trunk/; revision=51031
2011-03-13 11:22:18 +00:00
Pierre Schweitzer
58b9a229c5 [RAPPS]
French translation by Jason Toscano <JasonGenie at gmail dot com>
Corrections/adjustements by me
See issue #5993 for more details.

svn path=/trunk/; revision=51030
2011-03-13 10:43:38 +00:00
Aleksey Bragin
18e63b0a1e [USER32]
- Rafal Harabien: Add some missing bitmaps to user32. They are copied from Wine. Change "old" cursors identifiers to defines from winuser.h (OCR_*).
See issue #6000 for more details.

svn path=/trunk/; revision=51029
2011-03-13 09:56:01 +00:00
Roel Messiant
dca21c3ce8 [FTP]
- FTP has been a really, really naughty app.. Fix up function prototypes and definitions after () -> (void) change.
  Fixes build.. if I'm lucky.

svn path=/trunk/; revision=51028
2011-03-12 23:39:18 +00:00
Roel Messiant
bd9d264de3 [APPLICATIONS]
- Change all C function prototype declarations with an empty argument list to use void, or the list specified in the function definition.
  According to the C language specification, such a declaration means "no information about the number or types of the parameters is supplied".
  This can expose cases where gcc allows us to pass an excessive amount of arguments to functions in certain cases.
  Thanks to Thomas Faber for informing us about this.

svn path=/trunk/; revision=51027
2011-03-12 19:03:27 +00:00
Amine Khaldi
f51eb1ce60 [DDK]
Fix ioaccess.h svn properties. Spotted by Jonathan Yong.

svn path=/trunk/; revision=51026
2011-03-12 15:50:58 +00:00
Pierre Schweitzer
dc102df1d6 [NTOSKRNL]
Revert r51017 that was reverting r51016.
In fact, it seems that cmlib assert error, whatever that eats randomly doesn't come from software issue inside ReactOS, but from a build issue.
Indeed, as you may see in the different tests I performed it shows that the same build produces the same failure, again and again. But, new build shows that there is no assert anylonger with that commit.
Don't ask me why or how it happens, I just don't get it.
But most of the time, it works, no one knows why ("as usual" (tm)). But it's cool.

Someone from BE team and/or buildslaves managers should take a serious look at this issue.

Just in case: if that commit re-hits cmlib assert, don't blame it immediatly, just commit something else, and see whether trunk is still broken.
But, as you can see in testman, we have now test results for r51016 ;-)

svn path=/trunk/; revision=51025
2011-03-12 12:56:36 +00:00
Pierre Schweitzer
57664d7105 [EXPLORER]
Make fix of r51022 compiler independant, on Johannes' suggestion.

svn path=/trunk/; revision=51024
2011-03-12 11:53:55 +00:00
Giannis Adamopoulos
a6812ef2e2 [win32k]
-In WH_KEYBOARD hook, lparam isn't a pointer to KBDLLHOOKSTRUCT
See issue #5991 for more details.

svn path=/trunk/; revision=51023
2011-03-12 11:08:06 +00:00
Pierre Schweitzer
df00c74675 [EXPLORER]
Fix array access out of bounds.
See issue #5990 for more details

svn path=/trunk/; revision=51022
2011-03-12 08:23:05 +00:00
James Tabor
47dde244bd [Win32k]
- Move the drag detection routine to kernel space, this will decrease the number of kernel calls that is noticeable with slower systems running an emulator.

svn path=/trunk/; revision=51021
2011-03-12 01:29:08 +00:00
Eric Kohl
f33b16a71d [SETUPAPI]
Implement CM_Register_Device_Driver[_Ex].

svn path=/trunk/; revision=51020
2011-03-11 18:58:23 +00:00
Jérôme Gardou
0cc06c7b45 [OPENGL32]
- use well defined macro instead of weird pointer calculation
  - reset thread specific data on a thread detach call
Fixes crash in heroes 3 and probably others

svn path=/trunk/; revision=51019
2011-03-11 18:17:34 +00:00
Jérôme Gardou
1f0f4f62b0 [GDI32_APITEST]
- Test Rectangle function.
Don't laugh, ROS fails those tests and fixing this breaks the GUI.

svn path=/trunk/; revision=51018
2011-03-11 15:32:54 +00:00
Pierre Schweitzer
b6ee921ee6 [NTOSKRNL]
Revert r51016 that quite magically breaks Qemu test bot (Registry corruption?).
Everything was (and is still fine) on VirtualBox.
It will be put back online once the issue will have been fixed.

svn path=/trunk/; revision=51017
2011-03-11 15:17:59 +00:00
Pierre Schweitzer
c4d0b3e36b [NTOSKRNL]
Add most of the missing HAL stubs for both public & private dispatch tables

svn path=/trunk/; revision=51016
2011-03-11 13:16:16 +00:00
Pierre Schweitzer
7161edbfe7 [NDK]
pHalAllocateMapRegisters type functions are to return NTSTATUS and not BOOLEAN

svn path=/trunk/; revision=51015
2011-03-11 13:00:20 +00:00
Jérôme Gardou
fd5a3bdc63 [GDI32]
- allocate sufficient buffer when creating a DIBSECTION compatible bitmap.
Fixes bug 5822

svn path=/trunk/; revision=51014
2011-03-11 10:33:03 +00:00
Aleksey Bragin
1e2dd5d5d2 [NOTEPAD]
- Edijs: Zero initialize the caption string.
See issue #5992 for more details.

svn path=/trunk/; revision=51013
2011-03-10 22:07:56 +00:00
Pierre Schweitzer
81f9d934ff [NTOSKRNL]
Implemented FstubTranslatorNull, FstubTranslateResource, FstubTranslateRequirement, xHalGetInterruptTranslator.
In other words: please welcome interrupt translator in ReactOS.
It's not used yet.

svn path=/trunk/; revision=51012
2011-03-10 21:02:21 +00:00
Ged Murphy
8afa712c7a FatCreateCcb has no params.
Fixes building on msvc

svn path=/trunk/; revision=51011
2011-03-10 15:37:51 +00:00
Johannes Anderwald
65635497f6 [MSAFD]
- Fix bug introduced in 51007

svn path=/trunk/; revision=51010
2011-03-10 14:07:55 +00:00
James Tabor
ebe3986eb9 [GDI32]
- Protect SetDIBitsToDevice with seh and track it. This is for vbrun60spXX. Code fix ups and cleanup.

svn path=/trunk/; revision=51009
2011-03-10 13:45:09 +00:00
James Tabor
729ce068d8 [Win32k]
- Fix an uncovered bug. This should fix coolplayer and winamp type applications. Does not fix drawing issues.

svn path=/trunk/; revision=51008
2011-03-10 13:09:56 +00:00
Johannes Anderwald
a2453433f1 [MSAFD]
- Correct calculating PollBufferSize
- Found by DPH

svn path=/trunk/; revision=51007
2011-03-10 12:41:50 +00:00
Michael Martin
092d6ca92e [syssetup]
- EnableUserModePnpManager:  StartServiceW can fail due to the service already running. Check last error for such a case. Should fix bug #5846.

svn path=/trunk/; revision=51006
2011-03-10 10:36:49 +00:00
Timo Kreuzer
2bbd8711a7 [WIN32K]
- Fix calculation of dest rect in IntSetDIBits
- Rewrite NtGdiStretchDIBitsInternal. It now calls NtGdiSetDIBitsToDeviceInternal in case of SRCCOPY and no stretching and NtGdiCreateDIBitmapInternal + IntEngStretchBlt in the default case. This fixes RLE compressed dibs.
- The code isn't yet perfect, Windows behaviour is pretty complex, especially in regard to topdown/bottomup DIBs and the whole code needs to be rewritten. It will cause one more failed bitmap test, but another one that was formerly only passing with legacy 9x behaviour now behaves correctly.

See issue #5886 for more details.

svn path=/trunk/; revision=51005
2011-03-09 15:46:13 +00:00
Timo Kreuzer
775a83cdf4 [win32csr]
Fix zero termination of harderror string parameters, when they are ansi.

See issue #5983 for more details.

svn path=/trunk/; revision=51004
2011-03-09 15:31:25 +00:00
Timo Kreuzer
031e55222a [CRT]
Patch by Thomas Faber: Fix nt version of mbstowcs.

See issue #5983 for more details.

svn path=/trunk/; revision=51003
2011-03-09 15:29:13 +00:00
Pierre Schweitzer
c6d8f7de70 [NTOSKRNL]
Implemented FstubFixupEfiPartition():
Purpose is to let ReactOS handle realistic partitions length in case of an EFI/GPT protective MBR.
Indeed, when formatting a disk to GPT, you add a protective MBR that contains a fake partition entry, with type 0xEE having the following property: its size is set to maximum allocatable size in MBR.
In that case, if disk is small, you may go beyond disk size.
This is why a fix to partition length may be needed when re-reading partition entry.
This is the way ReactOS creates protective MBR.
You may find some more information here: http://msdn.microsoft.com/en-us/windows/hardware/gg463525

Fixed xHalIoReadPartitionTable():
- Allocate a buffer that has the proper size (instead of allocating a buffer which is too big). Especially since this leads to partial init only some lines after.
- Remove redundant & useless affectation.
- Check/fix 0xEE partition length in case of an EFI/GPT protective MBR (see upper point).

svn path=/trunk/; revision=51002
2011-03-09 10:33:13 +00:00
Sylvain Petreolle
b2832e17fc [ROSTESTS]
Properly skip bitmap and outline tests in gdi32_winetest:font.

svn path=/trunk/; revision=51001
2011-03-08 11:30:14 +00:00
Timo Kreuzer
ccd17d40ec [WIN32K]
Fix a warning about an uninitialized variable :D

svn path=/trunk/; revision=51000
2011-03-07 22:14:14 +00:00
Timo Kreuzer
38e6b4b424 [WIN32K]
Fix IntCreateCompatibleBitmap, previously when the given DC was a memory DC with a dibsection selected, the function would only work if the dibsection was <= 8 bpp.

svn path=/trunk/; revision=50999
2011-03-07 22:06:23 +00:00
Timo Kreuzer
d089825a9f [WIN32K]
clip the destination rect against the bounds of the destination and source surface. Fixes a crash of gdi32_winetest bitmap that occurs as soon as IntCreateCompatibleBitmap is fixed. Other Eng* code needs to be checked as well.

svn path=/trunk/; revision=50998
2011-03-07 22:00:19 +00:00
Timo Kreuzer
8daf17a4e8 [WIN32K]
Update all brushes in DC_vPrepareDCsForBlit. This allows us to simplify the code elsewhere.

svn path=/trunk/; revision=50997
2011-03-07 21:55:17 +00:00
Jérôme Gardou
f9ac17b332 [NTOSKRNL]
- Beatify cpu supported features output once and for all
DPRINT1 is not printf...

svn path=/trunk/; revision=50996
2011-03-07 20:39:33 +00:00
Pierre Schweitzer
ff0651e441 [FASTFAT]
Do not set file attributes in case they are set to 0 or -1

svn path=/trunk/; revision=50995
2011-03-07 20:28:42 +00:00
Eric Kohl
69b1f9091e [SERVICES]
Leave the critical section when the allocation of the control packet fails.

Bug spotted by hzlilx.

svn path=/trunk/; revision=50994
2011-03-07 20:25:28 +00:00
Jérôme Gardou
f7049d7fb7 [NTOSKRNL]
- shrink cpu features output.
  - Add reference for the detection of non SYSENTER aware but claiming so CPUs detection

svn path=/trunk/; revision=50993
2011-03-07 18:45:11 +00:00
Aleksey Bragin
ba43b429b9 [NTOS/FSRTL]
- Remove unnecessary upcasing, thanks Pierre.

svn path=/trunk/; revision=50992
2011-03-07 13:51:46 +00:00
Jérôme Gardou
acd7f5a3da [NTOSKRNL]
- Print supported CPU features.
  - Simplify detection of non working but claimed SYSENTER support for intel processors
  - Workaround a virtualbox "feature" : claim that SYSENTER isn't supported despite the fact that it is.
Fix hang on registration of mshtml.dll in 2nd stage when using Virtualbox.

svn path=/trunk/; revision=50991
2011-03-07 13:33:10 +00:00
Eric Kohl
527622e72f [SETUPAPI]
Implement CM_Query_Arbitrator_Free_Data[_Ex] and CM_Query_Arbitrator_Free_Size[_Ex].

svn path=/trunk/; revision=50990
2011-03-07 12:01:17 +00:00
Timo Kreuzer
3491d67b48 [WIN32K]
Use GreCreateBitmapEx instead of EngCreateBitmap in NtGdiSetDIBitsToDeviceInternal, so that the RLE hack works. Fix initialization of XLATEOBJ.

svn path=/trunk/; revision=50989
2011-03-07 10:00:27 +00:00
Timo Kreuzer
4ed72ce5b7 [WIN32K]
Fix the RLE hack (partly)

svn path=/trunk/; revision=50988
2011-03-07 09:53:03 +00:00
James Tabor
b84b85e485 [GDI32]
- Remove the old SetDIBBits, it severed us well.... Hold on to the win32k call.
- Tested, Area.exe, wine gdi32 bitmaps test, AbiWord 2.8.6, OOo 2.4.3, SM 2.0.11 and ReactOS applications.
- Aimp 2.61.583 (FULL, pinted okay), CoolPlayer 219, winamp 0.98d and winamp 2.95 (not FUll). The rest have drawing issue with DIB. See bug 5886.

svn path=/trunk/; revision=50987
2011-03-07 07:24:43 +00:00
James Tabor
d53444e50b [Win32k]
- Fix a crash in WidenPath, tested with Area.exe.

svn path=/trunk/; revision=50986
2011-03-07 06:24:38 +00:00
Aleksey Bragin
a393a04761 [UNIATA]
- Rafal Harabien: Sync UniATA to 0.40a5. Changelog:
* Fixed bug with BSOD on newer SATA/AHCI Intel chips. 
* Added support for different number of devices on different channls.
* Updated AHCI support code (not ready yet).
* All ReactOS specific changes have been left.
See issue #5976 for more details.

svn path=/trunk/; revision=50985
2011-03-06 16:32:36 +00:00
Eric Kohl
f7af2d5aad Fix PNP_QueryArbitratorFreeData() and PNP_QueryArbitratorFreeSize() prototypes.
svn path=/trunk/; revision=50984
2011-03-06 14:15:41 +00:00
Pierre Schweitzer
a815fa86d2 [KERNEL32]
Fixed implementation of both GetFileTime/SetFileTime

svn path=/trunk/; revision=50983
2011-03-06 13:28:11 +00:00
Aleksey Bragin
fd989b27e9 - Fix a typo, thanks Herve!
svn path=/trunk/; revision=50982
2011-03-06 11:16:22 +00:00
Aleksey Bragin
e996625659 [NTOS/FSRTL]
- Implement parameters checking in FsRtlIsNameInExpressionPrivate.
- Add two shortcuts for common wildcard invocations to make the function faster.
- Second (main part of the function) is still under review.

svn path=/trunk/; revision=50981
2011-03-06 11:00:17 +00:00
Pierre Schweitzer
91bdfab1bd [KERNEL32]
FlushFileBuffers:
- In spite of what MSDN pretends, it appears that FlushFileBuffers flushes console input buffer when it's called with a console handle. Then, do it here as well.
- Get rid of SetLastErrorByStatus here...

svn path=/trunk/; revision=50980
2011-03-06 10:28:50 +00:00
Pierre Schweitzer
5696898543 [KERNEL32]
Apply consistent formatting to FlushFileBuffers.
No code changes yet

svn path=/trunk/; revision=50979
2011-03-06 10:20:32 +00:00
Roel Messiant
6b1af86bde [HEAP]
- RtlpInsertUnCommittedPages: Don't rely on linked list data in an UCR Descriptor after destroying it.
  No functionality change because the linked list data was still "as expected", but not something we want to rely on.
- RtlpCreateUnCommittedRange: Fix a typo that caused the head of UCR Segment list of the Heap to be treated as an UCR Segment header.
  Side effects of the typo: When this list wasn't empty, the (fake) UCR Segment it described was grown to contain more UCR descriptors.
  Due to the data involved, this always happened to be the initial Heap Segment, which contains the Heap Header.
  Writing the new UCR descriptors caused the Heap Header and trailing Heap Entries to be partially corrupted.

svn path=/trunk/; revision=50978
2011-03-06 00:37:10 +00:00
Eric Kohl
7b3c204407 [SERVICES]
- Use one instead of two critical sections to synchronize service start and control actions.
- Fail, if an already running service is started again.

svn path=/trunk/; revision=50977
2011-03-05 18:37:39 +00:00
Dmitry Chapyshev
d529634650 - Update Ukraianian translation by Sakara Eugene
svn path=/trunk/; revision=50976
2011-03-05 18:02:56 +00:00
Eric Kohl
55f58f967c [SETUPAPI]
Implement CM_Get_Device_Interface_List[_Ex]A/W and CM_Get_Device_Interface_List_Size[_Ex]A/W.

svn path=/trunk/; revision=50975
2011-03-05 16:54:08 +00:00
Jérôme Gardou
545fca44dc [EXPLORER-NEW]
- Allow displaying seconds in tray upon registry setting
Patch by Edijs Kolesnikovics

svn path=/trunk/; revision=50974
2011-03-05 16:45:09 +00:00
Jérôme Gardou
43f10841e0 [OPENGL32]
- Naive try to fix bug 5057

svn path=/trunk/; revision=50973
2011-03-05 16:23:30 +00:00
Timo Kreuzer
31ebce8a90 [WIN32K]
Unlock the font in PATH_ExtTextOut. Fixes a failed assertion, when running google earth.

svn path=/trunk/; revision=50972
2011-03-05 12:18:28 +00:00
Timo Kreuzer
a2d0ce8261 [WIN32K]
Silence a DPRINT

svn path=/trunk/; revision=50971
2011-03-05 12:17:23 +00:00
Timo Kreuzer
9aa651bf4e [WIN32K]
add dumping of locked handles to missing places.

svn path=/trunk/; revision=50970
2011-03-05 11:13:45 +00:00
Timo Kreuzer
a528924f3b [WIN32K]
Add A function to dump all locked handles and call it when an assertion about 0 locks fails.

svn path=/trunk/; revision=50969
2011-03-05 10:21:07 +00:00
Aleksey Bragin
85f0fb63f3 [USETUP]
- Fix a buffer overflow (overread) when adding a locale key to the registry. The history of this bug is funny:
1. Eric wrote the code, which sets a key of REG_SZ type, as 4 widechars plus terminating zero, but passes 8 as the bytesize of the buffer. It's not fully correct (a terminating zero is absent from the bytesize of the buffer, but MSDN doesn't specify if it should be added or not, and hardcoding "8" is not the best idea too) but not dramatic. That was revision 9596, 7 years ago.
2. Lentin notices something is not right in this code, and decides to "fix" it by multiplying that same hardcoded value by.... guess what? sizeof(PWCHAR)! That is, size of a pointer, which on an x86 would be 4 bytes. Massive out of bounds access obviously happens. That was revision 31642, 3 years ago.
3. Very soon Colin reshuffles and improves the code based on patch #2635, however the problem still goes unnoticed (r31655+).
See issue #5810 for more details.

svn path=/trunk/; revision=50968
2011-03-04 18:18:05 +00:00
Aleksey Bragin
2bf17fadd1 - Revert 47615. Please fix actual sysreg instead of adding inconsistency between 1st, 2nd and 3rd stages debugging connections. This should fix sysreg3's inability to do backtraces.
See issue #5811 for more details.

svn path=/trunk/; revision=50967
2011-03-04 16:57:56 +00:00
Jérôme Gardou
ab803f82ce [RTL]
- Fix compilation when NDEBUG is not defined

svn path=/trunk/; revision=50966
2011-03-04 03:42:38 +00:00
Timo Kreuzer
54010b7e9e [USER32_APITEST]
Add a cursor and an icon and use those instead of system cursor. Fixes tests on Windows.

svn path=/trunk/; revision=50965
2011-03-03 21:49:44 +00:00
Johannes Anderwald
aa66728228 [SHELL32]
- Return the icon index, not the icon id
- Fixes bug 5742

svn path=/trunk/; revision=50964
2011-03-03 21:22:47 +00:00
Eric Kohl
303a449b35 [SETUPAPI]
Implement CM_Register_Device_Interface[_Ex]A/W and CM_Unregister_Device_Interface[_Ex]A/W.

svn path=/trunk/; revision=50963
2011-03-03 19:53:26 +00:00
James Tabor
3bec896bc6 [Win32k]
- Missed the clearing of the clip region for the window at the end of of its life. The mouse is looking for the window, doing so, scanning through all of them, even the ones that are at deaths door.


svn path=/trunk/; revision=50962
2011-03-03 17:32:20 +00:00
James Tabor
1fd7d93b5d [Win32k]
- Fix the select of the clip region for a window. Apologies to Rafal Harabien select works like select, also don't
assume the original author is always right.



svn path=/trunk/; revision=50961
2011-03-03 13:59:17 +00:00
Timo Kreuzer
dba4ecb162 [WIN32K]
Acquire ownership of monitor region before deleting it.

svn path=/trunk/; revision=50960
2011-03-02 23:02:12 +00:00
Timo Kreuzer
7110c88cc0 [WIN32K]
Revert part of r50941. First its architecturally unclean to lock a DC in a USER function, 2nd its a bug to keep the lock while sending a message.

svn path=/trunk/; revision=50959
2011-03-02 22:33:14 +00:00
Pierre Schweitzer
8de09facc2 [FASTFAT]
- Prevent code duplication by using vfatAttachFCBToFileObject() for volume opening, instead of rewritting the whole function.
- Properly check requested disposition when opening a volume.
This fixes bug #5839. Trying to exec \\.\C: in explorer run dialog now ends with an error, as it does on Windows.

svn path=/trunk/; revision=50958
2011-03-02 21:51:33 +00:00
Timo Kreuzer
2edb1c468c [SHELL32]
patch by Thomas Faber: fix a TRACE

svn path=/trunk/; revision=50957
2011-03-02 13:33:19 +00:00
Timo Kreuzer
3d476667b6 [USER32]
Patch by Thomas Faber:
When the Edit receives WM_KILLFOCUS, it will notify its parent (the ListView)
of losing focus, which in turn will send WM_CLOSE to destroy the edit control.
This will cause the edit to receive WM_DESTROY and free the EDITSTATE.
When control returns to the WM_KILLFOCUS handler, this would call
EDIT_UnlockBuffer on the now invalid EDITSTATE.
Fix this by checking the validity of the EDITSTATE before calling EDIT_UnlockBuffer.
Fixes explorer crash, when cancelling file renaming.
See issue #5895 for more details.

svn path=/trunk/; revision=50956
2011-03-02 13:23:13 +00:00
Timo Kreuzer
e12dbcd77d [USER32]
Sync edit.c with wine head.

svn path=/trunk/; revision=50955
2011-03-02 13:13:10 +00:00
Aleksey Bragin
97d2212a19 [RTL/PATH]
- Update path.c code to Wine 1.3.14. Fixes a buffer overwrite happening in RtlDosSearchPath_U() when invoked by "shell32_winetest.exe shlexec".
- RtlDosPathNameToNtPathName_U remains unsynced.
- Author names added to the header of the file.
See issue #5964 for more details.

svn path=/trunk/; revision=50954
2011-03-02 11:42:30 +00:00
Timo Kreuzer
92654a7e4e [USER32]
Go back to use of SetWindowLongW instead of GetWindowLongPtrW for GWL_STYLE to reduce diff to wine code.

svn path=/trunk/; revision=50953
2011-03-02 11:05:51 +00:00
Timo Kreuzer
8b1f0d1966 [USER32]
Revert a previous change that shouldn't have been comitted yet.

svn path=/trunk/; revision=50952
2011-03-02 10:57:56 +00:00
Timo Kreuzer
e5134f6b7b [FORMATTING]
user32/edit.c: Sync formatting changes from wine head, removes some unneccessary casts, no code actual change.

svn path=/trunk/; revision=50951
2011-03-02 10:55:07 +00:00
Jérôme Gardou
8be61c1a29 [GDI32_APITESTS]
- Test behaviour of SetDIBits for 1bpp bitmaps.
  - Add small test to GetPixel just to verify that SetDIBits doesn't say BS.

svn path=/trunk/; revision=50950
2011-03-02 01:15:10 +00:00
Jérôme Gardou
5e5532d3ef [WIN32K]
- in 1bpp bitmaps, 0 means white. Take that into in SetDIBits
  - fix a fixme in XLATEOBJ implementation
  - remove useless field from ROS_DCINFO
Fixes fox audio player GUI :-) Enjoy!

svn path=/trunk/; revision=50949
2011-03-02 00:15:57 +00:00
Jérôme Gardou
c77754b87d [WIN32K]
- only lock DC if asked to in NtGdiSetDIBits.

svn path=/trunk/; revision=50948
2011-03-01 21:45:45 +00:00
Jérôme Gardou
d5954abbf2 [[GDI32_APITEST]
- actually make a test, with == instead of =, relevant bits sets, good test value, etc.

svn path=/trunk/; revision=50947
2011-03-01 21:32:58 +00:00
Jérôme Gardou
a5115608c9 [GDI32_APITEST]
- add a basic test for SetDIBits

svn path=/trunk/; revision=50946
2011-03-01 20:50:47 +00:00
Jérôme Gardou
1a7f618d3b [WIN32K]
- Dismiss alpha channel when creating a solid brush.
Finally fixes VLC icons and numerous winetests.

svn path=/trunk/; revision=50945
2011-03-01 14:44:53 +00:00
Timo Kreuzer
788c6760f7 [WIN32K]
Silence some DPRINTS

svn path=/trunk/; revision=50944
2011-03-01 13:27:19 +00:00
Timo Kreuzer
a53926e3bf [USER32_APITEST]
Patch by Thomas Faber: some tests for GetMessage and PeekMessage

svn path=/trunk/; revision=50943
2011-03-01 12:05:39 +00:00
Timo Kreuzer
dedaab13ab [WIN32K]
Do raster operation on 4 bytes instead of only 3. Fixes ...
maybe noone has noticed yet ;-)

svn path=/trunk/; revision=50942
2011-03-01 09:17:58 +00:00
Jérôme Gardou
1ea8829ec1 [WIN32K]
- Raster operations in user mode are on higher bytes, whereas they are on lower bytes for drivers. Try to clarify this situation.
  - Add sanity check about what was said previously.
  - Implement masking in EngBitBlt
  - Rewrite NtGdiMaskBlt accordingly
  - Realize the palette when selecting it into a device DC.
  - When applying raster operation, do so only on 24 bits, we don't support alpha channel in win32k
This fixes VLC pink icons, Timo's MaskBlt tests and probably a lot of other things.
[SHELL32]
  - Use correct (?) raster operations for drawing sjortcuts.
Also note that now NtGdiMaskBlt locks the device contexts : this should avoid some race conditions, such as icons drawn on top of windows and the like.
Win32k sucks less.
So does reactos.
Dedicated to Timo. Sleep well, mate.

svn path=/trunk/; revision=50941
2011-03-01 01:03:58 +00:00
Jérôme Gardou
56cfac043d [FORMATTING]
fix dibobj.c, to please pigglesworth

svn path=/trunk/; revision=50940
2011-02-28 23:46:02 +00:00
Jérôme Gardou
5896730829 [FORMATTING]
fix formatting. No code change

svn path=/trunk/; revision=50939
2011-02-28 23:29:36 +00:00
Timo Kreuzer
962c0688f5 [GDI32_APITEST]
Fix a bug

svn path=/trunk/; revision=50938
2011-02-28 20:04:10 +00:00
Timo Kreuzer
e9b7bf6df2 [GDI32_APITEST]
More tests for MaskBlt

svn path=/trunk/; revision=50937
2011-02-28 18:01:12 +00:00
James Tabor
edda07b8ac [Win32k|User32]
- Use User32 GetWindowRgnBox, still passing both wine msg SetWindowRgn and win winregion tests, see bug 5959.

svn path=/trunk/; revision=50936
2011-02-28 16:45:57 +00:00
Kamil Hornicek
9fb8200d9b [WIN32K]
Fix calculating of ScanLines and source point in NtGdiGetDIBitsInternal for top-down bitmaps to more closely mimic win xp behavior. (Timo - high five for your test app)
See issue #5524 for more details.

svn path=/trunk/; revision=50935
2011-02-28 12:47:01 +00:00
James Tabor
c6182beb15 [Win32k|User32]
- Use User32 GetWindowRgnBox, still passing both wine msg SetWindowRgn and win winregion tests, see bug 5959.

svn path=/trunk/; revision=50934
2011-02-28 09:10:43 +00:00
James Tabor
823118e08a [Win32k|User32]
- Clarify the meaning and the use of 0, 1 and 2 for user window regions, wine never did. Noticing patches not corresponding in correctness and understanding, leaving potential crashes in the DCE code, which depend on these types.
- Patch based on Rafal Harabien patch, fixes wine msg SetWindowRgn test, see also bug 5959.

svn path=/trunk/; revision=50933
2011-02-28 06:31:44 +00:00
Timo Kreuzer
efd76a4a9c [WIN32K]
addendum to r50928: 24 and 32bpp BI_RGB bitmaps are BGR

svn path=/trunk/; revision=50932
2011-02-28 00:48:19 +00:00
Timo Kreuzer
04e49a00e3 [GDI32]
Revert r50519 and r50519

svn path=/trunk/; revision=50931
2011-02-28 00:19:32 +00:00
Aleksey Bragin
62de69219a [SERVICES]
- Protect whole contents of ScmStartService() with a critical section instead of just a few parts of ScmStartUserModeService(). Seems to fix the comment #8 issue of bug #5924.

svn path=/trunk/; revision=50930
2011-02-27 23:07:04 +00:00
Timo Kreuzer
27b33c3045 [GDI32_APITEST]
More testcases for SelectObject and GetDIBits

svn path=/trunk/; revision=50929
2011-02-27 22:00:13 +00:00
Jérôme Gardou
5de8339cd1 [WIN32K]
- remove duplicate prototype
  - use RGB macro where possible
  - we create BGR palette for RGB DIB sections, let's do the other way around
  - simplify overcomplicated IntGetDIBColorTable
  - Add a first implementation of IntRealizePalette
No, it's not the VLC icons bugfix

svn path=/trunk/; revision=50928
2011-02-27 21:45:43 +00:00
Aleksey Bragin
ccebf72731 [RTL/HEAP]
- A few comments, and a new structure definition (currently unused). Absolutely no changes to the actual code.

svn path=/trunk/; revision=50927
2011-02-27 19:36:46 +00:00
Eric Kohl
a328e318a1 [SERVICES]
Protect the service start and sending of control packages by critical sections. This way, services will be started one by one and control packages will also be sent one by one.

Please test if this fixes bug #5924.

svn path=/trunk/; revision=50926
2011-02-27 19:25:14 +00:00
Aleksey Bragin
061ec721f9 - Promote service start failures from TRACE to ERR.
See issue #5924 for more details.

svn path=/trunk/; revision=50925
2011-02-27 19:09:45 +00:00
Timo Kreuzer
69d9838266 [NTOSKRNL]
Fix aborting of backtraces

svn path=/trunk/; revision=50924
2011-02-27 19:03:12 +00:00
Christoph von Wittich
5e0cafbbda [imagehlp]
-partial winesync

svn path=/trunk/; revision=50923
2011-02-27 18:49:27 +00:00
Christoph von Wittich
2f6bcbb66c [imagehlp_winetest]
-add imagehlp_winetest

svn path=/trunk/; revision=50922
2011-02-27 18:30:50 +00:00
Timo Kreuzer
736733be4d [WIN32K]
- mark surface as not selected in DC_vSelectSurface when its released from a DC
NtGdiSelectBitmap: 
- Don't allow selecting a bitmap into a dc that is already selected!
- Use DC_vSelectSurface instead of manually selecting
- set the DC size based on bitmap size

svn path=/trunk/; revision=50921
2011-02-27 17:51:37 +00:00
Timo Kreuzer
760940d0bd [WIN32K]
- In NtGdiGetDIBitsInternal use a shared lock for the bitmaps and provide background colors when initializing the XLATEOBJ. This fixes mono bitmaps passed to GetDIBits. (no it does not fix pink icons in VLC)
- In BuildDIBPalette don't handle 15bpp, its not valid. and 16 bpp is 555, this is documented in MSDN.

svn path=/trunk/; revision=50920
2011-02-27 17:38:18 +00:00
Timo Kreuzer
eb7b3a6e70 Fix build
svn path=/trunk/; revision=50919
2011-02-27 17:31:54 +00:00
Timo Kreuzer
6c10c052af [GDI32]
In GetDIBits convert a BITMAPCOREHEADER to a BITMAPINFOHEADER before calling win32k, like done in other places. Convert it back after. This allows to simplify NtGdiGetDIBitsInternal (not done yet)

svn path=/trunk/; revision=50918
2011-02-27 17:20:02 +00:00
Timo Kreuzer
3a61fab955 [NTOSKRNL]
Fix a serious bug, where NtAllocateVirtualMemory could allocate memory user mode memory above MmHighestUserAddress up to MmSystemRangeStart - 1, which is a no-access area.

svn path=/trunk/; revision=50917
2011-02-27 15:16:00 +00:00
Eric Kohl
d3b52209a4 [URLCACHE]
Do not initialize the URL-Cache for a system process.
Patch will be submitted to WINE.
See issue #5372 for more details.

svn path=/trunk/; revision=50916
2011-02-26 22:23:03 +00:00
Eric Kohl
66feb11cfe [SETUPAPI]
Rename functions according to the new naming scheme:
  CaptureAndConvertAnsiArg --> pSetupCaptureAndConvertAnsiArg
  CenterWindowRelativeToParent --> pSetupCenterWindowRelativeToParent
  ConcatenatePaths --> pSetupConcatenatePaths
  DuplicateString --> pSetupDuplicateString
  EnablePrivilege --> pSetupEnablePrivilege
  GetVersionInfoFromImage --> pSetupGetVersionInfoFromImage
  IsUserAdmin --> pSetupIsUserAdmin
  MultiByteToUnicode --> pSetupMultiByteToUnicode
  MyGetFileTitle --> pSetupGetFileTitle
  OpenAndMapForRead --> pSetupOpenAndMapForRead
  RegistryDelnode --> pSetupRegistryDelnode
  UnicodeToMultiByte --> pSetupUnicodeToMultiByte
  UnmapAndCloseFile --> pSetupUnmapAndCloseFile

svn path=/trunk/; revision=50915
2011-02-26 21:40:17 +00:00
Hervé Poussineau
38a3cf6ee4 [ntoskrnl] Fix compilation with _WINKD_=1
svn path=/trunk/; revision=50914
2011-02-26 20:00:08 +00:00
Pierre Schweitzer
f154358da9 [KERNEL32]
Start unifying kernel32 Find* functions.
All calls end in same methods that are working only in unicode now.

Next step would be to unify stream & files using only one struct.

svn path=/trunk/; revision=50913
2011-02-26 17:18:21 +00:00
Aleksey Bragin
90f36847bc [KERNEL32]
- Fix buffer overwrite in GetModuleFileName(). Spotted by DPH.
See issue #5964 for more details.

svn path=/trunk/; revision=50912
2011-02-26 16:50:20 +00:00
Amine Khaldi
2119a3b309 [ROSTESTS]
- Skip test_apm to prevent the oleaut_winetest:olepicture crash.
See issue #5000 for more details.

svn path=/trunk/; revision=50911
2011-02-26 14:27:09 +00:00
Aleksey Bragin
ac81886915 [NTDLL/LDR]
- Don't try to free a pointer allocated on stack.
See issue #4751 for more details.

svn path=/trunk/; revision=50910
2011-02-26 14:12:55 +00:00
Pierre Schweitzer
49516d9545 [USRMGR]
Fix build
Blame rbuild ~

svn path=/trunk/; revision=50909
2011-02-26 13:49:00 +00:00
Aleksey Bragin
b49f53a6a5 - Don't free an invalid handle. Suggested by Johannes. Test failure remains in the log, so it's easy to spot the function misbehaves.
- P.S. Not much of an issue if it's lost during the next tests sync, as it would be a clearly visible change.
See issue #5771 for more details.

svn path=/trunk/; revision=50908
2011-02-26 13:31:58 +00:00
Pierre Schweitzer
c1dc1d5ef0 [KERNEL32]
Remove unused .def file. We're using .pspec here

svn path=/trunk/; revision=50907
2011-02-26 13:26:02 +00:00
Pierre Schweitzer
363e880789 [USRMGR]
French translation by Jason Toscano <JasonGenie at gmail dot com>
Corrections/adjustements by me
See issue #5921 for more details.

svn path=/trunk/; revision=50906
2011-02-26 13:12:36 +00:00
Sylvain Petreolle
75d6f0438b [ROSTESTS]
Bug 5778:
Disable part of rpcrt4:rpc test,
it needs unimplemented functionality in current rpcrt4 version.

svn path=/trunk/; revision=50905
2011-02-25 23:34:52 +00:00
Pierre Schweitzer
d6f4155e39 [NTOSKNRL]
For both FsRtlIsNameInExpression() & FsRtlIsDbcsInExpression():
As both UNICODE_STRING & ANSI_STRING might not be NULL-termined, don't attempt to read null char.
This fixes potential buffer overruns.
Then it fixes some (all?) 'TempPte.u.Long != 0' assertion failure.
See issue #5923 for more details.

svn path=/trunk/; revision=50904
2011-02-25 20:15:51 +00:00
Timo Kreuzer
cd34e7ee1e [WININET]
Revert part of r47411. The revision was a wine sync, but no wine code was reverted, only the use of zlib is disabled. Fixes downloading audiograbber with rapps.
See issue #5663 for more details.

svn path=/trunk/; revision=50903
2011-02-25 18:44:20 +00:00
Timo Kreuzer
25a9c6fb49 [WIN32K]
- In BITMAP_CopyBitmap, also "copy" the palette of the source bitmap, instead of assuming the one created by GreCreateBitmapEx matches the bitmap bits we have copied.
Fixes broken colors on the firefox firstrun page
See issue #5902 for more details.

svn path=/trunk/; revision=50902
2011-02-25 17:37:25 +00:00
Sylvain Petreolle
0fcd8261f2 [ROSTESTS]
Bug 5957
Disable test_shell_window() in user32:win test.

Allow to run previously disabled tests in WINE_INTERACTIVE mode.

svn path=/trunk/; revision=50901
2011-02-25 16:21:04 +00:00
Johannes Anderwald
666446bfaa [WDMAUD.DRV]
- Check if the provided waveformat is at least size of WAVEFORMAT
- Compute extra details such as the size or wBitsPerSample from the provided members
- Backup i/o completion handle before commiting the audio buffer as the struct might have already been released
- Fixes playback of mmsys cpl 
- Found by DPH!

svn path=/trunk/; revision=50900
2011-02-25 16:00:26 +00:00
Johannes Anderwald
9f699ffaca [SHELL32]
- Check the correct pidl instead of the free one
- Found by the amazing DPH!

svn path=/trunk/; revision=50899
2011-02-25 15:11:51 +00:00
Aleksey Bragin
66707243f0 [RTL/DPH]
- Fix wrong pointer comparison in RtlpDebugPageHeapFree(). Should check for NULL pointer freeing, instead of checking for NULL heap pointer.

svn path=/trunk/; revision=50898
2011-02-25 14:13:10 +00:00
Johannes Anderwald
c50e27e4bf [MMEBUDDY]
- Store the internal state if an audio stream has been stopped
- Construct a thread when WODM_RESTART is received. This thread then triggers performs a callback to the wave thread, which finally restarts playback
- Only start the wave thread when playback is active (not paused by WODM_PAUSE)
- Fixes playback in Winamp 5.601 despite graphical issues
- Tested in Vbox 4.0 + 512MB RAM + Winamp 5.601

svn path=/trunk/; revision=50897
2011-02-25 14:10:31 +00:00
Timo Kreuzer
e1d7a14438 [[WIN32K]
Fix biCompression filed in the DIBSECTION structure, returned by BITMAP_GetObject. Fixes K-Meleon toobar. Kudos for the fix go to Rafał Harabień. 

See issue #5940 for more details.

svn path=/trunk/; revision=50896
2011-02-25 00:01:35 +00:00
Aleksey Bragin
5b6ab375ee [SECUR32]
- Don't leave packageinfo uninitialized. Even though it's not the way it should work, wine's rpcrt4 doesn't really expect that function to return no packages at all. Should prevent freeing an unitialized pointer.
See issue #5778 for more details.

svn path=/trunk/; revision=50895
2011-02-24 22:50:00 +00:00
Johannes Anderwald
753b99d8a5 [WDMAUD.DRV]
- Set wave in pins into run state
- Fixes hang of ReactOS sndrec32, though it crashes then instantly. Needs more investigation

svn path=/trunk/; revision=50894
2011-02-24 14:38:16 +00:00
Timo Kreuzer
d7df20df47 [WIN32K]
Fix possible lock leak in failure case of NtGdiSetBoundsRect. Fixes a failed assertion spotted by r3ddr4g0n.

svn path=/trunk/; revision=50893
2011-02-24 14:18:55 +00:00
Aleksey Bragin
8383b6b33d [RTL/DPH]
- Implement ValidateHeap API for DPH. Fixes attempts to validate DPH as a normal heap.

svn path=/trunk/; revision=50892
2011-02-24 12:59:52 +00:00
Aleksey Bragin
098228ac32 [PING]
- Add Ukrainian translation by Eugene Sakara.

svn path=/trunk/; revision=50891
2011-02-24 12:35:44 +00:00
Timo Kreuzer
ec00eda9bf [COMCTL32]
- Fix include order of resources.
- remove comctl_Cn.rc, it contains and outdated simplified chineese translation, that wine has in comctl_Zh.rc

svn path=/trunk/; revision=50890
2011-02-24 12:34:59 +00:00
Aleksey Bragin
947127151c [RTL/DPH]
- Implement user flags/values and HeapSize APIs in debug page heap (nearly the same code in all three functions). With these done, DPH core features are complete. Some debugging is still needed.

svn path=/trunk/; revision=50888
2011-02-24 09:40:07 +00:00
Amine Khaldi
353147d2cc [COMCTL32]
- Sync with wine 1.3.14

svn path=/trunk/; revision=50887
2011-02-24 01:27:57 +00:00
Amine Khaldi
011bdfc3b5 [PSDK]
- Improve some definitions.

svn path=/trunk/; revision=50886
2011-02-24 01:26:34 +00:00
Timo Kreuzer
4c4c630bf3 [WIN32K]
Patch by Rafał Harabień :
- don't transform cordinates twice in GreExtTextOutW
- Fixes AbiWord toolbar

See issue #4811 for more details.

svn path=/trunk/; revision=50885
2011-02-24 00:48:01 +00:00
Aleksey Bragin
55300c6ce0 [NTDLL/LDR]
- DPH could be selectively enabled for a specific application by means of Image File Execution options. Commit a rewrite of LdrQueryImageFileExecution* APIs based on a quite old patch by Alex Ionescu along with my fixes.
- This is a forced measure to commit first step of an ntdll/ldr rewrite. This particular commit should not introduce any regressions, because previously that code part just barely worked.

svn path=/trunk/; revision=50884
2011-02-23 22:38:55 +00:00
Amine Khaldi
c16c4ace2b [PSDK]
- Improve commctrl.h
[CRT]
- Update _mingw_mac.h from mingw-w64 and add _mingw_unicode.h

svn path=/trunk/; revision=50883
2011-02-23 21:26:18 +00:00
Timo Kreuzer
7066852438 [USER32]
Patch by Rafał Harabień :
- remove a hack in DrawMenuBar

See issue #5949 for more details.

svn path=/trunk/; revision=50882
2011-02-23 19:21:33 +00:00
Timo Kreuzer
ab7f1c1255 [WIN32K]
Patch by Rafał Harabień :
- Create a new region covering the full desktop in UserRedrawDesktop instead of using Window->hrgnUpdate. Fixes "IntGdiCombineRgn requires hSrc2  != NULL" messages and redrawing issues on mode change.
See issue #5949 for more details.

svn path=/trunk/; revision=50881
2011-02-23 19:10:42 +00:00
Timo Kreuzer
b0e397de26 [WIN32K]
Small readability improvement.

svn path=/trunk/; revision=50880
2011-02-23 18:51:57 +00:00
Timo Kreuzer
d88c6cc49d [WIN32K]
add code to register pre/post systemcall hooks. Its #if 0'ed to avoid unneccessary overhead. Can be enabled for debugging puposes.

svn path=/trunk/; revision=50879
2011-02-23 18:46:02 +00:00
Johannes Anderwald
9c7dc2437e - Fix build
svn path=/trunk/; revision=50878
2011-02-23 17:15:13 +00:00
Johannes Anderwald
dfeb7b0d1c [PORTCLS]
- Re-add the hack for gcc

svn path=/trunk/; revision=50877
2011-02-23 15:14:12 +00:00
Giannis Adamopoulos
39c815467b [kernel32]
- Add some debug prints
- Fix some cases where we didn't check for the return value of CsrAllocateCaptureBuffer

svn path=/trunk/; revision=50876
2011-02-23 14:24:57 +00:00
Pierre Schweitzer
54e7b58e77 [NTOSKRNL]
Apply r50873 on FsRtlIsNameInExpression()

svn path=/trunk/; revision=50875
2011-02-23 12:09:07 +00:00
Pierre Schweitzer
ba16b2f1ee [NTOSKRNL]
Reverted changes commited to largemcb.c
They weren't intended to be commited

svn path=/trunk/; revision=50874
2011-02-23 12:08:16 +00:00
Pierre Schweitzer
d56de922f2 [NTOSKRNL]
One-line fix for FsRtlIs*InExpression(). This fixes failing tests, but not overrun.
Added some breaks to reach more quickly the end

svn path=/trunk/; revision=50873
2011-02-23 12:04:08 +00:00
Aleksey Bragin
e5d92f833a [RTL/DPH]
- Implement DPH version of ReAllocateHeap. Scenario of falling back to normal heap is stubbed everywhere now.
- Fix a bug in POINTER_ADD_BIAS which noone noticed.

svn path=/trunk/; revision=50872
2011-02-23 11:08:37 +00:00
Johannes Anderwald
2b1aa66672 [MPLAY32]
- Hackfix playback

See issue #5867 for more details.

svn path=/trunk/; revision=50871
2011-02-23 10:32:56 +00:00
Pierre Schweitzer
d0b18829cd [KMTEST]
Adding more tests for FsRtlIs*InExpression() functions.
All are failing (overrun / wrong result).
Based on Thomas Faber's C program.
See bug #5923

svn path=/trunk/; revision=50870
2011-02-23 10:20:23 +00:00
Pierre Schweitzer
41ee0f405e [KERNEL32]
Don't make CopyFileExA() rely on Wine's strings conversions functions

svn path=/trunk/; revision=50869
2011-02-22 19:07:45 +00:00
Pierre Schweitzer
8dc411563b [KERNEL32]
Don't make FindFirstChangeNotificationA() rely on Wine's strings conversions functions

svn path=/trunk/; revision=50868
2011-02-22 18:56:46 +00:00
Pierre Schweitzer
f617d8910c [KERNEL32]
Don't make GetBinaryTypeA() rely on Wine's strings conversions functions

svn path=/trunk/; revision=50867
2011-02-22 18:43:38 +00:00
Timo Kreuzer
e9b58620aa [CRT]
Fix special behaviour of wsprintf: when used with # flag, the "0x" prefix does not count into the field width, so we have to add additional 2 characters here. Fixes Opera installer.
See issue #5900 for more details.

svn path=/trunk/; revision=50866
2011-02-22 17:29:32 +00:00
Timo Kreuzer
75e685f7ef [NOTEPAD]
Patch by EDIJS <terminedijs at yahoo dot com>: Improve window caption string.
By me: use StringCchCat instead of _tcscat to prevent possible buffer overruns.

See issue #5871 for more details.

svn path=/trunk/; revision=50864
2011-02-22 09:59:49 +00:00
Daniel Reimer
899ae979f5 Update rapps database.
svn path=/trunk/; revision=50862
2011-02-21 23:26:03 +00:00
Timo Kreuzer
39a0c140c2 [CRT]
Improve _getdrive and _tchdir. Patch by devpao (devotip at tiscali dot it), small formatting change by me.
See issue #5848 for more details.

svn path=/trunk/; revision=50861
2011-02-21 23:11:53 +00:00
Aleksey Bragin
e9af1d723f [RTL/DPH]
- Implement heap free operation using already implemented busy/free/available/unused lists support and other base routines.
- Implement missing place to free list and remove from busy list routines.
- Implement find busy block routine (using AVL tree).
- Fix a bug in RtlpDphCoalesceNodeIntoAvailable() which resulted in unwanted attempt to merge the only node with itself (which failed anyway).
- Fix a bug in RtlpDphCoalesceNodeIntoAvailable() which incorrectly removed a node from available list (which is implemented as a standard NT double-linked list, compared to unused and free lists which are implemented as single-linked custom lists and busy list which is an AVL tree). Result of that bug was an infinite loop at the next attempt to traverse the list of available nodes.
- In RtlpDphCoalesceFreeIntoAvailable() break when FreeAllocations becomes less than LeaveOnFreeList (before it would break 1 size too early).
- Fix list traversal in RtlpDphSearchAvailableMemoryListForBestFit(). If it couldn't find a node, it would return the last node in the list instead of NULL.
- In RtlpDphFindAvailableMemory(), a new smaller size should be 4 times smaller, not just 2. 
- Add a #if0-ed section in RtlpDphRemoveFromAvailableList which checks if a request to remove node not in the list performed. Used only for debugging.
- Add a trace dprint to every type of list insert/removal operation for easier tracking.
- Add break on NULL ptr freeing support.
- RtlpDphSetProtectionAfterUse() is stubbed and protection is set directly in RtlpDphHeapFree(). To be moved into this function.

svn path=/trunk/; revision=50860
2011-02-21 22:42:21 +00:00
Timo Kreuzer
77aa443412 [USER32]
Fix a typo. Fixes "Calling invalid routine number 0x10 in NtUserCallOneParam()"

svn path=/trunk/; revision=50858
2011-02-21 20:55:45 +00:00
Aleksey Bragin
70fcc31092 [RTL/AVL]
- Zero out contents of a newly allocated AVL table node.

svn path=/trunk/; revision=50855
2011-02-21 13:33:13 +00:00
Amine Khaldi
45efecf8e0 [RTL]
- Silence this dprint. It's flooding the debug log.

svn path=/trunk/; revision=50854
2011-02-21 09:12:43 +00:00
James Tabor
5d30cb38c3 [Win32k]
- Fix crash with win wine test. Win test works on my tree here and hardware as well.

svn path=/trunk/; revision=50853
2011-02-21 09:01:07 +00:00
Pierre Schweitzer
168de1f20c [KERNEL32]
Forgotten changes to .pspec.
Why is there still a .def?

svn path=/trunk/; revision=50852
2011-02-21 07:23:18 +00:00
Johannes Anderwald
38242931f1 [MMEBUDDY]
- Check if there is a reset request in progress while the wave thread is active. In that case exit the wave buffer commiting activity
- In the reset routine, perform an alertable wait in order to make the apc io completion complete
[PORTCLS]
- Only perform copying audio bytes to dma buffer while the adapter is reset state is KSREST_END
- Set the reset state indicator before canceling the audio buffers
- Should fix the audio hang experienced in Winamp when skipping audio bytes

svn path=/trunk/; revision=50851
2011-02-21 04:22:45 +00:00
Johannes Anderwald
80cc7f2ee8 [PORTCLS]
- Remove the oldest hack in portcls
- Please report any regression(s)

svn path=/trunk/; revision=50850
2011-02-20 23:01:14 +00:00
Pierre Schweitzer
397fb380b3 [KERNEL32]
Don't mix tab index and memory length...
This fixes several bugs in GetTempFileNameW() and prevents memory corruption ~
Winetest regression is gone :)

svn path=/trunk/; revision=50849
2011-02-20 22:57:31 +00:00
Timo Kreuzer
98eeb0943d [HAL]
Patch by Rafal Harabien, <rafalh1992 AT o2 DOT pl>:
- Fix Port numbers and ranges in HalpDefaultIoSpace (divide by 0x100)
By me:
- Fix DMA 1 port range and fix comment

See issue #5925 for more details.

svn path=/trunk/; revision=50848
2011-02-20 22:30:50 +00:00
James Tabor
6e2693dad2 [Win32k|User32]
- WM_MDICREATE originates from user space so treat it as it should, fixes bug 5903.

svn path=/trunk/; revision=50847
2011-02-20 22:20:51 +00:00
James Tabor
1e0e0dd6be [Win32k]
- Restore original patch 50154.

svn path=/trunk/; revision=50846
2011-02-20 22:20:42 +00:00
James Tabor
231588606c [Win32k]
- Remove unused class list pointer and clear the class registered flag.

svn path=/trunk/; revision=50845
2011-02-20 22:20:23 +00:00
Eric Kohl
30810893ad [SETUPAPI]
- Add 'pSetup'-Prefix to the string table functions according to the new naming convention.
- Remove the obsolete function StringTableTrim.

svn path=/trunk/; revision=50844
2011-02-20 22:13:59 +00:00
Pierre Schweitzer
225933083b [WIN32CSR]
Silence CsrGetTempFile() debug

svn path=/trunk/; revision=50843
2011-02-20 21:47:41 +00:00
Pierre Schweitzer
e3a5544d25 [CONSOLE]
French translation by Jason Toscano <JasonGenie@gmail.com>
Corrections/adjustements by me

svn path=/trunk/; revision=50842
2011-02-20 21:40:04 +00:00
Pierre Schweitzer
f012532999 [RUNONCE]
Fixed a typo in french translation

svn path=/trunk/; revision=50841
2011-02-20 21:22:53 +00:00
Eric Kohl
5b4f2417fb [SETUPAPI]
Implement CM_Query_And_Remove_SubTree[_Ex]A/W and CM_Request_Device_Eject[_Ex]A/W.

svn path=/trunk/; revision=50840
2011-02-20 20:52:52 +00:00
Pierre Schweitzer
bd3cef98c1 [KERNEL32]
- Get rid of Wine's implementation of GetTempFileNameA/W and reimplement them in the Windows 2003 way.
This fixes bug #5481

svn path=/trunk/; revision=50839
2011-02-20 19:49:02 +00:00
Pierre Schweitzer
6b74e9a992 [KERNEL32]
- Get rid of old function Basep8BitStringToLiveUnicodeString() that doesn't exist under Windows, and that was even unused
- Rename Basep8BitStringToHeapUnicodeString() to Basep8BitStringToDynamicUnicodeString() and fix its implementation (and all the calls)
- Define BasepUnicodeStringTo8BitString()

svn path=/trunk/; revision=50838
2011-02-20 19:40:15 +00:00
Pierre Schweitzer
cbfa1e3dbb [KERNEL32]
Properly implement GetLastError and export it.

svn path=/trunk/; revision=50837
2011-02-20 19:33:45 +00:00
Pierre Schweitzer
35587944a0 [RTL]
- Fixed RtlMultiByteToUnicodeN & RtlAnsiCharToUnicodeChar prototype
- Added missing paged code marker to RtlAnsiCharToUnicodeChar
- Added a small hack to RtlAnsiCharToUnicodeChar. Indeed, when it's called during second stage, it's failing due to missing NLS table.
Probably usetup that doesn't define a registry entry. And then, FreeLdr just passes null pointer.

svn path=/trunk/; revision=50836
2011-02-20 19:28:34 +00:00
Pierre Schweitzer
43a5ab1712 [WIN32CSR]
Add a new API GetTempFile() that returns an identifier to be used for creating temporary files.
This API should be in basesrv.dll

svn path=/trunk/; revision=50835
2011-02-20 19:23:46 +00:00
Johannes Anderwald
f59aa17010 [USETUP]
- Get rid of indirection
See issue #5190 for more details.

svn path=/trunk/; revision=50834
2011-02-20 16:50:38 +00:00
Johannes Anderwald
759dd145d1 - Add french translation for runonce utility
- Add svn:eol-style native property
- Fix language id (SUBLANG_DEFAULT -> SUBLANG_NEUTRAL)
See issue #5918 for more details.

svn path=/trunk/; revision=50833
2011-02-20 16:32:21 +00:00
Timo Kreuzer
6e366de8b6 [KERNEL32]
64 bit compatibility fix for IsWow64Process. Patch by Thomas Faber <thfabba at gmx dot de>

svn path=/trunk/; revision=50832
2011-02-20 12:07:28 +00:00
Timo Kreuzer
6da719aa66 [NTOSKRNL]
Halfplement (win32 only) ProcessWow64Information case in NtQueryInformationProcess. Patch by Samuel Serapion.

See issue #5916 for more details.

svn path=/trunk/; revision=50831
2011-02-20 11:27:07 +00:00
Timo Kreuzer
c5e43261f2 [CHARMAP]
Patch by Carlo Bramini (carlo bramix at libero dot it)
- Make the text copy field a richedit control.
- Use WM_CHAR to copy the characters
- Fix definition of MSFTEDIT_CLASS for the resource compiler

See issue #5275 for more details.

svn path=/trunk/; revision=50830
2011-02-20 10:55:48 +00:00
Eric Kohl
f411e07b42 [SETUPAPI]
Implement CM_Get_Hardware_Profile_Info[_Ex]A/W.

svn path=/trunk/; revision=50829
2011-02-20 10:44:30 +00:00
Aleksey Bragin
37ab9f5320 [RTL/DPH]
- Fix a bug with node count in RtlpDphAddNewPool().
- Unprotect needed amount of memory in RtlpDphSetProtectionBeforeUse() instead of always assuming PAGE_SIZE.
- Fix an incorrect virtual block pointer calculation in RtlpPageHeapAllocate(). 
- Silence RtlpDphShouldAllocateInPageHeap() debug print.
- Add helpful debug prints (disabled by default).
- Some code cleanup for better readibility.
- Heap create, destroy and allocating a block from the heap work now.

svn path=/trunk/; revision=50828
2011-02-20 09:54:01 +00:00
Timo Kreuzer
ebc9df1a25 [WIN32K]
NtGdiSelectBitmap. Don't exclusively lock the old bitmap. This could cause pool corruptions, when the share count reachted 0, the object was deleted and unlocked after that. Use InterlockedCompareExchange to check and exchange the new bitmaps dc. This is commented out, because it causes a lot of drawing problems. Do the referencing manually instead of calling DC_vSelectSurface. Use a shared reference instead of an exclusive lock for the new bitmap. add code for proper handling of DEFAULT_BITMAP, currently hacked due to restrictions in other parts of win32k. Fixes bug 5498 and probably a lot of other problems.

svn path=/trunk/; revision=50827
2011-02-19 23:44:36 +00:00
Timo Kreuzer
3e75942b10 [WIN32K]
NtGdiStretchDIBitsInternal: don't call NtGdiGetDCObject and NtGdiCreateCompatibleDC with a dc locked. These cases are not harmful, but generally Nt* and Gre* should never be called with an exclusive gdi lock held. Also don't return in failure case with the dc still locked.

svn path=/trunk/; revision=50826
2011-02-19 22:29:31 +00:00
Timo Kreuzer
ebf22c9469 [WIN32K]
- add tracing of exclusive gdi locks
- add some asserts

svn path=/trunk/; revision=50825
2011-02-19 22:03:34 +00:00
Timo Kreuzer
dc29559c25 [WIN32K]
- Add ros specific member cExclusiveLocks to THREADINFO to track number of acquired locks
- Add functions/macros to check lock count
- Move some definitions into gdidebug.h for global use
- Fix broken GdiDbgHTIntegrityCheck
- Add pre and post syscall hook functions (unused yet)

svn path=/trunk/; revision=50824
2011-02-19 21:56:43 +00:00
Timo Kreuzer
ea5522e1d8 [NTOSKRNL]
Add support for debug pre/post syscall hooks, that can be registered from win32k. They only exist on DBG versions.

svn path=/trunk/; revision=50823
2011-02-19 21:50:11 +00:00
Amine Khaldi
7d2277a1ea [EVENTVWR]
- Fix handling of NULL lpComputerName.
- Handle lpData conversion to a wide string and make sure it's NULL terminated.
- Patch by Rafal Harabien, <rafalh1992 AT o2 DOT pl>
See issue #5926 for more details.

svn path=/trunk/; revision=50822
2011-02-19 21:24:47 +00:00
Sylvain Petreolle
3eb47ac17d [NTOSKRNL]
Fix typo.

svn path=/trunk/; revision=50821
2011-02-19 18:43:54 +00:00
Eric Kohl
d0515abbea [SETUPAPI]
- Implement CM_Get_Device_Interface_AliasA, CM_Get_Device_Interface_AliasW and 
CM_Get_Device_Interface_Alias_ExW.
- Add a stub for CM_Get_Device_Interface_Alias_ExA.
- Implement the obsolete functions CM_Query_Remove_SubTree[_Ex] and CM_Remove_SubTree[_Ex].

svn path=/trunk/; revision=50820
2011-02-19 18:28:13 +00:00
Johannes Anderwald
634966f644 - Revert 49767 on Pierre's request, which reverted this:
- Added real implementation of SetLastError() (instead of forwarding to NTDLL)
- Implemented BaseSetLastNTError()
- Renamed Basep8BitStringToCachedUnicodeString() to Basep8BitStringToStaticUnicodeString() and sightly changed its implementation
- Fixed implementation of LoadLibraryExA() & DisableThreadLibraryCalls() using those changes
This is matching w2k3 implementation. This is of course a WIP.

svn path=/trunk/; revision=50819
2011-02-19 17:00:08 +00:00
Giannis Adamopoulos
4638bf943c [win32k]
- Fix combobox to show the drop down window correctly when the parent window is topmost
See issue #5705 for more details.

svn path=/trunk/; revision=50818
2011-02-19 16:09:59 +00:00
Pierre Schweitzer
2352ea6662 [NTOSKRNL]
- No need to use ULONG when dealing with strings, USHORT is enough. This makes MSVC warnings silent.
- Fix a really nasty bug in FsRtlIsHpfsDbcsLegal()

svn path=/trunk/; revision=50817
2011-02-19 13:58:55 +00:00
Giannis Adamopoulos
5d2a7901f7 [win32k]
- Revert r50121 and r50154

svn path=/trunk/; revision=50816
2011-02-19 12:22:52 +00:00
Amine Khaldi
6d4a648fe6 Fix a typo.
svn path=/trunk/; revision=50815
2011-02-19 10:20:27 +00:00
Giannis Adamopoulos
dc663b0be2 - Remove a documented definition from undocuser.h
svn path=/trunk/; revision=50814
2011-02-18 20:26:19 +00:00
Giannis Adamopoulos
c7b9d6f0df [user32/win32k]
- Implement MessageBeep and SetLogonNotifyWindow

[winlogon]
- Implement receiving notifications from win32k to play sounds of MessageBeep

svn path=/trunk/; revision=50813
2011-02-18 20:16:43 +00:00
Giannis Adamopoulos
bc92849c38 [win32k]
- Fix a bug that caused problems when the user clicks in the caption of a window to activate it

svn path=/trunk/; revision=50807
2011-02-18 16:28:52 +00:00
Timo Kreuzer
dda9fb952c [NTOSKRNL]
Alex messed up.
Fix by Patch by Rafal Harabien, <rafalh1992 AT o2 DOT pl>

svn path=/trunk/; revision=50806
2011-02-18 15:59:32 +00:00
Timo Kreuzer
5e45b1eb7a [WIN32K]
Fix a bug in GDIOBJ_LockObj, that would cause a deadlock, when an object was deleted while another thread was waiting to acquire the handle lock.

svn path=/trunk/; revision=50804
2011-02-18 15:08:50 +00:00
Timo Kreuzer
269bbf1328 [CSRSRV]
Dereference all threads, when a process is terminated. Fixes ghost processes in taskmgr! Patch by Rafal Harabien, <rafalh1992 AT o2 DOT pl>

See issue #1567 for more details.

svn path=/trunk/; revision=50803
2011-02-18 15:01:00 +00:00
Aleksey Bragin
da4ba71aee [RTL/DPH]
- Zero-initialize VM allocation base.
- Don't reserve VM, just commit it right away. This was a premature optimisation. Instead, retry committing a smaller amount of memory if committing all memory fails.

svn path=/trunk/; revision=50800
2011-02-18 14:45:13 +00:00
Timo Kreuzer
b58bdd0a99 [WIN32K]
compile gdidebug code as a seperate file and give it a seperate header

svn path=/trunk/; revision=50799
2011-02-18 14:35:44 +00:00
Giannis Adamopoulos
a33a1f21db [explorer]
- Fix some visual problems in the toolbar

svn path=/trunk/; revision=50798
2011-02-18 14:28:58 +00:00
Giannis Adamopoulos
20ec135208 [win32k]
- Check if CombinedClip is NULL before accesing it

Should fix a crash with Download Master

svn path=/trunk/; revision=50797
2011-02-18 14:26:11 +00:00
Aleksey Bragin
6e305f0615 [RTL/AVL]
- Fix an inverted condition which resulted in incorrect assignment of NewElement var in RtlInsertElementGenericTableAvl().

svn path=/trunk/; revision=50784
2011-02-18 09:48:13 +00:00
Aleksey Bragin
708dbb878c [RTL/DPH]
- Various fixes: set NodeToAllocate member of the heap root so it could be used lated in AVL allocation routine, initialize the AvailableAllocation list.
- Comment out biased pointer checks for now, and fix biasing the AdjacencyEntry pointer (spotted by rafalh).

svn path=/trunk/; revision=50773
2011-02-17 22:29:49 +00:00
Aleksey Bragin
02ad384a40 [NTOS/MM]
- An accompanying change to r50768. Fixes boot.

svn path=/trunk/; revision=50770
2011-02-17 21:58:08 +00:00
Aleksey Bragin
85e4bbe4f5 [RTL/AVL]
- Remove unnecessary field from TABLE_ENTRY_HEADER. Spotted by (the only in ReactOS?) user of RTL AVL tables - page heap.

svn path=/trunk/; revision=50768
2011-02-17 16:52:06 +00:00
Aleksey Bragin
f333f561b4 - Fix build.
svn path=/trunk/; revision=50767
2011-02-17 15:31:19 +00:00
Aleksey Bragin
9d4ba43f0b [RTL/DPH]
- Implement allocating from the page heap along with all necessary helper routines. Some minor things are left though, so it doesn't work yet.
- Change some defines names to more meaningful/readable.

svn path=/trunk/; revision=50766
2011-02-17 14:46:30 +00:00
Timo Kreuzer
bc8d008551 [WIN32K]
In IntEngGradientFillRect, take the translate value into account, that we need when drawing happens on an intermediate surface. Patch by Thomas Faber (ThFabba at gmx dot de)

See issue #5805 for more details.

svn path=/trunk/; revision=50764
2011-02-16 23:29:50 +00:00
Aleksey Bragin
8e49b79826 [RTL/DPH]
- Connect debug page heap routines in the debug heap implementation, so they are going to be actually called now.
- Implement delayed free queue initialization and freeing.

svn path=/trunk/; revision=50734
2011-02-16 13:09:18 +00:00
Aleksey Bragin
ef2d957db7 [RTL/DPH]
- Use better names for validation information flags based on application verifier messages.
- Implement a simple RtlpDphReportCorruptedBlock routine which just prints the problem description for now, without any additional info.

svn path=/trunk/; revision=50730
2011-02-16 11:49:51 +00:00
Aleksey Bragin
d0e56f53d1 [RTL/DPH]
- Implement other support locking/unlocking, handle-related routines.
- Fix RtlpDphFreeVm definition.
- Node lists related improvements: Add a function for removing a node from a free list, implement coalescing free nodes into an available list.
- Implement a non-implemented case in RtlpDphAllocateNode when there is a need to allocate more virtual memory, and fix incorrect size calculation too.
- Implement a function for validating the page heap block.
- Implement RtlpPageHeapDestroy. Now we have two exported APIs ready: heap create and heap destroy.

svn path=/trunk/; revision=50721
2011-02-15 22:02:28 +00:00
Aleksey Bragin
a92739091b [RTL/DPH]
- Implement more support functions: coalescing a node into the list of available nodes, finding a best fitting node for a given size, growing available virtual memory amount.

svn path=/trunk/; revision=50698
2011-02-15 11:53:16 +00:00
Timo Kreuzer
0be0719111 [WIN32K]
- Remove gexloTrivial, it was never used
- Remove EXLATEOBJ_vInitTrivial and move the code into EXLATEOBJ_vInitialize
- Properly set XO_TABLE
- Set ppalDstDc in EXLATEOBJ_vInitXlateFromDCs

svn path=/trunk/; revision=50695
2011-02-14 17:23:58 +00:00
Timo Kreuzer
c1f1c6ee41 [WIN32K]
Fix initialization of XLATEOBJ, when source and dest format are equal. Patch by Thomas Faber (thfabba at gmx de)

See issue #5828 for more details.

svn path=/trunk/; revision=50694
2011-02-14 16:04:01 +00:00
Aleksey Bragin
f571cf32bd [RTL/DPH]
- Implement list manipulation routines: pool list, virtual list, unused list.
- Implement node removal from an available list.

svn path=/trunk/; revision=50686
2011-02-13 21:39:26 +00:00
Pierre Schweitzer
2ac5519cc7 [NTOSKRNL]
Improved * WC handling for both FsRtlIsNameInExpression & FsRtlIsDbcsInExpression

This fixes all failing tests in kmtest

svn path=/trunk/; revision=50685
2011-02-13 20:23:03 +00:00
Aleksey Bragin
b607fcee93 [RTL/DPH]
- Implement adding a new pool and allocating a new node.
- Add a bunch of stubs.

svn path=/trunk/; revision=50683
2011-02-13 16:03:58 +00:00
Eric Kohl
bdb4931234 [CFGMGR32]
- Add missing functions.
- Add forwarders to functions that are exported by setupapi.dll.
- Mark deprecated functions.

svn path=/trunk/; revision=50682
2011-02-13 10:02:31 +00:00
Pierre Schweitzer
506c3a2989 [KMTEST]
Some more tests to FsRtlIsNameInExpression & FsRtlIsDbcsInExpression. Some are failing.

svn path=/trunk/; revision=50681
2011-02-13 09:43:01 +00:00
Pierre Schweitzer
d4e44f51ea [NTOSKRNL]
For both FsRtlIsNameInExpression & FsRtlIsDbcsInExpression:
- Get back "useless checks" (tests show they weren't that useless)
- Prevent code redundancy

This fixes 4 failing kmtest tests added in r50679

svn path=/trunk/; revision=50680
2011-02-13 08:43:48 +00:00
Pierre Schweitzer
05ec891399 [KMTEST]
Some more tests to FsRtlIsNameInExpression & FsRtlIsDbcsInExpression. Some are failing.

svn path=/trunk/; revision=50679
2011-02-13 08:19:16 +00:00
Eric Kohl
856e0d9b91 [SETUPAPI]
Add resource descriptor function stubs.

svn path=/trunk/; revision=50678
2011-02-12 23:59:12 +00:00
Pierre Schweitzer
90ece09e2c Remove some artifact from ARM build.
Would it fix build?

svn path=/trunk/; revision=50677
2011-02-12 20:32:49 +00:00
Timo Kreuzer
f1debffcda [WIN32K]
Handle BITMAPV4HEADER and BITMAPV5HEADER, when creating a DIB palette. Detect PAL_RGB like done with PAL_BGR in PALETTE_AllocPalette (optimization).
Fixes pink icons.

svn path=/trunk/; revision=50676
2011-02-12 20:30:09 +00:00
Eric Kohl
f0395ac74a [ADVAPI32]
Move file encryption functions from crypt/crypt.c to misc/efs.c.

svn path=/trunk/; revision=50675
2011-02-12 20:23:16 +00:00
Johannes Anderwald
db2351ec56 - Fix a bug where a spinlock was acquired on not initialized local variable
svn path=/trunk/; revision=50673
2011-02-12 18:55:52 +00:00
Pierre Schweitzer
641cb1f0f0 [NTOSKRNL]
For both FsRtlIsNameInExpression & FsRtlIsDbcsInExpression:
- Remove useless checks
- Move redundant sum before loop, so it's done only once
- Fix handling of * wildcard

This fixes failing kmtest tests added in r50614

svn path=/trunk/; revision=50670
2011-02-12 18:39:17 +00:00
Johannes Anderwald
334455fcf0 - Revert 45676
- It appears that the definitions for IID_IUnknown differ for kernel mode COM and user mode COM

svn path=/trunk/; revision=50669
2011-02-12 17:40:51 +00:00
Timo Kreuzer
14dadc9591 [COMCTL32]
Fix bitmap resources. They were not very valid. Windows didn't even load them. Probably created with some linux tool *cough*
Fixes part of the broken icons. Not the pink ones though.

svn path=/trunk/; revision=50668
2011-02-12 16:55:08 +00:00
Aleksey Bragin
04bef099e6 [RTL/DPH]
- Add core DPH (Debug Page Heap) structures based on Windows 2003/Vista.
- Add misc generic support routines.
- Implement DPH version of RtlCreateHeap().
- Debug prints match those printed by Windows 2003.

svn path=/trunk/; revision=50667
2011-02-12 16:38:00 +00:00
Aleksey Bragin
6dddb1823b [NDK]
- Add RTL_TRACE_BLOCK structure definition.

svn path=/trunk/; revision=50665
2011-02-12 09:28:41 +00:00
Timo Kreuzer
eaf8e05a46 [NTDLL_APITEST]
some printf tests

svn path=/trunk/; revision=50663
2011-02-11 21:22:18 +00:00
Timo Kreuzer
1fdb5b918f try to fix build
svn path=/trunk/; revision=50662
2011-02-11 18:05:48 +00:00
Timo Kreuzer
8ce4c3ffdb Add missing stubs.h
svn path=/trunk/; revision=50661
2011-02-11 17:41:05 +00:00
Timo Kreuzer
f45c49b9d3 add stub files to build
svn path=/trunk/; revision=50659
2011-02-11 17:27:43 +00:00
Timo Kreuzer
2c1be143a4 merge most spec file changes from cmake branch
svn path=/trunk/; revision=50657
2011-02-11 17:01:40 +00:00
Amine Khaldi
57e4ff4b2b Reduce difference with the cmake branch, mostly msvc and amd64 fixes.
svn path=/trunk/; revision=50656
2011-02-11 13:48:41 +00:00
Timo Kreuzer
dca0c91ecc [FREELDR]
Fix broken release version

svn path=/trunk/; revision=50655
2011-02-10 20:26:41 +00:00
Aleksey Bragin
92677eb087 - Add stubs for all page heap API functions.
- Enable call to RtlpPageHeapDestroy() when necessary.
- Reset Parameters==-1 hack after unsuccessful call to RtlpPageHeapCreate(), would be necessary when page heap is implemented..

svn path=/trunk/; revision=50654
2011-02-10 18:21:53 +00:00
Amine Khaldi
54917c852b [XCOPY]
- Spanish translation by JasonGenie at gmail dot com
See issue #5889 for more details.

svn path=/trunk/; revision=50653
2011-02-10 17:13:53 +00:00
Aleksey Bragin
bd7f92508e [RTL]
- Move page heap related code to heappage.c.

svn path=/trunk/; revision=50652
2011-02-10 13:24:39 +00:00
Timo Kreuzer
b8cf5f8653 Merge MSVC fixes from cmake branch
svn path=/trunk/; revision=50650
2011-02-10 13:01:39 +00:00
Timo Kreuzer
0d149baf29 [RTL]
Merge changes to rtl from cmake branch. Mostly use portable interlocked functions

svn path=/trunk/; revision=50648
2011-02-10 11:47:17 +00:00
Timo Kreuzer
f24d76dc84 Merge CRT changes from cmake branch (mainly MSVC compilation fixes)
svn path=/trunk/; revision=50647
2011-02-10 11:35:05 +00:00
Aleksey Bragin
5c40e3e852 - Edijs: Properly load window size and position.
See issue #5872 for more details.

svn path=/trunk/; revision=50646
2011-02-10 11:18:00 +00:00
Timo Kreuzer
9468f98ffd Fix build of shlwapi
svn path=/trunk/; revision=50645
2011-02-10 11:03:43 +00:00
Timo Kreuzer
3c08a32f63 fix taskmgr build
svn path=/trunk/; revision=50644
2011-02-10 10:51:26 +00:00
Timo Kreuzer
fcfdd9aa80 Merge resource file related changes from cmake branch part 2
svn path=/trunk/; revision=50643
2011-02-10 10:45:45 +00:00
Timo Kreuzer
7f8eeb4321 Merge resource file related changes from cmake branch part 1
svn path=/trunk/; revision=50641
2011-02-10 10:39:34 +00:00
Timo Kreuzer
fee844b6ff Merge all amd64 related changes from cmake branch
svn path=/trunk/; revision=50640
2011-02-10 10:30:43 +00:00
Aleksey Bragin
7c7511301a - Add a missing ORing of the registry-loaded GlobalFlags value in ExpInitializeExecutive. Thanks to Robert Horvath for spotting the issue.
See issue #5870 for more details.

svn path=/trunk/; revision=50639
2011-02-09 21:22:47 +00:00
Aleksey Bragin
c7208c0053 - Robert Horvath: Add GlobalFlag entry in hivesys_{arch}.inf with the default value 0x0.
See issue #5870 for more details.

svn path=/trunk/; revision=50638
2011-02-09 20:50:28 +00:00
Aleksey Bragin
05de74702a - Robert Horvath: LocalUnlock has to be different from GlobalUnlock. The subtle difference between LocalUnlock and GlobalUnlock, is, that the former will return FALSE and set ERROR_NOT_LOCKED on LMEM_FIXED allocations. Fixes 1 kernel32:heap failure.
See issue #5869 for more details.

svn path=/trunk/; revision=50637
2011-02-09 20:42:44 +00:00
Aleksey Bragin
50df1352e9 - Enable simple FontSmoothing by default. It matters for arwinss, trunk just ignores this value and always smoothes the fonts.
svn path=/trunk/; revision=50634
2011-02-09 14:07:10 +00:00
Aleksey Bragin
5fc327fd57 - Add GetTransform declaration. (until we have undocgdi.h).
svn path=/trunk/; revision=50633
2011-02-09 13:31:31 +00:00
Colin Finck
7223cdea1f Scale down the wallpaper to 800x600. For some reason, scaling down the image through the "Stretch" option of the Desktop doesn't seem to work.
svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46087
2010-03-11 00:01:33 +00:00
Colin Finck
68a571a5eb Use a different wallpaper for CLT2010 (2/2)
svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46082
2010-03-10 22:42:35 +00:00
Colin Finck
90d4bdb342 Use a different wallpaper for CLT2010 (1/2)
svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46081
2010-03-10 22:39:41 +00:00
Colin Finck
fa76f34fd4 Merge 45535 (the big RosBE 1.5 compatibility patch)
This branch HAS to be built with the current RosBE version now.

svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46070
2010-03-10 19:45:47 +00:00
Colin Finck
b5b864a3c6 Combine the Step1/Step2 creation of the Hybrid-CD. Extra stuff can be added to the directory "hybridcd_extras" now.
svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46066
2010-03-10 18:17:50 +00:00
Colin Finck
17cecb05e3 Update the root "readme.txt" of the CD and the "welcome.exe" app to show more options.
This is also stuff, which was mostly done by Andrew Greenwood for FOSDEM last year. I just changed it for our needs.

svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46065
2010-03-10 17:46:49 +00:00
Colin Finck
fc77cd5e6c - Add a script for creating a Hybrid-CD (combined Boot-CD & Live-CD).
Kudos for this go to Andrew Greenwood, I just scripted his way of creating the disc.
- Combining them also requires changing the Live-CD directory in the kernel to "live", which renders regular Live-CDs created in this tree unbootable.

svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46059
2010-03-10 16:05:55 +00:00
Colin Finck
3344531228 Merge 45730 (rapps link fix)
svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46057
2010-03-10 14:33:36 +00:00
Colin Finck
5c260d2745 Backport the new boot and shutdown screen and slightly modify it for extra awesomeness! :-)
This includes:
- Merging 45269,45270,45614,45618,45619,45822,45966.
- Hardcoding NtProductWinNt instead of NtProductServer as the product type. I didn't merge the new code for this as I'm not sure about its dependencies.
- Changing 1.bmp and 6.bmp for CLT2010.

svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46055
2010-03-10 14:25:05 +00:00
Colin Finck
ccd44d9ac4 Change the copyright year as well.
svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46032
2010-03-09 13:42:12 +00:00
Colin Finck
37c48ca11e Change version to 0.3.11-CLT2010
svn path=/branches/ros-branch-0_3_11-clt2010/; revision=46031
2010-03-09 13:27:53 +00:00
Colin Finck
ed469a00af Merge r44552
svn path=/branches/ros-branch-0_3_11/; revision=44553
2009-12-12 17:15:19 +00:00
Colin Finck
f2c93ea2b8 Here comes ReactOS "FOR WORKGROUPS" 0.3.11! :-)
svn path=/branches/ros-branch-0_3_11/; revision=44531
2009-12-10 23:19:12 +00:00
Colin Finck
1b51adc031 Revert to the old boot method for the release on request of Aleksey
svn path=/branches/ros-branch-0_3_11/; revision=44367
2009-12-02 20:02:07 +00:00
Aleksey Bragin
5911400ccc - Merge 44348 and 44349 to 0.3.11 branch.
svn path=/branches/ros-branch-0_3_11/; revision=44350
2009-12-01 21:36:23 +00:00
Aleksey Bragin
68d04648a4 - Merge 44301 (network revert).
svn path=/branches/ros-branch-0_3_11/; revision=44336
2009-11-30 21:52:07 +00:00
Colin Finck
0b321cfcbf Revert 43921 on demand of Aleksey
svn path=/branches/ros-branch-0_3_11/; revision=44316
2009-11-28 22:54:47 +00:00
Colin Finck
0127705606 Dmitry Gorbachev:
- Replace our Japanese "Systema" font added for releases by "Droid Sans Fallback" from the Android project.
  This font is licensed under Apache 2.0 license (notice included) and also offers us Chinese and Korean characters.

  You have to copy "DroidSansFallback.ttf" from http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=data/fonts to "modules/optional".

svn path=/branches/ros-branch-0_3_11/; revision=44305
2009-11-28 15:04:15 +00:00
Colin Finck
79c56c5d7b Hack: Add the APPDATA variable to the environment created by userenv as it was done for previous releases.
svn path=/branches/ros-branch-0_3_11/; revision=44300
2009-11-28 00:29:52 +00:00
Colin Finck
9123974a75 Hack: Hackfix the HitTest problem in mstsc as it was done for previous releases
svn path=/branches/ros-branch-0_3_11/; revision=44299
2009-11-28 00:17:11 +00:00
Colin Finck
583c59f82e - Change the version to 0.3.11
- Set "Angelus_02_ROSWP.bmp" as the default wallpaper
- Add a shortcut to RApps to the Desktop

svn path=/branches/ros-branch-0_3_11/; revision=44298
2009-11-28 00:14:56 +00:00
898 changed files with 21915 additions and 15196 deletions

View File

@@ -104,9 +104,6 @@
<xi:include href="lib/sdk/wdmguid/wdmguid.rbuild" />
</directory>
</directory>
<directory name="ntdllsys">
<xi:include href="lib/ntdllsys/ntdllsys.rbuild" />
</directory>
<directory name="smlib">
<xi:include href="lib/smlib/smlib.rbuild" />
</directory>

View File

@@ -245,10 +245,10 @@ BEGIN
LTEXT "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:",IDC_STATIC,4,20,56,8
COMBOBOX IDC_COMBO_FROM,4,60,140,168,CBS_DROPDOWNLIST |
WS_VSCROLL | WS_TABSTOP | CBS_SORT
LTEXT "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (\"<22>\"):",IDC_STATIC,4,49,56,8
LTEXT "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:",IDC_STATIC,4,49,56,8
COMBOBOX IDC_COMBO_TO,4,87,140,168,CBS_DROPDOWNLIST | WS_VSCROLL |
WS_TABSTOP | CBS_SORT
LTEXT "ʳ<><CAB3><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (\"<22>\"):",IDC_STATIC,4,76,56,8
LTEXT "ʳ<><CAB3><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:",IDC_STATIC,4,76,56,8
CONTROL "C",IDC_BUTTON_CANC,"Button",BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP,276,24,40,17
CONTROL "CE",IDC_BUTTON_CE,"Button",BS_OWNERDRAW | BS_CENTER |

View File

@@ -133,57 +133,96 @@ ChangeMapFont(HWND hDlg)
}
}
// Copy collected characters into the clipboard
static
void
CopyCharacters(HWND hDlg)
{
HWND hText = GetDlgItem(hDlg, IDC_TEXTBOX);
DWORD dwStart, dwEnd;
// Acquire selection limits
SendMessage(hText, EM_GETSEL, (WPARAM)&dwStart, (LPARAM)&dwEnd);
// Test if the whose text is unselected
if(dwStart == dwEnd) {
// Select the whole text
SendMessageW(hText, EM_SETSEL, 0, -1);
// Copy text
SendMessageW(hText, WM_COPY, 0, 0);
// Restore previous values
SendMessageW(hText, EM_SETSEL, (WPARAM)dwStart, (LPARAM)dwEnd);
} else {
// Copy text
SendMessageW(hText, WM_COPY, 0, 0);
}
}
// Recover charset for the given font
static
BYTE
GetFontMetrics(HWND hWnd, HFONT hFont)
{
TEXTMETRIC tmFont;
HGDIOBJ hOldObj;
HDC hDC;
hDC = GetDC(hWnd);
hOldObj = SelectObject(hDC, hFont);
GetTextMetrics(hDC, &tmFont);
SelectObject(hDC, hOldObj);
ReleaseDC(hWnd, hDC);
return tmFont.tmCharSet;
}
// Select a new character
static
VOID
AddCharToSelection(HWND hText,
WCHAR ch)
AddCharToSelection(HWND hDlg, WCHAR ch)
{
LPWSTR lpText;
INT Len = GetWindowTextLength(hText);
HWND hMap = GetDlgItem(hDlg, IDC_FONTMAP);
HWND hText = GetDlgItem(hDlg, IDC_TEXTBOX);
HFONT hFont;
LOGFONT lFont;
CHARFORMAT cf;
if (Len != 0)
// Retrieve current character selected
if (ch == 0)
{
lpText = HeapAlloc(GetProcessHeap(),
0,
(Len + 2) * sizeof(WCHAR));
if (lpText)
{
LPWSTR lpStr = lpText;
SendMessageW(hText,
WM_GETTEXT,
Len + 1,
(LPARAM)lpStr);
lpStr += Len;
*lpStr = ch;
lpStr++;
*lpStr = L'\0';
SendMessageW(hText,
WM_SETTEXT,
0,
(LPARAM)lpText);
HeapFree(GetProcessHeap(),
0,
lpText);
}
ch = (WCHAR) SendMessageW(hMap, FM_GETCHAR, 0, 0);
if (!ch)
return;
}
else
{
WCHAR szText[2];
szText[0] = ch;
szText[1] = L'\0';
// Retrieve current selected font
hFont = (HFONT)SendMessage(hMap, FM_GETHFONT, 0, 0);
SendMessageW(hText,
WM_SETTEXT,
0,
(LPARAM)szText);
}
// Recover LOGFONT structure from hFont
if (!GetObject(hFont, sizeof(LOGFONT), &lFont))
return;
// Recover font properties of Richedit control
ZeroMemory(&cf, sizeof(cf));
cf.cbSize = sizeof(cf);
SendMessage(hText, EM_GETCHARFORMAT, SCF_SELECTION, (LPARAM)&cf);
// Apply properties of the new font
cf.bCharSet = GetFontMetrics(hText, hFont);
// Update font name
wcscpy(cf.szFaceName, lFont.lfFaceName);
// Update font properties
SendMessage(hText, EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)&cf);
// Send selected character to Richedit
SendMessage(hText, WM_CHAR, (WPARAM)ch, 0);
}
@@ -204,6 +243,7 @@ DlgProc(HWND hDlg,
case WM_INITDIALOG:
{
HMENU hSysMenu;
DWORD evMask;
hSmIcon = LoadImageW(hInstance,
MAKEINTRESOURCEW(IDI_ICON),
@@ -256,6 +296,12 @@ DlgProc(HWND hDlg,
lpAboutText);
}
}
// Configure Richedi control for sending notification changes.
evMask = SendDlgItemMessage(hDlg, IDC_TEXTBOX, EM_GETEVENTMASK, 0, 0);
evMask |= ENM_CHANGE;
SendDlgItemMessage(hDlg, IDC_TEXTBOX, EM_SETEVENTMASK, 0, (LPARAM)evMask);
return TRUE;
}
@@ -264,41 +310,39 @@ DlgProc(HWND hDlg,
switch(LOWORD(wParam))
{
case IDC_FONTMAP:
{
switch (HIWORD(wParam))
{
case FM_SETCHAR:
AddCharToSelection(GetDlgItem(hDlg, IDC_TEXTBOX),
LOWORD(lParam));
AddCharToSelection(hDlg, LOWORD(lParam));
break;
}
}
break;
break;
case IDC_FONTCOMBO:
{
if (HIWORD(wParam) == CBN_SELCHANGE)
{
ChangeMapFont(hDlg);
}
}
break;
break;
case IDC_SELECT:
{
WCHAR ch;
HWND hMap = GetDlgItem(hDlg, IDC_FONTMAP);
ch = (WCHAR) SendMessageW(hMap, FM_GETCHAR, 0, 0);
if (ch)
{
AddCharToSelection(GetDlgItem(hDlg, IDC_TEXTBOX),
ch);
}
AddCharToSelection(hDlg, 0);
break;
case IDC_TEXTBOX:
switch (HIWORD(wParam)) {
case EN_CHANGE:
if (GetWindowTextLength(GetDlgItem(hDlg, IDC_TEXTBOX)) == 0)
EnableWindow(GetDlgItem(hDlg, IDC_COPY), FALSE);
else
EnableWindow(GetDlgItem(hDlg, IDC_COPY), TRUE);
break;
}
break;
case IDC_COPY:
CopyCharacters(hDlg);
break;
}
case IDOK:
if (hSmIcon)
@@ -306,7 +350,7 @@ DlgProc(HWND hDlg,
if (hBgIcon)
DestroyIcon(hBgIcon);
EndDialog(hDlg, 0);
break;
break;
}
}
break;
@@ -347,6 +391,7 @@ wWinMain(HINSTANCE hInst,
{
INITCOMMONCONTROLSEX iccx;
INT Ret = 1;
HMODULE hRichEd20;
hInstance = hInst;
@@ -356,11 +401,17 @@ wWinMain(HINSTANCE hInst,
if (RegisterMapClasses(hInstance))
{
Ret = DialogBoxW(hInstance,
MAKEINTRESOURCEW(IDD_CHARMAP),
NULL,
DlgProc) >= 0;
hRichEd20 = LoadLibraryW(L"RICHED20.DLL");
if (hRichEd20 != NULL)
{
Ret = DialogBoxW(hInstance,
MAKEINTRESOURCEW(IDD_CHARMAP),
NULL,
DlgProc) >= 0;
FreeLibrary(hRichEd20);
}
UnregisterMapClasses(hInstance);
}

View File

@@ -1,5 +1,6 @@
#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
#include "resource.h"

View File

@@ -10,7 +10,7 @@ BEGIN
PUSHBUTTON "<22><><EFBFBD><EFBFBD><EFBFBD>", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "<22><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:", IDC_STATIC, 3, 188, 75, 9
EDITTEXT IDC_TEXTBOX, 79, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "<22><><EFBFBD><EFBFBD><EFBFBD>", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "<22>a<EFBFBD><61><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP

View File

@@ -10,7 +10,7 @@ BEGIN
PUSHBUTTON "Ajuda", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "Car<61>cters a copiar :", IDC_STATIC, 6, 188, 66, 9
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "Selecciona", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "Copia", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Vista avan<61>ada", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP

View File

@@ -15,7 +15,7 @@ BEGIN
PUSHBUTTON "N<>pov<6F>da", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "Znaky ke zkop<6F>rov<6F>n<EFBFBD>:", IDC_STATIC, 6, 188, 66, 9
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "Ozna<6E>it", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "Kop<6F>rovat", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Pokro<72>il<69> zobrazen<65>", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP

View File

@@ -10,7 +10,7 @@ BEGIN
PUSHBUTTON "Hilfe", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "Zeichenauswahl:", IDC_STATIC, 6, 188, 66, 9
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "Ausw<73>hlen", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "Kopieren", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Erweiterte Ansicht", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP

View File

@@ -12,7 +12,7 @@ BEGIN
CONTROL "",IDC_FONTMAP,"FontMapWnd",WS_VSCROLL | WS_TABSTOP,20,
22,266,156
LTEXT "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> :",IDC_STATIC,6,184,66,17
EDITTEXT IDC_TEXTBOX,74,186,114,13
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",IDC_SELECT,194,186,44,13
PUSHBUTTON "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",IDC_COPY,242,186,44,13,WS_DISABLED
END

View File

@@ -10,7 +10,7 @@ BEGIN
PUSHBUTTON "Help", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "Characters to copy:", IDC_STATIC, 6, 188, 66, 9
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "Select", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "Copy", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Advanced view", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP

View File

@@ -10,7 +10,7 @@ BEGIN
PUSHBUTTON "Ayuda", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "Caracteres a copiar :", IDC_STATIC, 6, 188, 66, 9
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "Seleccionar", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "Copiar", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Vista Avanzada", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP

View File

@@ -10,7 +10,7 @@ BEGIN
PUSHBUTTON "Aide", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "Caract<63>res <20> copier :", IDC_STATIC, 6, 188, 66, 9
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "S<>lectionner", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "Copier", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Vue avanc<6E>e", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP

View File

@@ -10,7 +10,7 @@ BEGIN
PUSHBUTTON "Bantuan", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "Karakter untuk di-copy :", IDC_STATIC, 6, 188, 66, 9
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "Pilih", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "Copy", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Advanced view", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP

View File

@@ -10,7 +10,7 @@ BEGIN
PUSHBUTTON "Aiuto", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "Caratteri da copiare :", IDC_STATIC, 6, 188, 66, 9
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "Selezionare", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "Copiare", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Visualizzazione avanzata", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP

View File

@@ -10,7 +10,7 @@ BEGIN
PUSHBUTTON "<22>w<EFBFBD><77><EFBFBD>v", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "<22>R<EFBFBD>s<EFBFBD>[<5B><><EFBFBD><EFBFBD><E995B6>:", IDC_STATIC, 6, 188, 66, 9
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "<22>I<EFBFBD><49>", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "<22>R<EFBFBD>s<EFBFBD>[", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "<22>ڍו\\<5C><>", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP

View File

@@ -13,7 +13,7 @@ BEGIN
PUSHBUTTON "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>:", IDC_STATIC, 6, 188, 66, 9
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "<22><><EFBFBD><EFBFBD>", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "<22><><EFBFBD><EFBFBD>", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Ȯ<><C8AE> <20><><EFBFBD><EFBFBD>", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP

View File

@@ -19,7 +19,7 @@ BEGIN
PUSHBUTTON "Pagalba", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "Simboliai kopijavimui:", IDC_STATIC, 6, 188, 72, 9
EDITTEXT IDC_TEXTBOX, 81, 186, 107, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "Parinkti", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "Kopijuoti", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Advanced view", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP

View File

@@ -10,7 +10,7 @@ BEGIN
PUSHBUTTON "Help", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "Te kopi<70>ren tekens:", IDC_STATIC, 6, 188, 66, 9
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "Selecteren", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "Kopi<70>ren", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Geavanceerde weergave", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP

View File

@@ -10,7 +10,7 @@ BEGIN
PUSHBUTTON "Hjelp", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "Kopier f<>lgende tegn:", IDC_STATIC, 6, 188, 66, 9
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "Velg", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "Kopier", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Avansert visning", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP

View File

@@ -16,7 +16,7 @@ BEGIN
PUSHBUTTON "Pomo&c", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "&Znaki do skopiowania:", IDC_STATIC, 6, 188, 66, 9
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "Wy&bierz", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "&Kopiuj", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Widok z&aawansowany", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP

View File

@@ -10,7 +10,7 @@ BEGIN
PUSHBUTTON "Aj&uda", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "Caracteres a serem copiados :", IDC_STATIC, 6, 183, 66, 17
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "Selecionar", IDC_SELECT, 194, 186, 46, 13
PUSHBUTTON "Copiar", IDC_COPY, 244, 186, 46, 13, WS_DISABLED
//AUTOCHECKBOX "Modo de exibi<62><69>o avan<61>ado", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP

View File

@@ -12,7 +12,7 @@ BEGIN
PUSHBUTTON "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:", IDC_STATIC, 6, 188, 95, 9
EDITTEXT IDC_TEXTBOX, 80, 186, 109, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Advanced view", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP

View File

@@ -19,7 +19,7 @@ BEGIN
PUSHBUTTON "&Pomocn<63>k", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "Kop<6F>rova<76> &znaky:", IDC_STATIC, 6, 188, 66, 9
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "&Vybra<72>", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "&Kop<6F>rova<76>", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "R&oz<6F><7A>ren<65> zobrazenie", IDC_ADVVIEW, 10, 204, 75, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP

View File

@@ -18,7 +18,7 @@ BEGIN
PUSHBUTTON "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "<22><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> :", IDC_STATIC, 6, 188, 66, 9
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP

View File

@@ -12,7 +12,7 @@ BEGIN
PUSHBUTTON "˵<><CBB5>", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "<22><><EFBFBD><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5>ַ<EFBFBD>:", IDC_STATIC, 6, 188, 66, 9
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "ѡ<><D1A1>", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "<22><><EFBFBD><EFBFBD>", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Advanced view", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP

View File

@@ -12,7 +12,7 @@ BEGIN
PUSHBUTTON "<22><><EFBFBD><EFBFBD>", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL, 20, 22, 266, 156
LTEXT "<22>ݽƻs<C6BB><73><EFBFBD>r<EFBFBD>šG", IDC_STATIC, 6, 188, 66, 9
EDITTEXT IDC_TEXTBOX, 74, 186, 114, 13, WS_CHILD | WS_VISIBLE | WS_TABSTOP
CONTROL "",IDC_TEXTBOX,RICHEDIT_CLASS,ES_AUTOHSCROLL | WS_BORDER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "<22><><EFBFBD><EFBFBD>", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "<22>ƻs", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//AUTOCHECKBOX "Advanced view", IDC_ADVVIEW, 10, 204, 64, 9, WS_CHILD | WS_VISIBLE | WS_TABSTOP

View File

@@ -529,6 +529,9 @@ MapWndProc(HWND hwnd,
return infoPtr->pActiveCell->ch;
}
case FM_GETHFONT:
return (LRESULT)infoPtr->hFont;
case WM_PAINT:
{
OnPaint(infoPtr,

View File

@@ -5,6 +5,7 @@
#include <stdlib.h>
#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
#include "resource.h"
#define XCELLS 20
@@ -12,9 +13,10 @@
#define XLARGE 45
#define YLARGE 25
#define FM_SETFONT (WM_USER + 1)
#define FM_GETCHAR (WM_USER + 2)
#define FM_SETCHAR (WM_USER + 3)
#define FM_SETFONT (WM_USER + 1)
#define FM_GETCHAR (WM_USER + 2)
#define FM_SETCHAR (WM_USER + 3)
#define FM_GETHFONT (WM_USER + 4)
extern HINSTANCE hInstance;

View File

@@ -3,15 +3,15 @@ LANGUAGE LANG_BULGARIAN, SUBLANG_DEFAULT
STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>..\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"<22><><EFBFBD>\" [ <20><><EFBFBD><EFBFBD>... ]\n\
/C <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>\n\
/I <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
/N <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> 1\n\
/V <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>."
IDS_USAGE, "FIND: Èçâåæäà âñè÷êè ðåäîâå âúâ ôàéëà, êîèòî ñúäúðæàò óêàçàíèÿ íèç..\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""íèç"" [ ôàéë... ]\n\
/C Áðîè êîëêî ðåäà ñúäúðæàò íèçà\n\
/I Ïðåíåáðåãâà ÃëÀâÍÎñÒòà\n\
/N Áðîé ïîêàçàíè ðåäîâå, êàòî ñå çàïî÷âà îò 1\n\
/V Èçâåæäàíå íà ðåäîâåòå, ÍÅñúäúðæàùè íèçà."
IDS_NO_SUCH_FILE, "FIND: %s: <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>\n"
IDS_NO_SUCH_FILE, "FIND: %s: Íÿìà òàêúâ ôàéë\n"
IDS_CANNOT_OPEN, "FIND: %s: <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n"
IDS_CANNOT_OPEN, "FIND: %s: Îòâàðÿíåòî íà ôàéëà å íåâúçìîæíî\n"
END

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Mostra totes les linies que continguin una determinada cadena de car<61>cters.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"Cadena de car<61>cters\" [ file... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""Cadena de car<61>cters"" [ file... ]\n\
/C Conta el numero de linies que contenen la cadena de car<61>cters\n\
/I Ignora maj<61>scules i min<69>scules\n\
/N Numero de linies mostrades, comen<65>ant per la primera\n\

View File

@@ -10,7 +10,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Zobraz<61> v<>echny <20><>dky souboru obsahuj<75>c<EFBFBD> hledan<61> <20>et<65>zec.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"<22>et<65>zec\" [ soubor... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""<22>et<65>zec"" [ soubor... ]\n\
/C Zobraz<61> po<70>et <20><>dk<64> obsahuj<75>c<EFBFBD> <20>et<65>zec.\n\
/I Ignoruje velikost p<>smen.\n\
/N <20><>sluje zobrazen<65> <20><>dky, za<7A><61>n<EFBFBD> od 1.\n\

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "Sucht in einer Datei nach einer Zeichenfolge.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"string\" [ file... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""string"" [ file... ]\n\
/C Zeigt nur die Anzahl der die Zeichenfolge enthaltenen Zeilen an.\n\
/I Ignoriert Gro<72>-/Kleinbuchstaben bei der Suche.\n\
/N Zeigt die Zeilen mit ihren Zeilennummern an.\n\

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\" [ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"" [ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>... ]\n\
/C <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
/I <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
/N <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> 1\n\

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Prints all lines of a file that contain a string.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"string\" [ file... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""string"" [ file... ]\n\
/C Count the number of lines that contain string\n\
/I Ignore case\n\
/N Number the displayed lines, starting at 1\n\

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Imprime todas las l<>neas de un fichero que contiene una cadena.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"cadena\" [ fichero... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""cadena"" [ fichero... ]\n\
/C Cuenta el n<>mero de l<>neas que contienen la cadena de caracteres\n\
/I Ignora may<61>sculas y min<69>sculas\n\
/N Numero de l<>neas a mostrar en pantalla, a partir de la primera\n\

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Affiche toutes les lignes d'un fichier qui contiennent un morceau de texte.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"texte\" [ fichier... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""texte"" [ fichier... ]\n\
/C Compte le nombre de lignes qui contiennent le texte\n\
/I Insensible <20> la casse\n\
/N Num<75>rote les lignes affich<63>es en commen<65>ant <20> 1\n\

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Visualizza le linee di un file che contengono un stringa.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"stringa\" [ file... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""stringa"" [ file... ]\n\
/C Conta il numero di linee che contengono la stringa\n\
/I Ignora maiuscole/minuscole\n\
/N Numera le linee visualizzate a partire da 1\n\

View File

@@ -13,7 +13,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Spausdina visas bylos eilutes, kuriose yra ie<69>komas tekstas.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"tekstas\" [ byla... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""tekstas"" [ byla... ]\n\
/C Skai<61>iuoti eilutes, kuriose yra ie<69>komas tekstas\n\
/I Ignoruoti raid<69>i<EFBFBD> dyd<79>\n\
/N Numeruoti vaizduojamas eilutes, pradedant nuo 1\n\

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FINN: Skriv alle linjene for filen som inneholder en streng.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"streng\" [ fil... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""streng"" [ fil... ]\n\
/C Teller nummer av linjer som inneholder strenger\n\
/I Ignorere sak\n\
/N Nummer viste linjer, start med 1\n\

View File

@@ -11,7 +11,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Wy<57>wietla wszystkie linie danego pliku, zawieraj<61>ce szukany ci<63>g znak<61>w.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"ci<63>g znak<61>w\" [ plik... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""ci<63>g znak<61>w"" [ plik... ]\n\
/C Oblicza w ilu liniach pojawi<77> si<73> szukany ci<63>g znak<61>w\n\
/I Ignoruje wielko<6B><6F> liter\n\
/N Numeruje wy<77>wietlane linie, zaczynaj<61>c od 1\n\

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Localiza uma seq<65><71>ncia de texto em um ou mais arquivos.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"seq<65><71>ncia\" [ arquivo... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""seq<65><71>ncia"" [ arquivo... ]\n\
/C Exibe apenas o n<>mero de linhas que cont<6E>m a seq<65><71>ncia.\n\
/I Ignora mai<61>sculas/min<69>sculas ao localizar uma seq<65><71>ncia.\n\
/N Exibe o n<>mero de cada linha, iniciando no 1.\n\

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\" [ <20><><EFBFBD><EFBFBD>... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"" [ <20><><EFBFBD><EFBFBD>... ]\n\
/C <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/I <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/N <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> 1).\n\

View File

@@ -8,7 +8,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Zobraz<61> v<>etky riadky s<>boru obsahuj<75>ce h<>adan<61> re<72>azec.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"re<72>azec\" [ s<>bor... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""re<72>azec"" [ s<>bor... ]\n\
/C Zobraz<61> po<70>et riadkov, ktor<6F> obsahuj<75> re<72>azec.\n\
/I Ignoruje ve<76>kos<6F> p<>smen.\n\
/N <20><>sluje zobrazen<65> riadky, za<7A><61>na od 1.\n\

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Skriver ut alla rader i en fil som inneh<65>ller en str<74>ng.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"str<74>ng\" [ fil... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""str<74>ng"" [ fil... ]\n\
/C R<>kna nummren av linjer som inneh<65>ller en str<74>ngen\n\
/I Ignorera skiftl<74>ge\n\
/N Antal visade rader, b<>rjar p<> 1\n\

View File

@@ -12,7 +12,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"<22><><EFBFBD><EFBFBD><EFBFBD>\" [ <20><><EFBFBD><EFBFBD>... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""<22><><EFBFBD><EFBFBD><EFBFBD>"" [ <20><><EFBFBD><EFBFBD>... ]\n\
/C <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>\n\
/I <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
/N <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> 1)\n\

View File

@@ -0,0 +1,80 @@
/*
* XCOPY - Wine-compatible xcopy program
* Spanish language support
*
* Copyright (C) 2007 Jeisson T.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "xcopy.h"
LANGUAGE LANG_SPANISH, SUBLANG_DEFAULT
STRINGTABLE
{
STRING_INVPARMS, "Cantidad invalido de parametros - Use xcopy /? para obtener ayuda\n"
STRING_INVPARM, "Parametro invalido '%s' - Use xcopy /? para obtener ayuda\n"
STRING_PAUSE, "Unde <enter> para iniciar la copia\n"
STRING_SIMCOPY, "%d archivo(s) seran copiado(s)\n"
STRING_COPY, "%d archivo(s) copiado(s)\n"
STRING_QISDIR, "Es '%s' un nombre de archivo o de directorio\n\
en el punto de destino?\n\
(F - Archivo, D - Directorio)\n"
STRING_SRCPROMPT,"%s? (Si|No)\n"
STRING_OVERWRITE,"Destruir y escribir encima %s? (Si|No|Todo)\n"
STRING_COPYFAIL, "La copia de '%s' a '%s' ha faillecido con r/c %d\n"
STRING_OPENFAIL, "Impossible de abrir '%s'\n"
STRING_READFAIL, "Hubo un error durante la lectura de '%s'\n"
STRING_YES_CHAR, "S"
STRING_NO_CHAR, "N"
STRING_ALL_CHAR, "T"
STRING_FILE_CHAR,"A"
STRING_DIR_CHAR, "D"
STRING_HELP,
"XCOPY - Copia los archivos o directorios fuentes a un destino\n\
\n\
Sintaxis:\n\
XCOPY fuente [dest] [/I] [/S] [/Q] [/F] [/L] [/W] [/T] [/N] [/U]\n\
\t [/R] [/H] [/C] [/P] [/A] [/M] [/E] [/D] [/Y] [/-Y]\n\
\n\
En la cual:\n\
\n\
[/I] Asuma el directorio si el destino no existe y copia dos o\n\
\tmas archivos\n\
[/S] Copia directorios y subdirectorios\n\
[/E] Copia directorios y subdirectorios, incluyendo las que estan vacias\n\
[/Q] No mostrar la lista de los nombres de los archivos durante la copia (silencioso)\n\
[/F] Mostrar todas las fuentes y todos los destinos durante la copia.\n\
[/L] Simular la operacion, mostrando los nombres de archivos que seran copiados\n\
[/W] Preguntar antes de iniciar la operacion de copia\n\
[/T] Crear una estructura de repertorios vacios pero no copia los archivos\n\
[/Y] No pide confirmacion cuando sobreescribe sobre los archivos\n\
[/-Y] Pide confirmacion cuando sobreescribe los archivos\n\
[/P] Pregunta al usuario ante de copiar cada archivo fuente\n\
[/N] Copiar usando los nombres cortos\n\
[/U] Copia solamente los archivos que ya existent en el punto de destino\n\
[/R] Sobreescribir los archivos en lectura unica\n\
[/H] Incluir los archivos escondidos y los del systema en la copia\n\
[/C] Siempre continuar mismo si un error occure en la copia\n\
[/A] Copia solamente archivos con el attributo de archivo definido\n\
[/M] Copia solamente archivos con el attributo de archivo definido, supprime\n\
\tl'attributo de archivo\n\
[/D | /D:m-d-y] Copia los nuevos archivos or los que fueront modificado despues la fecha especificada.\n\
\t\tSi la fecha no esta especificada, copia unicamente cuando el archivo de destino est mas viejo\n\
\t\tque el archivo fuente\n\n"
}

View File

@@ -32,9 +32,7 @@ STRINGTABLE
STRING_PAUSE, "Tryck <enter> för att börja kopiera\n"
STRING_SIMCOPY, "%d fil(er) skulle kopieras\n"
STRING_COPY, "%d fil(er) kopierade\n"
STRING_QISDIR, "Är '%s' ett filnamn eller en katalog\n" \
"på målet?\n" \
"(F - Fil, K - Katalog)\n"
STRING_QISDIR, "Är '%s' ett filnamn eller en katalog\npå målet?\n(F - Fil, K - Katalog)\n"
STRING_SRCPROMPT,"%s? (Ja|Nej)\n"
STRING_OVERWRITE,"Skriv över %s? (Ja|Nej|Alla)\n"
STRING_COPYFAIL, "Kunde inte kopiera '%s' till '%s'; misslyckades med r/c %d\n"

View File

@@ -30,6 +30,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#include "En.rc"
#include "No.rc"
#include "Pl.rc"
#include "Es.rc"
/* UTF-8 */
#include "De.rc"

View File

@@ -43,10 +43,10 @@ INT_PTR CALLBACK NetworkPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPAR
INT_PTR CALLBACK HelpPageWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
/* DirectDraw tests */
VOID DDTests();
VOID DDTests(VOID);
/* Direct3D tests */
VOID D3DTests();
VOID D3DTests(VOID);
/* DirectSound initialization */
void InitializeDirectSoundPage(PDXDIAG_CONTEXT pContext);

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>..\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"<22><><EFBFBD>\" [ <20><><EFBFBD><EFBFBD>... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""<22><><EFBFBD>"" [ <20><><EFBFBD><EFBFBD>... ]\n\
/C <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>\n\
/I <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
/N <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> 1\n\

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Mostra totes les linies que continguin una determinada cadena de car<61>cters.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"Cadena de car<61>cters\" [ file... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""Cadena de car<61>cters"" [ file... ]\n\
/C Conta el numero de linies que contenen la cadena de car<61>cters\n\
/I Ignora maj<61>scules i min<69>scules\n\
/N Numero de linies mostrades, comen<65>ant per la primera\n\

View File

@@ -10,7 +10,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Zobraz<61> v<>echny <20><>dky souboru obsahuj<75>c<EFBFBD> hledan<61> <20>et<65>zec.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"<22>et<65>zec\" [ soubor... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""<22>et<65>zec"" [ soubor... ]\n\
/C Zobraz<61> po<70>et <20><>dk<64> obsahuj<75>c<EFBFBD> <20>et<65>zec.\n\
/I Ignoruje velikost p<>smen.\n\
/N <20><>sluje zobrazen<65> <20><>dky, za<7A><61>n<EFBFBD> od 1.\n\

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "Sucht in einer Datei nach einer Zeichenfolge.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"string\" [ file... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""string"" [ file... ]\n\
/C Zeigt nur die Anzahl der die Zeichenfolge enthaltenen Zeilen an.\n\
/I Ignoriert Gro<72>-/Kleinbuchstaben bei der Suche.\n\
/N Zeigt die Zeilen mit ihren Zeilennummern an.\n\

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\" [ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"" [ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>... ]\n\
/C <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
/I <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
/N <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> 1\n\

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FINDSTR: Prints all lines of a file that contain a string.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"string\" [ file... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""string"" [ file... ]\n\
/C Count the number of lines that contain string\n\
/I Ignore case\n\
/N Number the displayed lines, starting at 1\n\

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Imprime todas las l<>neas de un fichero que contiene una cadena.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"cadena\" [ fichero... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""cadena"" [ fichero... ]\n\
/C Cuenta el n<>mero de l<>neas que contienen la cadena de caracteres\n\
/I Ignora may<61>sculas y min<69>sculas\n\
/N Numero de l<>neas a mostrar en pantalla, a partir de la primera\n\

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Affiche toutes les lignes d'un fichier qui contiennent un morceau de texte.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"texte\" [ fichier... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""texte"" [ fichier... ]\n\
/C Compte le nombre de lignes qui contiennent le texte\n\
/I Insensible <20> la casse\n\
/N Num<75>rote les lignes affich<63>es en commen<65>ant <20> 1\n\

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Visualizza le linee di un file che contengono un stringa.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"stringa\" [ file... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""stringa"" [ file... ]\n\
/C Conta il numero di linee che contengono la stringa\n\
/I Ignora maiuscole/minuscole\n\
/N Numera le linee visualizzate a partire da 1\n\

View File

@@ -13,7 +13,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Spausdina visas bylos eilutes, kuriose yra ie<69>komas tekstas.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"tekstas\" [ byla... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""tekstas"" [ byla... ]\n\
/C Skai<61>iuoti eilutes, kuriose yra ie<69>komas tekstas\n\
/I Ignoruoti raid<69>i<EFBFBD> dyd<79>\n\
/N Numeruoti vaizduojamas eilutes, pradedant nuo 1\n\

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FINN: Skriv alle linjene for filen som inneholder en streng.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"streng\" [ fil... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""streng"" [ fil... ]\n\
/C Teller nummer av linjer som inneholder strenger\n\
/I Ignorere sak\n\
/N Nummer viste linjer, start med 1\n\

View File

@@ -11,7 +11,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Wy<57>wietla wszystkie linie danego pliku, zawieraj<61>ce szukany ci<63>g znak<61>w.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"ci<63>g znak<61>w\" [ plik... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""ci<63>g znak<61>w"" [ plik... ]\n\
/C Oblicza w ilu liniach pojawi<77> si<73> szukany ci<63>g znak<61>w\n\
/I Ignoruje wielko<6B><6F> liter\n\
/N Numeruje wy<77>wietlane linie, zaczynaj<61>c od 1\n\

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Localiza uma seq<65><71>ncia de texto em um ou mais arquivos.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"seq<65><71>ncia\" [ arquivo... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""seq<65><71>ncia"" [ arquivo... ]\n\
/C Exibe apenas o n<>mero de linhas que cont<6E>m a seq<65><71>ncia.\n\
/I Ignora mai<61>sculas/min<69>sculas ao localizar uma seq<65><71>ncia.\n\
/N Exibe o n<>mero de cada linha, iniciando no 1.\n\

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\" [ <20><><EFBFBD><EFBFBD>... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"" [ <20><><EFBFBD><EFBFBD>... ]\n\
/C <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/I <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/N <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> 1).\n\

View File

@@ -8,7 +8,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Zobraz<61> v<>etky riadky s<>boru obsahuj<75>ce h<>adan<61> re<72>azec.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"re<72>azec\" [ s<>bor... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""re<72>azec"" [ s<>bor... ]\n\
/C Zobraz<61> po<70>et riadkov, ktor<6F> obsahuj<75> re<72>azec.\n\
/I Ignoruje ve<76>kos<6F> p<>smen.\n\
/N <20><>sluje zobrazen<65> riadky, za<7A><61>na od 1.\n\

View File

@@ -4,7 +4,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: Skriver ut alla rader i en fil som inneh<65>ller en str<74>ng.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"str<74>ng\" [ fil... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""str<74>ng"" [ fil... ]\n\
/C R<>kna nummren av linjer som inneh<65>ller en str<74>ngen\n\
/I Ignorera skiftl<74>ge\n\
/N Antal visade rader, b<>rjar p<> 1\n\

View File

@@ -12,7 +12,7 @@ STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE, "FIND: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] \"<22><><EFBFBD><EFBFBD><EFBFBD>\" [ <20><><EFBFBD><EFBFBD>... ]\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""<22><><EFBFBD><EFBFBD><EFBFBD>"" [ <20><><EFBFBD><EFBFBD>... ]\n\
/C <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>\n\
/I <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
/N <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> 1)\n\

View File

@@ -16,7 +16,7 @@ extern bool fGameStarted;
extern DWORD dwOptions;
void CreateSol();
void CreateSol(void);
void NewGame(void);
#define NUM_ROW_STACKS 7

View File

@@ -25,7 +25,7 @@ extern DWORD dwDifficulty;
extern TCHAR MsgDeal[];
extern TCHAR MsgWin[];
void CreateSpider();
void CreateSpider(void);
void NewGame(void);
bool CARDLIBPROC RowStackDragProc(CardRegion &stackobj, int iNumCards);

View File

@@ -39,7 +39,7 @@ BEGIN
MENUITEM "Ny&begynder", IDM_BEGINNER
MENUITEM "&Avanceret", IDM_ADVANCED
MENUITEM "&Ekspert", IDM_EXPERT
MENUITEM "B&rugerdefineret" IDM_CUSTOM
MENUITEM "B&rugerdefineret", IDM_CUSTOM
MENUITEM SEPARATOR
MENUITEM "Afslut&t\tAlt+X", IDM_EXIT
END

View File

@@ -32,5 +32,5 @@ extern BOOL bInvertColors;
extern BOOL bStartMinimized;
extern BOOL bShowMagnifier;
void LoadSettings();
void SaveSettings();
void LoadSettings(void);
void SaveSettings(void);

View File

@@ -1,4 +1,3 @@
#pragma once
#include <windows.h>
#include <commctrl.h>

View File

@@ -455,7 +455,7 @@ PlayFile(HWND hwnd, LPTSTR lpFileName)
mciPlay.dwFrom = 0;
mciPlay.dwTo = MaxFilePos;
mciError = mciSendCommand(wDeviceId, MCI_PLAY, MCI_NOTIFY | MCI_FROM | MCI_TO, (DWORD_PTR)&mciPlay);
mciError = mciSendCommand(wDeviceId, MCI_PLAY, MCI_NOTIFY | MCI_FROM /*| MCI_TO*/, (DWORD_PTR)&mciPlay);
if (mciError != 0)
{
MessageBox(hwnd, _T("Can't play!"), NULL, MB_OK);

View File

@@ -203,7 +203,7 @@ GetEventMessageFileDLL(IN LPCWSTR lpLogName,
/* Returns a string containing the requested substituted environment variable. */
ExpandEnvironmentStringsW((LPCWSTR)szModuleName, ExpandedName, MAX_PATH);
/* Succesfull */
/* Successful */
bReturn = TRUE;
}
}
@@ -503,11 +503,12 @@ QueryEventMessages(LPWSTR lpMachineName,
HWND hwndDlg;
HANDLE hEventLog;
EVENTLOGRECORD *pevlr;
DWORD dwRead, dwNeeded, dwThisRecord, dwTotalRecords = 0, dwCurrentRecord = 1, dwRecordsToRead = 0, dwFlags;
DWORD dwRead, dwNeeded, dwThisRecord, dwTotalRecords = 0, dwCurrentRecord = 1, dwRecordsToRead = 0, dwFlags, dwMaxLength;
LPWSTR lpSourceName;
LPWSTR lpComputerName;
LPWSTR lpData;
LPSTR lpData;
BOOL bResult = TRUE; /* Read succeeded. */
int i;
WCHAR szWindowTitle[MAX_PATH];
WCHAR szStatusText[MAX_PATH];
@@ -519,6 +520,7 @@ QueryEventMessages(LPWSTR lpMachineName,
WCHAR szUsername[MAX_PATH];
WCHAR szEventText[EVENT_MESSAGE_FILE_BUFFER];
WCHAR szCategory[MAX_PATH];
WCHAR szData[MAX_PATH];
SYSTEMTIME time;
LVITEMW lviEventItem;
@@ -606,7 +608,7 @@ QueryEventMessages(LPWSTR lpMachineName,
lpComputerName = (LPWSTR)((LPBYTE)pevlr + sizeof(EVENTLOGRECORD) + (wcslen(lpSourceName) + 1) * sizeof(WCHAR));
// This ist the data section of the current event
lpData = (LPWSTR)((LPBYTE)pevlr + pevlr->DataOffset);
lpData = (LPSTR)((LPBYTE)pevlr + pevlr->DataOffset);
// Compute the event type
EventTimeToSystemTime(pevlr->TimeWritten, &time);
@@ -665,7 +667,13 @@ QueryEventMessages(LPWSTR lpMachineName,
ListView_SetItemText(hwndListView, lviEventItem.iItem, 5, szEventID);
ListView_SetItemText(hwndListView, lviEventItem.iItem, 6, szUsername); //User
ListView_SetItemText(hwndListView, lviEventItem.iItem, 7, lpComputerName); //Computer
ListView_SetItemText(hwndListView, lviEventItem.iItem, 8, lpData); //Event Text
MultiByteToWideChar(CP_ACP,
0,
lpData,
pevlr->DataLength,
szData,
MAX_PATH);
ListView_SetItemText(hwndListView, lviEventItem.iItem, 8, szData); //Event Text
dwRead -= pevlr->Length;
pevlr = (EVENTLOGRECORD *)((LPBYTE) pevlr + pevlr->Length);
@@ -678,7 +686,15 @@ QueryEventMessages(LPWSTR lpMachineName,
// All events loaded
EndDialog(hwndDlg, 0);
swprintf(szWindowTitle, L"%s - %s Log on \\\\%s", szTitle, lpLogName, lpComputerName);
i = swprintf(szWindowTitle, L"%s - %s Log on \\\\", szTitle, lpLogName); /* i = number of characters written */
/* lpComputerName can be NULL here if no records was read */
dwMaxLength = sizeof(szWindowTitle)/sizeof(WCHAR)-i;
if(!lpComputerName)
GetComputerNameW(szWindowTitle+i, &dwMaxLength);
else
_snwprintf(szWindowTitle+i, dwMaxLength, L"%s", lpComputerName);
swprintf(szStatusText, L"%s has %d event(s)", lpLogName, dwTotalRecords);
// Update the status bar

View File

@@ -60,3 +60,4 @@
#define IDS_COLUMNUSER 306
#define IDS_COLUMNCOMPUTER 307
#define IDS_COLUMNEVENTDATA 308

View File

@@ -47,14 +47,15 @@ static char sccsid[] = "@(#)cmds.c 5.18 (Berkeley) 4/20/89";
extern char *globerr;
extern char home[];
extern char *remglob();
static const char *remglob(const char *argv[], int doswitch);
extern int allbinary;
extern off_t restart_point;
extern char reply_string[];
const char *mname;
jmp_buf jabort;
const char *dotrans(), *domap();
const char *dotrans(const char *name);
const char *domap(const char *name);
extern short portnum;
extern char *hostname;
@@ -169,8 +170,7 @@ struct types {
/*
* Set transfer type.
*/
void settype(argc, argv)
const char *argv[];
void settype(int argc, const char *argv[])
{
register struct types *p;
int comret;
@@ -225,7 +225,7 @@ const char *stype[] = {
* Set binary transfer type.
*/
/*VARARGS*/
void setbinary()
void setbinary(int argc, const char *argv[])
{
stype[1] = "binary";
settype(2, stype);
@@ -235,7 +235,7 @@ void setbinary()
* Set ascii transfer type.
*/
/*VARARGS*/
void setascii()
void setascii(int argc, const char *argv[])
{
stype[1] = "ascii";
settype(2, stype);
@@ -245,7 +245,7 @@ void setascii()
* Set tenex transfer type.
*/
/*VARARGS*/
void settenex()
void settenex(int argc, const char *argv[])
{
stype[1] = "tenex";
settype(2, stype);
@@ -266,8 +266,7 @@ void setebcdic()
*/
/*ARGSUSED*/
void fsetmode(argc, argv)
char *argv[];
void fsetmode(int argc, const char *argv[])
{
printf("We only support %s mode, sorry.\n", modename);
@@ -280,8 +279,7 @@ void fsetmode(argc, argv)
* Set file transfer format.
*/
/*ARGSUSED*/
void setform(argc, argv)
char *argv[];
void setform(int argc, const char *argv[])
{
printf("We only support %s format, sorry.\n", formname);
@@ -293,8 +291,7 @@ void setform(argc, argv)
* Set file transfer structure.
*/
/*ARGSUSED*/
void setstruct(argc, argv)
char *argv[];
void setstruct(int argc, const char *argv[])
{
printf("We only support %s structure, sorry.\n", structname);
@@ -305,9 +302,7 @@ void setstruct(argc, argv)
/*
* Send a single file.
*/
void put(argc, argv)
int argc;
const char *argv[];
void put(int argc, const char *argv[])
{
const char *cmd;
int loc = 0;
@@ -372,8 +367,7 @@ usage:
/*
* Send multiple files.
*/
void mput(argc, argv)
const char *argv[];
void mput(int argc, const char *argv[])
{
register int i;
int ointer;
@@ -400,7 +394,8 @@ void mput(argc, argv)
// oldintr = signal(SIGINT, mabort);
(void) setjmp(jabort);
if (proxy) {
char *cp, *tp2, tmpbuf[MAXPATHLEN];
const char *cp;
char *tp2, tmpbuf[MAXPATHLEN];
while ((cp = remglob(argv,0)) != NULL) {
if (*cp == 0) {
@@ -503,14 +498,12 @@ void mput(argc, argv)
mflag = 0;
}
void reget(argc, argv)
const char *argv[];
void reget(int argc, const char *argv[])
{
(void) getit(argc, argv, 1, "r+w");
}
void get(argc, argv)
const char *argv[];
void get(int argc, const char *argv[])
{
(void) getit(argc, argv, 0, restart_point ? "r+w" : "w" );
}
@@ -518,9 +511,7 @@ void get(argc, argv)
/*
* Receive one file.
*/
int getit(argc, argv, restartit, mode)
const char *argv[];
const char *mode;
int getit(int argc, const char *argv[], int restartit, const char *mode)
{
int loc = 0;
const char *oldargv1, *oldargv2;
@@ -674,8 +665,7 @@ mabort()
/*
* Get multiple files.
*/
void mget(argc, argv)
const char *argv[];
void mget(int argc, const char *argv[])
{
const char *cp, *tp;
char *tp2, tmpbuf[MAXPATHLEN];
@@ -747,18 +737,17 @@ void mget(argc, argv)
mflag = 0;
}
char *
remglob(argv,doswitch)
char *argv[];
int doswitch;
const char *
remglob(const char *argv[], int doswitch)
{
char temp[16];
static char buf[MAXPATHLEN];
static FILE *ftemp = NULL;
static char **args;
static const char **args;
int oldverbose, oldhash;
char *cp;
const char *cp;
const char *mode;
char *terminator;
if (!mflag) {
if (!doglob) {
@@ -805,16 +794,14 @@ remglob(argv,doswitch)
(void) fclose(ftemp), ftemp = NULL;
return (NULL);
}
if ((cp = index(buf, '\n')) != NULL)
*cp = '\0';
if ((terminator = index(buf, '\n')) != NULL)
*terminator = '\0';
return (buf);
}
static const char *
onoff(bool)
int bool;
onoff(int bool)
{
return (bool ? "on" : "off");
}
@@ -822,8 +809,7 @@ onoff(bool)
* Show status.
*/
/*ARGSUSED*/
void status(argc, argv)
char *argv[];
void status(int argc, const char *argv[])
{
int i;
@@ -877,7 +863,7 @@ void status(argc, argv)
* Set beep on cmd completed mode.
*/
/*VARARGS*/
void setbell()
void setbell(int argc, const char *argv[])
{
bell = !bell;
@@ -890,7 +876,7 @@ void setbell()
* Turn on packet tracing.
*/
/*VARARGS*/
void settrace()
void settrace(int argc, const char *argv[])
{
trace = !trace;
@@ -903,7 +889,7 @@ void settrace()
* Toggle hash mark printing during transfers.
*/
/*VARARGS*/
void sethash()
void sethash(int argc, const char *argv[])
{
hash = !hash;
@@ -919,7 +905,7 @@ void sethash()
* Turn on printing of server echo's.
*/
/*VARARGS*/
void setverbose()
void setverbose(int argc, const char *argv[])
{
verbose = !verbose;
@@ -932,7 +918,7 @@ void setverbose()
* Toggle PORT cmd use before each data connection.
*/
/*VARARGS*/
void setport()
void setport(int argc, const char *argv[])
{
sendport = !sendport;
@@ -946,7 +932,7 @@ void setport()
* during mget, mput, and mdelete.
*/
/*VARARGS*/
void setprompt()
void setprompt(int argc, const char *argv[])
{
interactive = !interactive;
@@ -960,7 +946,7 @@ void setprompt()
* on local file names.
*/
/*VARARGS*/
void setglob()
void setglob(int argc, const char *argv[])
{
doglob = !doglob;
@@ -974,8 +960,7 @@ void setglob()
* set level of debugging.
*/
/*VARARGS*/
void setdebug(argc, argv)
char *argv[];
void setdebug(int argc, const char *argv[])
{
int val;
@@ -1003,8 +988,7 @@ void setdebug(argc, argv)
* Set current working directory
* on remote machine.
*/
void cd(argc, argv)
const char *argv[];
void cd(int argc, const char *argv[])
{
if (argc < 2) {
@@ -1035,8 +1019,7 @@ void cd(argc, argv)
* Set current working directory
* on local machine.
*/
void lcd(argc, argv)
const char *argv[];
void lcd(int argc, const char *argv[])
{
char buf[MAXPATHLEN];
@@ -1065,8 +1048,7 @@ void lcd(argc, argv)
/*
* Delete a single file.
*/
void delete(argc, argv)
const char *argv[];
void delete(int argc, const char *argv[])
{
if (argc < 2) {
@@ -1090,10 +1072,9 @@ void delete(argc, argv)
/*
* Delete multiple files.
*/
void mdelete(argc, argv)
const char *argv[];
void mdelete(int argc, const char *argv[])
{
char *cp;
const char *cp;
int ointer;
extern jmp_buf jabort;
@@ -1140,8 +1121,7 @@ void mdelete(argc, argv)
/*
* Rename a remote file.
*/
void renamefile(argc, argv)
const char *argv[];
void renamefile(int argc, const char *argv[])
{
if (argc < 2) {
@@ -1179,8 +1159,7 @@ usage:
* Get a directory listing
* of remote files.
*/
void ls(argc, argv)
const char *argv[];
void ls(int argc, const char *argv[])
{
const char *cmd;
@@ -1212,8 +1191,7 @@ void ls(argc, argv)
* Get a directory listing
* of multiple remote files.
*/
void mls(argc, argv)
const char *argv[];
void mls(int argc, const char *argv[])
{
const char *cmd, *dest;
char mode[1];
@@ -1276,8 +1254,7 @@ void mls(argc, argv)
* Do a shell escape
*/
/*ARGSUSED*/
void shell(argc, argv)
char *argv[];
void shell(int argc, const char *argv[])
{
#if 0
int pid;
@@ -1396,9 +1373,7 @@ void shell(argc, argv)
/*
* Send new user information (re-login)
*/
void user(argc, argv)
int argc;
const char **argv;
void user(int argc, const char *argv[])
{
char acct[80], *getpass();
int n, aflag = 0;
@@ -1449,7 +1424,7 @@ void user(argc, argv)
* Print working directory.
*/
/*VARARGS*/
void pwd()
void pwd(int argc, const char *argv[])
{
int oldverbose = verbose;
@@ -1468,8 +1443,7 @@ void pwd()
/*
* Make a directory.
*/
void makedir(argc, argv)
const char *argv[];
void makedir(int argc, const char *argv[])
{
if (argc < 2) {
@@ -1499,8 +1473,7 @@ void makedir(argc, argv)
/*
* Remove a directory.
*/
void removedir(argc, argv)
const char *argv[];
void removedir(int argc, const char *argv[])
{
if (argc < 2) {
@@ -1530,8 +1503,7 @@ void removedir(argc, argv)
/*
* Send a line, verbatim, to the remote machine.
*/
void quote(argc, argv)
const char *argv[];
void quote(int argc, const char *argv[])
{
int i;
char buf[BUFSIZ];
@@ -1566,9 +1538,7 @@ void quote(argc, argv)
* is sent almost verbatim to the remote machine, the
* first argument is changed to SITE.
*/
void site(argc, argv)
const char *argv[];
void site(int argc, const char *argv[])
{
int i;
char buf[BUFSIZ];
@@ -1599,8 +1569,7 @@ void site(argc, argv)
}
}
void do_chmod(argc, argv)
const char *argv[];
void do_chmod(int argc, const char *argv[])
{
if (argc == 2) {
printf("usage: %s mode file-name\n", argv[0]);
@@ -1626,8 +1595,7 @@ void do_chmod(argc, argv)
(void)command("SITE CHMOD %s %s", argv[1], argv[2]);
}
void do_umask(argc, argv)
char *argv[];
void do_umask(int argc, const char *argv[])
{
int oldverbose = verbose;
@@ -1636,8 +1604,7 @@ void do_umask(argc, argv)
verbose = oldverbose;
}
void idle(argc, argv)
char *argv[];
void idle(int argc, const char *argv[])
{
int oldverbose = verbose;
@@ -1649,8 +1616,7 @@ void idle(argc, argv)
/*
* Ask the other side for help.
*/
void rmthelp(argc, argv)
char *argv[];
void rmthelp(int argc, const char *argv[])
{
int oldverbose = verbose;
@@ -1663,14 +1629,13 @@ void rmthelp(argc, argv)
* Terminate session and exit.
*/
/*VARARGS*/
void quit()
void quit(int argc, const char *argv[])
{
if (connected)
disconnect();
disconnect(0, NULL);
pswitch(1);
if (connected) {
disconnect();
disconnect(0, NULL);
}
exit(0);
}
@@ -1678,7 +1643,7 @@ void quit()
/*
* Terminate session, but don't exit.
*/
void disconnect()
void disconnect(int argc, const char *argv[])
{
extern int cout;
extern int data;
@@ -1694,8 +1659,7 @@ void disconnect()
}
}
int confirm(cmd, file)
const char *cmd, *file;
int confirm(const char *cmd, const char *file)
{
char line[BUFSIZ];
@@ -1708,8 +1672,7 @@ int confirm(cmd, file)
}
#if 0
static void fatal(msg)
char *msg;
static void fatal(const char *msg)
{
fprintf(stderr, "ftp: %s\n", msg);
@@ -1723,8 +1686,7 @@ static void fatal(msg)
* Can't control multiple values being expanded
* from the expression, we return only the first.
*/
int globulize(cpp)
const char **cpp;
int globulize(const char **cpp)
{
char **globbed;
@@ -1751,9 +1713,7 @@ int globulize(cpp)
return (1);
}
void account(argc,argv)
int argc;
char **argv;
void account(int argc, const char *argv[])
{
char acct[50], *getpass(), *ap;
@@ -1797,9 +1757,7 @@ proxabort()
}
#endif
void doproxy(argc,argv)
int argc;
const char *argv[];
void doproxy(int argc, const char *argv[])
{
register struct cmd *c;
struct cmd *getcmd();
@@ -1865,7 +1823,7 @@ void doproxy(argc,argv)
// (void) signal(SIGINT, oldintr);
}
void setcase()
void setcase(int argc, const char *argv[])
{
mcase = !mcase;
printf("Case mapping %s.\n", onoff(mcase));
@@ -1873,7 +1831,7 @@ void setcase()
code = mcase;
}
void setcr()
void setcr(int argc, const char *argv[])
{
crflag = !crflag;
printf("Carriage Return stripping %s.\n", onoff(crflag));
@@ -1881,9 +1839,7 @@ void setcr()
code = crflag;
}
void setntrans(argc,argv)
int argc;
char *argv[];
void setntrans(int argc, const char *argv[])
{
if (argc == 1) {
ntflag = 0;
@@ -1905,8 +1861,7 @@ void setntrans(argc,argv)
}
const char *
dotrans(name)
const char *name;
dotrans(const char *name)
{
static char new[MAXPATHLEN];
const char *cp1;
@@ -1933,11 +1888,7 @@ dotrans(name)
return(new);
}
void
setpassive(argc, argv)
int argc;
char *argv[];
void setpassive(int argc, const char *argv[])
{
passivemode = !passivemode;
printf("Passive mode %s.\n", onoff(passivemode));
@@ -1945,9 +1896,7 @@ setpassive(argc, argv)
code = passivemode;
}
void setnmap(argc, argv)
int argc;
const char *argv[];
void setnmap(int argc, const char *argv[])
{
char *cp;
@@ -1988,8 +1937,7 @@ void setnmap(argc, argv)
}
const char *
domap(name)
const char *name;
domap(const char *name)
{
static char new[MAXPATHLEN];
const char *cp1 = name;
@@ -2161,7 +2109,7 @@ LOOP:
return(new);
}
void setsunique()
void setsunique(int argc, const char *argv[])
{
sunique = !sunique;
printf("Store unique %s.\n", onoff(sunique));
@@ -2169,7 +2117,7 @@ void setsunique()
code = sunique;
}
void setrunique()
void setrunique(int argc, const char *argv[])
{
runique = !runique;
printf("Receive unique %s.\n", onoff(runique));
@@ -2178,7 +2126,7 @@ void setrunique()
}
/* change directory to perent directory */
void cdup()
void cdup(int argc, const char *argv[])
{
if (command("CDUP") == ERROR && code == 500) {
if (verbose) {
@@ -2190,9 +2138,7 @@ void cdup()
}
/* restart transfer at specific point */
void restart(argc, argv)
int argc;
char *argv[];
void restart(int argc, const char *argv[])
{
if (argc != 2)
printf("restart: offset not specified\n");
@@ -2205,14 +2151,12 @@ void restart(argc, argv)
}
/* show remote system type */
void syst()
void syst(int argc, const char *argv[])
{
(void) command("SYST");
}
void macdef(argc, argv)
int argc;
const char *argv[];
void macdef(int argc, const char *argv[])
{
char *tmp;
int c;
@@ -2287,8 +2231,7 @@ void macdef(argc, argv)
/*
* get size of file on remote machine
*/
void sizecmd(argc, argv)
const char *argv[];
void sizecmd(int argc, const char *argv[])
{
if (argc < 2) {
@@ -2312,8 +2255,7 @@ void sizecmd(argc, argv)
/*
* get last modification time of file on remote machine
*/
void modtime(argc, argv)
const char *argv[];
void modtime(int argc, const char *argv[])
{
int overbose;
@@ -2351,8 +2293,7 @@ void modtime(argc, argv)
/*
* show status on reomte machine
*/
void rmtstatus(argc, argv)
const char *argv[];
void rmtstatus(int argc, const char *argv[])
{
(void) command(argc > 1 ? "STAT %s" : "STAT" , argv[1]);
}
@@ -2360,8 +2301,7 @@ void rmtstatus(argc, argv)
/*
* get file if modtime is more recent than current file
*/
void newer(argc, argv)
const char *argv[];
void newer(int argc, const char *argv[])
{
if (getit(argc, argv, -1, "w")) {
printf("Local file \"%s\" is newer than remote file \"%s\"\n",

View File

@@ -28,9 +28,7 @@ static char sccsid[] = "@(#)domacro.c 1.6 (Berkeley) 2/28/89";
#include <ctype.h>
//#include <sys/ttychars.h>
void domacro(argc, argv)
int argc;
const char *argv[];
void domacro(int argc, const char *argv[])
{
int i, j;
const char *cp1;

View File

@@ -35,7 +35,7 @@ void blkfree(char **av0)
free(*av++);
}
char **glob(register char *v)
char **glob(const char *v)
{
return NULL;
}

View File

@@ -110,7 +110,7 @@ typedef void (*Sig_t)(int);
void psabort(int sig);
char *hookup(char *host, int port)
char *hookup(const char *host, int port)
{
register struct hostent *hp = 0;
int len;
@@ -837,7 +837,7 @@ null();// (void) signal(SIGINT, oldintr);
oldverbose = verbose;
if (!debug)
verbose = 0;
setascii();
setascii(0, NULL);
verbose = oldverbose;
}
} else if (restart_point) {
@@ -852,13 +852,13 @@ null();// (void) signal(SIGINT, oldintr);
verbose = 0;
switch (oldtype) {
case TYPE_I:
setbinary();
setbinary(0, NULL);
break;
case TYPE_E:
setebcdic();
break;
case TYPE_L:
settenex();
settenex(0, NULL);
break;
}
verbose = oldverbose;
@@ -873,13 +873,13 @@ null();// (void) signal(SIGINT, oldintr);
verbose = 0;
switch (oldtype) {
case TYPE_I:
setbinary();
setbinary(0, NULL);
break;
case TYPE_E:
setebcdic();
break;
case TYPE_L:
settenex();
settenex(0, NULL);
break;
}
verbose = oldverbose;
@@ -1044,13 +1044,13 @@ null();// (void) signal(SIGPIPE, oldintp);
verbose = 0;
switch (oldtype) {
case TYPE_I:
setbinary();
setbinary(0, NULL);
break;
case TYPE_E:
setebcdic();
break;
case TYPE_L:
settenex();
settenex(0, NULL);
break;
}
verbose = oldverbose;
@@ -1069,13 +1069,13 @@ null();// (void) signal(SIGINT,SIG_IGN);
verbose = 0;
switch (oldtype) {
case TYPE_I:
setbinary();
setbinary(0, NULL);
break;
case TYPE_E:
setebcdic();
break;
case TYPE_L:
settenex();
settenex(0, NULL);
break;
}
verbose = oldverbose;
@@ -1463,16 +1463,16 @@ void proxtrans(cmd, local, remote)
oldtype = type;
switch (tmptype) {
case TYPE_A:
setascii();
setascii(0, NULL);
break;
case TYPE_I:
setbinary();
setbinary(0, NULL);
break;
case TYPE_E:
setebcdic();
break;
case TYPE_L:
settenex();
settenex(0, NULL);
break;
}
}
@@ -1481,16 +1481,16 @@ void proxtrans(cmd, local, remote)
case 0:
break;
case TYPE_A:
setascii();
setascii(0, NULL);
break;
case TYPE_I:
setbinary();
setbinary(0, NULL);
break;
case TYPE_E:
setebcdic();
break;
case TYPE_L:
settenex();
settenex(0, NULL);
break;
}
pswitch(1);
@@ -1505,16 +1505,16 @@ null();// (void) signal(SIGINT, oldintr);
case 0:
break;
case TYPE_A:
setascii();
setascii(0, NULL);
break;
case TYPE_I:
setbinary();
setbinary(0, NULL);
break;
case TYPE_E:
setebcdic();
break;
case TYPE_L:
settenex();
settenex(0, NULL);
break;
}
pswitch(1);
@@ -1534,16 +1534,16 @@ null();// (void) signal(SIGINT, oldintr);
case 0:
break;
case TYPE_A:
setascii();
setascii(0, NULL);
break;
case TYPE_I:
setbinary();
setbinary(0, NULL);
break;
case TYPE_E:
setebcdic();
break;
case TYPE_L:
settenex();
settenex(0, NULL);
break;
}
pswitch(1);
@@ -1565,16 +1565,16 @@ null();// (void) signal(SIGINT, SIG_IGN);
case 0:
break;
case TYPE_A:
setascii();
setascii(0, NULL);
break;
case TYPE_I:
setbinary();
setbinary(0, NULL);
break;
case TYPE_E:
setebcdic();
break;
case TYPE_L:
settenex();
settenex(0, NULL);
break;
}
if (cpend) {
@@ -1636,16 +1636,16 @@ null();// (void) signal(SIGINT, oldintr);
case 0:
break;
case TYPE_A:
setascii();
setascii(0, NULL);
break;
case TYPE_I:
setbinary();
setbinary(0, NULL);
break;
case TYPE_E:
setebcdic();
break;
case TYPE_L:
settenex();
settenex(0, NULL);
break;
}
if (cpend) {
@@ -1720,16 +1720,16 @@ null();// (void) signal(SIGINT, oldintr);
case 0:
break;
case TYPE_A:
setascii();
setascii(0, NULL);
break;
case TYPE_I:
setbinary();
setbinary(0, NULL);
break;
case TYPE_E:
setebcdic();
break;
case TYPE_L:
settenex();
settenex(0, NULL);
break;
}
pswitch(1);
@@ -1738,7 +1738,7 @@ null();// (void) signal(SIGINT, oldintr);
null();// (void) signal(SIGINT, oldintr);
}
void reset()
void reset(int argc, const char *argv[])
{
// struct
fd_set mask;

View File

@@ -141,7 +141,7 @@ struct cmd {
char c_bell; /* give bell when command completes */
char c_conn; /* must be connected to use command */
char c_proxy; /* proxy server may execute */
void (*c_handler)(); /* function to call */
void (*c_handler)(int argc, const char *argv[]); /* function to call */
};
struct macel {

View File

@@ -53,10 +53,10 @@ static char sccsid[] = "@(#)main.c based on 5.13 (Berkeley) 3/14/89";
typedef int uid_t;
#endif
uid_t getuid();
void intr();
void lostpeer();
char *getlogin();
uid_t getuid(void);
void intr(void);
void lostpeer(void);
char *getlogin(void);
short portnum;
@@ -262,10 +262,8 @@ int main(int argc, const char *argv[])
}
}
void
intr()
void intr(void)
{
longjmp(toplevel, 1);
}
@@ -299,8 +297,7 @@ void lostpeer(void)
}
/*char *
tail(filename)
char *filename;
tail(char *filename)
{
register char *s;
@@ -318,8 +315,7 @@ tail(filename)
/*
* Command parser.
*/
void cmdscanner(top)
int top;
void cmdscanner(int top)
{
register struct cmd *c;
@@ -333,7 +329,7 @@ void cmdscanner(top)
}
if (gets(line) == 0) {
if (feof(stdin) || ferror(stdin))
quit();
quit(0, NULL);
break;
}
if (line[0] == 0)
@@ -367,8 +363,7 @@ void cmdscanner(top)
}
struct cmd *
getcmd(name)
const char *name;
getcmd(const char *name)
{
extern struct cmd cmdtab[];
const char *p, *q;
@@ -402,7 +397,7 @@ getcmd(name)
int slrflag;
void makeargv()
void makeargv(void)
{
const char **argp;
@@ -421,7 +416,7 @@ void makeargv()
* handle quoting and strings
*/
static const char *
slurpstring()
slurpstring(void)
{
int got_one = 0;
register char *sb = stringbase;
@@ -544,9 +539,7 @@ OUT1:
* Help command.
* Call each command handler with argc == 0 and argv[0] == name.
*/
void help(argc, argv)
int argc;
char *argv[];
void help(int argc, const char *argv[])
{
extern struct cmd cmdtab[];
struct cmd *c;
@@ -594,7 +587,7 @@ void help(argc, argv)
return;
}
while (--argc > 0) {
register char *arg;
const char *arg;
arg = *++argv;
c = getcmd(arg);
if (c == (struct cmd *)-1)

View File

@@ -8,8 +8,8 @@ int fputcSocket(int s, char putChar);
int fputSocket(int s, char *putChar, int len);
char *fgetsSocket(int s, char *string);
char *hookup();
char **glob();
char *hookup(const char *host, int port);
char **glob(const char *s);
int herror(char *s);
int getreply(int expecteof);
@@ -20,18 +20,18 @@ void domacro(int argc, const char *argv[]);
void proxtrans(const char *cmd, const char *local, const char *remote);
int null(void);
int initconn(void);
void disconnect(void);
void disconnect(int argc, const char *argv[]);
void ptransfer(const char *direction, long bytes, struct timeval *t0, struct timeval *t1);
void setascii(void);
void setbinary(void);
void setascii(int argc, const char *argv[]);
void setbinary(int argc, const char *argv[]);
void setebcdic(void);
void settenex(void);
void settenex(int argc, const char *argv[]);
void tvsub(struct timeval *tdiff, struct timeval *t1, struct timeval *t0);
void setpassive(int argc, char *argv[]);
void setpassive(int argc, const char *argv[]);
void setpeer(int argc, const char *argv[]);
void cmdscanner(int top);
void pswitch(int flag);
void quit(void);
void quit(int argc, const char *argv[]);
int login(const char *host);
int command(const char *fmt, ...);
int globulize(const char **cpp);
@@ -43,22 +43,59 @@ void blkfree(char **av0);
int getit(int argc, const char *argv[], int restartit, const char *mode);
int sleep(int time);
char *tail();
void setbell(), setdebug();
void setglob(), sethash(), setport();
void setprompt();
void settrace(), setverbose();
void settype(), setform(), setstruct();
void restart(), syst();
void cd(), lcd(), delete(), mdelete();
void ls(), mls(), get(), mget(), help(), append(), put(), mput(), reget();
void status();
void renamefile();
void quote(), rmthelp(), site();
void pwd(), makedir(), removedir(), setcr();
void account(), doproxy(), reset(), setcase(), setntrans(), setnmap();
void setsunique(), setrunique(), cdup(), macdef();
void sizecmd(), modtime(), newer(), rmtstatus();
void do_chmod(), do_umask(), idle();
void shell(), user(), fsetmode();
struct cmd *getcmd();
char *tail(void);
void setbell(int argc, const char *argv[]);
void setdebug(int argc, const char *argv[]);
void setglob(int argc, const char *argv[]);
void sethash(int argc, const char *argv[]);
void setport(int argc, const char *argv[]);
void setprompt(int argc, const char *argv[]);
void settrace(int argc, const char *argv[]);
void setverbose(int argc, const char *argv[]);
void settype(int argc, const char *argv[]);
void setform(int argc, const char *argv[]);
void setstruct(int argc, const char *argv[]);
void restart(int argc, const char *argv[]);
void syst(int argc, const char *argv[]);
void cd(int argc, const char *argv[]);
void lcd(int argc, const char *argv[]);
void delete(int argc, const char *argv[]);
void mdelete(int argc, const char *argv[]);
void ls(int argc, const char *argv[]);
void mls(int argc, const char *argv[]);
void get(int argc, const char *argv[]);
void mget(int argc, const char *argv[]);
void help(int argc, const char *argv[]);
void put(int argc, const char *argv[]);
void mput(int argc, const char *argv[]);
void reget(int argc, const char *argv[]);
void status(int argc, const char *argv[]);
void renamefile(int argc, const char *argv[]);
void quote(int argc, const char *argv[]);
void rmthelp(int argc, const char *argv[]);
void site(int argc, const char *argv[]);
void pwd(int argc, const char *argv[]);
void makedir(int argc, const char *argv[]);
void removedir(int argc, const char *argv[]);
void setcr(int argc, const char *argv[]);
void account(int argc, const char *argv[]);
void doproxy(int argc, const char *argv[]);
void reset(int argc, const char *argv[]);
void setcase(int argc, const char *argv[]);
void setntrans(int argc, const char *argv[]);
void setnmap(int argc, const char *argv[]);
void setsunique(int argc, const char *argv[]);
void setrunique(int argc, const char *argv[]);
void cdup(int argc, const char *argv[]);
void macdef(int argc, const char *argv[]);
void sizecmd(int argc, const char *argv[]);
void modtime(int argc, const char *argv[]);
void newer(int argc, const char *argv[]);
void rmtstatus(int argc, const char *argv[]);
void do_chmod(int argc, const char *argv[]);
void do_umask(int argc, const char *argv[]);
void idle(int argc, const char *argv[]);
void shell(int argc, const char *argv[]);
void user(int argc, const char *argv[]);
void fsetmode(int argc, const char *argv[]);
struct cmd *getcmd(const char *name);

View File

@@ -13,8 +13,8 @@
#include <stdlib.h>
#include <windows.h>
void help();
int unimplemented();
void help(void);
int unimplemented(void);
INT cmdHelp(INT argc, CHAR **argv);

View File

@@ -2,13 +2,13 @@ LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE "\nSyntax: ping [-t] [-n Anzahl] [-l Gr<47><72>e] [-w Zeitlimit] Zielhost\n\n" \
"Optionen:\n" \
" -t Sendet fortlaufend Pings an den angegebenen Host.\n" \
" Dr<44>cken Sie STRG-C, um den Vorgang abzubrechen.\n" \
" -n Anzahl Anzahl der Echoanforderungen, die gesendet werden.\n" \
" -l Gr<47><72>e Gr<47><72>e des Sendepuffers.\n" \
" -w Zeitlimit Zeitlimit in Millisekunden f<>r eine Antwort.\n\n\0"
IDS_USAGE "\nSyntax: ping [-t] [-n Anzahl] [-l Gr<47><72>e] [-w Zeitlimit] Zielhost\n\n\
Optionen:\n\
-t Sendet fortlaufend Pings an den angegebenen Host.\n\
Dr<44>cken Sie STRG-C, um den Vorgang abzubrechen.\n\
-n Anzahl Anzahl der Echoanforderungen, die gesendet werden.\n\
-l Gr<47><72>e Gr<47><72>e des Sendepuffers.\n\
-w Zeitlimit Zeitlimit in Millisekunden f<>r eine Antwort.\n\n\0"
IDS_PING_WITH_BYTES "\nPinging %1 [%2] with %3!d! bytes Data:\n\n\0"
IDS_PING_STATISTICS "\nPing Statistik f<>r %1:\n\0"

View File

@@ -2,14 +2,14 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE "\nUsage: ping [-t] [-n count] [-l size] [-w timeout] destination-host\n\n" \
"Options:\n" \
" -t Ping the specified host until stopped.\n" \
" To stop - type Control-C.\n" \
" -n count Number of echo requests to send.\n" \
" -l size Send buffer size.\n" \
" -w timeout Timeout in milliseconds to wait for each reply.\n\n\0"
IDS_USAGE "\nUsage: ping [-t] [-n count] [-l size] [-w timeout] destination-host\n\n\
Options:\n\
-t Ping the specified host until stopped.\n\
To stop - type Control-C.\n\
-n count Number of echo requests to send.\n\
-l size Send buffer size.\n\
-w timeout Timeout in milliseconds to wait for each reply.\n\n\0"
IDS_PING_WITH_BYTES "\nPinging %1 [%2] with %3!d! bytes of data:\n\n\0"
IDS_PING_STATISTICS "\nPing statistics for %1:\n\0"
IDS_PACKETS_SENT_RECEIVED_LOST " Packets: Sent = %1!d!, Received = %2!d!, Lost = %3!d! (%4!d!%% loss),\n\0"

View File

@@ -2,14 +2,14 @@ LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE "\nUtilisation : ping [-t] [-n nombre] [-l taille] [-w délai] hôte-destination\n\n" \
"Options :\n" \
" -t Ping l'hôte spécifié jusqu'à l'arrêt.\n" \
" Pour l'arrêter, tapez Ctrl+c.\n" \
" -n nombre Nombre de requêtes echo à envoyer.\n" \
" -l taille Taille du tampon d'envoi.\n" \
" -w délai Délai d'attente en millisecondes pour chaque réponse.\n\n\0"
IDS_USAGE "\nUtilisation : ping [-t] [-n nombre] [-l taille] [-w délai] hôte-destination\n\n\
Options :\n\
-t Ping l'hôte spécifié jusqu'à l'arrêt.\n\
Pour l'arrêter, tapez Ctrl+c.\n\
-n nombre Nombre de requêtes echo à envoyer.\n\
-l taille Taille du tampon d'envoi.\n\
-w délai Délai d'attente en millisecondes pour chaque réponse.\n\n\0"
IDS_PING_WITH_BYTES "\nPing de %1 [%2] avec %3!d! octets de données :\n\n\0"
IDS_PING_STATISTICS "\nStatistiques du ping de %1 :\n\0"
IDS_PACKETS_SENT_RECEIVED_LOST " Paquets : Envoyés = %1!d!, Reçus = %2!d!, Perdus = %3!d! (%4!d!%% de perte),\n\0"

View File

@@ -2,14 +2,14 @@ LANGUAGE LANG_ITALIAN, SUBLANG_NEUTRAL
STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE "\nUso: ping [-t] [-n conteggio] [-l dimensione] [-w timeout] host-destinazione\n\n" \
"Opzioni:\n" \
" -t Esegue il ping dell'host specificato finch<63> non termina.\n" \
" Per fermare - digitare Control-C.\n" \
" -n conteggio Numero di richieste echo da inviare.\n" \
" -l dimensione Dimensione del buffer di invio.\n" \
" -w timeout Timeout in millisecondi per l'attesa di ogni risposta.\n\n\0"
IDS_USAGE "\nUso: ping [-t] [-n conteggio] [-l dimensione] [-w timeout] host-destinazione\n\n\
Opzioni:\n\
-t Esegue il ping dell'host specificato finch<63> non termina.\n\
Per fermare - digitare Control-C.\n\
-n conteggio Numero di richieste echo da inviare.\n\
-l dimensione Dimensione del buffer di invio.\n\
-w timeout Timeout in millisecondi per l'attesa di ogni risposta.\n\n\0"
IDS_PING_WITH_BYTES "\nPing in corso %1 [%2] con %3!d! bytes di dati:\n\n\0"
IDS_PING_STATISTICS "\nStatistiche di Ping per %1:\n\0"
IDS_PACKETS_SENT_RECEIVED_LOST " Pacchetti: Inviati = %1!d!, Ricevuti = %2!d!, Persi = %3!d! (%4!d!%% perdita),\n\0"

View File

@@ -9,14 +9,14 @@ LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE "\nSpos<6F>b u<>ycia: ping [-t] [-n ilo<6C><6F>] [-l bajt<6A>w] [-w czas] host-docelowy\n\n" \
"Opcje:\n" \
" -t Pinguj wskazanego hosta w spos<6F>b ci<63>g<EFBFBD>y.\n" \
" Aby przerwa<77> - wci<63>nij Control C.\n" \
" -n ilo<6C><6F> Ilo<6C><6F> pr<70>b pingowania.\n" \
" -l bajt<6A>w Rozmiar pakietu echo w bajtach .\n" \
" -w czas Op<4F><70>nienie oczekiwanej odpowiedzi, w milisekundach.\n\n\0"
IDS_USAGE "\nSpos<6F>b u<>ycia: ping [-t] [-n ilo<6C><6F>] [-l bajt<6A>w] [-w czas] host-docelowy\n\n\
Opcje:\n\
-t Pinguj wskazanego hosta w spos<6F>b ci<63>g<EFBFBD>y.\n\
Aby przerwa<77> - wci<63>nij Control C.\n\
-n ilo<6C><6F> Ilo<6C><6F> pr<70>b pingowania.\n\
-l bajt<6A>w Rozmiar pakietu echo w bajtach .\n\
-w czas Op<4F><70>nienie oczekiwanej odpowiedzi, w milisekundach.\n\n\0"
IDS_PING_WITH_BYTES "\nPingowanie %1 [%2] przy u<>yciu %3!d! bajt<6A>w danych:\n\n\0"
IDS_PING_STATISTICS "\nStatystyka wynik<69>w badania hosta %1:\n\0"
IDS_PACKETS_SENT_RECEIVED_LOST " Pakiety: Wys<79>ane = %1!d!, Odebrane = %2!d!, Utracone = %3!d! (%4!d!%% strat),\n\0"

View File

@@ -0,0 +1,43 @@
/*
* PROJECT: Ping for ReactOS
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/network/ping/lang/uk-UA.rc
* PURPOSE: Ukraianian Language File for Ping
* TRANSLATORS: Sakara Eugene (vzov@yandex.ua)
*/
LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT
STRINGTABLE DISCARDABLE
BEGIN
IDS_USAGE "\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: ping [-t] [-n count] [-l size] [-w timeout] <20><><EFBFBD><EFBFBD>\n\n\
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n\
-t ϳ<><CFB3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
<20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Control-C.\n\
-n count <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
-l size <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
-w timeout <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\n\0"
IDS_PING_WITH_BYTES "\n<><6E><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> %1 [%2] <20><> %3!d! <20><><EFBFBD><EFBFBD><EFBFBD>:\n\n\0"
IDS_PING_STATISTICS "\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ping <20><><EFBFBD> %1:\n\0"
IDS_PACKETS_SENT_RECEIVED_LOST " <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = %1!d!, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = %2!d!, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = %3!d! (%4!d!%% <20><><EFBFBD><EFBFBD><EFBFBD>),\n\0"
IDS_APPROXIMATE_ROUND_TRIP "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n\0"
IDS_MIN_MAX_AVERAGE " ̳<><CCB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = %1, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = %2, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = %3\n\0"
IDS_NOT_ENOUGH_RESOURCES "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\0"
IDS_UNKNOWN_HOST "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> %1.\n\0"
IDS_SETSOCKOPT_FAILED "setsockopt <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (%1!d!).\n\0"
IDS_COULD_NOT_CREATE_SOCKET "<22><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (#%1!d!).\n\0"
IDS_COULD_NOT_INIT_WINSOCK "<22><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> winsock dll.\n\0"
IDS_DEST_MUST_BE_SPECIFIED "<22><>'<27> <20><><EFBFBD> IP-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\0"
IDS_BAD_PARAMETER "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> %1.\n\0"
IDS_BAD_OPTION_FORMAT "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> %1.\n\0"
IDS_BAD_OPTION "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> %1.\n\0"
IDS_BAD_VALUE_OPTION_L "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> -l, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> 0 <20><> %1!d!.\n\0"
IDS_REPLY_FROM "³<><C2B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> %1: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>=%2!d! <20><><EFBFBD>%3%4 TTL=%5!d!\n\0"
IDS_DEST_UNREACHABLE "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\0"
IDS_COULD_NOT_TRANSMIT "<22><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> (%1!d!).\n\0"
IDS_COULD_NOT_RECV "<22><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> (%1!d!).\n\0"
IDS_REQUEST_TIMEOUT "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\0"
IDS_MS "<22><>\0"
IDS_1MS "1<><31>\0"
END

View File

@@ -738,6 +738,7 @@ int wmain(int argc, LPWSTR argv[])
FormatOutput(IDS_PACKETS_SENT_RECEIVED_LOST,\
SentCount, SentCount - LostCount, LostCount, Count);
/* Print approximate times or NO approximate times if 100% loss */
if ((SentCount - LostCount) > 0)
{

View File

@@ -13,3 +13,4 @@
#include "lang/fr-FR.rc"
#include "lang/pl-PL.rc"
#include "lang/it-IT.rc"
#include "lang/uk-UA.rc"

View File

@@ -112,31 +112,27 @@ VOID ShowLastError(void)
/**
* Sets the caption of the main window according to Globals.szFileTitle:
* Notepad - (untitled) if no file is open
* Notepad - [filename] if a file is given
* (untitled) - Notepad if no file is open
* [filename] - Notepad if a file is given
*/
static void UpdateWindowCaption(void)
{
TCHAR szCaption[MAX_STRING_LEN];
TCHAR szUntitled[MAX_STRING_LEN];
TCHAR szCaption[MAX_STRING_LEN] = _T("");
TCHAR szNotepad[MAX_STRING_LEN];
LoadString(Globals.hInstance, STRING_NOTEPAD, szCaption, SIZEOF(szCaption));
LoadString(Globals.hInstance, STRING_NOTEPAD, szNotepad, SIZEOF(szNotepad));
if (Globals.szFileTitle[0] != '\0') {
static const TCHAR bracket_l[] = _T(" - [");
static const TCHAR bracket_r[] = _T("]");
_tcscat(szCaption, bracket_l);
_tcscat(szCaption, Globals.szFileTitle);
_tcscat(szCaption, bracket_r);
if (Globals.szFileTitle[0] != '\0')
{
StringCchCat(szCaption, MAX_STRING_LEN, Globals.szFileTitle);
}
else
{
static const TCHAR hyphen[] = _T(" - ");
LoadString(Globals.hInstance, STRING_UNTITLED, szUntitled, SIZEOF(szUntitled));
_tcscat(szCaption, hyphen);
_tcscat(szCaption, szUntitled);
LoadString(Globals.hInstance, STRING_UNTITLED, szCaption, SIZEOF(szCaption));
}
StringCchCat(szCaption, MAX_STRING_LEN, _T(" - "));
StringCchCat(szCaption, MAX_STRING_LEN, szNotepad);
SetWindowText(Globals.hMainWnd, szCaption);
}
@@ -684,7 +680,7 @@ VOID DIALOG_EditTimeDate(VOID)
_tcscat(szText, _T(" "));
GetDateFormat(LOCALE_USER_DEFAULT, DATE_LONGDATE, &st, NULL, szDate, MAX_STRING_LEN);
_tcscat(szText, szDate);
SendMessage(Globals.hEdit, EM_REPLACESEL, TRUE, (LPARAM)szDate);
SendMessage(Globals.hEdit, EM_REPLACESEL, TRUE, (LPARAM)szText);
}
VOID DoCreateStatusBar(VOID)
@@ -766,7 +762,7 @@ VOID DoCreateEditWindow(VOID)
{
DWORD dwStyle;
int iSize;
LPTSTR pTemp;
LPTSTR pTemp = NULL;
iSize = 0;

View File

@@ -87,7 +87,7 @@ BEGIN
MENUITEM "&<26><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>...", CMD_HELP_SEARCH
MENUITEM "&<26><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", CMD_HELP_ON_HELP
MENUITEM SEPARATOR
MENUITEM "&<26><>" CMD_ABOUT
MENUITEM "&<26><>", CMD_ABOUT
MENUITEM "<22>&<26><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", CMD_ABOUT_WINE
END
END

View File

@@ -89,7 +89,7 @@ BEGIN
MENUITEM "&Naj<61>t...", CMD_HELP_SEARCH
MENUITEM "Pomoc k n<>&pov<6F>d<EFBFBD>", CMD_HELP_ON_HELP
MENUITEM SEPARATOR
MENUITEM "&O programu..." CMD_ABOUT
MENUITEM "&O programu...", CMD_ABOUT
MENUITEM "In&fo...", CMD_ABOUT_WINE
END
END

View File

@@ -86,7 +86,7 @@ BEGIN
MENUITEM "&S<>g efter hj<68>lp om...", CMD_HELP_SEARCH
MENUITEM "&Brug af Hj<48>lp", CMD_HELP_ON_HELP
MENUITEM SEPARATOR
MENUITEM "&About" CMD_ABOUT
MENUITEM "&About", CMD_ABOUT
MENUITEM "&Om Notesblok", CMD_ABOUT_WINE
END
END

View File

@@ -87,7 +87,7 @@ BEGIN
MENUITEM "&Suchen...", CMD_HELP_SEARCH
MENUITEM "&Hilfe benutzen", CMD_HELP_ON_HELP
MENUITEM SEPARATOR
MENUITEM "&<26>ber" CMD_ABOUT
MENUITEM "&<26>ber", CMD_ABOUT
MENUITEM "Inf&o", CMD_ABOUT_WINE
END
END

View File

@@ -85,7 +85,7 @@ BEGIN
MENUITEM "&<26><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>...", CMD_HELP_SEARCH
MENUITEM "&<26><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", CMD_HELP_ON_HELP
MENUITEM SEPARATOR
MENUITEM "&About" CMD_ABOUT
MENUITEM "&About", CMD_ABOUT
MENUITEM "<22><><EFBFBD><EFBFBD><EFBFBD>&<26><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>", CMD_ABOUT_WINE
END
END

View File

@@ -89,7 +89,7 @@ BEGIN
MENUITEM "&Buscar...", CMD_HELP_SEARCH
MENUITEM "A&yuda sobre la ayuda", CMD_HELP_ON_HELP
MENUITEM SEPARATOR
MENUITEM "&Acerca de" CMD_ABOUT
MENUITEM "&Acerca de", CMD_ABOUT
MENUITEM "&Informaci<63>n...", CMD_ABOUT_WINE
END
END

View File

@@ -65,7 +65,7 @@ BEGIN
MENUITEM "&Bilatu...", CMD_HELP_SEARCH
MENUITEM "Laguntzari buruz laguntza", CMD_HELP_ON_HELP
MENUITEM SEPARATOR
MENUITEM "&Ohar-blokari buruz" CMD_ABOUT
MENUITEM "&Ohar-blokari buruz", CMD_ABOUT
MENUITEM "&Informazioa...", CMD_ABOUT_WINE
END
END

View File

@@ -86,7 +86,7 @@ BEGIN
MENUITEM "&Etsi...", CMD_HELP_SEARCH
MENUITEM "Apua &Opastuksesta", CMD_HELP_ON_HELP
MENUITEM SEPARATOR
MENUITEM "&About" CMD_ABOUT
MENUITEM "&About", CMD_ABOUT
MENUITEM "Inf&o...", CMD_ABOUT_WINE
END
END

View File

@@ -87,7 +87,7 @@ BEGIN
MENUITEM "&Rechercher...", CMD_HELP_SEARCH
MENUITEM "&Utiliser l'aide", CMD_HELP_ON_HELP
MENUITEM SEPARATOR
MENUITEM "&<26> propos" CMD_ABOUT
MENUITEM "&<26> propos", CMD_ABOUT
MENUITEM "Inf&o...", CMD_ABOUT_WINE
END
END

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