Compare commits

..

7132 Commits

Author SHA1 Message Date
Magnus Olsen
3fc60348d1 commit the working ks.h header, we need fixing portcls.h before we can commit it to trunk
svn path=/branches/reactx/; revision=33003
2008-04-17 17:37:43 +00:00
Magnus Olsen
44f5135cee fix a typo
svn path=/branches/reactx/; revision=32280
2008-02-10 21:01:18 +00:00
Magnus Olsen
fcdf5988ad This header work now to build ksfilter, it is some linking issue now for ksfilter
svn path=/branches/reactx/; revision=32278
2008-02-10 20:22:16 +00:00
Magnus Olsen
60ab52bffd fix some more build issue for ks.h in trunk for ksfilter driver
svn path=/branches/reactx/; revision=32270
2008-02-10 18:37:31 +00:00
Magnus Olsen
f9f5208de9 fixet more building issue with trunk
svn path=/branches/reactx/; revision=32267
2008-02-10 16:21:07 +00:00
Magnus Olsen
d2b05bf4b9 fixed some wrong postions of some struct
svn path=/branches/reactx/; revision=32266
2008-02-10 15:23:49 +00:00
Magnus Olsen
0b6354fdc1 Finsh ks.h header time to test it in trunk before it merges down
svn path=/branches/reactx/; revision=32258
2008-02-10 12:58:54 +00:00
Magnus Olsen
4806139fe6 add more struct, define, type and so.
around 90% completed of this header now

svn path=/branches/reactx/; revision=32246
2008-02-10 01:21:12 +00:00
Magnus Olsen
572dd8c11e fixet wrong KSDATAFORMAT thx silverblade
add new com, define, types, struct

svn path=/branches/reactx/; revision=32245
2008-02-09 23:39:50 +00:00
Magnus Olsen
7f564f7789 add more struct, define, type and so.
around 70% completed of this header now

svn path=/branches/reactx/; revision=32244
2008-02-09 22:07:41 +00:00
Magnus Olsen
4deeb5ec6b add more struct, define, type and so.
around 48% completed of this header now

svn path=/branches/reactx/; revision=32243
2008-02-09 20:25:33 +00:00
Magnus Olsen
00d398cbcf adding few more struct
svn path=/branches/reactx/; revision=32242
2008-02-09 18:02:55 +00:00
Magnus Olsen
858e5d6456 fixet small typo in ks.h
svn path=/branches/reactx/; revision=32241
2008-02-09 17:10:25 +00:00
Magnus Olsen
d05c0eadf6 Update the documentation
adding lite more code 

svn path=/branches/reactx/; revision=30301
2007-11-09 17:33:02 +00:00
Magnus Olsen
7e69094a29 Implement KsCreateAllocator, KsCreateClock, KsCreatePin, KsCreateTopologyNode
stub : KsiCreateObjectType
all functions are call to KsiCreateObjectType, so they are not really implement.
Old code from 2004, it have not been cleanup for KsiCreateObjectType, the new ks.h header I wrote is now ready for this code. 
This module can not be merge to trunk until the new ks.h is ready. 





svn path=/branches/reactx/; revision=30295
2007-11-09 15:08:44 +00:00
Magnus Olsen
6855595796 update the new ks-h with one more struct
svn path=/branches/reactx/; revision=30293
2007-11-09 14:21:55 +00:00
Magnus Olsen
59a7e0c23c Fix the reactx build for ksuser.dll
svn path=/branches/reactx/; revision=30278
2007-11-08 20:09:58 +00:00
Magnus Olsen
b9039cc7c8 Start on ksuser.
svn path=/branches/reactx/; revision=30277
2007-11-08 20:08:42 +00:00
Magnus Olsen
ea280e00a7 fix wdmguid.a (it is now compatible with ddk version 3790.1830)
svn path=/branches/reactx/; revision=30275
2007-11-08 16:19:08 +00:00
Magnus Olsen
ce29a81e41 start fixing wdmguid.a 50% is done
svn path=/branches/reactx/; revision=30258
2007-11-08 01:49:53 +00:00
Magnus Olsen
171df52e37 add last guids for ksguid.a
This lib are now completed against ddk version 3790.1830

svn path=/branches/reactx/; revision=30256
2007-11-08 00:59:17 +00:00
Magnus Olsen
a430817798 add 20 more guids for ksguid.a
svn path=/branches/reactx/; revision=30253
2007-11-08 00:18:34 +00:00
Magnus Olsen
26c0180e8a smaller cleanup/sort in the guids define list bit
svn path=/branches/reactx/; revision=30252
2007-11-07 23:46:50 +00:00
Magnus Olsen
f3044a10fe add some more guids id to ksguid
smaller cleanup/sort in the guids define list bit

svn path=/branches/reactx/; revision=30250
2007-11-07 22:47:20 +00:00
Magnus Olsen
419b1f3665 add 40 more guids for ksguid.a
svn path=/branches/reactx/; revision=30246
2007-11-07 21:45:50 +00:00
Magnus Olsen
d4856b4202 add around 100 more guids for ksguid.a
svn path=/branches/reactx/; revision=30245
2007-11-07 20:57:31 +00:00
Magnus Olsen
c486e5e7c8 add 5 more guids for ksguid.a
svn path=/branches/reactx/; revision=30233
2007-11-06 23:27:39 +00:00
Magnus Olsen
1fdbfefe85 add 18 more guids for ksguid.a
svn path=/branches/reactx/; revision=30231
2007-11-06 23:15:50 +00:00
Magnus Olsen
ddd1c8f888 add 14 more guids for ksguid.a
svn path=/branches/reactx/; revision=30230
2007-11-06 21:42:29 +00:00
Magnus Olsen
82e669aa42 add 37 more guids for ksguid.a
svn path=/branches/reactx/; revision=30227
2007-11-06 21:12:30 +00:00
Magnus Olsen
343b7bf8c5 add 14 more guids for ksguid.a
svn path=/branches/reactx/; revision=30200
2007-11-05 20:37:16 +00:00
Magnus Olsen
e02097896e add 30 more guids for ksguid.a
svn path=/branches/reactx/; revision=30195
2007-11-05 19:52:44 +00:00
Magnus Olsen
1d682c45f9 add 10 more guids for ksguid.a
svn path=/branches/reactx/; revision=30179
2007-11-05 15:20:17 +00:00
Magnus Olsen
370529231f add 27 more guids for ksguid.a
svn path=/branches/reactx/; revision=30174
2007-11-05 13:19:44 +00:00
Magnus Olsen
52922faf05 add 6 more guids for ksguid.a
svn path=/branches/reactx/; revision=30148
2007-11-05 06:58:52 +00:00
Magnus Olsen
163cda6df4 add 20 more guids for ksguid.a
svn path=/branches/reactx/; revision=30147
2007-11-05 06:49:27 +00:00
Magnus Olsen
d1327bf255 21 more guid to ksguid.a
svn path=/branches/reactx/; revision=30143
2007-11-05 00:55:46 +00:00
Magnus Olsen
e3bd20e41c Add follow guids to ksguid.a/ksguid.lib KSCATEGORY_RENDER, KSCATEGORY_CAPTURE, KSCATEGORY_BRIDGE
svn path=/branches/reactx/; revision=30141
2007-11-05 00:03:15 +00:00
Magnus Olsen
43e400e70e Fix varus issue.
make audiosrv using the new ks.h and link with ksguid
Fix dxapi build
Fix ddkmapi.h so it works like windkk version 3790.1830
offline #define DEFINE_KSPROPERTY_TOPOLOGYSET in ks.h it seam some type problem there


svn path=/branches/reactx/; revision=30140
2007-11-04 23:54:40 +00:00
Magnus Olsen
67a3fbe3e7 start building up ksguid.a/ksguid.lib it is need it for ks.h
svn path=/branches/reactx/; revision=30139
2007-11-04 23:24:42 +00:00
Magnus Olsen
eb615b5cf1 add allot more struct, enum, define, to many to write in the log
svn path=/branches/reactx/; revision=30131
2007-11-04 21:43:33 +00:00
Magnus Olsen
66b9434834 Commit a ks.h header file from 2005 written by me, it is base on dxsdk 2004 dec, but it is not completed, I do not found the almost completed version of this header I wrote.
so I add the version I found so it does not get lost. Our current ks.h are not completed and is full with hacks in psdk. it will be deleted later, when ks.h are finish it will
merge down to trunks to let silveblade continue on some work.
 

svn path=/branches/reactx/; revision=30128
2007-11-04 19:47:36 +00:00
Magnus Olsen
00d0b6a666 start remove stuff got home made stuff or base on wine dx
add global file version of dx dll. 

svn path=/branches/reactx/; revision=30125
2007-11-04 17:50:09 +00:00
Magnus Olsen
60fb768885 global header for directx version info for the rc file.
svn path=/branches/reactx/; revision=30124
2007-11-04 17:43:50 +00:00
Magnus Olsen
7da42d614f start remove stuff got home made stuff or base on wine dx
svn path=/branches/reactx/; revision=30123
2007-11-04 17:33:57 +00:00
Magnus Olsen
d3d6cf78e8 Fill in more info in the lockup tables.
svn path=/branches/reactx/; revision=30121
2007-11-04 16:49:20 +00:00
Magnus Olsen
b394251018 Implement DxGetVersionNumber
comment up some functions that are implement. 

svn path=/branches/reactx/; revision=30120
2007-11-04 16:23:11 +00:00
Magnus Olsen
44e6f014a9 Add dxapi.sys, most api are stub.
Implemnt GsDriverEntry, DxApiGetVersion, DxApi.
All DxApi that are callbacks are stub.
 

svn path=/branches/reactx/; revision=30117
2007-11-04 14:57:57 +00:00
Magnus Olsen
8dce1974ed Fix the build of ReactX and smaller typos
svn path=/branches/reactx/; revision=29859
2007-10-24 23:18:05 +00:00
Magnus Olsen
d1c1e99025 Implement DxEngGetHdevData after some old notes I found , hope every things works.
Partly implement DxEngGetDCState

svn path=/branches/reactx/; revision=29858
2007-10-24 22:52:13 +00:00
Magnus Olsen
349d4d4458 Header fix only
---------------------
update DxEngGetHdevData define values in dxeng.h 
add new member to PDEV the _EDD_DIRECTDRAW_GLOBAL * pEDDgpl;
add missing struct D3DNTHAL_CALLBACKS2 and D3DNTHAL_CALLBACKS3 to ddk/d3dnthal.h
add missing struct _EDD_DIRECTDRAW_LOCAL to directxint.h from "Windows Graphics Programming Win32 GDI and DirectDraw by Feng Yuan"
fixed smaller typos in  directxint.h

 

svn path=/branches/reactx/; revision=29857
2007-10-24 22:49:06 +00:00
Magnus Olsen
995737523f Update the dxeng.h header with some more info
format the struct _EDD_DIRECTDRAW_GLOBAL as Feng Yuan - Windows Graphics Programming Win32 Gdi And Directdraw
Update the _EDD_DIRECTDRAW_GLOBAL struct with some private notes. (it is not all notes I have of it yet)


svn path=/branches/reactx/; revision=29855
2007-10-24 19:35:31 +00:00
Magnus Olsen
19462f737c add complete startup process code for dxg.sys
svn path=/branches/reactx/; revision=29848
2007-10-24 11:05:44 +00:00
Magnus Olsen
3cc2abdc0a Add documentations for EngDxIoctl, NtGdiDxgGenericThunk
optimize for EngDxIoctl, NtGdiDxgGenericThunk
implement DxDxgGenericThunk, DxDdIoctl for they are outdated, they are left for compatible issue. 
 

svn path=/branches/reactx/; revision=29847
2007-10-24 08:13:39 +00:00
Magnus Olsen
6246902fcd adding driver export list for dxg.sys, thuse api that being export as driver
adding private include file for dxg.sys

svn path=/branches/reactx/; revision=29832
2007-10-23 19:06:11 +00:00
Magnus Olsen
1dce1e3a3c move in DC/PDC to ntgdihdl and all neasry struct that are need it.
svn path=/branches/reactx/; revision=29804
2007-10-22 23:38:11 +00:00
Magnus Olsen
b3792fec24 puting back dc.h and driver.h to win32k/include as jimtablor requested.
we need move PDC only to ntgdihdl.h.

svn path=/branches/reactx/; revision=29803
2007-10-22 23:21:23 +00:00
Magnus Olsen
03cd85d4e1 actvate more code and slash away more notes to the trachcan, and smaller cleanup
svn path=/branches/reactx/; revision=29798
2007-10-22 21:15:10 +00:00
Magnus Olsen
969eb0a20a dxgthk 100% finish, it should work now in windows, complete replacement for ms dxgthk.sys now.
not tested yet in windows. 

svn path=/branches/reactx/; revision=29797
2007-10-22 20:55:18 +00:00
Magnus Olsen
bf3e6f5443 rename dxg.def to dxgthk.def
svn path=/branches/reactx/; revision=29796
2007-10-22 20:16:48 +00:00
Magnus Olsen
115c413a45 adding dxgthk.sys stub we need it for dxg.sys
svn path=/branches/reactx/; revision=29795
2007-10-22 20:15:49 +00:00
Magnus Olsen
5697e7c2d2 fix the build for win32k.sys
svn path=/branches/reactx/; revision=29791
2007-10-22 19:49:06 +00:00
Magnus Olsen
31f85ca295 start activate code in dxg.sys
fixed compiling issue with win32kdc.h
FIXME : win32k.sys and dxg.sys compiling are broken at moment

svn path=/branches/reactx/; revision=29790
2007-10-22 19:42:53 +00:00
Magnus Olsen
461b232a67 rename dc.h to win32kdc.h
rename driver.h to win32kdriver.h

svn path=/branches/reactx/; revision=29788
2007-10-22 19:37:43 +00:00
Magnus Olsen
5fbe1981ea Moved remotely
win32k/include/driver to include/reactos/win32k

svn path=/branches/reactx/; revision=29787
2007-10-22 19:35:10 +00:00
Magnus Olsen
63d64ecb75 Moved remotely
dc.h from win32k/include to include/reactos/win32k

svn path=/branches/reactx/; revision=29786
2007-10-22 19:28:41 +00:00
Magnus Olsen
034be89e6c make dxg.sys to compile
svn path=/branches/reactx/; revision=29784
2007-10-22 18:11:24 +00:00
Magnus Olsen
9d36446482 Adding code from 2004, DxDdStartupDxGraphics, DxDdCleanupDxGraphics(), DdHmgDestroy()
svn path=/branches/reactx/; revision=29780
2007-10-22 16:26:59 +00:00
Magnus Olsen
7a6391ae7d start adding dxg.sys
svn path=/branches/reactx/; revision=29761
2007-10-21 23:38:13 +00:00
Magnus Olsen
7f5e624fc6 fix compilng forget implement stub for DxEngIncDispUniq
svn path=/branches/reactx/; revision=29751
2007-10-21 18:52:42 +00:00
Magnus Olsen
0bb73dc1f8 forget remove a smaller hack i the drv functions list that being pass to dxg.sys
svn path=/branches/reactx/; revision=29750
2007-10-21 18:47:16 +00:00
Magnus Olsen
43560602c9 add stub for all dxeng so the dxg.sys does not crash, but we see where the problem are.
now we can start play with dxg.sys in ReactX

svn path=/branches/reactx/; revision=29746
2007-10-21 18:28:31 +00:00
Magnus Olsen
86bc741994 implement DxEngLockDC and DxEngUnlockDC
Documented DxEngLockDC and DxEngUnlockDC

svn path=/branches/reactx/; revision=29743
2007-10-21 17:08:12 +00:00
Magnus Olsen
bd8a20efb1 add correct prototypes for DxEngLockDC and DxEngUnlockDC
add comment how DxEngLockDC and DxEngUnlockDC works

svn path=/branches/reactx/; revision=29742
2007-10-21 17:06:27 +00:00
Magnus Olsen
a85334323c add driver functions list that are need it for dxg.c startup process.
dxeng.c are not finish and the drv list are not either finish allot is comment out for now

svn path=/branches/reactx/; revision=29737
2007-10-21 15:11:19 +00:00
Magnus Olsen
598e4e5569 make ReactX compile again, it can not load dxg.sys yet.
svn path=/branches/reactx/; revision=29736
2007-10-21 13:49:29 +00:00
Magnus Olsen
d3527f3196 fixed allot compiling issue
svn path=/branches/reactx/; revision=29734
2007-10-21 13:31:39 +00:00
Magnus Olsen
4efa4a4b9c Add documentations : how NtGdiDdCreateD3DBuffer works, did nott add full docs, but egunt for people start using it if they read msdn as well
Optimize : NtGdiDdCreateD3DBuffer

svn path=/branches/reactx/; revision=29725
2007-10-21 01:25:26 +00:00
Magnus Olsen
b18e1f0406 Add documentations : how NtGdiD3dContextDestroyAll works, MSDN docs is wrong
Optimize : NtGdiD3dContextDestroyAll

svn path=/branches/reactx/; revision=29724
2007-10-21 00:47:24 +00:00
Magnus Olsen
c21492b9b3 update some docs with info that is correct, this info can not be found in msdn, msdn is wrong in this part.
that why people can not check see if they can create a surface. 


svn path=/branches/reactx/; revision=29721
2007-10-20 18:58:13 +00:00
Magnus Olsen
4a53c0fc46 This header are need it for our owm dxg.h, This stuct can not be found in msdn.
This struct are documented partly or full in Feng Yuan - Windows Graphics Programming Win32 Gdi And Directdraw.
I am great full to Alex to help figut and fill in the missing parts. Thank you. 

svn path=/branches/reactx/; revision=29717
2007-10-20 18:03:36 +00:00
Magnus Olsen
85033b2610 Optimze : the NtGdiDdCanCreateD3DBuffer and NtGdiDdCanCreateD3DBuffer , with the new optimze method.
Add : doxgen tags for how NtGdiDdCanCreateD3DBuffer and NtGdiDdCanCreateD3DBuffer works 
Add : a sort code for the DxEngDrv so we getting the driver functions in sorted list in DxDdStartupDxGraphics, this will be part of optimize the dx code in directx
it will allow us call function with gpDxFuncs[DXG_INDEX_DxD3dContextCreate].pfn instead first to search after it. 
Fix few bugs, as well. 
rember u can not still build ReactX I have not commit thuse part yet.





svn path=/branches/reactx/; revision=29715
2007-10-20 17:34:14 +00:00
Magnus Olsen
ef6f1d494e all redirect are done, for syscall and export api to dxg.sys
left todo fix compiling issue and fix all stub for dxeng.c


svn path=/branches/reactx/; revision=29627
2007-10-16 09:11:22 +00:00
Magnus Olsen
be2a0beb1e commit layout for allot functions that need be redirected to dxg.sys
the code are not finish

svn path=/branches/reactx/; revision=29625
2007-10-16 08:35:57 +00:00
Magnus Olsen
ad4b6c7616 fixing few compiling issue.
svn path=/branches/reactx/; revision=29624
2007-10-16 07:42:36 +00:00
Magnus Olsen
2c49e7a9db fixing few compiling issue.
svn path=/branches/reactx/; revision=29615
2007-10-15 20:55:06 +00:00
Magnus Olsen
a0a831361b fixing few compiling issue.
svn path=/branches/reactx/; revision=29612
2007-10-15 20:28:06 +00:00
Magnus Olsen
28110234c3 fixing few compiling issue.
svn path=/branches/reactx/; revision=29611
2007-10-15 19:48:41 +00:00
Magnus Olsen
8359a5f898 smaller cleanup in thuse two new header
svn path=/branches/reactx/; revision=29610
2007-10-15 19:45:48 +00:00
Magnus Olsen
0c91d34b41 wrong protype in MSDN, the protypes is VOID APIENTRY NtGdiDdUnattachSurface(HANDLE hSurface, HANDLE hSurfaceAttached); and the text in msdn talk it can return either DDHAL_DRIVER_HANDLED or DDHAL_DRIVER_NOTHANDLED, see http://msdn2.microsoft.com/en-us/library/ms648703.aspx, so I change the protype to DWORD APIENTRY NtGdiDdUnattachSurface(HANDLE hSurface, HANDLE hSurfaceAttached);
svn path=/branches/reactx/; revision=29609
2007-10-15 19:43:58 +00:00
Magnus Olsen
5538059b89 fixing few compiling issue with this new header.
add few more redirect in ddraw.c to dxg.sys

svn path=/branches/reactx/; revision=29607
2007-10-15 19:04:50 +00:00
Magnus Olsen
8e71c124ed fixing few compiling issue with this new header.
svn path=/branches/reactx/; revision=29606
2007-10-15 18:40:01 +00:00
Magnus Olsen
7396205d50 fixing few compiling issue with this new header.
svn path=/branches/reactx/; revision=29605
2007-10-15 18:27:56 +00:00
Magnus Olsen
ed47fc3520 adding one more api to dxeng.c
svn path=/branches/reactx/; revision=29601
2007-10-15 13:10:59 +00:00
Magnus Olsen
1a146fe5ca comment some protypes and how they work.
svn path=/branches/reactx/; revision=29600
2007-10-15 12:40:29 +00:00
Magnus Olsen
6a362ee13f start implement the dxeng driver api that are need it for dxg.sys
I manger kill of some local tree with this commit. 
ReactX can not be build 

svn path=/branches/reactx/; revision=29599
2007-10-15 12:38:50 +00:00
Magnus Olsen
43e85fc362 add two empty folder for now, it si for dxg.sys and dxapi.sys
svn path=/branches/reactx/; revision=29598
2007-10-15 11:03:28 +00:00
Magnus Olsen
a476025b55 Start Build the next header we need, see https://www.openrce.org/forums/posts/535
only avail docs for it on the net. 

svn path=/branches/reactx/; revision=29597
2007-10-15 10:57:08 +00:00
Magnus Olsen
8c0f839acf add one more redirect to dxg.sys
svn path=/branches/reactx/; revision=29596
2007-10-15 09:49:58 +00:00
Magnus Olsen
706c0e7de6 rename 3 INDEX to diffent name to more logic names.
add comment which part being syscall, export list and internal use from win32k.sys



svn path=/branches/reactx/; revision=29595
2007-10-15 08:45:42 +00:00
Magnus Olsen
5c9253834f adding more redirect to dxg.sys
svn path=/branches/reactx/; revision=29594
2007-10-15 08:42:47 +00:00
Magnus Olsen
d290c5e6c2 finish redirect dvp interface to dxg.sys
svn path=/branches/reactx/; revision=29593
2007-10-15 08:34:11 +00:00
Magnus Olsen
86b7527ce5 adding more redirect to dxg.sys
svn path=/branches/reactx/; revision=29592
2007-10-15 07:50:59 +00:00
Magnus Olsen
431e7045da do not use entrypoint="0" when dll have dllmain
only when dll does not have dllmain we should use entrypoint="0" 
other wise the orginal dllmain will not be run

svn path=/branches/reactx/; revision=29578
2007-10-14 21:56:02 +00:00
Magnus Olsen
75bf1ba3bc fixed export of EngLockDirectDrawSurface@4, EngUnlockDirectDrawSurface@4, EngDxIoctl@12, EngAllocPrivateUserMem@12, HeapVidMemAllocAligned@20, VidMemFree@8, EngFreePrivateUserMem@8
and add them to ntddraw/eng.c
no code yet

svn path=/branches/reactx/; revision=29577
2007-10-14 21:23:43 +00:00
Magnus Olsen
399dd8f6e5 cleanup from old interface and move new info to right header.
it still can not be build. for not all api have been redirect yet


svn path=/branches/reactx/; revision=29576
2007-10-14 20:42:41 +00:00
Magnus Olsen
a83c927ea6 delete stub.c from ntddraw folder it is not longer need it
add more redirect to dxg.sys
smaller cleanup as well


svn path=/branches/reactx/; revision=29575
2007-10-14 20:05:40 +00:00
Magnus Olsen
f3c20ee1cc more redirect from win32k to dxg.sys
btw no old code exists in current file. 

svn path=/branches/reactx/; revision=29572
2007-10-14 19:45:13 +00:00
Magnus Olsen
8d3e67ab96 start move out logic stuff that should have been move to ddsurf and d3d from ddraw.c
remove the old start up code for dx, it will be in in dxg.sys later. 
win32k only redirect it to dxg.sys

svn path=/branches/reactx/; revision=29571
2007-10-14 19:02:45 +00:00
Magnus Olsen
01ec8d7afe finish the redirect of dxg.sys for the d3d part
svn path=/branches/reactx/; revision=29569
2007-10-14 18:14:04 +00:00
Magnus Olsen
320f753a4e adding more redirect for dvp interface to dxg
svn path=/branches/reactx/; revision=29568
2007-10-14 17:49:55 +00:00
Magnus Olsen
b81a1d62c0 move all dvp stub to dvp.c
start redirect all to dxg.sys

svn path=/branches/reactx/; revision=29567
2007-10-14 16:19:56 +00:00
Magnus Olsen
3b320dfaaa add empty file for directx video port control interface
svn path=/branches/reactx/; revision=29566
2007-10-14 15:18:29 +00:00
Magnus Olsen
9b55f8ca65 redirect whole dd interface to dxg.sys
svn path=/branches/reactx/; revision=29565
2007-10-14 15:03:13 +00:00
Magnus Olsen
0f36e1fde8 Redirect all dx mocomp api (done)
svn path=/branches/reactx/; revision=29563
2007-10-14 13:58:37 +00:00
Magnus Olsen
623fb6808a dxtn License GPL
Need it by OpenGL / DirectX compress textures, at moment for mesa32
Got Alesky aka Fireball permits to add it, so long it use the patent flag.
Some part in this library can contain patent, thing in USA
This library will not be build directly, you are force to
change the patent flags in the config.rbuild file to 1
But todo so, you need check you country patent. 

svn path=/branches/reactx/; revision=29562
2007-10-14 13:03:46 +00:00
Magnus Olsen
3bc97d4fc4 This change can not compile win32k for they are not complete, and it is start on the loading process of dxg.sys
FIXED : One wrong protyped accoding MSDN
ADD   : Load process of DXG.SYS (not completed)
Redrirect : Allot DirectX api from win32k to dxg.sys (allot of code that have been remove will be readdit in new api or in dxg.sys, when it being commit)
Allot cleanup as well

svn path=/branches/reactx/; revision=29557
2007-10-14 12:07:23 +00:00
Johannes Anderwald
5590854701 - halfplement CDefFolderMenu_Create2
svn path=/trunk/; revision=29554
2007-10-13 21:47:09 +00:00
Johannes Anderwald
6066286913 - add prototype for SHCreateDefaultContextMenu and CDefFolderMenu_Create2
These functions are responsible for creating the right context menu for the requested shell item. 

svn path=/trunk/; revision=29552
2007-10-13 20:40:00 +00:00
Aleksey Bragin
72595c9315 - Move Teb's StaticUnicodeString initialisation from ntdll to MmCreateTeb (it's better to initialize it early, and all at once, instead of something here now and something there later).
svn path=/trunk/; revision=29551
2007-10-13 13:39:42 +00:00
Daniel Reimer
eb279e4344 German Translation for Event Viewer.
Updated SVN:Ignore for WordPad.

svn path=/trunk/; revision=29550
2007-10-13 12:18:58 +00:00
Colin Finck
c56d07a5bb - Hardcode the Window class name, there is no need for it to be translated
- Remove all this VS stuff from the english resource file
- Move the icons to "rsrc.rc" as they will be shared between all translations
- Fix a typo

svn path=/trunk/; revision=29548
2007-10-13 10:27:27 +00:00
Colin Finck
3b9ccf3f7d Add an Event Log Viewer coded by Marc Piulachs (marc DOT piulachs AT codexchange DOT net)
The icons were taken from the comctl32.dll.
I did not add it to the "reactos.dff" as ReactOS doesn't support Event Logs yet.
See issue #2602 for more details.

svn path=/trunk/; revision=29547
2007-10-13 10:15:37 +00:00
James Tabor
bdd694ff41 Dc_Attr with DCE:
- Fixed problem with dcattr read and write access in user mode.
- Dcattr data only flows from Kernel to User ATM.
- Cleaned up code.
- Enable GetDCObject for testing.
- Tested with Qemu both Linux and XP, and real hardware. 

svn path=/trunk/; revision=29546
2007-10-13 04:15:37 +00:00
Mike Nordell
00a4696613 Just some more notes about what (likely) is required to make it possible for users to cleanly shut down ROS.
svn path=/trunk/; revision=29545
2007-10-13 03:34:56 +00:00
Daniel Reimer
3afae75a47 Add German Translation and Fix English SUBLANG to our Defaults.
svn path=/trunk/; revision=29544
2007-10-12 17:49:52 +00:00
Christoph von Wittich
ff76e56813 LdrpLoadModule called with LOAD_LIBRARY_AS_DATAFILE returns SUCCESS and a valid BaseAddress but no Module
svn path=/trunk/; revision=29543
2007-10-12 17:15:23 +00:00
Johannes Anderwald
6fda4d5f57 - dont allow creating a link to a shortcut
See issue #2735 for more details.

svn path=/trunk/; revision=29542
2007-10-12 16:07:41 +00:00
Aleksey Bragin
2f452c335b - Don't free a NULL pointer.
svn path=/trunk/; revision=29541
2007-10-12 15:42:08 +00:00
Johannes Anderwald
499e470b9f - fix PickIconDlg prototype
svn path=/trunk/; revision=29540
2007-10-12 15:17:55 +00:00
Johannes Anderwald
1b769acf24 - add PickIconDlg declaration
svn path=/trunk/; revision=29539
2007-10-12 15:17:51 +00:00
Johannes Anderwald
d85b18bd0a - fix build
- set control ids

svn path=/trunk/; revision=29538
2007-10-12 14:49:21 +00:00
Johannes Anderwald
16fd2633a6 - explictely use PROPSHEETHEADERW
- implement _ILIsBitBucket function
- implement a IContextMenu for recycle bin interface but is currently unused see notes shv_item_cmenu.c
- implement recycle property dialog resources in vista style

svn path=/trunk/; revision=29537
2007-10-12 14:25:58 +00:00
Peter Ward
bb6da9c74e - Fix build.
svn path=/trunk/; revision=29536
2007-10-12 12:19:37 +00:00
Johannes Anderwald
7f92d4dc3e - fix warning
svn path=/trunk/; revision=29535
2007-10-12 12:11:00 +00:00
Peter Ward
f5c30d8747 Patch by Marc Piulachs (Issue 2737)
- Imported write.exe plus small fix to compile it as unicode.
(Added to rosapps instead of base/applications though)

svn path=/trunk/; revision=29534
2007-10-12 12:06:05 +00:00
Mike Nordell
d6b434bf9c Beginnings of enabling THREAD_SET_THREAD_TOKEN, to allow ROS to actually be shut down. Mostly skeleton and junk, but the basic infrastructure is at least in place.
svn path=/trunk/; revision=29533
2007-10-12 12:04:50 +00:00
Aleksey Bragin
306e3db1bb Dmitry Chapyshev <lentind@yandex.ru>
- Make the "Information" tab work.
- Improve overall applet's behavior (more correct and more "smart").
- Fixed a bug when switching between tabs.
- Small improvements in the UI, other small fixes.
- If no apps or no updates are installed, then the controls in the respective tabs will be grayed out, and a respective information message will be shown instead of the empty list.

svn path=/trunk/; revision=29532
2007-10-12 10:12:52 +00:00
Aleksey Bragin
a3d5eb47e0 Johannes Anderwald
- Fix the msvcrt exception (because vlc first calls _getmainargs. This function sets the  __argc to 1. Afterwards vlc calls again __wgetmainargs where __argc is now one. When entering the function _wadd, it doesnot allocate the __wargv because __argc is 1. Therefore it crashes).
See issue #821 for more details.

svn path=/trunk/; revision=29531
2007-10-12 09:58:00 +00:00
Mike Nordell
5005c57755 Added some descriptive comments for otherwise hard-to-understand bitwise operations
svn path=/trunk/; revision=29530
2007-10-12 09:52:23 +00:00
Mike Nordell
520357b1d4 NTSHChangeNotifyRegister completed and to spec
svn path=/trunk/; revision=29529
2007-10-12 08:15:37 +00:00
James Tabor
cfb9429c6e Sorry for this! Shell32 should be a Sync->Port not 100% sync. We needed this for a long time too! Good job janderwald!
svn path=/trunk/; revision=29528
2007-10-12 01:08:06 +00:00
James Tabor
51d1952da0 Add notes for NtGdiResetDC and NtGdiOpenDCW.
svn path=/trunk/; revision=29527
2007-10-12 00:47:31 +00:00
Johannes Anderwald
eca272bd00 - start implementing recyclebin (based on Wine's recycle bin implemenation)
svn path=/trunk/; revision=29526
2007-10-11 23:45:36 +00:00
Ged Murphy
126300ce1b Send the right number of bytes when setting an env var
spotted by Christian Fasshauer <chrfas at googlemail dot com>

svn path=/trunk/; revision=29525
2007-10-11 23:36:31 +00:00
Daniel Reimer
de827eb930 Translated the few new lines in this RC.
svn path=/trunk/; revision=29524
2007-10-11 22:45:18 +00:00
Daniel Reimer
1921d75db2 (Very)Small code cleanup for my Cards.dll
svn path=/trunk/; revision=29523
2007-10-11 22:39:37 +00:00
Mike Nordell
363fadba81 Prevent SEGV
svn path=/trunk/; revision=29522
2007-10-11 22:20:22 +00:00
Daniel Reimer
4977ec87af Added German Translation of one missed Dialog.
Fixed tons of coordinates and sizes to fit all Text of the German and English Translation into the Buttons, Checkboxes and Text Fields.
Moved some stuff to better fit into the Dialog.
I mainly kept Johannes's nice small format for the Shortcut etc Dialogs, because it looks nice. This only helps to fit in the Text.

svn path=/trunk/; revision=29521
2007-10-11 22:17:08 +00:00
Mike Nordell
d4dd5b21ce Make cabman build warning-free
svn path=/trunk/; revision=29519
2007-10-11 21:01:39 +00:00
Thomas Bluemel
6f9c72878c Display a context menu for the selected monitor
svn path=/trunk/; revision=29517
2007-10-11 20:23:26 +00:00
Colin Finck
4ae5d0691a Updated Ukrainian translation by Artem Reznikov (temarez AT yandex DOT ru)
See issue #2731 for more details.

svn path=/trunk/; revision=29516
2007-10-11 20:02:58 +00:00
Johannes Anderwald
3a037045bf - update shell32_ros.diff
svn path=/trunk/; revision=29514
2007-10-11 19:43:22 +00:00
Johannes Anderwald
afef41e793 - update doc
svn path=/trunk/; revision=29511
2007-10-11 19:33:05 +00:00
Johannes Anderwald
8b2f309588 - forgot one file
svn path=/trunk/; revision=29510
2007-10-11 19:26:16 +00:00
Johannes Anderwald
01a2631183 - add checkAlarms function
- this function will be used to determine wether expiration alarms are active. If qemu dies or terminates unexpectly, this function will check if it was before an timeout. In that case alarms will be active. Note: if qemu is killed purposely, OsSupport::cancelAlarms must be called to prevent automatic termination of sysreg process

svn path=/trunk/; revision=29509
2007-10-11 18:41:39 +00:00
Johannes Anderwald
8e11e74890 - fix build
svn path=/trunk/; revision=29508
2007-10-11 18:25:00 +00:00
Johannes Anderwald
7f50b9b826 - sync rest of shell32 excluding resources to wine
svn path=/trunk/; revision=29507
2007-10-11 18:07:01 +00:00
Johannes Anderwald
b817f334af Jonathan Ernst <jonathan@ernstfamily.ch>
- Update the address of the Free Software Foundation.
Stefan Leichter <Stefan.Leichter@camline.com>
- Fix the file version string of the version resource.

svn path=/trunk/; revision=29506
2007-10-11 17:07:58 +00:00
Colin Finck
0e152e82fb Change "base" to "installbase" for the <bootstrap> element of "green.rbuild" (the older syntax is no longer valid)
See issue #2706 for more details.

svn path=/trunk/; revision=29505
2007-10-11 16:06:11 +00:00
Daniel Reimer
1a73e268ff We need a rule that updating a RC File forces the dev to do it on ALL Files, not only the English one. German one missed two Dialogs again.
Updated the German RC File of shell32.dll and fixed a typo in the English one. (Nice Work with your new Dialogs For Shortcuts and co, Johannes :-))

svn path=/trunk/; revision=29504
2007-10-11 16:01:18 +00:00
Aleksey Bragin
bf70fa45ea - Insert back the "ugly hack for cut&paste files" (removed by 29499 commit).
svn path=/trunk/; revision=29503
2007-10-11 14:47:10 +00:00
Ged Murphy
07ed4d1ce3 use ChangeListViewText to fill out the service info
svn path=/trunk/; revision=29502
2007-10-11 12:21:06 +00:00
Ged Murphy
8c49001628 only run the change code when we have the changed struct to work with.
svn path=/trunk/; revision=29501
2007-10-11 12:00:19 +00:00
Ged Murphy
d8f1cef2f6 improve the button states in relation to the service
svn path=/trunk/; revision=29500
2007-10-11 11:09:39 +00:00
Johannes Anderwald
12be971541 Dmitry Timoshkov <dmitry@codeweavers.com>
- Switch to using 'long' for INT_PTR type for 64-bit compatibility.
Andrew Talbot <Andrew.Talbot@talbotville.com>
- Exclude unused headers.
Hans Leidekker <hans@it.vu.nl>
- Win64 printf format warning fixes.
James Hawkins <truiken@gmail.com>
- Remove redundant NULL checks before SHFree.
Jonathan Ernst <jonathan@ernstfamily.ch>
- Update the address of the Free Software Foundation.
------------------------
- readd ReactOS changes (the properties menu item was removed, readd it + code to show properties dialogs)

svn path=/trunk/; revision=29499
2007-10-11 10:48:31 +00:00
Hervé Poussineau
3e278e062e Remove unneeded comment (__REACTOS__ is always defined)
svn path=/trunk/; revision=29498
2007-10-11 10:47:25 +00:00
Christoph von Wittich
a49156cbcc disable redrawing of the ListView window before updating the service list
svn path=/trunk/; revision=29497
2007-10-11 10:30:43 +00:00
Ged Murphy
f3d656d276 a better fix for bug 2519
svn path=/trunk/; revision=29496
2007-10-11 10:29:02 +00:00
Hervé Poussineau
8596afd334 Add list of source files in generated makefile
svn path=/trunk/; revision=29495
2007-10-11 10:18:47 +00:00
Hervé Poussineau
54eae92953 Do not change dependancy root directory if not needed
svn path=/trunk/; revision=29494
2007-10-11 10:18:03 +00:00
Christoph von Wittich
aedfd39a7f Disabled service has start button enabled (patch by gabrielilardi at hotmail dot it) - modified by myself (HeapFree, formatting)
See issue #2519 for more details.

svn path=/trunk/; revision=29493
2007-10-11 10:15:46 +00:00
Johannes Anderwald
7d51d9fd56 Jonathan Ernst <jonathan@ernstfamily.ch>
- Update the address of the Free Software Foundation.
Andrew Talbot <Andrew.Talbot@talbotville.com>
- Exclude unused headers.
Aric Stewart <aric@codeweavers.com>
- Update the debug functions to handle Unicode value pidl.
- Add _ILIsUnicode as a simple pidl test.
Michael Stefaniuc <mstefani@redhat.de>
- The Data1 member of the GUID struct needs to be an unsigned int too for Win64 compatibility.
Hans Leidekker <hans@it.vu.nl>
- Win64 printf format warning fixes.

svn path=/trunk/; revision=29492
2007-10-11 10:13:05 +00:00
Johannes Anderwald
a262dfe3cb Mikoaj Zalewski <mikolaj@zalewski.pl>
- Make the shell view control Unicode
- Change some more ANSI calls to Unicode

svn path=/trunk/; revision=29491
2007-10-11 10:00:11 +00:00
Ged Murphy
e45052754a remove some test code which shouldn't have been added.
svn path=/trunk/; revision=29490
2007-10-11 09:15:14 +00:00
Ged Murphy
3a5583c86f add some old code I had floating around. no real in functionality
svn path=/trunk/; revision=29489
2007-10-11 09:07:38 +00:00
Johannes Anderwald
4bcdb4d441 Andrew Talbot <Andrew.Talbot@talbotville.com>
- Exclude unused headers.
Hans Leidekker <hans@it.vu.nl>
- Add a stub implementation for SHMapIDListToImageListIndexAsync.
Jonathan Ernst <jonathan@ernstfamily.ch>
- Update the address of the Free Software Foundation.
Martin Fuchs <martin-fuchs@gmx.net>
- Fix folder icon index when read from registry.
- Change "DWORD dwNr" into "int icon_idx" at several places.
-----------------------------------------
ReactOS specific:
- PrivateExtractIconW is an undocumented user32 function. Dynamically get the function with GetProcAddress at runtime (readd)

svn path=/trunk/; revision=29488
2007-10-11 08:51:11 +00:00
Johannes Anderwald
7d516124e5 --------------------------------------------------
shfldr_mycomp.c:
Rob Shearman <rob@codeweavers.com>
Return Unicode strings from all of the IShellFolder::GetDisplayNameOf functions in not running in Win9x mode.
Hans Leidekker <hans@it.vu.nl>
shell32: Win64 printf format warning fixes.
James Hawkins <truiken@gmail.com>
janitorial: Remove redundant NULL checks before SHFree.
Robert Shearman <rob@codeweavers.com>
shell32: Convert ISF_MyComputer_fnGetDisplayNameOf to Unicode.
--------------------------------------------------
- ReactOS specific:
- return always in unicode

svn path=/trunk/; revision=29487
2007-10-10 23:49:42 +00:00
Peter Ward
3ae0570df2 - Two small Ldr cleanup patches (ntdll and kernel32) by: Mike Nordell
svn path=/trunk/; revision=29486
2007-10-10 23:14:20 +00:00
Johannes Anderwald
fd1c983af4 -----------------------------------------------------
autocomplete.c:
Andrew Talbot <Andrew.Talbot@talbotville.com>
Exclude unused headers Constify some variables.
-----------------------------------------------------
dde.c:
Jonathan Ernst <jonathan@ernstfamily.ch>
Update the address of the Free Software Foundation.
-----------------------------------------------------
dragdrophelper.c:
Jonathan Ernst <jonathan@ernstfamily.ch>
Update the address of the Free Software Foundation.
Hans Leidekker <hans@it.vu.nl>
Win64 printf format warning fixes.
-----------------------------------------------------
enumidlist.c:
Jonathan Ernst <jonathan@ernstfamily.ch>
Update the address of the Free Software Foundation.
Hans Leidekker <hans@it.vu.nl>
Win64 printf format warning fixes.
-----------------------------------------------------
enumidlist.h:
Jonathan Ernst <jonathan@ernstfamily.ch>
Update the address of the Free Software Foundation.
-----------------------------------------------------
shellreg.c:
Andrew Talbot <Andrew.Talbot@talbotville.com>
Exclude unused headers.
Detlef Riekenberg <wine.dev@web.de>
Implement SHRegQueryValueA with RegQueryValueA.
Jonathan Ernst <jonathan@ernstfamily.ch>
Update the address of the Free Software Foundation.
-----------------------------------------------------
shellstring.c:
Jonathan Ernst <jonathan@ernstfamily.ch>
Update the address of the Free Software Foundation.
Hans Leidekker <hans@it.vu.nl>
Win64 printf format warning fixes.
Andrew Talbot <Andrew.Talbot@talbotville.com>
Exclude unused headers.
-----------------------------------------------------
shlfsbind.c
Jonathan Ernst <jonathan@ernstfamily.ch>
Update the address of the Free Software Foundation.
Hans Leidekker <hans@it.vu.nl>
shell32: Win64 printf format warning fixes.
Andrew Talbot <Andrew.Talbot@talbotville.com>
shell32: Exclude unused headers.
-----------------------------------------------------
shlmenu.c:
Dmitry Timoshkov <dmitry@codeweavers.com>
Switch to using 'long' for INT_PTR type for 64-bit compatibility.
Andrew Talbot <Andrew.Talbot@talbotville.com>
Exclude unused headers.
Hans Leidekker <hans@it.vu.nl>
Win64 printf format warning fixes.
James Hawkins <truiken@gmail.com>
janitorial: Remove redundant NULL checks before SHFree.
Francois Gouget <fgouget@free.fr>
Fix spelling of a local variable.
Jonathan Ernst <jonathan@ernstfamily.ch>
Update the address of the Free Software Foundation.
-----------------------------------------------------
shpolicy.c:
Dmitry Timoshkov <dmitry@codeweavers.com>
Make some data static and const.
Jonathan Ernst <jonathan@ernstfamily.ch>
Update the address of the Free Software Foundation.

svn path=/trunk/; revision=29485
2007-10-10 22:39:44 +00:00
Johannes Anderwald
a0e410976f sync to wine head
Andrew Talbot <Andrew.Talbot@talbotville.com>
Exclude unused headers.
Mikoaj Zalewski <mikolaj@zalewski.pl>
autocomplete: Don't use sel uninitialized.

svn path=/trunk/; revision=29484
2007-10-10 21:52:22 +00:00
Johannes Anderwald
5bbed73d42 - fix RegLoadMUIStringA|W prototype
svn path=/trunk/; revision=29483
2007-10-10 21:19:05 +00:00
Johannes Anderwald
3d621cf578 - fix RegLoadMUIStringA|W prototype
svn path=/trunk/; revision=29482
2007-10-10 21:18:59 +00:00
Johannes Anderwald
96f724824c - add ntquery.h from Wine (rev 1.3)
svn path=/trunk/; revision=29481
2007-10-10 21:03:27 +00:00
Johannes Anderwald
8dd3300304 - add __MINGW_NOTHROW macro (required for shell32 sync used in dirent.h)
svn path=/trunk/; revision=29480
2007-10-10 20:53:47 +00:00
Aleksey Bragin
5257ae8196 - Copy kernel's IDT entries to the IDT we've got from the bootloader. Fixes boot-process initiated by ntldr-compatible loaders.
svn path=/trunk/; revision=29477
2007-10-10 12:39:54 +00:00
Hervé Poussineau
336b29de42 Cleanup the LinkerScript class and use it
Patch by Marc Piulachs, marc dot puilachs at codexchange dot net
See issue #2721 for more details.

svn path=/trunk/; revision=29476
2007-10-10 08:44:45 +00:00
Hervé Poussineau
bc653c4422 Do not skip executable name, it is not sent to WinMain command line argument
svn path=/trunk/; revision=29475
2007-10-09 19:01:12 +00:00
Daniel Reimer
f187392e6c This should fix the build
svn path=/trunk/; revision=29474
2007-10-09 18:37:48 +00:00
Daniel Reimer
a647e4e19c Try to remove the old wordpad and prepare fr the new one
svn path=/trunk/; revision=29473
2007-10-09 18:35:38 +00:00
Daniel Reimer
2165bf4b96 Backup WordPad to RosApps
svn path=/trunk/; revision=29472
2007-10-09 18:25:19 +00:00
Aleksey Bragin
414b4db8ac Mike Nordell <tamlin>
- Add two checks for infinite loops. The latter gets triggered in some cases, a memory overwrite is suspected, or a race condition.

svn path=/trunk/; revision=29471
2007-10-09 17:00:11 +00:00
Ged Murphy
461c0ad2d1 add wine's wordpad as the default
svn path=/trunk/; revision=29469
2007-10-09 09:00:56 +00:00
Hervé Poussineau
d620fa11c7 Fix indentation
svn path=/trunk/; revision=29468
2007-10-09 09:00:04 +00:00
Ged Murphy
66c3c85e36 Add a much more complete wordpad from one of Wine's SOC projects
svn path=/trunk/; revision=29467
2007-10-09 09:00:02 +00:00
Hervé Poussineau
8b17e00a0e Patch by Carlo Bramini, carlo dot bramix at libero dot it
Fixes for non unicode build
See issue #2711 for more details.

svn path=/trunk/; revision=29466
2007-10-09 08:53:25 +00:00
Hervé Poussineau
c57a4482c2 Put .asm files at the end of the module
See issue #2702 for more details.

svn path=/trunk/; revision=29465
2007-10-09 07:10:05 +00:00
Johannes Anderwald
719694a6b2 - use -nographic option
svn path=/trunk/; revision=29464
2007-10-08 22:08:29 +00:00
Johannes Anderwald
bb471e5852 - fix linux build for build server trial #2
svn path=/trunk/; revision=29463
2007-10-08 21:59:49 +00:00
Johannes Anderwald
cc2d1bffe8 -include errno.h
- temporarly deactivate -vnc 0 option

svn path=/trunk/; revision=29462
2007-10-08 21:38:14 +00:00
Johannes Anderwald
596003e53b - remove stdio debugging (not efficient and unused)
- call mkfifo for randomly created named pipes (linux only)
- sysreg hangs in 2nd stage due to the -vnc 0 option


svn path=/trunk/; revision=29460
2007-10-08 21:22:57 +00:00
Christoph von Wittich
d576ff0223 -fix compilation with msvc
-fix some memory leaks

svn path=/trunk/; revision=29459
2007-10-08 19:18:42 +00:00
Aleksey Bragin
73b6c28cf8 Dmitry Chapyshev <lentind@yandex.ru>
- Modify/Remove action: Wait for the process completion and only then become active again (like Windows' AppWiz does)
- Move Updates to another tab
- Move all include directives to appwiz.h
- Add context menu for applications list
- Slightly change this applet's design
- Add an icon for ReactOS setup and Update tabs
- Add a working Download! button. This button is active only if Download!.exe exists in system32 directory when appwiz.cpl starts
- Other small changes

svn path=/trunk/; revision=29458
2007-10-08 15:56:31 +00:00
Aleksey Bragin
db598dfdbb - Don't try to free a pointer if it was not allocated.
svn path=/trunk/; revision=29456
2007-10-08 12:37:44 +00:00
Hervé Poussineau
c736d81fff Fix rgenstat compilation
svn path=/trunk/; revision=29455
2007-10-08 11:19:46 +00:00
Johannes Anderwald
e4fa627016 - fix linux compilation
svn path=/trunk/; revision=29454
2007-10-08 09:28:04 +00:00
Johannes Anderwald
6cd6fc2c8c - randomize named pipe name
- remove hardcoded path in named pipe reader class

svn path=/trunk/; revision=29453
2007-10-08 09:01:33 +00:00
Johannes Anderwald
1d1547fcc3 - forgot one thing
svn path=/trunk/; revision=29452
2007-10-08 08:17:43 +00:00
Johannes Anderwald
8fe2c38364 - remove non required specialization
svn path=/trunk/; revision=29451
2007-10-08 00:22:39 +00:00
Johannes Anderwald
59f7546716 - remove unicode support (it was mess, a few places only accepting char and then another using wchar compatibel)
- rewrite line extraction (currently if'0)
- add Wine gettimeofday implementation (currently if'0)
- apply sources changes to SymbolFile class
- remove unicode support class
- fix a bug in the createProcess version for windows hosts which randomly led to invalid boot hdd error messages

svn path=/trunk/; revision=29450
2007-10-08 00:18:01 +00:00
Christoph von Wittich
66b7980abf fix building with VS2005
svn path=/trunk/; revision=29448
2007-10-07 23:37:15 +00:00
Christoph von Wittich
b958e36122 used autoformat in MSVC to get the code readable again
svn path=/trunk/; revision=29447
2007-10-07 22:51:05 +00:00
Christoph von Wittich
e907d2737c fix some memory leaks
svn path=/trunk/; revision=29446
2007-10-07 22:43:18 +00:00
Johannes Anderwald
616c7f2be3 - improve error checking
- fix a memory leak

svn path=/trunk/; revision=29445
2007-10-07 20:17:54 +00:00
Johannes Anderwald
44be754751 - improve debugging
svn path=/trunk/; revision=29444
2007-10-07 20:05:27 +00:00
Colin Finck
911a564d4b Some Bulgarian translation updates by Ñòàíåâ (sstpr AT narod DOT ru)
See issue #2728 for more details.

svn path=/trunk/; revision=29443
2007-10-07 19:19:27 +00:00
Hervé Poussineau
14a4a98b96 Do not delete section extension when storing it in the structure
See issue #1147,1845 for more details.

svn path=/trunk/; revision=29441
2007-10-07 17:13:06 +00:00
Aleksey Bragin
2012ccfc2f - Get rid of incompatible strtoull export in msvcrt.dll
- Make dbghelp.dll use strtoui64 instead. Another solution would be to add it to libwine, but it will make code duplication even worse (strtoull is already implemented in two places).

svn path=/trunk/; revision=29440
2007-10-07 16:42:10 +00:00
Colin Finck
69fd113200 Updated italian translations for access.cpl and ncpa.cpl by Paolo Devoti (devotip AT tiscali DOT it)
See issue #2727 for more details.

svn path=/trunk/; revision=29439
2007-10-07 15:38:04 +00:00
Hervé Poussineau
1cf5e31c3b Oops, forgot to save the file before committing ;)
svn path=/trunk/; revision=29435
2007-10-07 12:29:46 +00:00
Hervé Poussineau
147f7c934c Add mingw and msvcrt implicit libraries only if it is a Win32 target
svn path=/trunk/; revision=29434
2007-10-07 12:28:18 +00:00
Hervé Poussineau
c24dcf1da0 ntdll.dll is a native dll
svn path=/trunk/; revision=29433
2007-10-07 12:14:02 +00:00
Christoph von Wittich
278c4a1b03 fix a resource leak
svn path=/trunk/; revision=29432
2007-10-07 00:43:43 +00:00
Christoph von Wittich
25cde1b38b -fix a resource leak and two memory leaks
svn path=/trunk/; revision=29431
2007-10-07 00:21:58 +00:00
Christoph von Wittich
8565a1aab5 -fix a warning in charmap.c
-use LocalFree when memory was allocated by LocalAlloc

svn path=/trunk/; revision=29430
2007-10-07 00:03:57 +00:00
Hervé Poussineau
40fa2a585a Do not call DllInstall, it is a stub
See issue #2719 for more details.

svn path=/trunk/; revision=29428
2007-10-06 21:13:48 +00:00
Timo Kreuzer
2ddf628afc add missing gdi object type
svn path=/trunk/; revision=29427
2007-10-06 21:13:24 +00:00
Christoph von Wittich
f57c7260c2 replace non-existant SUBLANG_PORTUGUESE_PORTUGAL with SUBLANG_PORTUGUESE
svn path=/trunk/; revision=29425
2007-10-06 20:06:11 +00:00
Hervé Poussineau
1962ee8f23 Do not define structures twice
svn path=/trunk/; revision=29424
2007-10-06 19:28:04 +00:00
Hervé Poussineau
340b2adbee Do not define __REACTOS__ twice
svn path=/trunk/; revision=29423
2007-10-06 19:18:55 +00:00
Peter Ward
b2a56ac32a - Fix build.
svn path=/trunk/; revision=29422
2007-10-06 19:13:15 +00:00
Christoph von Wittich
e45ac511e7 remove double controls from the resource
svn path=/trunk/; revision=29421
2007-10-06 18:32:45 +00:00
Hervé Poussineau
388fa4820c Rename _REACTOS_ to __REACTOS__
svn path=/trunk/; revision=29420
2007-10-06 18:04:03 +00:00
Ged Murphy
1beed38801 fix painting of alpha channels in 32bpp icons onto windows/dialogs
svn path=/trunk/; revision=29419
2007-10-06 17:59:21 +00:00
Aleksey Bragin
52c172c002 - Fix incorrect DPRINT.
svn path=/trunk/; revision=29418
2007-10-06 16:04:21 +00:00
Aleksey Bragin
764cda7527 - Fix build.
svn path=/trunk/; revision=29417
2007-10-06 14:35:39 +00:00
Aleksey Bragin
3f6b60365b Dmitry Chapyshev <lentind@yandex.ru>
- Add some more dialogs to input.dll, and even some functionality, but it still needs a lot of work.
- Add input.dll and systeminfo.exe to the bootcd

svn path=/trunk/; revision=29416
2007-10-06 11:47:06 +00:00
Aleksey Bragin
0fb55f0db8 Dmitry Chapyshev <lentind@yandex.ru>
- Fix a typo in the russian translation of taskmgr.
- Improve explorer icons (as usual, remove 4bits, add 16bits, and very slightly edit).
- Add some missing icons to setupapi.dll.

svn path=/trunk/; revision=29415
2007-10-06 11:04:31 +00:00
Aleksey Bragin
bad5a95a60 Dmitry Chapyshev <lentind@yandex.ru>
- Update the icons for sysdm and netid.

svn path=/trunk/; revision=29414
2007-10-06 10:55:13 +00:00
Aleksey Bragin
6f366e58e3 Dmitry Chapyshev <lentind@yandex.ru>
- Add russian translation to clb.
- Regedit's icons: remove 4bit icons, add 16bit icons.

svn path=/trunk/; revision=29413
2007-10-06 10:53:22 +00:00
Aleksey Bragin
62e6f7492d Dmitry Chapyshev <lentind@yandex.ru>
- Add a temporary icon (should be changed to a better one), so that it's displayed in the taskbar and window title.

svn path=/trunk/; revision=29412
2007-10-06 10:50:51 +00:00
Aleksey Bragin
ab9b5860ed Dmitry Chapyshev <lentind@yandex.ru>
- Fix a typo in russian translation of intl.cpl

svn path=/trunk/; revision=29411
2007-10-06 10:46:42 +00:00
Art Yerkes
289ae6c346 Added to trunk.
svn path=/trunk/; revision=29410
2007-10-06 08:34:33 +00:00
Art Yerkes
a21398057a Flipped increment/decrement. Noticed by encoded.
svn path=/trunk/; revision=29408
2007-10-06 08:29:22 +00:00
Art Yerkes
0abf169695 All remaining changes from the PPC branch. Not well tested yet. Many things
are indeed still stubs or WIP code.

Some people have been interested in helping out from some time and I'm sorry
I haven't been able to do this merge finally for a while.

svn path=/trunk/; revision=29407
2007-10-06 07:53:20 +00:00
Aleksey Bragin
9a2d4a0858 - Implement KiTrap19 handler (XMMI exceptions, mostly copied KiTrap7 handler and used mxcsr status word and exceptions there). There will be no weird 0xF BSODs anymore, however I need to investigate about exceptions masking.
- Dynamically enable it, if CPU supports XMMI (was already done in the kernel, but #if0-ed).

svn path=/trunk/; revision=29406
2007-10-06 07:22:59 +00:00
Aleksey Bragin
ac92ed539f - Fix an awful memory-overwrite bug. Buggy code written by Eugene Ingerman, 04-Aug-1988.
- Alex is awarded ReactOS Medal-of-Honour for the great achievement (fix of the oldest bug ever in ReactOS).

svn path=/trunk/; revision=29405
2007-10-05 20:46:25 +00:00
Aleksey Bragin
8d7e49ee86 - Those two are not needed anymore.
svn path=/trunk/; revision=29404
2007-10-05 20:40:29 +00:00
Johannes Anderwald
f341d8a8af - add missing definitions required for wine shell32
svn path=/trunk/; revision=29403
2007-10-05 20:33:03 +00:00
James Tabor
bd65efd9de No need to stop APC when looping.
svn path=/trunk/; revision=29401
2007-10-05 18:16:34 +00:00
Aleksey Bragin
8206cd0b71 - Don't allocate pool with a NULL tag, use ExAllocatePool instead.
svn path=/trunk/; revision=29400
2007-10-05 17:17:49 +00:00
Aleksey Bragin
7b9b1a8536 - Free BusInterface only if it was really alloc'd
- Remove svn:needs-lock property from this [stub]-driver

svn path=/trunk/; revision=29399
2007-10-05 17:13:53 +00:00
Aleksey Bragin
5e5a42e89b - Fix a mistake, led to usage of unitialized memory and then freeing it.
svn path=/trunk/; revision=29398
2007-10-05 17:08:23 +00:00
Johannes Anderwald
5e3641128f - fix english SHELL_EXTENDED_SHORTCUT_DLG resource dialog
- add runas dialog resource definition (not yet used)
- store runas settings in shortcut properties

svn path=/trunk/; revision=29397
2007-10-05 15:12:25 +00:00
Aleksey Bragin
a6b4148654 - Fix DBG=0 build
svn path=/trunk/; revision=29396
2007-10-05 12:07:50 +00:00
Aleksey Bragin
9fe1e6e1d3 - Fix a bug with wrong handling of an ALT key pressed together with a mouse click.
svn path=/trunk/; revision=29395
2007-10-05 09:37:46 +00:00
James Tabor
853d34afaf Fixed an old typo bug from rev 3450 by dwelch. Add support for DCX_NORESETATTRS and fixed up IntWindowFromDC.
svn path=/trunk/; revision=29394
2007-10-05 06:47:42 +00:00
Johannes Anderwald
fe4f628972 - implement create shortcut wizard (works currently only for files)
svn path=/trunk/; revision=29393
2007-10-04 23:51:10 +00:00
Johannes Anderwald
327e65fe96 - fix a bug and warning
svn path=/trunk/; revision=29392
2007-10-04 20:16:11 +00:00
Aleksey Bragin
b16c028e4f - Update two doxyfiles to the newest version and fix paths. Many other doxyfiles remain...
svn path=/trunk/; revision=29391
2007-10-04 17:48:47 +00:00
Aleksey Bragin
e82583fbe8 - Comments, debug prints translation into readable english.
svn path=/trunk/; revision=29389
2007-10-04 08:47:13 +00:00
Aleksey Bragin
a030c28a82 - Change strange greatlord-like sentences to a short and clear one.
svn path=/trunk/; revision=29388
2007-10-04 08:30:01 +00:00
Aleksey Bragin
5cf9e02b1e - Don't try to copy an uninitialized bitmap's contents (it worked only because it was zeroed, and thus zero-size RtlCopy and ExFreePool(NULL)).
svn path=/trunk/; revision=29387
2007-10-03 20:58:44 +00:00
Gregor Brunmar
79ce62a7c3 Fixed bug 2555 (Calendar window does not close automaticaly)
See issue #2555 for more details.

svn path=/trunk/; revision=29386
2007-10-03 20:47:59 +00:00
Aleksey Bragin
6d5d5b6293 - Fix ExAllocatePoolWithTag with a 0 tag.
svn path=/trunk/; revision=29385
2007-10-03 20:30:41 +00:00
Gregor Brunmar
7d65442299 Added context menu on right click in treeviews
svn path=/trunk/; revision=29384
2007-10-03 19:45:39 +00:00
Gregor Brunmar
62cb1ae6bf * Fixed bug 2456 (propsheet's apply button enabling at the wrong time)
See issue #2456 for more details.

svn path=/trunk/; revision=29383
2007-10-03 19:34:34 +00:00
Johannes Anderwald
55df7a560f - deactivate signal handler for linux
svn path=/trunk/; revision=29382
2007-10-03 17:53:03 +00:00
Aleksey Bragin
d2687b4de8 Dmitry Chapyshev <lentind@yandex.ru>
- Change listbox to listview
- Draw icons
- Add a find bar (it works, but will work better in future)
- "Install" button moved to a separate tab, also buttons "Download!" and "Find in the Internet" are added there too
- Applet's width increased
- "Modify/Remove" button will become active only when an application is selected

svn path=/trunk/; revision=29381
2007-10-03 17:50:43 +00:00
Johannes Anderwald
d4891b7759 - fix linux build
svn path=/trunk/; revision=29380
2007-10-03 17:38:18 +00:00
Christoph von Wittich
9dec8191db fix some of the build errors
svn path=/trunk/; revision=29379
2007-10-03 16:52:31 +00:00
Hervé Poussineau
5fecef05ea Add back windres, it is still used after wrc invocation
svn path=/trunk/; revision=29378
2007-10-03 14:17:46 +00:00
Hervé Poussineau
09ab02f6da Remove usewrc attribute in rbuild files ; wrc should be able to compile all resources
svn path=/trunk/; revision=29377
2007-10-03 14:09:45 +00:00
Hervé Poussineau
5c98cc37b5 Remove hack added in r28961. It seems that wrc works well now.
svn path=/trunk/; revision=29376
2007-10-03 14:02:04 +00:00
Hervé Poussineau
69a12a6870 Implement NdisMWriteLogData, enough to see something
svn path=/trunk/; revision=29375
2007-10-03 13:48:51 +00:00
Aleksey Bragin
d3048bf9fd - Silence badly placed debug message. DPRINT1 equals FIXME and ERR, but not TRACE!
svn path=/trunk/; revision=29374
2007-10-03 12:01:13 +00:00
Aleksey Bragin
a68ed2f38a - Use IopLoanUnloadDriver() for calling unload routine too, in the context of system process, when needed.
svn path=/trunk/; revision=29373
2007-10-03 11:54:31 +00:00
Hervé Poussineau
d0ae8b7806 Try to fix Linux build
svn path=/trunk/; revision=29372
2007-10-03 11:24:56 +00:00
Hervé Poussineau
254bdce1b8 Support custom C and C++ compilers, by variables HOST_CC, HOST_CPP, TARGET_CC and TARGET_CPP
Simplify usage of ROS_PREFIX variable

svn path=/trunk/; revision=29371
2007-10-03 11:12:25 +00:00
Aleksey Bragin
2ea98ca374 - NtLoadDriver APIs refactor/improvent:
* Move loading of a driver to the common (in future) routine IopLoadUnloadDriver (name taken from http://wasm.ru/forum/viewtopic.php?pid=166891).
 * Fix a bug: NtLoadDriver should always load drivers in a context of the system process, explanation here: http://www.osronline.com/showthread.cfm?link=114687
 * Reformat NtLoadDriver's code.

svn path=/trunk/; revision=29370
2007-10-03 10:17:04 +00:00
Hervé Poussineau
597b822c7e Separe right code from hack
svn path=/trunk/; revision=29369
2007-10-03 08:28:16 +00:00
Aleksey Bragin
2a55c8944c - Fix a typo in shell32 resources.
See issue #2717 for more details.

svn path=/trunk/; revision=29368
2007-10-03 08:20:13 +00:00
James Tabor
dece4b531e Move DCX_EXCLUDEUPDATE to the psdk where it belongs.
svn path=/trunk/; revision=29367
2007-10-03 04:08:22 +00:00
James Tabor
fbf23a8f57 Add dprint to debug the change to ownership for shutdown. Also free fake save DC if all window DCE are free.
svn path=/trunk/; revision=29366
2007-10-03 00:39:20 +00:00
Daniel Reimer
457f47ba2e You forgot something in your Translation janderwald.
svn path=/trunk/; revision=29365
2007-10-02 23:48:56 +00:00
Johannes Anderwald
8146f33427 - start implementing create shortcut wizard
svn path=/trunk/; revision=29364
2007-10-02 23:34:00 +00:00
Johannes Anderwald
1b282a3cb5 - remove small hack
- enhance debug statement
- port the drive general / tools property dialog to all languages (english translation)

svn path=/trunk/; revision=29363
2007-10-02 22:09:12 +00:00
Daniel Reimer
f15bfece56 Bug 2716: Italian translation for Logoff (folleinvasato@yahoo.it)
svn path=/trunk/; revision=29362
2007-10-02 21:04:32 +00:00
Daniel Reimer
8ece61c8bf Bug 2708: Ukrainian translation update (temarez@yandex.ru)
Bug 2712: Lithuanian translation (cman@cman.us)
Bug 2713: Italian translation for FIND (folleinvasato@yahoo.it)
Bug 2714: Italian translation for MORE (folleinvasato@yahoo.it)

svn path=/trunk/; revision=29361
2007-10-02 20:50:52 +00:00
Aleksey Bragin
5535e33b64 - Temporary revert 29342.
See issue #2715 for more details.

svn path=/trunk/; revision=29360
2007-10-02 20:09:31 +00:00
Johannes Anderwald
2a4148f4c2 - enable cleanup button
- start cleanmgr process on request

svn path=/trunk/; revision=29359
2007-10-02 18:03:15 +00:00
Johannes Anderwald
00b7f338fa - implement drive extra dialog
svn path=/trunk/; revision=29358
2007-10-02 17:41:48 +00:00
Johannes Anderwald
5eef84319c - remove superflious calls to sysreg
svn path=/trunk/; revision=29357
2007-10-02 16:10:11 +00:00
Johannes Anderwald
86ff6bfeaa - perform all boot tests in one launch of sysreg
- check for timeouts in windows version to see if qemu has hung

svn path=/trunk/; revision=29356
2007-10-02 16:09:29 +00:00
Johannes Anderwald
384ad5f156 - draw drive dialog static controls
- use rtl library for calculating [free|used] diskspace 
- add german resource strings

svn path=/trunk/; revision=29355
2007-10-02 16:03:48 +00:00
Hervé Poussineau
c5921b158e Simplify code.
Spotted by Pablo Menichini, pablo at menichini dot com dot ar

svn path=/trunk/; revision=29354
2007-10-02 14:38:14 +00:00
Hervé Poussineau
ba13c6e131 Support "i386" as an alternative name for cdrom directory
svn path=/trunk/; revision=29353
2007-10-02 12:23:40 +00:00
Hervé Poussineau
f649143b56 Do not hardcode cdrom directory
svn path=/trunk/; revision=29352
2007-10-02 12:16:45 +00:00
Hervé Poussineau
68955155b7 Add a default debug channel
svn path=/trunk/; revision=29351
2007-10-02 10:57:00 +00:00
James Tabor
4b10f0559c Fix NtUserGetIconSize prototype.
svn path=/trunk/; revision=29350
2007-10-02 00:56:04 +00:00
Johannes Anderwald
2ec6c16001 - improve drive property dialog a bit
svn path=/trunk/; revision=29349
2007-10-02 00:07:22 +00:00
James Tabor
fb4bacbb5f Win32k/User32:
- Moved NtUserGetCursorIconInfo to NtUserGetIconInfo, update header.
- GetIconInfo is correctly called now.

svn path=/trunk/; revision=29348
2007-10-01 23:15:02 +00:00
Ged Murphy
e05e9dee74 remove the bitmap stuff, we won't be using this for now
svn path=/trunk/; revision=29347
2007-10-01 22:53:09 +00:00
Johannes Anderwald
ae3adacf6f - add GUID_DEVCLASS_DISKDRIVE
svn path=/trunk/; revision=29346
2007-10-01 22:40:15 +00:00
Johannes Anderwald
408fd9b4e8 - remove previously added DRIVE_SHARE_DLG and DRIVE_CONTINGENT_DLG
- the drive share dialog is implemented in rshx32.dll
- the contigent dialog is implemented in dskquoui.dll
- start implementing german general drive dialog

svn path=/trunk/; revision=29345
2007-10-01 21:53:41 +00:00
Johannes Anderwald
108c1a9a60 - start implementing a few shell property dialogs (shelllink, file, drive) and corresponding shell objects (i.e. Desktop properties opens sysdm cpl) etc
svn path=/trunk/; revision=29344
2007-10-01 20:28:45 +00:00
Johannes Anderwald
07c26f24e6 - fix typo
svn path=/trunk/; revision=29343
2007-10-01 20:25:16 +00:00
Aleksey Bragin
fbf1e8f95e - Finally move MmInit1 to MmInitSystem where it should belong, since FreeLdr now properly sets up SharedUserData. (Thanks to Alex for the hint)
svn path=/trunk/; revision=29342
2007-10-01 20:24:01 +00:00
Martin Fuchs
dc3692a04f remove <alloca.h>
svn path=/trunk/; revision=29340
2007-10-01 20:00:24 +00:00
Hervé Poussineau
30a4afa744 Fix build
svn path=/trunk/; revision=29339
2007-10-01 19:54:37 +00:00
Martin Fuchs
b511687db0 update explorer/xmlstorage
svn path=/trunk/; revision=29338
2007-10-01 19:53:58 +00:00
Aleksey Bragin
9c40044087 - Forgot to hit "CTRL+S" in the editor :) (add a FIXME comment about small hack).
svn path=/trunk/; revision=29337
2007-10-01 19:12:09 +00:00
Hervé Poussineau
7d540cf035 Autosyncing with Wine HEAD
svn path=/trunk/; revision=29336
2007-10-01 19:09:53 +00:00
Hervé Poussineau
9a2b3ffc12 Prepare import of browseui.dll
svn path=/trunk/; revision=29335
2007-10-01 19:09:07 +00:00
Aleksey Bragin
843bb30324 - Almost completely fix the hack in IopParseDevice which was resulting in "FIXME: Broken Parse due to invalid DesiredAccess" messages, by changing some calls to IoGetDeviceObjectPointer to use FILE_READ_ATTRIBUTES instead of FILE_READ_DATA (so that the volume doesn't get mounted).
svn path=/trunk/; revision=29334
2007-10-01 18:04:42 +00:00
Hervé Poussineau
fcc8786305 Display error location when possible
svn path=/trunk/; revision=29333
2007-10-01 18:02:45 +00:00
Aleksey Bragin
fe7669dea4 - KeRosCaptureUserStackBackTrace is now created, which calls RtlWalkFrameChain with the user-mode flag, meaning that bugchecks finally show the user-mode stack again!
- KeRosDumpStackFrames is fixed so that if the EIP can't be found in a module list, it's still displayed (just without the module name). Previously the EIP would not be shown, resulting in code running on the heap/stack/somewhere else not being shown as part of the trace.

svn path=/trunk/; revision=29332
2007-10-01 17:58:49 +00:00
Ged Murphy
bb7d880c70 - half implement support for multiple monitors to desk.cpl
- people with more than one monitor can now use this applet in windows without it crashing

svn path=/trunk/; revision=29331
2007-10-01 15:44:53 +00:00
Hervé Poussineau
a4c436a3a3 Rename 'base' to 'installbase' for CdFile, InstallFile and Bootstrap
Patch by Marc Piulachs, marc dot piulachs at codexchange dot net
See issue #2706 for more details.

svn path=/trunk/; revision=29330
2007-10-01 14:19:27 +00:00
Ged Murphy
a6d6a2af53 use w3seek's control for single monitors displays
svn path=/trunk/; revision=29329
2007-10-01 13:54:54 +00:00
Ged Murphy
221f21c62a It's not pretty, but get desk.cpl building in msvc again.
svn path=/trunk/; revision=29328
2007-10-01 13:23:28 +00:00
Ged Murphy
ca1003310b remove some debug output I missed
svn path=/trunk/; revision=29327
2007-10-01 11:59:11 +00:00
Ged Murphy
ecf21c9be9 - partial rewrite of NtGdiGetDIBitsInternal
- wrap all usermode read/writes in seh
- make it more compatible with XP. We now pass all current GetDIBits tests and win32k tests

svn path=/trunk/; revision=29326
2007-10-01 11:53:31 +00:00
Aleksey Bragin
82a49a076e - Make VideoPortCreateSecondaryDisplay() return an error instead of success, so that driver does not assume the SecondaryDeviceExtension was created for it.
- Add one more DPRINT() to show the size of Device Extension miniport has asked for.
See issue #2672 for more details.

svn path=/trunk/; revision=29325
2007-10-01 10:18:53 +00:00
Hervé Poussineau
6f2304890d Disable debug output
svn path=/trunk/; revision=29324
2007-10-01 09:26:46 +00:00
Aleksey Bragin
3d024aa55b - Rewrite IntVideoPortGetProcAddress() implementation to use a lookup table instead of doing a wrong call to ZwQuerySystemInformation() which always returned STATUS_IMAGE_ALREADY_LOADED (it's supposed to return this). MS's VideoPort seems to do it in a similar way, because it doesn't import neither ZwQSI() nor MmLoadSystemImage().
- VMWare's video driver now calls VideoPortCreateSecondaryDisplay(), without much success though (it's unimplemented).

svn path=/trunk/; revision=29323
2007-10-01 08:14:24 +00:00
Hervé Poussineau
434c242504 Add NdisMIndicateReceivePacket
svn path=/trunk/; revision=29322
2007-10-01 07:34:43 +00:00
Timo Kreuzer
d17d86bf5b move last syscalls with wrong number of params into the correct position in the list, so all other syscalls are now xp compatible, at least according their number ;-)
svn path=/trunk/; revision=29321
2007-10-01 00:32:54 +00:00
Colin Finck
24335fd192 Updated slovak translations for desk.cpl, deskadp, deskmon and slayer by Mario Kacmar (kario AT szm DOT sk)
svn path=/trunk/; revision=29320
2007-09-30 21:04:49 +00:00
Timo Kreuzer
5bfdeba3f6 comment out checkbox for version display, as it isn't fully implemented
See issue #2323 for more details.

svn path=/trunk/; revision=29319
2007-09-30 17:48:41 +00:00
Colin Finck
a6c7ba1f4a Ensure that the "Name" column in Task-Manager will always be shown, so a Registry setting can't influence it.
This is necessary as the "Name" column is currently greyed out in the Column Settings dialog, so the user should have no possibility to change that.
Patch by Carlo Bramini (carlo DOT bramix AT libero DOT it)

See issue #2217 for more details.

svn path=/trunk/; revision=29318
2007-09-30 16:27:55 +00:00
Colin Finck
1ab0310d71 Oops, smartpdf was already in the rbuild file, deleted the other occurence now
svn path=/trunk/; revision=29317
2007-09-30 16:14:59 +00:00
Colin Finck
13ef403787 - Use unicode="yes", so a Unicode entry point can be used. This fixes the last linking issue and this way we also don't need the other UNICODE defines
- Add smartpdf to the "directory.rbuild" of rosapps (but commented out, as I'm not sure if it builds well for everyone now)

svn path=/trunk/; revision=29316
2007-09-30 16:01:17 +00:00
Klemens Friedl
c0ff78a908 two linking issues fixed
* _wstr_dup
* _FT_Get_X11_Font_Format (with a work-around)

one weird mingw linking issue remains:
* _WinMain@16


trunk/reactos/lib/3rdparty/mingw/main.c:73: undefined reference to `_WinMain@16'

svn path=/trunk/; revision=29315
2007-09-30 15:43:34 +00:00
Colin Finck
6d800c5f56 Apply the recent changes in the english desk.cpl resource file to all translations.
I only translated them to german, the new strings of the other translations still need to be translated.

svn path=/trunk/; revision=29314
2007-09-30 15:24:04 +00:00
Klemens Friedl
e596c423c0 removed extern-link function, for the meanwhile
3 linking issues left:
* _wstr_dup
* _WinMain@16
* _FT_Get_X11_Font_Format

svn path=/trunk/; revision=29313
2007-09-30 15:10:10 +00:00
Klemens Friedl
5ab6d7ba86 delete unnecessary files
svn path=/trunk/; revision=29312
2007-09-30 14:36:14 +00:00
Timo Kreuzer
925313a32b reorder libs in rbuild file, reducing the number of unresolved references to 4
svn path=/trunk/; revision=29310
2007-09-30 13:48:53 +00:00
Gregor Brunmar
1a98d2a214 Changes to regedit:
* Fixed updating tree view when renaming a key
* Fixed a tree view refresh bug
* Proper updating of the tree view when deleting keys

svn path=/trunk/; revision=29309
2007-09-30 13:31:44 +00:00
Gregor Brunmar
67dadefc81 * Unicode fixes to regedit
* Fixed bug 2494
Patch by Carlo Bramix [carlo (dot) bramix (at) libero (dot) it].
See issue #2494 for more details.

svn path=/trunk/; revision=29308
2007-09-30 13:23:31 +00:00
Hervé Poussineau
b067e31df6 Reference file handle according to previous mode
svn path=/trunk/; revision=29307
2007-09-30 13:11:36 +00:00
Magnus Olsen
c81402138a Adding a text file call notes.txt it is some werid thing I have have not yet figout how it works.
Add testcase for AddFontResourceA

svn path=/trunk/; revision=29306
2007-09-30 11:57:37 +00:00
Aleksey Bragin
96b8978ef3 - ObReferenceObjectByHandle/ObpReferenceProcessByHandle: Properly
return STATUS_INVALID_HANDLE if user-mode tries to reference a
kernel-mode handle.
- ObReferenceObjectByHandle: Properly validate process/thread access
rights before giving a reference to the caller.
- Fix definition of "SizeOfHandle" macro in the handle table
implementation. Fixes handle leaks at process rundown, handle
allocation, and problems with processes that use more than 512
handles.
- Remove checks for "VALID_INHERIT_FLAGS". These flags have nothing to
do with handle table entries and shouldn't appear in them. Please fix
callers if they're attempting to send inherit flags as access masks.
- Thanks to Alex! :)

svn path=/trunk/; revision=29304
2007-09-30 08:32:34 +00:00
Gregor Brunmar
2405beae7a Removed duplicate function entry. Thanks to encoded|lap for finding it.
svn path=/trunk/; revision=29303
2007-09-30 08:27:50 +00:00
Christoph von Wittich
b2a017b28a -cmdinput.c(168) - wrong constant is used. patch by YaronAharonson <yaron dot aharonson at gmail dot com>
See issue #2693 for more details.

svn path=/trunk/; revision=29301
2007-09-29 21:58:24 +00:00
Thomas Bluemel
b595efe8ae Send notification if another monitor is selected
svn path=/trunk/; revision=29300
2007-09-29 19:12:21 +00:00
Thomas Bluemel
e809e77341 Fix displaying the window caption height (SM_CYCAPTION includes SM_CYBORDER)
svn path=/trunk/; revision=29299
2007-09-29 18:28:45 +00:00
Thomas Bluemel
69f3c70b62 Allow altering the monitor arrangement control behavior flags
svn path=/trunk/; revision=29298
2007-09-29 18:04:40 +00:00
Colin Finck
bfdb1965c9 - Remove the unneeded "stdafx.cpp" file
- Remove the files I imported from the boot/freeldr/freeldr/math directory for adding 64-bit division support and use the -lgcc linker flag instead like it's done in ntoskrnl

svn path=/trunk/; revision=29297
2007-09-29 11:39:06 +00:00
Colin Finck
999056cc44 French translation updates by Pierre Schweitzer (heis_spiter AT hotmail DOT com)
Also a small fix for the english translation of "systeminfo"
See issue #2703 for more details.

svn path=/trunk/; revision=29296
2007-09-29 09:39:37 +00:00
Klemens Friedl
435a566751 SmartPDF - lightweight pdf viewer app for rosapps
* sumatrapdf - vendor import
* everything compiles (libjpeg, poppler, fitz, sumatrapdf)
* does NOT link

(remove the comment tags in the parent directory.rbuild file (rosapps dir) to build it)

svn path=/trunk/; revision=29295
2007-09-29 08:39:35 +00:00
Thomas Bluemel
a3e70b2317 Add ability to change/query single monitors and change/query the current selection in the monitor arrangement control
svn path=/trunk/; revision=29291
2007-09-29 06:22:44 +00:00
Thomas Bluemel
dd55de2665 Display monitor number and various bug fixes
svn path=/trunk/; revision=29290
2007-09-29 04:46:34 +00:00
Thomas Bluemel
c033319e24 Add a (not yet functional) control to allow the user to arrange the monitors
svn path=/trunk/; revision=29289
2007-09-29 02:32:14 +00:00
Colin Finck
a395a0f9df - Fix many warnings
- Fix a bug in id_dma.cpp on line 1261: This probably shouldn't be an assignment, but a check, otherwise all ATI chips will be treated as Silicon Image chips

svn path=/trunk/; revision=29288
2007-09-28 22:32:34 +00:00
Colin Finck
3991819297 uniata patch by encoded:
- Make building with QUEUE_STATISTICS possible
- Fix the best_c check. As best_c is a ULONG variable, you cannot check for -1

svn path=/trunk/; revision=29287
2007-09-28 22:00:52 +00:00
Colin Finck
8eab3a3ddb - Add uniata to the build (it's still not copied to the ISO image)
- Give it correct version information

svn path=/trunk/; revision=29286
2007-09-28 21:40:45 +00:00
Colin Finck
1fb1498412 Fix the uniata linking problems. Hope I did everything right :-D
I still disabled building the driver, so someone else can test it first.

- The i386.h, libgcc2.c, libgcc2.h, longlong.h and powerpc.h files were taken from the boot/freeldr/freeldr/math directory.
  They are used for 64-bit division support
- Created a directory "ros_glue" for all this stuff, moved the ros_glue.cpp file there
- Imported the three functions MOV_DD_SWP (the i486 version), MOV_DW2DD_SWP and MOV_DW_SWP from the misc_i386.cpp file of CrossNt into the ros_glue_asm.s file

svn path=/trunk/; revision=29285
2007-09-28 18:57:05 +00:00
Timo Kreuzer
e1b2e7a30f - header update
- add a resource

svn path=/trunk/; revision=29284
2007-09-28 17:26:29 +00:00
Daniel Reimer
dda7fa8fb8 Update r29282 to all rc files
svn path=/trunk/; revision=29283
2007-09-28 16:41:59 +00:00
Thomas Bluemel
f3163e398e Fix the dialog width
svn path=/trunk/; revision=29282
2007-09-28 16:35:34 +00:00
Timo Kreuzer
51c8156d1e update export list
svn path=/trunk/; revision=29281
2007-09-28 16:32:57 +00:00
Aleksey Bragin
604d7ae80f - Add ros_glue.cpp for implementing CrNt stubs.
- Start changing CrNt to actual ReactOS functions (no need for supporting different versions / importing CrossNT lib).

svn path=/trunk/; revision=29280
2007-09-28 12:35:41 +00:00
Hervé Poussineau
ae56de4440 Moved shared define to header file
Patch by Marc Piulachs, marc (dot) piulachs (at) codexchange.net
See issue #2700 for more details.

svn path=/trunk/; revision=29279
2007-09-28 12:17:19 +00:00
Hervé Poussineau
22006f87c9 RtlRandom is now part of NDK since r29254
svn path=/trunk/; revision=29278
2007-09-28 12:13:44 +00:00
Hervé Poussineau
e49bdbeea7 Fix compilation (but not linking!)
svn path=/trunk/; revision=29277
2007-09-28 11:39:34 +00:00
Aleksey Bragin
32ded795d7 - Reenable CrossNT stuff.
- Fix some #else BLAH / #endif BLAH warnings.
- Change SYSTEM_INFORMATION_CLASS structure by what we have in NDK (duplication for now).

svn path=/trunk/; revision=29276
2007-09-28 11:01:10 +00:00
Daniel Reimer
647e9bfc48 Forgot this translated file.
svn path=/trunk/; revision=29275
2007-09-28 10:49:35 +00:00
Hervé Poussineau
d4ddde1905 Fix some corner cases when processing <include> elements in .rbuild files
svn path=/trunk/; revision=29274
2007-09-28 10:46:10 +00:00
Daniel Reimer
3879561ab6 Bug 2699: Ukrainian translation update (temarez@yandex.ru)
German Translation Update too.

svn path=/trunk/; revision=29273
2007-09-28 10:03:38 +00:00
Hervé Poussineau
acc45ff7fe Add missing constants
svn path=/trunk/; revision=29272
2007-09-28 08:56:45 +00:00
Hervé Poussineau
b62929a83a Added history possibilities to right key
See issue #2248 for more details.

svn path=/trunk/; revision=29271
2007-09-28 08:51:04 +00:00
Hervé Poussineau
9f48a535f8 [FORMATTING] Replace spaces by tabs
No code change

svn path=/trunk/; revision=29270
2007-09-28 07:34:30 +00:00
Timo Kreuzer
88cd9f01f0 Add 5th parameter to NtUserFindWindowEx
svn path=/trunk/; revision=29269
2007-09-28 05:01:27 +00:00
Timo Kreuzer
51de002eae add a DPRINT1, stating that HvpWriteLog doesn't work atm
svn path=/trunk/; revision=29268
2007-09-28 04:56:40 +00:00
Timo Kreuzer
0b5bb79dc8 free memory before returning on failure.
Thanks to Yaron Aharonson (yaron.aharonson@gmail.com) for spotting this.
See issue #2694 for more details.

svn path=/trunk/; revision=29267
2007-09-28 04:17:13 +00:00
Thomas Bluemel
68a27d46e4 Allow changing the display refresh frequency
svn path=/trunk/; revision=29266
2007-09-28 04:07:26 +00:00
Timo Kreuzer
6a3291941f win32k compatibility update
- NtUserCreateWindowEx: add 15th parameter
- NtUserCreateWindowStation: add 7th parameter
- rename NtUserDestroyCursorIcon to NtUserDestroyCursor
- rename NtUserSetCursorIconContents to NtUserSetCursorContents
- implement about 50 NtUser stubs

svn path=/trunk/; revision=29265
2007-09-28 01:49:06 +00:00
Christoph von Wittich
e539947c94 fix some bugs
svn path=/trunk/; revision=29264
2007-09-28 00:12:59 +00:00
Timo Kreuzer
b6ebc1b19c add another small test for AddFontResource
svn path=/trunk/; revision=29263
2007-09-27 22:32:09 +00:00
Timo Kreuzer
581e34abb2 remove gdihv.cbp
svn path=/trunk/; revision=29262
2007-09-27 22:30:25 +00:00
Timo Kreuzer
5b816f2612 gdihv:
- add base type mask
- change my email
- add deleted entries
- full row selection

svn path=/trunk/; revision=29261
2007-09-27 22:29:26 +00:00
Aleksey Bragin
945a85f7cb - Add uniata.rbuild, adapt .rc to ReactOS
- Preliminary compilation fixes.
- Remove CrossNt stuff for now.

svn path=/trunk/; revision=29260
2007-09-27 20:45:13 +00:00
Aleksey Bragin
d8d12c55ea - Wrong param was being sent to MiSyncThreadProcessViews(), fix that.
svn path=/trunk/; revision=29259
2007-09-27 20:14:32 +00:00
Thomas Bluemel
b785a1ed6d Some fixes
svn path=/trunk/; revision=29257
2007-09-27 19:38:47 +00:00
Aleksey Bragin
1daf74908e - Copy uniata source code to the drivers/storage/ide directory.
svn path=/trunk/; revision=29256
2007-09-27 18:37:22 +00:00
Aleksey Bragin
8f33e033e4 - Add missing KERNEL_LARGE_STACK_COMMIT definition to DDK.
- Fix typo in MMWSL.
- Add RtlRandom to NDK.
- Add MEMORY_PRIORITY values to NDK.
- Add KeAcquireSpinLockRaiseToSynch to NDK.
- Make MmInitializeProcessAddressSpace take two more parameters: one to specify flags, such as large page support, and another one to define the process being cloned, when fork() support will be added.
- Add KeInvalidAccessAllowed to deal with page faults in the special S-List code. The assembly code currently handles simple faults, but our MmAccessFault handler needs to start verifying the fault too.
- Mark LoaderReserve pages as LoaderFree, it seems they end up this way in Windows.
- Use MmNumberOfPhysicalPages instead of MmStats.NrTotalPages.

All NDK changes are discussed with Alex.

svn path=/trunk/; revision=29254
2007-09-27 18:07:44 +00:00
Thomas Bluemel
2d7f6e6a42 - Display a list of monitors if there's more than one monitor
- Display a list of available refresh rates for the current mode

svn path=/trunk/; revision=29252
2007-09-27 17:53:14 +00:00
Timo Kreuzer
9c009fef95 probe the pointer and some cleanup simplification
svn path=/trunk/; revision=29251
2007-09-27 17:25:40 +00:00
Thomas Bluemel
466ad8f165 Set the current device mode selection to the current one if the mode was changed successfully
svn path=/trunk/; revision=29250
2007-09-27 17:24:07 +00:00
Christoph von Wittich
de304494a0 add shell extension for displaying processor information in device manager
svn path=/trunk/; revision=29249
2007-09-27 17:04:44 +00:00
Timo Kreuzer
f36fe07cbe Basic implementation of NtGdiSetDIBitsToDeviceInternal()
todo: handle XlateObj
Now apparition (open source pdf viewer) works on ros.

svn path=/trunk/; revision=29248
2007-09-27 17:04:29 +00:00
Aleksey Bragin
ccc37f538c - Coalesce all calls to MmUpdatePageDir through a single inlined function - MiSyncProcessThreadViews, and fix callers which assumed that the kernel stack is KERNEL_STACK_SIZE, when in fact, it may be KERNEL_LARGE_STACK_SIZE. We now detect and handle this, fixing a bug in KiAttachProcess.
- Remove all old-scheduler code, it's not needed anymore, nor it's going to be ever supported.

svn path=/trunk/; revision=29247
2007-09-27 16:28:56 +00:00
James Tabor
d4c51f18f7 - First try bug fix for #2698.
svn path=/trunk/; revision=29246
2007-09-27 15:54:51 +00:00
Thomas Bluemel
4562d06142 Set eol-style to native
svn path=/trunk/; revision=29245
2007-09-27 15:50:28 +00:00
Aleksey Bragin
18064031f9 - Fix multiple bugs in RtlWalkFrameChain and secure it against any possibility of a bugcheck while walking the stack.
- Fix bugs in RtlUnwind and RtlExceptionDispatch which assumed the DPC stack size was 4KB instead of 12KB.
- Fix multiple bugs in RtlpGetStackLimits and seure it against bugchecks. Properly detect DPC or invalid stacks.
- PsConvertToGuiThread should acquire a guarded region, not a critical section, to stop all APCs.
- Fix bug in bugzilla reporting which was making things crash.
- Unlock address space before raising to HIGH_LEVEL in KeBugCheck.
- Display blue screen at APC_LEVEL, to avoid the assertion in procobj.c when trying to attach to csrss. This should fix the recursive bugchecking when the GUI is up, and also take down the GUI properly. The fix is a hack.
- Fix bogus implementation of IoGetStackLimits and make it work properly.
- Make MmCreateKernelStack return the base of the stack, not the limit, and fix all callers appropriately.
- Remove svn:needs-lock properties of various files, whose contents either changes too often or whose contents is definately clean.

Bugreports and information - by Alex.

svn path=/trunk/; revision=29244
2007-09-27 13:07:43 +00:00
Aleksey Bragin
5344a0ac1b - Slightly cleanup the code.
- Enable allocation of the adapter channel in case of Start I/O.

svn path=/trunk/; revision=29243
2007-09-27 12:34:53 +00:00
Daniel Reimer
7cc4aa6e80 Bug 2697: Ukrainian translation update
German Translations by me.

svn path=/trunk/; revision=29242
2007-09-27 10:17:05 +00:00
Aleksey Bragin
73d39ce072 - Handle NextLuRequest and ResetDetected in ScsiPortNotification() API
- Add UNIMPLEMENTED into ScsiPortGetBusData() when it's called with Length = 0. Does not happen so far, when tested with BusLogic.sys in our tree.

svn path=/trunk/; revision=29241
2007-09-27 10:04:56 +00:00
Aleksey Bragin
815cfb4aa2 Samuel Erdtman <samuel@erdtman.se>
- Implement 'replace' command in cmd.
- TODO: Update all translations with the new text strings for replace command.

svn path=/trunk/; revision=29240
2007-09-27 08:35:08 +00:00
Thomas Bluemel
cc8fa40f41 Fix typo (copy&paste)
svn path=/trunk/; revision=29239
2007-09-27 06:28:30 +00:00
Thomas Bluemel
f64ff394df Display the resource page in device properties
svn path=/trunk/; revision=29238
2007-09-27 05:51:08 +00:00
Thomas Bluemel
8ecd472083 Let crt parse the command line parameters
svn path=/trunk/; revision=29237
2007-09-27 05:49:46 +00:00
Thomas Bluemel
cb4e2fda79 Add an initial (incomplete, not functional) implementation of the display monitor shell extension for desk.cpl
svn path=/trunk/; revision=29236
2007-09-27 05:45:03 +00:00
Thomas Bluemel
17602f0b45 Once again change back the GUID to the real one...
svn path=/trunk/; revision=29235
2007-09-27 05:27:23 +00:00
Thomas Bluemel
81f8891b9b - Allow changing the screen resolution in the advanced adapter settings through desk.cpl
- desk.cpl doesn't publish a monitor id

svn path=/trunk/; revision=29234
2007-09-27 05:23:58 +00:00
Thomas Bluemel
54ceb2a1f2 Display the display adapter properties with extended pages
svn path=/trunk/; revision=29233
2007-09-27 03:08:45 +00:00
Thomas Bluemel
96186bac97 Fix implementation of DevicePropertiesA/W to show extended pages
svn path=/trunk/; revision=29232
2007-09-27 03:04:52 +00:00
Thomas Bluemel
1f14f9be20 Implement DevicePropertiesA/W by calling DevicePropertiesExA/W and move function prototypes to a private header
svn path=/trunk/; revision=29231
2007-09-27 02:49:31 +00:00
Thomas Bluemel
ab90e188ca Don't show prefix in labels filled with hardware information
svn path=/trunk/; revision=29230
2007-09-27 02:05:23 +00:00
Timo Kreuzer
b088aca338 Ukrainian translations by Artem Reznikov (temarez AT yandex DOT ru)
See issue #2696 for more details.

svn path=/trunk/; revision=29229
2007-09-27 00:25:42 +00:00
Thomas Bluemel
653a40ad14 Select currently selected mode by default
svn path=/trunk/; revision=29228
2007-09-26 23:37:09 +00:00
Thomas Bluemel
95d9c7542d Fix compilation error
svn path=/trunk/; revision=29227
2007-09-26 23:17:48 +00:00
Thomas Bluemel
eb9665eab4 Fix CLSID (accidently committed a change for testing purpose)
svn path=/trunk/; revision=29226
2007-09-26 23:15:42 +00:00
Thomas Bluemel
b212e14609 Implement the "List all modes" dialog, read-only for now
svn path=/trunk/; revision=29225
2007-09-26 23:10:41 +00:00
Thomas Bluemel
aa782313a8 Display adapter information
svn path=/trunk/; revision=29224
2007-09-26 21:19:54 +00:00
Aleksey Bragin
2c239e0bd6 - PS_UNKNOWN_VALUE determines if the process should be created with large pages: rename to PS_LARGE_PAGES
- Do Address Space initialization as per "Windows Internals II" slides, either for the Boot, System, Cloned User or New User Process cases.
- Rename MmCreateProcessAddressSpace to MmInitializeProcessAddressSpace, and MmCopyMmInfo to MmCreateProcessAddressSpace. What ReactOS did is correct as per "Windows Internals II", but the names were inverted.
- Clone the Object Table if we are the boot process, and only initialize part of the address space (since we don't need things like guard page, TEB, etc), however, do initialize and map the shared user data section.
- Make the initial system process and idle process share the same page directory instead of creating a new one.
- Use the same priority class as the parent process, if the process was in the idle or below-normal priority class.
- Only duplicate handles if the caller requested it, instead of always duplicating the process's handles!
- Generate a null image file name for system processes.
- Rename ObpCreateHandleTable to ObInitProcess and better handle race and out-of-memory conditions. Detect if auditing required, but don't do anything about it.
- Initialize the Idle/System process address space much earlier in the boot process, in MmInitSystem.

Thanks to Alex for providing various information, and answering all my questions.

svn path=/trunk/; revision=29223
2007-09-26 20:55:26 +00:00
Daniel Reimer
6433b53657 Another german rc file update
svn path=/trunk/; revision=29222
2007-09-26 20:49:06 +00:00
Thomas Bluemel
3570f78e87 Display the display device adapter name and show device properties
svn path=/trunk/; revision=29221
2007-09-26 20:41:57 +00:00
Ged Murphy
9fa9463d77 - add missing net card interface info to ipifcons.h
- follow on patch from Gregor Brunmar <gregor.brunmar - home - se>

svn path=/trunk/; revision=29220
2007-09-26 20:36:28 +00:00
Ged Murphy
98727fc4a0 - generate the netcard status information and populate the dialog with it
- patch by Gregor Brunmar <gregor.brunmar - home - se>

svn path=/trunk/; revision=29219
2007-09-26 20:34:08 +00:00
Thomas Bluemel
992a4c2d01 Add deskadp.dll to the bootcd and register the shell extension
svn path=/trunk/; revision=29218
2007-09-26 20:12:26 +00:00
Thomas Bluemel
45dc31ac0b Add initial implementation of the display adapter desk.cpl shell extension
svn path=/trunk/; revision=29217
2007-09-26 20:00:07 +00:00
Thomas Bluemel
8e049e50a4 Move routines that can be shared between desk.cpl shell extensions to common header as inlined functions
svn path=/trunk/; revision=29216
2007-09-26 19:42:39 +00:00
Thomas Bluemel
04931ef194 Move desk.cpl shell extension interface definition to shared header file
svn path=/trunk/; revision=29215
2007-09-26 19:23:50 +00:00
Aleksey Bragin
432625614e - Implement InterlockedExchangeAdd/Decrement/Increment16.
- Fix MM_EXTEND_INFO definition.
- Fix MMWSLE definition.
- Fix EPROCESS definition.
- Add quota functions to NDK.
- Add one more parameter to PspMapSystemDll to support mapping large pages.
- Don't make the quota functions do anything for the system process.
- Add page file quota functions.
- Other misc small fixes.

svn path=/trunk/; revision=29214
2007-09-26 16:41:35 +00:00
Daniel Reimer
cb82475b6d Updated German Translation.
svn path=/trunk/; revision=29213
2007-09-26 09:53:48 +00:00
Colin Finck
1efd6d7df7 Ukrainian translations by Artem Reznikov (temarez AT yandex DOT ru)
See issue #2692 for more details.

svn path=/trunk/; revision=29212
2007-09-26 08:48:29 +00:00
James Tabor
ff1881b631 Fix calling conventions.
svn path=/trunk/; revision=29211
2007-09-26 06:26:17 +00:00
Thomas Bluemel
3b6747e11c Display advanced display settings and allow shell extensions to extend it. Not yet fully functional/working
svn path=/trunk/; revision=29210
2007-09-26 06:20:16 +00:00
Thomas Bluemel
ad47c9b3a9 Add stub for SHCreatePropSheetExtArrayEx, temporarily
svn path=/trunk/; revision=29209
2007-09-26 06:14:05 +00:00
Thomas Bluemel
3db8801f43 Fix copy&paste typo in comment
svn path=/trunk/; revision=29208
2007-09-26 04:33:50 +00:00
Thomas Bluemel
6648bd3f85 Allow loading shell extensions
svn path=/trunk/; revision=29207
2007-09-26 04:30:57 +00:00
James Tabor
9f930ed173 Fix calling conventions and do not unload setupapi.dll after registering the notification. Thank you Thomas.
svn path=/trunk/; revision=29206
2007-09-26 01:10:51 +00:00
James Tabor
d42fa2d392 Testing return as default user32 error ERROR_SERVICE_SPECIFIC_ERROR.
svn path=/trunk/; revision=29205
2007-09-25 23:43:28 +00:00
James Tabor
5baf5558ff Implement RegisterDeviceNotificationAW and UnregisterDeviceNotification, based on Gdi32 OpenGL.
svn path=/trunk/; revision=29204
2007-09-25 22:28:35 +00:00
Magnus Olsen
a9892925a1 forget commit Implement of GdiGetLocalBrush, GdiGetLocalDC, GdiGetLocalFont
fix a smaller bug in GdiSetBatchLimit
fix GdiSetLastError to be simluare to windows xp 


svn path=/trunk/; revision=29203
2007-09-25 20:44:53 +00:00
Magnus Olsen
588e62a967 Fix a stupied bug in DdAttachSurface when pSurfaceFrom->hDDSurface is NULL or pSurfaceTo->hDDSurface is null we need create them.
svn path=/trunk/; revision=29202
2007-09-25 16:49:13 +00:00
James Tabor
27a27ff89e IsMetaFile is an easy check used when porting wine static and listbox.
svn path=/trunk/; revision=29201
2007-09-25 14:42:51 +00:00
Ged Murphy
c338775265 - Add usermode checks to GetDIBits
- passes 21 out of 27 tests
- Add GdiSetLastError to the lib instead of forwarding it straight to kernel32

svn path=/trunk/; revision=29200
2007-09-25 13:27:09 +00:00
Ged Murphy
b3c3c9ba5b add more checks for GetDIBits
svn path=/trunk/; revision=29199
2007-09-25 13:20:46 +00:00
Colin Finck
77e82dcd8b Traditional chinese translation for "cacls" by Chaoming Tseng
See issue #2687 for more details.

svn path=/trunk/; revision=29198
2007-09-25 10:32:22 +00:00
Colin Finck
e5402189b9 - Bug 2685: Ukrainian translation for "format" by Rostislav Zabolotny (rstzab AT yandex DOT ru)
- Bug 2686: Ukrainian translation for "regsvr32" by Rostislav Zabolotny (rstzab AT yandex DOT ru)

svn path=/trunk/; revision=29197
2007-09-25 10:08:39 +00:00
Magnus Olsen
92b7462fcb clean up : move EngWideCharToMultiByte from stubs.c to eng.c and mark it as implement
svn path=/trunk/; revision=29195
2007-09-24 19:17:15 +00:00
Magnus Olsen
9b2a7bf67c implmented EngQueryEMFInfo it always return FALSE
it is historic in Windows XP, But not in Windows 2000

svn path=/trunk/; revision=29194
2007-09-24 18:00:49 +00:00
Aleksey Bragin
f38baaaaa2 Dmitry Chapyshev <lentind@yandex.ru>
- Start implementing systeminfo system utility (it already works quite nice, but not complete yet).

svn path=/trunk/; revision=29193
2007-09-24 16:32:12 +00:00
Aleksey Bragin
2e3b975002 - Make PsChargeProcessPoolQuota returning STATUS_SUCCESS
svn path=/trunk/; revision=29192
2007-09-24 16:00:21 +00:00
Ged Murphy
9be6565d51 Add basic tests for NtGdiGetDIBitsInternal
svn path=/trunk/; revision=29191
2007-09-24 15:09:15 +00:00
Ged Murphy
f26bd07f86 Add basic tests for GetDIBits
svn path=/trunk/; revision=29190
2007-09-24 15:02:20 +00:00
Aleksey Bragin
2cbc032859 - Add Ex*Spinlock macros and FLUSH_MULTIPLE_MAXIMUM definitions missing from DDK
- Add KeAcquireQueuedSpinLock / KeAcquireReleaseQueuedSpinLock, RtlCompareMemoryUlong definitions missing from IFS.
- Add actual section object definition to NDK
- More NDK fixes
- Fix incorrect definition of MMPTE_LIST
- Fix incorrect prototype of NtFlushVirtualMemory
- Fix incorrect prototypes of KeAcquire / ReleaseQueuedSpinLock
- Add a second parameter to MmCreateKernelStack to select the NUMA node on which the stack should be allocated
- Avoid usage of PROS_SECTION_OBJECT in Ps where possible
- Unimplement PsChargeProcessQuota. It was not working right
- Use PFN_NUMBER defined in DDK instead of PFN_TYPE internal ROS Type.

svn path=/trunk/; revision=29188
2007-09-24 14:01:54 +00:00
Hervé Poussineau
a7396c359e When depending of a module, also depends of its generated headers
svn path=/trunk/; revision=29186
2007-09-24 13:21:31 +00:00
Hervé Poussineau
7e0ebf1fc6 Add headers dependencies for modules which declare a .idl in their rbuild file
svn path=/trunk/; revision=29185
2007-09-24 12:53:33 +00:00
Hervé Poussineau
9fea5a34a6 Keep standard includes when building C++ modules
svn path=/trunk/; revision=29184
2007-09-24 12:27:00 +00:00
Hervé Poussineau
18bb1da6d2 Fix typo
svn path=/trunk/; revision=29183
2007-09-24 12:22:22 +00:00
Aleksey Bragin
50951397e4 - Small update to the plan (remove what's done already for sure)
svn path=/trunk/; revision=29182
2007-09-24 12:11:14 +00:00
Hervé Poussineau
d7b829fbc7 Depend again of autogenerated psdk headers (was broken in r29176)
svn path=/trunk/; revision=29181
2007-09-24 12:03:10 +00:00
Hervé Poussineau
2ad309f010 Do not use host headers anymore when building target executables/libraries
svn path=/trunk/; revision=29180
2007-09-24 11:43:38 +00:00
Hervé Poussineau
9c968b2b68 Remove this headers set, as they already exist in include/crt
svn path=/trunk/; revision=29179
2007-09-24 11:42:04 +00:00
Hervé Poussineau
682904a871 Copy some headers from RosBE to our include directory. These files are now considered as target headers, whereas those in RosBE are host headers.
svn path=/trunk/; revision=29178
2007-09-24 11:40:54 +00:00
Hervé Poussineau
ea8a8e47da Use user flags when building host tools
svn path=/trunk/; revision=29177
2007-09-24 11:28:52 +00:00
Hervé Poussineau
5dc2b7e865 Do not put .h files in object files, it causes problems at link time
svn path=/trunk/; revision=29176
2007-09-24 11:00:17 +00:00
Hervé Poussineau
c27dad3928 Display a message when a module has been disabled
Support variables in aliased module names

svn path=/trunk/; revision=29175
2007-09-24 09:15:49 +00:00
Hervé Poussineau
d0f1fadb7b Never call TdiCloseDevice when warming up a socket
svn path=/trunk/; revision=29174
2007-09-24 08:39:23 +00:00
James Tabor
e6ed27d2e5 Turn off DcAttr updates for now.
svn path=/trunk/; revision=29173
2007-09-24 04:05:24 +00:00
James Tabor
f924fa55c9 Make sure it is non zero.
svn path=/trunk/; revision=29172
2007-09-24 02:58:22 +00:00
James Tabor
82ad159967 Implement IsGUIThread.
svn path=/trunk/; revision=29171
2007-09-24 02:42:17 +00:00
Eric Kohl
ead5a4f94e Fix a cut & paste bug.
svn path=/trunk/; revision=29170
2007-09-23 22:59:00 +00:00
Magnus Olsen
cacffe3082 fix a spelling mistake
svn path=/trunk/; revision=29169
2007-09-23 19:19:40 +00:00
Magnus Olsen
21687e2157 Start making def Windows XP gdi32 export layout.
svn path=/trunk/; revision=29168
2007-09-23 18:46:47 +00:00
Magnus Olsen
7315ffc1e6 Start making def Windows XP gdi32 export layout.
svn path=/trunk/; revision=29167
2007-09-23 18:18:20 +00:00
Daniel Reimer
0ab1667cb1 Download! is somehow too stupid to use the other link... Now RosBE 0.3.8 will be uploaded to SF.net anyway. And this link seems more XML conformant.
svn path=/trunk/; revision=29166
2007-09-23 17:15:50 +00:00
Colin Finck
39889d2c75 Add the build date and revision number to sysdm.cpl (patch by encoded)
See issue #2683 for more details.

svn path=/trunk/; revision=29165
2007-09-23 17:02:35 +00:00
Daniel Reimer
c5875c6fcd Update to RosBE 0.3.8
svn path=/trunk/; revision=29164
2007-09-23 15:23:54 +00:00
Magnus Olsen
d216c026b2 Fix : UnrealizeObject behoivr as windows 2000/XP see msdn http://msdn2.microsoft.com/en-us/library/ms532602.aspx
Redirect : XFORMOBJ_bApplyXform@20 to NtGdiXFORMOBJ_bApplyXform@20
Redirect : XFORMOBJ_iGetXform@8 to NtGdiXFORMOBJ_iGetXform@8
Redirect : XLATEOBJ_cGetPalette@16 to NtGdiXLATEOBJ_cGetPalette@16
Redirect : XLATEOBJ_hGetColorTransform@4 to NtGdiXLATEOBJ_hGetColorTransform@4

svn path=/trunk/; revision=29163
2007-09-23 14:35:40 +00:00
Magnus Olsen
b34cf0f3ac implement StartFormPage it call on StartPage(hdc); and StartPage is unimplment
Fix : do not redirect TranslateCharsetInfo and StretchDIBits some stuff need be done in user mode. 

svn path=/trunk/; revision=29162
2007-09-23 13:46:20 +00:00
Daniel Reimer
414b736953 Bug 2682: Downloader ressources update (heis_spiter@hotmail.com) (Yeah, I tested it :-P)
svn path=/trunk/; revision=29161
2007-09-23 13:38:32 +00:00
Hervé Poussineau
0b3a854203 Open the process with enough privileges before adjusting them
svn path=/trunk/; revision=29160
2007-09-23 13:14:03 +00:00
Hervé Poussineau
2ff2329ed3 Remove useless code
svn path=/trunk/; revision=29159
2007-09-23 13:10:51 +00:00
Daniel Reimer
17534ab7c6 Fix another Build breaking Bug, I missed...
svn path=/trunk/; revision=29156
2007-09-23 11:42:26 +00:00
Magnus Olsen
76a688a2e2 Fix : RemoveFontResourceA : let it call to RemoveFontResourceExA
Fix : RemoveFontResourceW : let it call to RemoveFontResourceExW
Fix : a comment in SetWorldTransform
Fix : Redirect STROBJ_bEnum@12 to win32k
Fix : Redirect STROBJ_bEnumPositionsOnly@12 to win32k
Fix : Redirect STROBJ_bGetAdvanceWidths@16 to win32k
Fix : Redirect STROBJ_dwGetCodePage@4 to win32k
Fix : Redirect STROBJ_vEnumStart@4 to win32k
Fix : Redirect SetFontEnumeration to win32k
Fix : Redirect SetMagicColors to win32k
Fix : Redirect SetSystemPaletteUse to win32k
Fix : Redirect SetVirtualResolution@20 to win32k
Fix : PtInRegion : Make smaller code in gdi32 for sharememory/metadc
Fix : RectInRegion : Make smaller code in gdi32 for sharememory/metadc 
Fix : SetBrushOrgEx : Make smaller code in gdi32 for sharememory/metadc
Fix : SetDIBits : Make smaller code in gdi32 for sharememory/metadc
Fix : SetGraphicsMode : Make smaller code in gdi32 for sharememory/metadc
Implement RemoveFontResourceExA : it is partly implement it miss flags, and pdv and we also need fix win32k
Implement RemoveFontResourceExW : it is partly implement it miss flags, and pdv and we also need fix win32k

and more stuff

svn path=/trunk/; revision=29154
2007-09-23 11:33:47 +00:00
Colin Finck
a2ae628e84 Fix the intl.cpl build
svn path=/trunk/; revision=29153
2007-09-23 11:30:09 +00:00
Daniel Reimer
31b688ad73 Bug 2677: Ukrainian translation update (rstzab@yandex.ru)
Bug 2678: Dutch translations for all screensavers by Joost de Meij (dreamsmsn@gmail.com)
Bug 2680: Updated (french) translations (heis_spiter@hotmail.com)

svn path=/trunk/; revision=29152
2007-09-23 11:05:44 +00:00
Hervé Poussineau
8ad6033250 Continue rbuild cleanup (AutomaticDependency and SourceFile classes)
svn path=/trunk/; revision=29150
2007-09-23 08:04:24 +00:00
Eric Kohl
c0c201c35d Add missing LPFILTERKEYS and LPTOGGLEKEYS types.
svn path=/trunk/; revision=29149
2007-09-22 20:20:28 +00:00
Colin Finck
8e4f19f80b Slovak translations for the cylfrac, logon, scrnsave and starfield screensavers by Mario Kacmar (kario AT szm DOT sk)
svn path=/trunk/; revision=29148
2007-09-22 19:14:54 +00:00
Thomas Bluemel
f98ba48cef Fix loading pages provided by shell extensions
svn path=/trunk/; revision=29147
2007-09-22 18:59:23 +00:00
Thomas Bluemel
6897e5ee5a - Don't change the current power scheme when displaying the dialog
- Load additional pages provided by shell extensions

svn path=/trunk/; revision=29146
2007-09-22 18:48:02 +00:00
Colin Finck
2018d3408d Slovak translation for sysdm by Mario Kacmar (kario AT szm DOT sk)
svn path=/trunk/; revision=29145
2007-09-22 18:23:06 +00:00
Colin Finck
f143cc5f45 Call ShellExecute with NULL instead of "open", so the default action is used, when a file name does not support "open". (see http://msdn2.microsoft.com/en-us/library/ms647732.aspx)
According to someone in the bug report, this is the behaviour used under Windows XP.
See issue #1461 for more details.

svn path=/trunk/; revision=29143
2007-09-22 16:52:53 +00:00
Colin Finck
7c48ada188 - Change Firefox 1.5 link to the file at svn.reactos.org (FF 1.5 isn't available anymore from Mozilla over HTTP, and our URLDownloadToFile seems to have problems with FTP links)
- Update Firefox 2.0 to 2.0.0.7
- Use a more reliable link for Thunderbird 2.0.0.6

svn path=/trunk/; revision=29142
2007-09-22 16:28:21 +00:00
Daniel Reimer
1c1f0f249b Add German RC Files to the Screensavers.
svn path=/trunk/; revision=29139
2007-09-22 13:00:46 +00:00
Eric Kohl
0916909cbf Don't use hardcoded strings in the configuration message box. Use string resources instead.
svn path=/trunk/; revision=29138
2007-09-22 11:38:32 +00:00
Eric Kohl
847464262c Don't use hardcoded strings in the configuration message box. Use string resources instead.
svn path=/trunk/; revision=29137
2007-09-22 11:26:03 +00:00
Eric Kohl
761e858982 Don't use hardcoded strings in the configuration message box. Use string resources instead.
svn path=/trunk/; revision=29136
2007-09-22 11:20:25 +00:00
Eric Kohl
1c85a28f50 Don't use hardcoded strings in the configuration message box. Use string resources instead.
svn path=/trunk/; revision=29135
2007-09-22 09:09:57 +00:00
Aleksey Bragin
1e19b02082 - Print out hardware information to the debug log in case of a crash (yes, even people like me do mistakes...)
svn path=/trunk/; revision=29133
2007-09-21 20:15:46 +00:00
Aleksey Bragin
e82855f464 - Print out hardware information to the debug log in case of a crash.
svn path=/trunk/; revision=29132
2007-09-21 20:14:34 +00:00
Colin Finck
074c6e9d66 Spanish translations by Javier Remacha (remialdo AT gmail DOT com)
See issue #2669 for more details.

svn path=/trunk/; revision=29131
2007-09-21 18:01:19 +00:00
Hervé Poussineau
1c9e99b2cc Send the right inf file handle to SetupCloseInfFile().
svn path=/trunk/; revision=29130
2007-09-21 13:00:16 +00:00
Hervé Poussineau
b733bd322e Fix typo
svn path=/trunk/; revision=29129
2007-09-21 12:45:39 +00:00
Hervé Poussineau
2136c852eb Add Lithuanian keyboard
Patch by Vytis Girdþijauskas, cman at cman dot us
See issue #2613 for more details.

svn path=/trunk/; revision=29128
2007-09-21 07:22:32 +00:00
James Tabor
b5b2b493c4 - Fixed CMP_UnregisterNotification. Add IN, sorry.
svn path=/trunk/; revision=29127
2007-09-21 00:07:26 +00:00
James Tabor
e5f58a8b91 - Add CMP_RegisterNotification and CMP_UnregisterNotification. Both called from User32.
svn path=/trunk/; revision=29126
2007-09-21 00:05:17 +00:00
Colin Finck
eb2bd45e2a Change the file names of the Catalan resource files from "ca-CA" to "ca-ES". Thanks to Marc Piulachs for noticing this.
Also fixed the sublang in the catalan "msconfig" resource file (thx to EmuandCo :-P)

See issue #2662 for more details.

svn path=/trunk/; revision=29125
2007-09-20 20:57:28 +00:00
Colin Finck
c75d21f350 Updated Ukrainian translations by Artem Reznikov (temarez AT yandex DOT ru)
See issue #2661 for more details.

svn path=/trunk/; revision=29124
2007-09-20 18:40:55 +00:00
Timo Kreuzer
07f78b29da - make gdi object's type field more windows compatible, using only the basetype in the upper 16 bits
- On windows deleted objects have a KernelData value != NULL, so don't check for that when validating a handle, instead check if the type field in the upper 16 bits is 0

svn path=/trunk/; revision=29123
2007-09-20 16:13:55 +00:00
Hervé Poussineau
3a469030ac Do not forget to release the rundown protection.
See issue #2348 for more details.

svn path=/trunk/; revision=29122
2007-09-20 14:54:43 +00:00
James Tabor
08bf20fb83 User32:
- Implement ValidateHandle.
- Copied handle_to_entry and header information from win32k. Yes I know, duplication etc. Just for now.
- Add tested validation object types and as per revision 29105. Those object types now match.
- In dllmain.c, the gHandleTable pointer is set from Win32k GetW32ProcessInfo.
- Tested it, failed. The pointer does match with win32k gHandleTable.

svn path=/trunk/; revision=29121
2007-09-20 14:26:43 +00:00
Hervé Poussineau
8a98cb7fdd [FORMATTING] Tabs vs space, { } placement, ...
No code change

svn path=/trunk/; revision=29120
2007-09-20 13:53:38 +00:00
Ged Murphy
b69d44ab8c forgot to remove the lib I linked for testing
svn path=/trunk/; revision=29119
2007-09-20 13:32:58 +00:00
Ged Murphy
ce62afe2b0 add the correct key name to match the service name
svn path=/trunk/; revision=29118
2007-09-20 13:27:44 +00:00
Ged Murphy
b862010a64 - use correct name when registering.
- use unicode apis exclusively when required.
- fix rbuild file

svn path=/trunk/; revision=29117
2007-09-20 13:26:19 +00:00
Hervé Poussineau
5baee1e5ab Read Characteristics and BusType keys from .inf file, and write them in registry.
This will probably help for installation of 3rd party drivers

svn path=/trunk/; revision=29116
2007-09-20 13:26:18 +00:00
Aleksey Bragin
57a60d9b47 Timo Kreuzer:
- The debug object created by NtCreateDebugObject() is restricted to DEBUG_OBJECT_WAIT_STATE_CHANGE, change to DEBUG_OBJECT_ALL_ACCESS.
See issue #2310 for more details.

svn path=/trunk/; revision=29115
2007-09-20 12:46:58 +00:00
Aleksey Bragin
81ef13c4a1 - Implement a fast->slow leaf conversion (this assert was hit by OO.o setup)
svn path=/trunk/; revision=29114
2007-09-20 10:36:36 +00:00
Hervé Poussineau
87638956af Add missing svn:eol-style=native properties
svn path=/trunk/; revision=29113
2007-09-20 09:47:58 +00:00
Eric Kohl
dffd76151a Move the settings read code into a single function which is called before creating the property sheet.
svn path=/trunk/; revision=29112
2007-09-19 21:31:49 +00:00
Andrew Greenwood
099d7567cb Add prototype for UnregisterDeviceNotifications() to audiosrv.h (bug 2664)
svn path=/trunk/; revision=29111
2007-09-19 20:11:28 +00:00
Hervé Poussineau
b14a0090bc Fix compilation
Remove broken property

svn path=/trunk/; revision=29110
2007-09-19 19:29:40 +00:00
Andrew Greenwood
a3468f83ec Fix EOL style (I think!)
svn path=/trunk/; revision=29109
2007-09-19 19:25:43 +00:00
Andrew Greenwood
4ee8a37af5 Set service to manual start, and implemented a quick debug-logging
solution. ReactOS does not currently have RegisterDeviceNotification
implemented so if this function fails the audio service will still run
but won't receive plug and play event notifications (this is a temporary 
hack.)
Service now starts but won't find any devices (we don't have any yet!)


svn path=/trunk/; revision=29108
2007-09-19 16:54:25 +00:00
Hervé Poussineau
31163f4d3b Add missing svn:eol-style=native property
svn path=/trunk/; revision=29107
2007-09-19 15:18:05 +00:00
Andrew Greenwood
83932a8e2c Correct enumeration of Plug and Play audio devices on Windows using
KSCATEGORY_AUDIO. Also detects existing audio devices in addition to 
dealing with device arrivals. Slight code tidy-up. Also added additional 
GUIDs to ks.h and ksmedia.h


svn path=/trunk/; revision=29106
2007-09-19 14:42:54 +00:00
James Tabor
de7c2c63e3 Win32k:
- Add thread information pointer to the user handle entry. This will be useful for checking handles, if the handle is not part of the current thread.
- Add a test to make sure the current process passes the gHandleTable pointer to user32.
- These changes are important for allowing User32 to read-only the handle object information. Not 100% compatible, we need NtUserProcessConnect and CsrClientConnectToServer. Need a full understanding how they both work with User32.
Ref:
- https://www.microsoft.com/msj/0397/hood/hood0397.aspx
- http://www.winterdom.com/dev/ui/wnd.html

svn path=/trunk/; revision=29105
2007-09-19 13:24:58 +00:00
Hervé Poussineau
a7a5e5a486 Fix weird bug in Project::ResolveProperties(), which was modifying the string given in argument
svn path=/trunk/; revision=29104
2007-09-19 12:06:39 +00:00
Hervé Poussineau
a756421600 Remove rbuild stdlib="host" attribute. That was a workaround to build system deficiency.
Now, base the workaround on presence of C++ files in module

svn path=/trunk/; revision=29103
2007-09-19 11:11:57 +00:00
Hervé Poussineau
afcd5893d5 Fix an old rbuild bug: .gch file now depends of intermediate module directory, and can create it if needed
svn path=/trunk/; revision=29102
2007-09-19 09:34:05 +00:00
Andrew Greenwood
18b8710a37 ReactOS Audio Service. Has not been tested within ReactOS but on Windows
(XP) it now detects when new devices have been attached. This 
information is shared via a mapped file. I have also written a utility 
to read the contents of the mapped file (this is not included - further 
work is required).

Added a few missing #defines to dbt.h and also reformatted some of the 
WinMM code so it was clearer to read.


svn path=/trunk/; revision=29100
2007-09-19 04:13:24 +00:00
Daniel Reimer
d600738b86 Set svn:eol-style = native. (Final, Now you can kick me :-P)
svn path=/trunk/; revision=29099
2007-09-18 21:51:29 +00:00
Daniel Reimer
472da8c8b0 Set svn:eol-style = native
svn path=/trunk/; revision=29098
2007-09-18 21:39:18 +00:00
Daniel Reimer
3ab931ca14 Set svn:eol-style = native
svn path=/trunk/; revision=29097
2007-09-18 21:32:39 +00:00
Daniel Reimer
5daf391b62 Catalan Translations by Marc Tormo i Bochaca (mtbochaca@ya.com) (Bug 2647, 2651, 2652, 2653, 2654, 2655, 2656)
Fixed SUBLANG to DEFAULT and fixed missing "".

svn path=/trunk/; revision=29096
2007-09-18 21:08:09 +00:00
Christoph von Wittich
38cb0b7e17 don't use WNOHANG
svn path=/trunk/; revision=29095
2007-09-18 18:59:53 +00:00
Christoph von Wittich
ee5642eccc fix qemu vnc param
svn path=/trunk/; revision=29094
2007-09-18 17:53:53 +00:00
Ged Murphy
a98103c630 - when converting from a DDB to a DIB, the palette should be the same in the resulting DIB as the original DDB. This fixes the colour issue we had in the taskbar icons. (there's still a bit position problem as highlighted in the 1-4 bitmaps)
- Reformat the NtGdiGetDIBitsInternal code to a more readable state.

*note, this function needs a considerable work.

svn path=/trunk/; revision=29093
2007-09-18 15:24:34 +00:00
James Tabor
90c3978be9 - Win32k: Removed NtUserCreateMenu replacing it with NtUserCallNoParam.
svn path=/trunk/; revision=29092
2007-09-18 13:06:27 +00:00
Christoph von Wittich
22571f9e0f fix a bug in the linux version of OsSupport::createProcess
svn path=/trunk/; revision=29091
2007-09-18 08:15:47 +00:00
James Tabor
4ab750a26f - Implement NtUserValidateHandleSecure and most support functions moved from static and added to their respected headers.
svn path=/trunk/; revision=29090
2007-09-18 05:07:49 +00:00
Andrew Greenwood
8d7c594692 Bare-bones foundations of the ReactOS Audio Service. At present it's
nothing more than a "mutex service". Some info on the planned 
implementation is in the included audiosrv.txt file.


svn path=/trunk/; revision=29089
2007-09-18 02:41:46 +00:00
Eric Kohl
c04f5503a6 Merge all settings in a single struct. This is required to implement the administrative options.
svn path=/trunk/; revision=29088
2007-09-17 22:29:35 +00:00
James Tabor
fec8f2d929 Init stock object buffer only once.
svn path=/trunk/; revision=29087
2007-09-17 22:08:14 +00:00
James Tabor
75b11c60f3 Fixed build.
svn path=/trunk/; revision=29086
2007-09-17 21:46:30 +00:00
James Tabor
5bfa6170c1 Fixed Client Info structure. Moved it to the right file so user apps can access it.
svn path=/trunk/; revision=29085
2007-09-17 21:02:19 +00:00
Aleksey Bragin
c466246f9e - Change RtlIsDosDeviceName_U() implementation to a better Wine implementation
- Winesync RtlIsNameLegalDOS8Dot3()
- "ntdll_winetest.exe path" reduced to 3 failures (which happen on XP too), so considering "path" done 100% now.

svn path=/trunk/; revision=29084
2007-09-17 19:51:32 +00:00
Hervé Poussineau
4ee3207955 Add some missing definitions to PSDK
Patch by Samuel Serapion, samdwise51 at gmail dot com

svn path=/trunk/; revision=29083
2007-09-17 13:52:44 +00:00
Hervé Poussineau
762f833b44 Add missing svn:eol-style native properties
svn path=/trunk/; revision=29082
2007-09-17 13:43:34 +00:00
Hervé Poussineau
661efc7398 Get rid of "Video Save SVGA" group. Clean up group order entries
svn path=/trunk/; revision=29079
2007-09-17 09:42:01 +00:00
Hervé Poussineau
ec81f99348 No need to create a service group only for VBE driver. By using tags, VBE driver can be installed as the first one in the "Video Save" group
svn path=/trunk/; revision=29078
2007-09-17 09:35:31 +00:00
Aleksey Bragin
ceb71f7fcf Cameron Gutman <aicommander@gmail.com>
- Use /SOS to disable bootlogo in the LiveCD too.

svn path=/trunk/; revision=29075
2007-09-17 08:48:14 +00:00
Art Yerkes
0f163e7d12 Add missing include path.
svn path=/trunk/; revision=29074
2007-09-17 06:12:40 +00:00
Art Yerkes
fe9867a61c Microsoft and the open group both specify towupper and towlower as taking int
and returning int of some flavor.  Make this true of ours.

http://msdn2.microsoft.com/en-us/library/45119yx3(VS.80).aspx
http://opengroup.org/onlinepubs/007908799/xsh/towupper.html

svn path=/trunk/; revision=29073
2007-09-17 05:57:54 +00:00
Art Yerkes
028b640f0b Fixen for PPC.
Exclude relocation.  We'll be situated properly by the ELF layer anyway, and
it's x86 specific.
Tweak definitions in _mingw.h

svn path=/trunk/; revision=29072
2007-09-17 05:33:08 +00:00
Art Yerkes
e366497b95 Fix build for new rosbe-ppc.
svn path=/trunk/; revision=29071
2007-09-17 05:32:04 +00:00
Aleksey Bragin
ab5811a512 - Move W32CLTINFO_TEB structure out of NDK, since it's module-internal structure.
- Add a define for easier accessing this field.

svn path=/trunk/; revision=29069
2007-09-16 17:37:41 +00:00
James Tabor
0a844e24f0 Fix def and size for NtUserValidateHandleSecure.
svn path=/trunk/; revision=29068
2007-09-16 15:32:58 +00:00
Eric Kohl
a3862a653e Indentation clean-up. No code changes.
svn path=/trunk/; revision=29067
2007-09-16 13:38:26 +00:00
Eric Kohl
46bd898f3d Enable the filter keys settings when the test area EDITTEXT control gets the focus and disable the settings when the focus leaves the control.
svn path=/trunk/; revision=29066
2007-09-16 13:25:34 +00:00
Aleksey Bragin
f87c698cd3 Gregor Brunmar <gregor.brunmar@home.se>:
- Don't include files that aren't in the source directory to the project generation.
- Fix tab indentation in generated files.

svn path=/trunk/; revision=29065
2007-09-16 12:54:52 +00:00
Hervé Poussineau
d18fdef61f Add back support for files not in the root of the module directory
Patch by Gregor Brunmar, gregor (dot) brunmar (at) home (dot) se

svn path=/trunk/; revision=29064
2007-09-16 09:12:15 +00:00
The Wine Synchronizer
aa5e4e73cb Autosyncing with Wine HEAD
svn path=/trunk/; revision=29063
2007-09-15 17:06:51 +00:00
Colin Finck
9b6a264e7d Rename "Properties::" to "Properties" in the context menu (patch by Mario Kacmar, kario AT szm DOT sk)
svn path=/trunk/; revision=29062
2007-09-15 16:10:10 +00:00
Colin Finck
32a25111cb Add a slovak translation for "desk.cpl" and fix a small mistake in the translation for "timedate.cpl"
Patch by Mario Kacmar (kario AT szm DOT sk)

svn path=/trunk/; revision=29061
2007-09-15 15:45:24 +00:00
Colin Finck
47dea31217 [FORMATTING]
- Use TABs instead of spaces in some more .rbuild files
- No code changes

svn path=/trunk/; revision=29060
2007-09-15 15:20:31 +00:00
Eric Kohl
f51ada884d Use the unicode="yes" attribute in the module element instead of defining UNICODE and _UNICODE.
svn path=/trunk/; revision=29059
2007-09-15 15:12:26 +00:00
Johannes Anderwald
83c8f50776 - move VolumeDlgProc function to own file volume.c
- read default waveout device  (thanks to Silverbade)
- improve volume dialog proc
- update all languages resources which current code changes

svn path=/trunk/; revision=29058
2007-09-15 14:54:01 +00:00
Eric Kohl
3df1f13cd1 Use the currently selected locale id instead of LOCALE_USER_DEFAULT to display and modify currency settings.
svn path=/trunk/; revision=29057
2007-09-15 14:48:40 +00:00
Colin Finck
9960c6fc98 More XML compliance fixes for the .rbuild files by Marc Piulachs (marc DOT piulachs AT codexchange DOT net)
The added '<include base="ntoskrnl" root="intermediate">include</include>' line in "ntoskrnl.rbuild" was left out, as this include path is already added through the "ntoskrnl.h" precompiled header. (thanks to Hervé for figuring this out)
I applied patches 1904 and 1905 of the Bugzilla bug entry.

See issue #2649 for more details.

svn path=/trunk/; revision=29056
2007-09-15 14:37:02 +00:00
The Wine Synchronizer
c287f519bf Autosyncing with Wine HEAD
svn path=/trunk/; revision=29054
2007-09-15 10:52:08 +00:00
Hervé Poussineau
fd7b9ad55e Fix typo
svn path=/trunk/; revision=29053
2007-09-15 09:03:01 +00:00
Hervé Poussineau
f5101f1e6a Continue rbuild cleanup (Directory class)
svn path=/trunk/; revision=29052
2007-09-15 08:47:56 +00:00
Timo Kreuzer
57dd42dde7 revert 29027, because it breaks context menus.
svn path=/trunk/; revision=29051
2007-09-14 22:46:38 +00:00
Johannes Anderwald
b3f967520d - reenable module definition
svn path=/trunk/; revision=29050
2007-09-14 21:44:11 +00:00
Johannes Anderwald
456e4e5a19 - remove a non working hack
svn path=/trunk/; revision=29049
2007-09-14 21:06:38 +00:00
Johannes Anderwald
4e6f9d01d7 - include intermediate path for msvc projects since buildno.h and friends are now generated there
svn path=/trunk/; revision=29048
2007-09-14 21:05:46 +00:00
Colin Finck
e9c97ddea4 This is hopefully the last fix needed to build LiveCD on Unix hosts again
svn path=/trunk/; revision=29047
2007-09-14 19:34:24 +00:00
Colin Finck
d23dadadee Small change in the slovak translation of Solitaire (patch by Mario Kacmar, kario AT szm DOT sk)
svn path=/trunk/; revision=29046
2007-09-14 19:26:20 +00:00
Colin Finck
561a35b16d And here comes the next fix, this time for fixing the LiveCD build
svn path=/trunk/; revision=29045
2007-09-14 19:23:36 +00:00
Colin Finck
2b47cce3f0 Forgot to change these ones as well.
But somehow it compiled fine under Windows, even without these changes.

svn path=/trunk/; revision=29044
2007-09-14 19:13:03 +00:00
Colin Finck
d4a18c707c Forgot to change these ones
svn path=/trunk/; revision=29043
2007-09-14 19:02:21 +00:00
Colin Finck
0429c9f223 - Create a new "include/host" directory for host-only includes.
- Copy the "pshpack*.h", "poppack.h" and "typedefs_host.h" (renamed to "typedefs.h") files to this directory
- Modify the Makefiles of cmlib_host, inflib_host, mkhive, unicode, wmc and wrc to remove the "include/psdk" dependency
- Remove the inclusion of "ntstatus.h" in cmlib_host and mkhive

svn path=/trunk/; revision=29042
2007-09-14 18:55:43 +00:00
Colin Finck
256cab14c1 Revert the changes in r29036 to the file "ReactOS-i386.rbuild". They broke build and look like test code for me.
svn path=/trunk/; revision=29041
2007-09-14 17:34:37 +00:00
Hervé Poussineau
b2327d1918 Update project dtd file based on usage (doesn't mean it is good and can't be changed anymore)
svn path=/trunk/; revision=29040
2007-09-14 17:13:46 +00:00
Hervé Poussineau
47bdba1c9b Update README.WINE after revision 29034
svn path=/trunk/; revision=29039
2007-09-14 17:12:13 +00:00
Hervé Poussineau
58d6c588b0 Delete useless files
svn path=/trunk/; revision=29038
2007-09-14 17:10:48 +00:00
Hervé Poussineau
4e99cc9eea Add missing svn:eol-style=native property
svn path=/trunk/; revision=29037
2007-09-14 17:09:45 +00:00
Hervé Poussineau
4b912ebbbc Clean up .rbuild files and make them xml compliant
Inspired by bug 2627

svn path=/trunk/; revision=29036
2007-09-14 17:07:53 +00:00
James Tabor
6aa84d10f7 - Setting up for the User32 part of the win32k rewrite.
- Pass window handle and pointer to the current teb callback. This will allow easy and fast read access for user space programs.
- Next will be ValidateHwnd and the rest.
- https://www.microsoft.com/msj/0397/hood/hood0397.aspx
- http://www.winterdom.com/dev/ui/wnd.html
- http://www.mvps.org/user32/modal.html
- http://www.tech-archive.net/Archive/Development/microsoft.public.win32.programmer.kernel/2006-05/msg00522.html

svn path=/trunk/; revision=29035
2007-09-14 15:34:41 +00:00
The Wine Synchronizer
b0de8603f3 Autosyncing with Wine HEAD
svn path=/trunk/; revision=29034
2007-09-14 08:03:04 +00:00
Hervé Poussineau
6585935cc4 Add imm.h header (enough to let Wine imm.dll compile)
svn path=/trunk/; revision=29033
2007-09-14 08:01:57 +00:00
Hervé Poussineau
96cdd6485c Autosyncing with Wine HEAD
svn path=/trunk/; revision=29032
2007-09-14 07:22:03 +00:00
James Tabor
05315cb742 It does work. There is another bug in the tree!
svn path=/trunk/; revision=29031
2007-09-14 06:37:08 +00:00
James Tabor
a9a5011479 Need to update or sync with wine.
svn path=/trunk/; revision=29030
2007-09-14 06:30:26 +00:00
James Tabor
eb04671664 Vitaliy Margolen: Dont exit when double-clicking with right button held.
svn path=/trunk/; revision=29029
2007-09-14 06:14:50 +00:00
James Tabor
d5de37fdd3 Fix typo, add extra entry to the structure.
svn path=/trunk/; revision=29028
2007-09-14 05:05:35 +00:00
Timo Kreuzer
fa29846725 make upper 16 bit of gdi table entries type field more windows compatible
svn path=/trunk/; revision=29027
2007-09-14 02:53:49 +00:00
James Tabor
1c35130224 Add window client information structure to TEB.
svn path=/trunk/; revision=29026
2007-09-13 16:57:53 +00:00
Daniel Reimer
c182bbd8d8 Reformat the RC Files of the cpls to use rsrc.rc for including additional languages.
*Nameofcpl*.rc should be LANG_NEUTRAL SUBLANG_NEUTRAL.
Add manifest.xml to all CPLs to support skinning from now on.

svn path=/trunk/; revision=29025
2007-09-13 11:40:16 +00:00
Johannes Anderwald
612cdea22b - implement reading/displaying audio schemes
svn path=/trunk/; revision=29024
2007-09-13 03:11:15 +00:00
Johannes Anderwald
e4d4dd3eaa - implement loading of sound items
svn path=/trunk/; revision=29023
2007-09-12 20:22:41 +00:00
Ged Murphy
329da883d0 Set the main icon resource number to 3004. This should ensure SetupDiLoadClassIcon loads it correctly.
svn path=/trunk/; revision=29022
2007-09-12 19:00:36 +00:00
Johannes Anderwald
088f9d7355 - start implementing sound scheme dialog
svn path=/trunk/; revision=29021
2007-09-12 17:51:51 +00:00
Daniel Reimer
fde1731b49 Translate the Keyboard Settings too.
svn path=/trunk/; revision=29019
2007-09-12 15:17:15 +00:00
Ged Murphy
9fdc73bf65 - rewrite the Control code
- smooth the progress bar movement
- clean up various other bits

svn path=/trunk/; revision=29018
2007-09-12 13:50:51 +00:00
Ged Murphy
8732a04d4a Use the handle for ControlService too. This allows me to start and stop my test service (but tcpsvcs hangs on stop)
svn path=/trunk/; revision=29017
2007-09-12 09:27:33 +00:00
Ged Murphy
3d95120a59 silence a couple of debug messages I missed
svn path=/trunk/; revision=29016
2007-09-12 09:08:11 +00:00
Ged Murphy
4092f435c3 add a client handle to the private interface
svn path=/trunk/; revision=29015
2007-09-12 08:47:06 +00:00
Ged Murphy
af45f6b22d - Share a client service handle with the SCM and use it to identify services.
- This fixes the problem where a service name created via CreateService (reg key name) can be different than the one supplied in the call to StartServiceCtrlDispatcher. Windows can still start services in this situation, previously we would fail to find the right service.

svn path=/trunk/; revision=29014
2007-09-12 08:46:00 +00:00
Ged Murphy
b29eee1b73 Receive a client service handle from advapi32 so we can get a permenant link between the SCM and the service
svn path=/trunk/; revision=29013
2007-09-12 08:41:00 +00:00
Hervé Poussineau
873c9d539e Cleanup GetDirectory(), GetFilename() and GetExtension() usage
svn path=/trunk/; revision=29012
2007-09-12 07:04:32 +00:00
Andrew Greenwood
b453ee14e3 Modified WINE's winmm.dll to support loading of user-installable drivers
from the registry 'Drivers' and 'Drivers32' keys, as Windows does. Also 
silenced the beep-MIDI driver (which is supported by winmm! - but 
doesn't seem to do much, at least under vmware.)

Added some Drivers32 entries to be loaded by default, to the hivesft.inf 
file.


svn path=/trunk/; revision=29011
2007-09-12 00:29:07 +00:00
Ged Murphy
48345d7b1d make the apps icon a bit neater
svn path=/trunk/; revision=29010
2007-09-11 21:56:25 +00:00
Ged Murphy
2f0dcbcdef delete comments
svn path=/trunk/; revision=29006
2007-09-11 13:06:20 +00:00
Ged Murphy
b7d1b4a8f8 - Send the SERVICE_STATUS_HANDLE to the SCM so SetServiceStatus has something to work with
- Add control code to stop, pause and resume services and forward it onto the service control handler

svn path=/trunk/; revision=29005
2007-09-11 12:59:38 +00:00
Ged Murphy
c047522694 - store the SERVICE_STATUS_HANDLE and use it for setting service status
- add functionality for controlling services

svn path=/trunk/; revision=29004
2007-09-11 12:56:22 +00:00
Aleksey Bragin
108d48388e - When media is changed, set VolumeDevice's DO_VERIFY_VOLUME flag so it actually gets verified.
- IoVerifyVolume() actually gives two successful statuses - STATUS_SUCCESS and STATUS_WRONG_VOLUME. Respect that when processing an device ioctl.
- "Inability to change CD after boot" issue is fixed.

svn path=/trunk/; revision=29002
2007-09-11 10:29:03 +00:00
Hervé Poussineau
cf9e10327c Rename strFile/strDirectory to a more meaningful name, and move them to appropriate place
svn path=/trunk/; revision=29000
2007-09-11 07:14:32 +00:00
Ged Murphy
5425875734 fix the service name to match the registry key
svn path=/trunk/; revision=28999
2007-09-10 22:28:34 +00:00
Eric Kohl
f9e9cc03c6 - Enumerate short and long date formats.
- Use the currently selected locale id instead of LOCALE_USER_DEFAULT.

svn path=/trunk/; revision=28998
2007-09-10 22:16:01 +00:00
Eric Kohl
9fe96d7b9b Add missing definitions of EnumDateFormats.
svn path=/trunk/; revision=28997
2007-09-10 22:13:52 +00:00
Eric Kohl
edc540afb1 - Enumerate time formats.
- The user must able to change the locale id. Move it into a global structure.
- User the selected locale id instead of LOCALE_USER_DEFAULT.

svn path=/trunk/; revision=28996
2007-09-10 20:46:27 +00:00
Eric Kohl
4c8cd18f0e - Change the currently selected locale id instead of LOCALE_USER_DEFAULT.
- Let the user choose between 0 and 9 fractional digits.
- Fix a typo: SendMesssgeW --> SendMessage.

svn path=/trunk/; revision=28995
2007-09-10 20:40:27 +00:00
Aleksey Bragin
6f31706927 - Separate creating partitions objects into a different function (CreatePartitionsObject()).
- Slightly improve the logic of accessing the partitions list.

svn path=/trunk/; revision=28993
2007-09-10 16:25:48 +00:00
Eric Kohl
743a10f834 Add missing quotation mark and enable the german translation again.
svn path=/trunk/; revision=28992
2007-09-10 13:31:48 +00:00
Hervé Poussineau
0ee69eac89 Fix File::GetFullPath()
svn path=/trunk/; revision=28991
2007-09-10 13:20:32 +00:00
Hervé Poussineau
d1a39218b2 Continue rbuild cleanup (File class)
svn path=/trunk/; revision=28990
2007-09-10 13:13:16 +00:00
Hervé Poussineau
f19c8990fb Disable german resource file as it breaks build
svn path=/trunk/; revision=28989
2007-09-10 13:00:42 +00:00
Hervé Poussineau
5f5a00646d Fix rbuild files
svn path=/trunk/; revision=28988
2007-09-10 12:21:50 +00:00
Daniel Reimer
c04b494d38 Bug 2643: Ukrainian translation update (temarez@yandex.ru)
Fixes in English RC file of Input and a German Translation by myself.

svn path=/trunk/; revision=28987
2007-09-10 10:59:21 +00:00
Hervé Poussineau
621618fbbb Continue rbuild cleanup (Include class)
svn path=/trunk/; revision=28986
2007-09-10 06:52:07 +00:00
James Tabor
f53a2fd07d We are using it now,,, so clean up before use.
svn path=/trunk/; revision=28985
2007-09-10 05:37:57 +00:00
Aleksey Bragin
f22e04dc25 - Use IoBuildAsynchronousFsdRequest() instead of IoBuildDeviceIoControlRequest()
- Use completion routine for completing that type of requests

svn path=/trunk/; revision=28984
2007-09-09 18:32:30 +00:00
Aleksey Bragin
19dc9c4a64 - Make sure CLASS2 driver returns STATUS_UNSUCCESSFUL if receiving a RESET_DEVICE ioctl.
svn path=/trunk/; revision=28983
2007-09-09 17:06:14 +00:00
Aleksey Bragin
109fe2a8fd - IoMapTransfer(NULL, ..) is an old-fashioned way, for DMA master. Changing this back to NULL, since ReactOS's implementation seem to take this into account.
svn path=/trunk/; revision=28982
2007-09-09 16:19:24 +00:00
Aleksey Bragin
6481e255c2 - Revert 27476: another attempt (previously, dgorbachev tried to "fix" this code) to double-release spinlocks. There are even comments in some uncertain cases about this.
For future generations: Have a look at SpiGetNextLunRequest(), it's full of KeReleaseSpinLock()s.

svn path=/trunk/; revision=28980
2007-09-09 14:45:38 +00:00
Colin Finck
45acb6f960 Revert r28972, the pshpack*.h and poppack.h headers are in "include/psdk".
So we're still sharing some small headers with host and target :-(

svn path=/trunk/; revision=28979
2007-09-09 13:12:28 +00:00
Aleksey Bragin
4521f6387a - Revert 28967, and fix the real issue where an overwrite occured (in KiMoveApcState()).
svn path=/trunk/; revision=28978
2007-09-09 13:00:14 +00:00
Eric Kohl
621fbe2cc1 - Remove the WS_SORT style from all comboboxes but the language and location lists in order to display list items in the desired order.
svn path=/trunk/; revision=28977
2007-09-09 12:44:33 +00:00
Aleksey Bragin
0857585ce4 - HACK: Create a missing VRefresh key when installing VMWare's video driver. This solution was proposed long time ago by Herve Poussineau and very recently by Gregor Brunmar. Now VMWare's video driver finally can work as expected, resolution setting works also (tested up to 1400x1050).
- TODO: VRefresh key is absent in the installation .inf, and should be somehow either ignored, or created by something else (not the installer).

svn path=/trunk/; revision=28976
2007-09-09 12:42:45 +00:00
Aleksey Bragin
19b92eb8ab - Improve videoprt's debug messages when accessing registry parameters.
svn path=/trunk/; revision=28975
2007-09-09 12:39:11 +00:00
Art Yerkes
4c33a58449 Mask values that control inheritability of the handle, and don't affect access.
svn path=/trunk/; revision=28973
2007-09-09 12:21:22 +00:00
Colin Finck
1f2057ff37 Remove the references to the "include/psdk" directory from "unicode", "wmc" and "wrc". Due to recent changes, they are not needed anymore.
svn path=/trunk/; revision=28972
2007-09-09 12:12:19 +00:00
Art Yerkes
10b515935a Don't dereference the object unless we actually referenced it. Cygwin apps
no longer bugcheck reactos when abnormally terminating.

svn path=/trunk/; revision=28971
2007-09-09 11:09:56 +00:00
Aleksey Bragin
b4bf4d4ce9 Changes partly based on a patch and ideas by Gregor Brunmar <gregor.brunmar@home.se>:
- Fix size argument in calls to RegQueryValueEx() (if some fails, it may not be equal to sizeof(DWORD)).
- If it's impossible to read settings from vmware's registry key, obtain current screen settings and pass them.

svn path=/trunk/; revision=28970
2007-09-09 11:04:22 +00:00
Aleksey Bragin
87351e3290 - Fix typos in debug messages.
svn path=/trunk/; revision=28969
2007-09-09 10:36:52 +00:00
Aleksey Bragin
2769ad4a93 - Fix build by adding Wine-specific language definitions to WRC
- Revert 28965 and 28966 as unnecessary

svn path=/trunk/; revision=28968
2007-09-09 10:11:04 +00:00
Art Yerkes
1fa5be2cf7 Correct size of KAPC_STATE to fit in the [23] window of PKTHREAD. This is
neccessary, otherwise the APC booleans interfere with FreezeCount.

svn path=/trunk/; revision=28967
2007-09-09 09:49:35 +00:00
Magnus Olsen
8b5e1d5a72 comment out ESPERANTO and WALON languishes file, for it is not supported in windows
svn path=/trunk/; revision=28966
2007-09-09 09:44:43 +00:00
Magnus Olsen
b90953ec15 comment out ESPERANTO languishes file, for it is not supported in windows
svn path=/trunk/; revision=28965
2007-09-09 09:38:55 +00:00
Hervé Poussineau
5d0fb46096 Continue rbuild cleanup (Module class)
svn path=/trunk/; revision=28964
2007-09-09 07:53:40 +00:00
Art Yerkes
8be848bceb Fix inverted logic in suspending process. Now this is symmetric with the
corresponding thaw.

svn path=/trunk/; revision=28963
2007-09-09 07:39:45 +00:00
Art Yerkes
4c4c882824 Add 2-byte packing for the DWORD size that follows the 'BM' signature.
svn path=/trunk/; revision=28962
2007-09-09 05:04:32 +00:00
Colin Finck
d9bcc676f8 Temporary "fix" to get explorer to build again.
Someone please look why wrc fails for this particular file (logov.bmp). I'm out of ideas.

svn path=/trunk/; revision=28961
2007-09-08 22:32:24 +00:00
Eric Kohl
1f47962cc3 - Add sorting page and show it if a language that supports multiple sorting methods has been selected.
svn path=/trunk/; revision=28960
2007-09-08 22:27:41 +00:00
Colin Finck
3c9b25c337 - Revert my previous attempts to fix the "wmc" and "wrc" builds
- Use "typedefs_host.h" in both components now
- wrc needs *MANY* definitions from the Windows headers, therefore I created a new file "wrcrostypes.h", which contains all these definitions.

svn path=/trunk/; revision=28959
2007-09-08 21:40:36 +00:00
Colin Finck
47eb99dcf6 - Solve our wchar_t host problems the easy way by defining WCHAR to "unsigned short" (thx KJK for the hint)
- Revert my changes to the "unicode" module in r28411 and r28423
- Include "typedefs_host.h" instead of the Windows headers in "wine/unicode.h", this component doesn't depend on target headers anymore.
  To get it to work completely without Windows headers, I also had to copy some definitions from <winnls.h> to the "wine/unicode.h" file.

svn path=/trunk/; revision=28957
2007-09-08 19:50:20 +00:00
Hervé Poussineau
252118319f Let ImportLibrary class use the FileLocation concept.
I disabled def files in codeblocks and msvc backends, someone will have to update them

svn path=/trunk/; revision=28956
2007-09-08 19:27:07 +00:00
Colin Finck
f77c414397 - Set g_nMatrixSpeed to 10 as the default value (150 is higher than the maximum value). Same fix is also found in Version 3.0 of the original Matrix ScreenSaver.
Under Windows NT, 2000 and XP up to SP1, this fix is not needed as the SetTimer behaviour is different there, but XP SP2 and Server 2003 have a different SetTimer behaviour (which now also applies to ReactOS).
  See http://msdn2.microsoft.com/en-us/library/ms644906.aspx for more details.
- Remove all the MSVC stuff from the translation files to get them to compile with MSVC ^^
  Sounds stupid, but the files include a non-existing "afxres.h", which lead to an error in MSVC.
- Include <stdlib.h> in "settings.c" for malloc.
- Use UCHAR values instead of int's for ParseCommandLine and chOption.
  MSVC has an assertion (ch >= 0 && ch <= 255) in the isdigit function, so negative values would lead to an error here. (for example, when no arguments are given and the variable contains lots of crap)

We still need to "merge" the cool new stuff from Matrix 3.0 :-)

svn path=/trunk/; revision=28955
2007-09-08 19:04:47 +00:00
Aleksey Bragin
19a10e41da - Don't unlock a not locked TEXTOBJ. Solves booting issue under vmware.
svn path=/trunk/; revision=28954
2007-09-08 18:44:33 +00:00
Colin Finck
98a0a729e4 Enable the Windows Server 2003 behaviour for SetTimer.
Finally, Matrix Screensaver does not work anymore under ReactOS, so we are compatible with Windows XP SP2 and Windows Server 2003 in this case :-D

svn path=/trunk/; revision=28953
2007-09-08 18:43:36 +00:00
Aleksey Bragin
58f3f36a48 - Remove intl_new.cpl
svn path=/trunk/; revision=28952
2007-09-08 17:42:23 +00:00
Eric Kohl
6dd949a054 - Update language samples upon selection of a new language.
- Add a workaround for a special case: "Spanish (Spain)" uses two sorting methods but two sublang ids are used to distinguish them instead of two sort ids. Ensure they don't appear twice in the language list.
- Add "Spanish (Spain)" as a translatable string resource.

svn path=/trunk/; revision=28950
2007-09-08 15:43:19 +00:00
James Tabor
9ef9435f83 Reset DC if MemoryDC or SaveLevelDC.
svn path=/trunk/; revision=28949
2007-09-08 14:30:39 +00:00
Colin Finck
fe71c58954 Forgot to change the names of the actual .lnk files
svn path=/trunk/; revision=28947
2007-09-08 14:17:36 +00:00
Colin Finck
b66cac8ea8 - Change "CharMap" to "Character Map" in the english translation
- Translate "System Tools" and "Character Map" to german

svn path=/trunk/; revision=28946
2007-09-08 14:10:01 +00:00
Johannes Anderwald
5999335021 - add input.dll baseaddress
svn path=/trunk/; revision=28945
2007-09-08 13:27:10 +00:00
Johannes Anderwald
0c146f766c - add input.dll baseaddress
svn path=/trunk/; revision=28944
2007-09-08 13:27:09 +00:00
Christoph von Wittich
ca777771ce handle CachedMode->dmSize
svn path=/trunk/; revision=28943
2007-09-08 12:13:49 +00:00
Aleksey Bragin
844247bb15 - Get rid of NTLPC configuration var completely.
svn path=/trunk/; revision=28942
2007-09-08 12:07:45 +00:00
Aleksey Bragin
9b8e768a59 - NTLPC always 1 now, remove deprecated code
- Unlock SMSS: authors are clearly known, history of smss goes to the beginnings of the project. Code needs cleaning up (headers, formatting).

svn path=/trunk/; revision=28941
2007-09-08 12:02:52 +00:00
James Tabor
912e0b2f35 Fix bootcd problem and found another one.
svn path=/trunk/; revision=28940
2007-09-08 11:57:40 +00:00
Colin Finck
fabeba93d2 Change some prompts in the German translation of Explorer and Shell32, the previous ones sounded a bit strange
svn path=/trunk/; revision=28938
2007-09-08 11:28:19 +00:00
Colin Finck
acb99f2a9f Accept the parameters case-insensitive in shutdown as well
svn path=/trunk/; revision=28937
2007-09-08 09:55:42 +00:00
Colin Finck
1540ce885b - Accept the parameters case-insensitive
- Replace the "/h" option by a "/?" option as described in the Usage text
- Use a consistent indentation
- Change the Usage text a bit

svn path=/trunk/; revision=28936
2007-09-08 09:04:51 +00:00
Colin Finck
a1a8df5ad2 Add a "logevent" utility for adding an event to the EventLog, developed by Marc Piulachs (marc DOT piulachs AT codexchange DOT net)
See issue #2598 for more details.

svn path=/trunk/; revision=28935
2007-09-08 08:31:56 +00:00
Christoph von Wittich
30dc779d1c -fix a bug in GetDisplayNumberFromDeviceName
-don't overwrite memory in IntEnumDisplaySettings

svn path=/trunk/; revision=28934
2007-09-08 07:43:45 +00:00
James Tabor
6a0d3658f6 - Remove DCU_UpdateUserXForms from files for now.
- 28932: Wrong Meta Tag!
- Starting the implementation of thread locking of GDI objects.
- Ref: http://www.winehq.org/pipermail/wine-cvs/2007-August/035810.html

svn path=/trunk/; revision=28933
2007-09-08 01:27:49 +00:00
James Tabor
0f6b993fbd - Reordered IntGdiGet/SetDCState and separated the copy sections.
- When creating DCE for window handles, allocate a DC structure for the default window DC.
- Return Dhpdev if not zero for NtGdiOpenDCW.
- Reordered the DC object. 

svn path=/trunk/; revision=28932
2007-09-08 01:05:27 +00:00
Christoph von Wittich
ede2779483 use the same version number for the dx libraries
svn path=/trunk/; revision=28931
2007-09-07 22:42:09 +00:00
Aleksey Bragin
8a38525cef Dmitry Chapyshev <lentind@yandex.ru>:
- Implement basics of input.dll (does not work yet, just has dialogs/resources).

svn path=/trunk/; revision=28930
2007-09-07 18:22:43 +00:00
Johannes Anderwald
f7db2e960b - store setting BootCDRegtestActive
- only show dbgprint when required

svn path=/trunk/; revision=28929
2007-09-07 18:11:55 +00:00
Aleksey Bragin
93818e712d Dmitry Chapyshev <lentind@yandex.ru>:
- Fix small thing in russian translation of explorer-ru.rc
- Add russian translation of intl.cpl

svn path=/trunk/; revision=28928
2007-09-07 18:06:24 +00:00
Aleksey Bragin
0070af341c Dmitry Chapyshev <lentind@yandex.ru>:
- Fix icon to contain 24bpp and 16bpp images (as all other icons in this directory do)

svn path=/trunk/; revision=28927
2007-09-07 17:47:59 +00:00
Sylvain Petreolle
86c2f05611 fix LANGUAGE directive
svn path=/trunk/; revision=28926
2007-09-07 16:09:52 +00:00
Hervé Poussineau
c4be097a4e Fix bootcd / livecd
svn path=/trunk/; revision=28925
2007-09-07 15:44:44 +00:00
Hervé Poussineau
b1a07a3e6b Some rbuild cleanup:
- Move AutoRegister class to its own file
- Add an enum to replace strings "$(OUTPUT)", "$(INTERMEDIATE)"..., except when writing them to makefile.auto
- Add the FileLocation class to identify a file (root dir, relative path and name)
- Use it to simplify CDFile and InstallFile classes
- Use the FileLocation class when possible
This leads also to good things which were unexpected, like not creating unneeded directories in output directory, removal of some hardcoded strings and a few fixusp in the generated makefile.auto

svn path=/trunk/; revision=28924
2007-09-07 14:59:23 +00:00
Ged Murphy
51a42b98f3 - We shouldn't use the same text as Windows does for descriptions
- Add display names for each service

svn path=/trunk/; revision=28923
2007-09-07 14:05:55 +00:00
Ged Murphy
2e29b0060f fix 1 description and add a new one
See issue #2639 for more details.

svn path=/trunk/; revision=28922
2007-09-07 13:19:37 +00:00
Daniel Reimer
1f4f631661 Bug 2638: Ukrainian translation update (temarez@yandex.ru)
Bug 2640: MSCONFIG: fixes to italian translation by Carlo Bramix (carlo.bramix@libero.it)
This time with RECENT RC Files only. :-)

svn path=/trunk/; revision=28921
2007-09-07 13:16:24 +00:00
Colin Finck
3f97e49561 Also change the download URLs to the Mozilla apps in trunk (see r28919)
svn path=/trunk/; revision=28920
2007-09-07 12:26:46 +00:00
James Tabor
bd954074fa - Reordered IntGdiGet/SetDCState and separated the copy sections.
- When creating DCE for window handles, allocate a DC structure for the default window DC.
- Return Dhpdev if not zero for NtGdiOpenDCW.
- Reordered the DC object. 

svn path=/trunk/; revision=28918
2007-09-07 12:21:26 +00:00
Eric Kohl
5b0be27588 Add the serial keys settings dialog.
svn path=/trunk/; revision=28917
2007-09-07 11:17:09 +00:00
Johannes Anderwald
fec89333bd - use raw hdd image for linux and use vmdk for windows hosts
svn path=/trunk/; revision=28916
2007-09-07 11:16:05 +00:00
Eric Kohl
21850a3f75 Delete the bulgarian translation and revert the polish one because they are outdated. Dialogs and controls are missing or were removed by dreimers latest patch!
svn path=/trunk/; revision=28915
2007-09-07 11:14:51 +00:00
Ged Murphy
fd90cd9c8a adjust the pointers on the server side to match what the client is sending
svn path=/trunk/; revision=28914
2007-09-07 10:55:16 +00:00
Ged Murphy
dae207d99a Fix the client side of the ChangeServiceConfig2 RPC call to send the text in the lpDescription pointer of SERVICE_DESCRIPTION tagged onto the end of the struct.
This fixes setting service descriptions

svn path=/trunk/; revision=28913
2007-09-07 10:52:43 +00:00
Timo Kreuzer
2dbf3f528e - add NTMW_INTERNAL structure
- better structure implementation for ENUMFONTDATAW
- change NewEnumFontFamiliesEx to use the new structure
- some fixes and comments

svn path=/trunk/; revision=28911
2007-09-07 03:33:00 +00:00
Johannes Anderwald
19aed1070b - format hdd images with raw format
- improve error checking

svn path=/trunk/; revision=28910
2007-09-06 22:49:05 +00:00
Ged Murphy
4304ad2ff7 silence debug output
svn path=/trunk/; revision=28909
2007-09-06 21:37:58 +00:00
Johannes Anderwald
1c3f08d9ab - fix bug in GetCPFileNameFromRegistry spotted by Daniel Zimmermann ;)
svn path=/trunk/; revision=28908
2007-09-06 20:18:15 +00:00
Johannes Anderwald
80e9bef2b0 - terminate comment by Marc Puilachs
See issue #2611 for more details.

svn path=/trunk/; revision=28907
2007-09-06 20:00:19 +00:00
Johannes Anderwald
2af89e434c - fix memory leak in GetCPFileNameFromRegistry
- bug report + patch by Daniel Zimmermann / netzimme@aol.com
See issue #2637 for more details.

svn path=/trunk/; revision=28906
2007-09-06 19:57:19 +00:00
Johannes Anderwald
58f165a052 - there can be only one instance of the device manager
svn path=/trunk/; revision=28905
2007-09-06 19:45:26 +00:00
Aleksey Bragin
ac5a5581cd - Fix LoaderPagesSpanned calculation.
svn path=/trunk/; revision=28903
2007-09-06 17:18:42 +00:00
Ged Murphy
2784609696 - Shutdown services when the SCM is terminated
- Add basic code for shutting down of the SCM
- Fix the headers

svn path=/trunk/; revision=28902
2007-09-06 14:51:38 +00:00
Johannes Anderwald
7106e65cde - end the configuration commit war
svn path=/trunk/; revision=28901
2007-09-06 13:57:55 +00:00
Timo Kreuzer
b232c33052 - add the missing macro
What the last change does and I missed last commit:
- use individual pool tags for each gdi object type
- allow object allocation w/o lookaside list
- don't search for the lookaside list/cleanup proc, the index into the lists is now calculated from type

svn path=/trunk/; revision=28900
2007-09-06 13:14:21 +00:00
Andrew Munger
77a5b5a508 Gracefully handle the case where the BIOS insists there is a floppy drive, but there is no controller. Patch by Cameron Gutman (aicommander at gmail dot com) from Bug 1508.
svn path=/trunk/; revision=28899
2007-09-06 12:36:05 +00:00
Andrew Munger
f63bea010c Remove Byte-Order-Mark from rc file. Fixes my solitaire. ;0)
svn path=/trunk/; revision=28898
2007-09-06 12:14:43 +00:00
Ged Murphy
e995f11cfd Add a hack to fix the build.
Timo, can you revert this and add the missing macro when you can please.

svn path=/trunk/; revision=28897
2007-09-06 09:41:00 +00:00
Ged Murphy
fae293c143 add the account name to the QueryServiceConfig RPC call
svn path=/trunk/; revision=28896
2007-09-06 09:18:23 +00:00
Hervé Poussineau
6bd9e7bed6 Explain why some binutils are blacklisted
svn path=/trunk/; revision=28895
2007-09-06 08:25:57 +00:00
Hervé Poussineau
0eccb4aa9d Add method to get target arch in rbuild
svn path=/trunk/; revision=28894
2007-09-06 07:46:48 +00:00
Hervé Poussineau
7338e88f05 As described in documentation, default TEMPORARY variable to current directory (".") instead of nothing ("")
This permits TEMPORARY followed by the directory separator to be "./" instead of "/" (root dir)
Spotted by Andrew Munger on IRC

svn path=/trunk/; revision=28893
2007-09-06 07:17:33 +00:00
Timo Kreuzer
ad90579751 - use the new ObjectType list with fixed indices
svn path=/trunk/; revision=28892
2007-09-06 02:54:17 +00:00
Timo Kreuzer
2aaf1f0e51 - cleanup EXTPENS and PENS in BRUSH_Cleanup, remove EXTPEN_Cleanup
- add new new ObjectTypeInfo structure. It's unused atm, but it will be soon.


svn path=/trunk/; revision=28891
2007-09-06 01:04:18 +00:00
Timo Kreuzer
35bf0957bc - use NtDd api directly instead of using old syscall function.
- remove some old definitions
- fix build to make Wax happy

svn path=/trunk/; revision=28890
2007-09-06 00:42:51 +00:00
Timo Kreuzer
ccca2fc546 - move dx gdi object type definitions from intddraw.h to ntgdihdl.h, change 2 type values to make them match windows, comment out 2 unused types for now.
- add pool tags for gdi objects
- add a bitmask for basic type (0x01 - 0x1f)

svn path=/trunk/; revision=28889
2007-09-06 00:28:04 +00:00
Ged Murphy
2525c2ea6a don't try to free a NULL pointer
svn path=/trunk/; revision=28888
2007-09-05 22:44:46 +00:00
Ged Murphy
b1833d8186 - Implement the RPC server calls for QueryServiceConfig2 and ChangeServiceConfig2 (SmcrChangeServiceConfig2 is untested)
- This fixes the retrieval of the service description in servman

svn path=/trunk/; revision=28887
2007-09-05 22:35:51 +00:00
Aleksey Bragin
396346644c - Fix IntEaLength's type (ULONG -> LONG), so it could actually become negative, and corresponding check will be performed.
svn path=/trunk/; revision=28886
2007-09-05 21:35:09 +00:00
Aleksey Bragin
e598b5b7ae UINT -> ULONG
svn path=/trunk/; revision=28885
2007-09-05 21:32:04 +00:00
Johannes Anderwald
1c8e960090 - delete pidfile if it exists before launching emulator
- delete pidfile on exit
- close pidfile on failure

svn path=/trunk/; revision=28884
2007-09-05 21:00:32 +00:00
Timo Kreuzer
fe82da5539 New implementation of EnumFontFamiliesExW, based on NtGdiEnumFontXxx, does not work on ros, because those apis are not implemented yet, but it works on Windows XP.
svn path=/trunk/; revision=28883
2007-09-05 19:32:37 +00:00
Timo Kreuzer
b35b3e0ff7 different implementation of ENUMFONTDATA structure
svn path=/trunk/; revision=28882
2007-09-05 19:27:16 +00:00
Christoph von Wittich
7cc946b793 -allocate the buffer for the NamedPipeReader on Linux too
-use linux path as default in txtmode.cfg

svn path=/trunk/; revision=28881
2007-09-05 17:02:30 +00:00
Christoph von Wittich
7e1ef16736 fix some bugs in the linux version (not working yet)
svn path=/trunk/; revision=28880
2007-09-05 16:52:45 +00:00
Hervé Poussineau
e49226799b Fix ReactOS temporary directory name
svn path=/trunk/; revision=28879
2007-09-05 16:33:41 +00:00
Ged Murphy
5d16caaca6 fix description spelling
svn path=/trunk/; revision=28878
2007-09-05 14:47:15 +00:00
Eric Kohl
0addcc009e - Forgot to enable the GeoId code.
- Fixed another hardcoded Unicode string.
- More indentation fixes.
- No code changes.

svn path=/trunk/; revision=28877
2007-09-05 14:42:24 +00:00
Eric Kohl
63d106c29f - Replace the hardcoded calls to Unicode-Functions. Use the module configuration to build a Unicode version instead.
- Cleaned up a lot of coding-style and indentation issues.
- No code changes.

svn path=/trunk/; revision=28876
2007-09-05 14:24:45 +00:00
Hervé Poussineau
9674b37837 Synchronize with Wine WIDL 0.9.44 (and a few patches by Dan Hipschman found on wine-patches ML)
svn path=/trunk/; revision=28873
2007-09-05 11:15:09 +00:00
Hervé Poussineau
72e2ba5445 Duplicate widl tool to widl_new
svn path=/trunk/; revision=28872
2007-09-05 11:11:31 +00:00
Ged Murphy
05e11ee73f sync rpcrt4_new to Wine 0.9.44
svn path=/trunk/; revision=28871
2007-09-05 10:21:30 +00:00
Hervé Poussineau
0e970f97eb Finally let Wine package version depend of ReactOS version
svn path=/trunk/; revision=28870
2007-09-05 09:27:40 +00:00
Hervé Poussineau
256a24ca42 Let tools including the version number depend of buildno.h
Remove useless tool tools-check (replaced by a rbuild check)
Add .phony targets for gendib and nci

svn path=/trunk/; revision=28869
2007-09-05 09:22:14 +00:00
Aleksey Bragin
d2816c6491 - Fix a typo in the code (thanks to "zimme" for spotting).
svn path=/trunk/; revision=28868
2007-09-05 08:20:03 +00:00
Aleksey Bragin
4cb2b785c3 - Apply 28852 changes to setupldr.c (fixes bootcd).
svn path=/trunk/; revision=28867
2007-09-05 08:10:41 +00:00
Johannes Anderwald
14a7e07da8 - no comment
svn path=/trunk/; revision=28866
2007-09-04 23:47:16 +00:00
Christoph von Wittich
0412c4b0ae fix linux build
svn path=/trunk/; revision=28865
2007-09-04 22:51:21 +00:00
Johannes Anderwald
e46b50d110 - split boot cmd into tokens
svn path=/trunk/; revision=28864
2007-09-04 22:44:01 +00:00
Ged Murphy
d17bf3ab31 remove 4bpp bitmaps, add 24bpps and clean them all up.
svn path=/trunk/; revision=28863
2007-09-04 22:10:57 +00:00
Ged Murphy
e2db8738fe add 24 and 8 bit bitmaps
svn path=/trunk/; revision=28861
2007-09-04 21:32:35 +00:00
Ged Murphy
8976fa2e03 - fix SetupDiLoadClassIcon to load 32x22 for the large icon
- fix SetupDiGetClassImageList to load 16x16 icons for the device image list.
- devmgmt now loads up the correct sizes for both the treeview and the property page

svn path=/trunk/; revision=28860
2007-09-04 21:30:22 +00:00
Christoph von Wittich
4bfe0df0be fix linux build
svn path=/trunk/; revision=28859
2007-09-04 21:12:27 +00:00
Ged Murphy
cc461f5920 preset in case of failure
svn path=/trunk/; revision=28858
2007-09-04 20:28:44 +00:00
Johannes Anderwald
60cddd9562 - finish immediately on unattended second stage install
svn path=/trunk/; revision=28857
2007-09-04 20:26:02 +00:00
Christoph von Wittich
9487793fe7 fix some of the linux build issues
svn path=/trunk/; revision=28856
2007-09-04 20:19:57 +00:00
Ged Murphy
8f7e520058 - read ClassGUID from the registry instead of sending GUID_NULL
- fixes part of SetupDiOpenDeviceInfo which now allows loading of icons in the devmgr.dll property sheets

svn path=/trunk/; revision=28855
2007-09-04 20:18:39 +00:00
Johannes Anderwald
a1de0509ed - readd named pipe support for linux by Christoph_vW
- simplify named pipe code
- only allocate buffer for reading once 
- dont format default hdd if it exists
- delay read at right position
- fix ROS_DELAY_READ option in config file - value is expected to be in seconds not milliseconds

svn path=/trunk/; revision=28854
2007-09-04 19:53:49 +00:00
Johannes Anderwald
a04c49f61c - fix a bug
svn path=/trunk/; revision=28853
2007-09-04 19:41:58 +00:00
Aleksey Bragin
301681680f - Use real NT KPCR address (0xFFDFF000).
- Remove all hacked KPCR_BASE definitions.
- Make FreeLDR give address of PageDirectoryStart/End addresses. This was being ignored/incorrect until now and the page directory could've gotten overwritten.
- Properly setup the HAL PDE, instead of having different PDEs for KUSER_SHARED_DATA, KPCR and ACPI I/O.
- Do not over-write shared user data with ACPI I/O anymore. This was probably a bad idea.
- Do not mark almost a meg of space as KPCR_USERD_SHARED data anymore, and don't mess up the CPU TLB anymore.
- Give a dedicated page to KUSER_SHARED_DATA (Page 2, physical address 0x2000) right after the KPCR, isntead of a random address that probably ended up overwritten later during the OS's lifetime.
- Fix FS selector in the GDT.
- Remove hack in Trap Fault Handler.
- Add a little hack to allow mapping Page 2 into user-space even though it's marked as used, this is for the Shared User Data page.

svn path=/trunk/; revision=28852
2007-09-04 18:19:59 +00:00
Colin Finck
7a0b809846 Silence two warnings in cmlib.
This makes the livecd part compiling warning-free on 32-bit systems. On 64-bit hosts, we still need to squash out this __cdecl warning.

svn path=/trunk/; revision=28851
2007-09-04 16:05:44 +00:00
James Tabor
128482c59c Moved code. Finding out when changing ownership, it will require the deallocation and allocation of old and new dcattr.
svn path=/trunk/; revision=28850
2007-09-04 15:59:21 +00:00
Christoph von Wittich
a83bfb4c33 forgot to commit this file
svn path=/trunk/; revision=28849
2007-09-04 14:50:11 +00:00
Christoph von Wittich
8ce3ea704d changed path to dbgprint.exe
svn path=/trunk/; revision=28848
2007-09-04 14:47:47 +00:00
Daniel Reimer
45cef14031 Bug 2528: Few updates to Italian rc files (devotip@tiscali.it) except access.cpl, which was not diffed to HEAD.
svn path=/trunk/; revision=28847
2007-09-04 14:41:22 +00:00
Christoph von Wittich
6bead1805a add dbgprint to bootcd until a better solution is found
svn path=/trunk/; revision=28846
2007-09-04 14:39:53 +00:00
Christoph von Wittich
a920a77e55 re-add dbgprint - now as win32 module
svn path=/trunk/; revision=28845
2007-09-04 14:28:29 +00:00
Colin Finck
a1493f0b00 Correctly define LONG_PTR, ULONG_PTR and SIZE_T in "typedefs_host.h".
This should silence many warnings and might fix the Live-CD build problems of our 64-bit Buildslave.

svn path=/trunk/; revision=28844
2007-09-04 14:12:27 +00:00
Johannes Anderwald
53fd100f02 - remove dbgprint from tools
- dbgprint needs to be win32 application and must be moved

svn path=/trunk/; revision=28843
2007-09-04 14:05:35 +00:00
Johannes Anderwald
79f383df0b - fix target
svn path=/trunk/; revision=28842
2007-09-04 13:56:21 +00:00
Johannes Anderwald
a6b6e781a2 - add disk param when booting from cdrom
- hardcode vnc 0 option to linux build
- make -no-reboot option available for windows hosts only

svn path=/trunk/; revision=28841
2007-09-04 13:47:08 +00:00
Christoph von Wittich
7700f97898 -fix build
svn path=/trunk/; revision=28840
2007-09-04 13:37:09 +00:00
Johannes Anderwald
88ced411c7 - fix serious bug in createHDDImage
- delay reading if requested

svn path=/trunk/; revision=28839
2007-09-04 13:31:03 +00:00
James Tabor
59a03d6577 Fix processid mask, update gdi handle entry, shift mask and VM memory alloc.
svn path=/trunk/; revision=28838
2007-09-04 11:30:49 +00:00
Christoph von Wittich
e7b744d5c5 fix compilation on linux
svn path=/trunk/; revision=28837
2007-09-04 11:10:17 +00:00
Johannes Anderwald
9187115f22 - silence debug message
- dont hardcode paths in regression testing code

svn path=/trunk/; revision=28836
2007-09-04 11:03:16 +00:00
Johannes Anderwald
c99304bb69 - include unattend.inf per default in the bootcd
- unattend setup is disabled by the key UnattendSetupEnabled
- to enable set key to "yes" without quotes

svn path=/trunk/; revision=28835
2007-09-04 10:36:22 +00:00
Johannes Anderwald
711785c421 Copied remotely
svn path=/trunk/; revision=28834
2007-09-04 10:33:32 +00:00
Daniel Reimer
888aba31bc Luckily I forgot these files. So I can add a missing line in the commit message :-P
Bug 2534: Few translations (temarez@yandex.ru)

svn path=/trunk/; revision=28833
2007-09-04 10:24:41 +00:00
Daniel Reimer
2d0b61b212 Massive Translations commit:
Bug 2628: New intl.cpl italian translation by Gabirel Ilardi (gabrielilardi@hotmail.it)
Bug 2626: Modifications for solitaire catalan translation by Marc Tormo i Bochaca (mtbochaca@ya.com)
Bug 2625: Catalan translation for msconfig by Marc Tormo i Bochaca (mtbochaca@ya.com)
Bug 2612: Spanish translation for explorer_new and updated translation for explorer by Marc Piulachs (marc.piulachs@codexchange.net)
Bug 2606: Bulgarian translation of ReactOS. (sstpr@narod.ru)
Bug 2603: userenv es-ES localization by Marc Piulachs (marc.piulachs@codexchange.net)
Bug 2534: Few translations (temarez@yandex.ru)

svn path=/trunk/; revision=28832
2007-09-04 09:59:46 +00:00
Johannes Anderwald
9b5863ddfb - rename sleep to delayExecution
- delayExecution accepts the value now in seconds
- should fix the linux crash

svn path=/trunk/; revision=28831
2007-09-04 09:36:00 +00:00
Christoph von Wittich
0c92f06002 fix some issues found by prefast
svn path=/trunk/; revision=28830
2007-09-03 23:56:04 +00:00
Art Yerkes
9786ea3b93 My hack isn't needed anymore.
svn path=/trunk/; revision=28829
2007-09-03 23:03:33 +00:00
Ged Murphy
ccf991c1b7 add an IDE disk controller icon. All basic device manager items should now have an icon. If anyone comes across anything that doesn't, let me know as we still have a few more icons to add yet.
svn path=/trunk/; revision=28828
2007-09-03 22:23:50 +00:00
Ged Murphy
196cfe951b fix the icon licence notes
svn path=/trunk/; revision=28827
2007-09-03 21:53:15 +00:00
Colin Finck
091a80b5ff Make these two "registry_callback() failed" messages different, so it is easier to see where our 64-Bit Buildslave fails
svn path=/trunk/; revision=28826
2007-09-03 20:54:54 +00:00
Ged Murphy
8f37a9e42e add a new tango style usb icon which better matches the reactos icon theme
svn path=/trunk/; revision=28825
2007-09-03 20:50:02 +00:00
Colin Finck
095a2016c5 Lithuanian translations for several base applications by Vytis Girdzijauskas (cman AT cman DOT us)
See issue #2532 for more details.

svn path=/trunk/; revision=28824
2007-09-03 20:45:58 +00:00
Ged Murphy
7470d72c18 fix serial icon
svn path=/trunk/; revision=28823
2007-09-03 19:39:52 +00:00
Colin Finck
bd36046a96 Build fixes for MSVC, now mkhive can be built with MSVC again
svn path=/trunk/; revision=28822
2007-09-03 19:33:03 +00:00
Christoph von Wittich
a478151d4c fix a small bug in set and added missing german translations
svn path=/trunk/; revision=28821
2007-09-03 17:40:30 +00:00
Ged Murphy
3b51bcc560 add a new serial port icon. I'll do the hard disk controller one later
svn path=/trunk/; revision=28820
2007-09-03 16:03:31 +00:00
Johannes Anderwald
2f0ada9276 - improve error checking
svn path=/trunk/; revision=28819
2007-09-03 16:02:26 +00:00
Ged Murphy
e35de311ed Add the icon mask to the imagelist. The device manager icons now look correct
svn path=/trunk/; revision=28818
2007-09-03 15:40:24 +00:00
Ged Murphy
55fd514cf3 set the correct icon image for the Keyboard class
svn path=/trunk/; revision=28817
2007-09-03 14:53:46 +00:00
Ged Murphy
ce162db686 - load icon resources using LoadImage. ExtractIcon loads sequential numbers, not resource numbers.
- fixes the device image list

svn path=/trunk/; revision=28816
2007-09-03 14:51:06 +00:00
Eric Kohl
21c0efe8cd - Convert RADIOBUTTONs to AUTORADIOBUTTONs.
- Replace Trackbars by Comboboxes in the filter keys dialogs.
- Fix some typos and minor translation issues in the german dialogs.
- Add missing functionality for the repeat key dialog.

@dreimer: Did I fix all bugs?


svn path=/trunk/; revision=28815
2007-09-03 14:44:08 +00:00
Hervé Poussineau
825a2f98fa Build openfirmware interface tool only if target is powerpc
svn path=/trunk/; revision=28814
2007-09-03 13:50:31 +00:00
Hervé Poussineau
a864054304 Check a Windows host by _WIN32 define, not WINDOWS_HOST
svn path=/trunk/; revision=28813
2007-09-03 13:43:39 +00:00
Daniel Reimer
2260a4339e Updated access.cpl German Translation. Some texts don't fit, but I have absolutely NO Idea how this RC File works. Eric, explain me. :-P
svn path=/trunk/; revision=28812
2007-09-03 10:57:06 +00:00
Art Yerkes
8d262dd954 Add 16-byte alignment for ppc (required by eabi too)
svn path=/trunk/; revision=28811
2007-09-03 10:29:14 +00:00
Hervé Poussineau
b3ab8c804e Align stack to 16 bytes on mips
svn path=/trunk/; revision=28810
2007-09-03 10:22:13 +00:00
Hervé Poussineau
b60824e779 Fix build #2
svn path=/trunk/; revision=28809
2007-09-03 09:31:48 +00:00
Hervé Poussineau
fbde3e7d44 Fix build
svn path=/trunk/; revision=28808
2007-09-03 08:57:19 +00:00
Hervé Poussineau
5b3a9d3b2d Add a generic implementation of InterlockedBitTestAndSet/InterlockedBitTestAndReset/BitScanReverse
svn path=/trunk/; revision=28807
2007-09-03 08:50:06 +00:00
Hervé Poussineau
af1226ddc6 Swap boot sector on big endian systems, even if DEBUG is not defined. Debug and release builds should behave the same
svn path=/trunk/; revision=28806
2007-09-03 08:17:55 +00:00
Hervé Poussineau
c0614ecb59 Add missing svn:eol-style=native properties
svn path=/trunk/; revision=28805
2007-09-03 07:39:30 +00:00
Art Yerkes
39ed067ac8 Fix swapping for fat recognition.
svn path=/trunk/; revision=28804
2007-09-03 06:58:25 +00:00
Art Yerkes
2123b0666e Fix building of libcntpr on ppc.
We now get a proper bootcd image.

svn path=/trunk/; revision=28803
2007-09-03 06:29:13 +00:00
James Tabor
4149385d00 Turn off support for now due to user land exception.
svn path=/trunk/; revision=28802
2007-09-03 05:30:45 +00:00
Art Yerkes
930b718aa7 Move mismerged segment to the right place; claim from openfirmware if we
don't have enough reserve.

svn path=/trunk/; revision=28801
2007-09-03 05:29:03 +00:00
Hervé Poussineau
12b88bedcb Few indentation fixes
Generate again boot programs in output directory

svn path=/trunk/; revision=28800
2007-09-03 04:12:48 +00:00
Hervé Poussineau
4cb8151f10 Supports a few more ACPI devices
Patch by Cameron Gutman (aicommander at gmail dot com)

svn path=/trunk/; revision=28799
2007-09-03 04:01:28 +00:00
Johannes Anderwald
fe58401893 - scroll window with ScrollWindowEx
- fix a bug in GuiConsoleWndProc
- scrolling does not work yet

svn path=/trunk/; revision=28798
2007-09-03 03:49:23 +00:00
James Tabor
bb300c0259 - Win32k: DC_ATTR: Moved to it.
- We need to decide how to optimize the syncing. CreateD/IC/CompatibleDC, GetDCState and SelectObject use the sync in one form. This can become ugly. Some DC handles do not belong to the current process. We need to reorder the mess in dc.c and clean it up.
- Gdi32: The only ones using it are GetCurrentObject and with out updates Get/SetDCBrush/PenColor.
- Implemented an example of RealizePalette. Moved SetBk/TextColor into dc.c, don't use them.
- Update gdi32.def.

svn path=/trunk/; revision=28797
2007-09-03 03:43:21 +00:00
Johannes Anderwald
89628d18b4 - halfplement console scrolling support
svn path=/trunk/; revision=28796
2007-09-03 03:29:18 +00:00
Art Yerkes
574eb2daac Straggler edits.
svn path=/trunk/; revision=28795
2007-09-03 01:59:48 +00:00
Johannes Anderwald
9b81b3ab92 - add hActiveBuffer member to struct to ensure that modifying the screenbuffer is secured
- fix a bugs in the screen buffer resize code
- resizing now "works" (unfortunately a few drawing bugs show up)

svn path=/trunk/; revision=28794
2007-09-03 01:58:43 +00:00
Art Yerkes
81f092736f Added freeldr and hal from PPC branch, along with needed headers and
build changes.

Next ntoskrnl and add ppc dir under libcntptr, which didn't exist when I 
forked.

svn path=/trunk/; revision=28793
2007-09-03 01:57:36 +00:00
Daniel Reimer
533b371674 Activated German RC File.
Add BS_MULTILINE to one Checkbox.
Fixed some Text Lengths to fit.

svn path=/trunk/; revision=28792
2007-09-02 23:34:31 +00:00
Daniel Reimer
cf4a1dfd42 I missed a Dialog in my Translation :-P
svn path=/trunk/; revision=28791
2007-09-02 23:04:40 +00:00
Daniel Reimer
574d5f0dd0 Updated German Resource File. I was NOT able to test it, because intl seems to be broken, but before anybody else commits a translation...
svn path=/trunk/; revision=28790
2007-09-02 22:39:17 +00:00
Johannes Anderwald
9392cd7ab8 - improve error checking
- add hasQemuNoRebootOption stub

svn path=/trunk/; revision=28789
2007-09-02 22:27:03 +00:00
Johannes Anderwald
ef3fd8d176 - verify provided boot_cmd
- create also hdd images for manual boot cmds
 

svn path=/trunk/; revision=28788
2007-09-02 21:47:07 +00:00
Johannes Anderwald
b57a996929 - hardcode the bios directory on linux system to /usr/share/qemu
- store the pid.txt in ROS_OUTPUT
- check on linux system if the emulator was successfully launched

svn path=/trunk/; revision=28787
2007-09-02 21:11:12 +00:00
Aleksey Bragin
3a3645aa1e Dmitry Chapyshev <lentind@yandex.ru>:
- Improve intl.cpl, include almost all code from intl_new branch (it's pending for deletion now)
 - ReactOS's intl.cpl now works and behaves similar to Windows XP's intl.cpl, only the last tab is unfinished
 - Tested in Windows and ReactOS (in ROS it obviously has reduced functionality, since some of needed registry entries are absent)
 - As a result, all other languages (other than en-us) need to be re-translated.

svn path=/trunk/; revision=28786
2007-09-02 20:42:08 +00:00
Hervé Poussineau
0eb52138ba Fix Linux build
svn path=/trunk/; revision=28785
2007-09-02 19:46:23 +00:00
Hervé Poussineau
6982b02da4 Remove local header debug.h, and use the global one
svn path=/trunk/; revision=28784
2007-09-02 19:42:22 +00:00
Hervé Poussineau
056f1f734f Use typedefs_host.h header when building inflib for host
svn path=/trunk/; revision=28783
2007-09-02 19:23:43 +00:00
Hervé Poussineau
93b424d064 Do not disable asserts
svn path=/trunk/; revision=28782
2007-09-02 19:22:26 +00:00
Eric Kohl
d04f683b06 - Add the repeat key settings dialog. It does not work yet.
- Update the bounce key settings dialog.
- Update the general page.

svn path=/trunk/; revision=28781
2007-09-02 19:12:41 +00:00
Magnus Olsen
6f69483d34 update ntgdibad.h before I forget thuse details that are need be done.
svn path=/trunk/; revision=28780
2007-09-02 19:03:50 +00:00
Johannes Anderwald
1f4fc15d27 - implement screenbuffer resizing(required for console scrolling support)
- still quite buggy :)

svn path=/trunk/; revision=28779
2007-09-02 18:21:36 +00:00
Hervé Poussineau
b2454a486f Make some i386 code conditional
Add missing svn:eol-style=native property

svn path=/trunk/; revision=28778
2007-09-02 18:05:16 +00:00
Hervé Poussineau
2d5d8783a9 Fix warnings, and compilation of dib24bppc.c/dib32bppc.c
svn path=/trunk/; revision=28777
2007-09-02 16:33:00 +00:00
Magnus Olsen
f503e01b03 implement SetDeviceGammaRamp in gdi32 (leftdo check win32k if it implement or not)
svn path=/trunk/; revision=28776
2007-09-02 14:36:48 +00:00
Magnus Olsen
0d6c6a0913 add smaller check to SetDIBColorTable
svn path=/trunk/; revision=28775
2007-09-02 14:11:28 +00:00
Magnus Olsen
8e85947cea sorry fix the the build
svn path=/trunk/; revision=28774
2007-09-02 13:54:26 +00:00
Magnus Olsen
8dd3f58473 partly implement SetBoundsRect
svn path=/trunk/; revision=28773
2007-09-02 13:31:41 +00:00
Magnus Olsen
3ec9aeaa02 implement SelectFontLocal
svn path=/trunk/; revision=28772
2007-09-02 13:19:07 +00:00
Magnus Olsen
d9d416611c implement SelectBrushLocal
svn path=/trunk/; revision=28771
2007-09-02 13:09:50 +00:00
Hervé Poussineau
8f965b75c6 Search a property by its name
svn path=/trunk/; revision=28770
2007-09-02 13:08:00 +00:00
Magnus Olsen
7faf7e1de8 fix smaller bug in SelectClipRgn
svn path=/trunk/; revision=28769
2007-09-02 12:58:35 +00:00
Magnus Olsen
9c2159e7f6 implement RemoveFontMemResourceEx (left todo fix it in win32k)
svn path=/trunk/; revision=28768
2007-09-02 12:18:34 +00:00
Magnus Olsen
ef2cee7158 implement stub for NtGdiSelectBitmap, NtGdiSelectBrush, NtGdiSelectFont, NtGdiSelectPen, NtGdiSetBitmapAttributes, NtGdiSetFontEnumeration, NtGdiSetFontXform, NtGdiSetLinkedUFIs, NtGdiSetMagicColors, NtGdiGetDeviceWidth, NtGdiMirrorWindowOrg, NtGdiSetLayout, NtGdiStretchDIBitsInternal, NtGdiUnloadPrinterDriver, NtGdiUnmapMemFont
svn path=/trunk/; revision=28767
2007-09-02 11:28:34 +00:00
Art Yerkes
3833d9dc03 Ignore elf.
svn path=/trunk/; revision=28766
2007-09-02 11:14:58 +00:00
Art Yerkes
fa7d1ae29f Ignore elf executables.
svn path=/trunk/; revision=28765
2007-09-02 11:10:27 +00:00
Magnus Olsen
245a9fc0b7 implement stub for NtGdiIcmBrushInfo, NtGdiInit, NtGdiMakeFontDir, NtGdiMakeInfoDC, NtGdiMonoBitmap, NtGdiMoveTo
svn path=/trunk/; revision=28764
2007-09-02 10:50:25 +00:00
Magnus Olsen
d0fb82d2cf implement stub for NtGdiGetEmbUFI, NtGdiGetUFIPathname, NtGdiGetEmbedFonts, NtGdiChangeGhostFont, NtGdiAddEmbFontToDC, NtGdiGetWidthTable, NtGdiSTROBJ_bEnum, NtGdiSTROBJ_bEnumPositionsOnly, NtGdiSTROBJ_bGetAdvanceWidths, NtGdiSTROBJ_vEnumStart, NtGdiSTROBJ_dwGetCodePage, NtGdiGetDhpdev
svn path=/trunk/; revision=28763
2007-09-02 10:33:02 +00:00
Magnus Olsen
5cb3200f34 Implement stub for NtGdiGetServerMetaFileBits, NtGdiGetStats, NtGdiPolyTextOutW, NtGdiRemoveFontResourceW, NtGdiRemoveFontMemResourceEx, NtGdiSetBrushAttributes, NtGdiSetupPublicCFONT,
NtGdiSetVirtualResolution, NtGdiSetSizeDevice, NtGdiXLATEOBJ_cGetPalette, NtGdiXLATEOBJ_iXlate, NtGdiXLATEOBJ_hGetColorTransform, NtGdiXFORMOBJ_bApplyXform, NtGdiXFORMOBJ_iGetXform

svn path=/trunk/; revision=28762
2007-09-02 10:14:28 +00:00
Art Yerkes
da634e3215 Empty OARCH.
svn path=/trunk/; revision=28761
2007-09-02 09:59:45 +00:00
Art Yerkes
4f9da98a43 Small change to make OARCH optional.
svn path=/trunk/; revision=28760
2007-09-02 09:59:11 +00:00
Art Yerkes
bc79808b38 Remove hack-coff and le2be. We make an elf booter now.
svn path=/trunk/; revision=28759
2007-09-02 09:17:46 +00:00
Art Yerkes
1b0de699dd Adding misc ppc tools.
svn path=/trunk/; revision=28758
2007-09-02 09:11:10 +00:00
Art Yerkes
debfd91189 Add interface generator for open firmware calls.
svn path=/trunk/; revision=28757
2007-09-02 09:02:12 +00:00
James Tabor
4a7979cd3e Working Dc_Attr support, tested and it worked. Will plugin the rest later.
svn path=/trunk/; revision=28756
2007-09-02 07:59:12 +00:00
James Tabor
108ae6fb76 Fix BootCD!!!!! Watch your commit GL! LOL!
svn path=/trunk/; revision=28755
2007-09-02 05:31:00 +00:00
Timo Kreuzer
c82d56cc94 Revert wars! ;-)
I talked with GL, he agrees, it is correct.

svn path=/trunk/; revision=28754
2007-09-01 23:11:16 +00:00
Timo Kreuzer
2b31cf640d - Add test for AddFontResourceEx showing that the function accepts 0 as flags.
- remove header inclusion in test files

svn path=/trunk/; revision=28753
2007-09-01 22:06:05 +00:00
Magnus Olsen
34647baaf1 add PatBlt, PolyPatBlt to user mode
redirect PATHOBJ_bEnum@8 to NtGdiPATHOBJ_bEnum@8, PATHOBJ_bEnumClipLines@12 to NtGdiPATHOBJ_bEnumClipLines@12, PATHOBJ_vEnumStart@4 to NtGdiPATHOBJ_vEnumStart@4, PATHOBJ_vEnumStartClipLines@16 to NtGdiPATHOBJ_vEnumStartClipLines@16, PATHOBJ_vGetBounds@8 to NtGdiPATHOBJ_vGetBounds@8
update the good api list

svn path=/trunk/; revision=28752
2007-09-01 21:36:44 +00:00
Aleksey Bragin
9bb3aa1130 - Finish the memory map code, so it now actually creates a real memory map, with all reserved, unusable pages marked
- Add a memory type enum and use it in memory descriptors
- Improvements in KiRosFrldrLpbToNtLpb() (separate the code into different functions, bugfixes)

svn path=/trunk/; revision=28751
2007-09-01 20:54:02 +00:00
Magnus Olsen
290cc1ffd4 revert 28748 that change are incorrect,
it shall only check if the bits are set or not, 
if no flag are set we shall fail, if one flag are set we shall doing the call. 

svn path=/trunk/; revision=28750
2007-09-01 20:25:50 +00:00
Christoph von Wittich
94d3aeebb3 set eol-style:native
svn path=/trunk/; revision=28749
2007-09-01 19:53:06 +00:00
Timo Kreuzer
8afb55f5f5 fix AddFontResourceExAW parameter check
svn path=/trunk/; revision=28748
2007-09-01 19:32:20 +00:00
Johannes Anderwald
d0bc8873a1 - dont show same wallpaper twice
- bug report + patch by Vytis Girdzijauskas, "CMan", cman[at]cman[dot]us
See issue #2601 for more details.

svn path=/trunk/; revision=28747
2007-09-01 17:18:00 +00:00
Johannes Anderwald
ab1415d99c - fix loading of resources
svn path=/trunk/; revision=28746
2007-09-01 16:34:22 +00:00
Johannes Anderwald
67f1c2a0e9 - load icon from the right HINSTANCE handle
svn path=/trunk/; revision=28745
2007-09-01 16:03:12 +00:00
Johannes Anderwald
2733ed92aa - load resources from the dll handle
- loop untill the real stop condition is found
- this makes the console properties menu working again 
See issue #1827 for more details.

svn path=/trunk/; revision=28744
2007-09-01 15:54:16 +00:00
Magnus Olsen
f3d89dd0ed implement stub for NtGdiPATHOBJ_vGetBounds, NtGdiPATHOBJ_vEnumStart, NtGdiPATHOBJ_vEnumStartClipLines
svn path=/trunk/; revision=28743
2007-09-01 15:10:17 +00:00
Magnus Olsen
8454705d07 implement stub for NtGdiPATHOBJ_bEnum, NtGdiPATHOBJ_bEnumClipLines
svn path=/trunk/; revision=28742
2007-09-01 14:13:53 +00:00
Magnus Olsen
ae949a4864 update the good api list
svn path=/trunk/; revision=28741
2007-09-01 13:22:40 +00:00
Magnus Olsen
c3e3a01734 fix two typo thx ged
svn path=/trunk/; revision=28740
2007-09-01 13:10:36 +00:00
Magnus Olsen
14d7a9c6ea fast bugfix, NtGdiExtEscape should accpect a NULL hdc.
svn path=/trunk/; revision=28739
2007-09-01 13:05:33 +00:00
Magnus Olsen
01758ff86f add stub for : IsValidEnhMetaRecord and IsValidEnhMetaRecordOffExt, I have not search after any info about thuse api
follow api need have some part done in user mode : OffsetRgn, GetTextCharsetInfo, IntersectClipRect, OffsetClipRgn.
Implement partly NamedEscape we need metadc support to finish full implement 
follow api have been move from redirect to smaller code into hacks.c for they are ros own syscall and 
does not exists in windows, GetStretchBltMode, GetTextAlign, GetTextColor, MoveToEx, OffsetViewportOrgEx, OffsetWindowOrgEx.
redirect HT_Get8BPPMaskPalette, HT_Get8BPPFormatPalette, GetSystemPaletteUse to win32k

svn path=/trunk/; revision=28738
2007-09-01 12:52:23 +00:00
Art Yerkes
26eaf001f3 Set needed sizes for return buffers when we return an insufficient buffer
error.

svn path=/trunk/; revision=28737
2007-09-01 11:14:25 +00:00
Eric Kohl
bef3f9c7db Make all "OK" buttons default push buttons.
svn path=/trunk/; revision=28736
2007-09-01 10:37:01 +00:00
Art Yerkes
6b8a1ee32c Don't check inherit flags when checking access.
svn path=/trunk/; revision=28735
2007-09-01 10:04:15 +00:00
Magnus Olsen
5498466cc2 implement GetTextFaceAliasW <- the win32k part was already implement :)
svn path=/trunk/; revision=28734
2007-09-01 09:21:11 +00:00
James Tabor
1e038f4524 - Removed NtGdiPoly/Bezier/To and lineTo/Polyline/line. Updated w32ksvc.db and ntgdibad.h.
- Update gdi32.def.

svn path=/trunk/; revision=28733
2007-09-01 04:23:08 +00:00
James Tabor
e52ae16a81 Remove fixme in GetCurrentObject.
svn path=/trunk/; revision=28732
2007-09-01 02:54:36 +00:00
James Tabor
c8892c844b - Removed NtGdiPaintRgn and renamed NtGdiGetCurrentObject to NtGdiGetDCObject and NtGdiSetPixelV to GdiSetPixelV, w32ksvc.db and updated ntgdibad.h.
- Full use of painting.c, imp GetCurrentObject and update gdi32.def.

svn path=/trunk/; revision=28731
2007-09-01 02:51:48 +00:00
Magnus Olsen
b7c7180b3a fix implement of GetTextFaceW checking if the param is vaild or not
svn path=/trunk/; revision=28730
2007-09-01 00:23:48 +00:00
Magnus Olsen
112625358d implement GetTextExtentExPointI
svn path=/trunk/; revision=28729
2007-08-31 23:56:11 +00:00
Magnus Olsen
25340773cc implement GetTextExtentExPointWPri
svn path=/trunk/; revision=28728
2007-08-31 23:41:07 +00:00
Magnus Olsen
cb8070f587 redirect GetTextCharsetInfo to win32k
implement GetTextExtentPointI

svn path=/trunk/; revision=28727
2007-08-31 23:32:54 +00:00
Magnus Olsen
d9ec9c0779 implement GetStringBitmapA (left todo implement it in win32k.sys)
svn path=/trunk/; revision=28726
2007-08-31 22:33:53 +00:00
Magnus Olsen
abe208bcc5 implement GetStringBitmapW (left todo, implement it in win32k)
svn path=/trunk/; revision=28725
2007-08-31 22:21:35 +00:00
Magnus Olsen
f7d3b17972 implement stub for NtGdiGetStringBitmapW
svn path=/trunk/; revision=28724
2007-08-31 22:15:37 +00:00
Johannes Anderwald
d398f1b8d1 - fix typo
svn path=/trunk/; revision=28723
2007-08-31 21:22:19 +00:00
Magnus Olsen
77aba72c44 update the good api list
svn path=/trunk/; revision=28722
2007-08-31 20:55:10 +00:00
Magnus Olsen
196d2756e2 Add hacks.c contain api using only ros home made syscall
follow api have been move in there so far : GetPolyFillMode, GetGraphicsMode, GetROP2, SetDIBitsToDevice, SetBkMode, SetBkColor, SelectObject, GetMapMode
make follow in user mode : GetRgnBox, GetPixel
redirect GetMiterLimit to win32k.sys

svn path=/trunk/; revision=28721
2007-08-31 20:26:02 +00:00
Ged Murphy
282872d201 fix building of the new explorer
svn path=/trunk/; revision=28720
2007-08-31 19:26:11 +00:00
Magnus Olsen
bfee8ab1fd fix correct implemtions of GetRegionData in gdi32.dll
svn path=/trunk/; revision=28719
2007-08-31 18:48:30 +00:00
Magnus Olsen
87dc60c75b fix correct implement of GetPath
svn path=/trunk/; revision=28718
2007-08-31 18:19:09 +00:00
Magnus Olsen
dfa9b6f56f implement GetMetaRgn left todo fix it in win32k.sys
svn path=/trunk/; revision=28717
2007-08-31 17:46:06 +00:00
Hervé Poussineau
a86b4289ac Better assert + add LPDWORD type
Fix typo preventing livecd to be built

svn path=/trunk/; revision=28716
2007-08-31 17:21:41 +00:00
Magnus Olsen
7d2d0b3329 implement GetKerningPairsW (left todo implement it to win32k.sys)
svn path=/trunk/; revision=28715
2007-08-31 16:59:12 +00:00
Magnus Olsen
02c180f13c update the good api list
svn path=/trunk/; revision=28714
2007-08-31 16:23:33 +00:00
Magnus Olsen
10bd1e1854 Move more history api to the history file.
follow api have been move 
DdSwapTextureHandles aka gdientry16, GdiReleaseLocalDC, GdiDeleteLocalDC, DeviceCapabilitiesExA, DeviceCapabilitiesExW, FixBrushOrgEx to historic.c 
 

svn path=/trunk/; revision=28713
2007-08-31 16:17:28 +00:00
Ged Murphy
c1ef245d9e disable the dependancies dialog for now, there's no reason to show it until it's working
svn path=/trunk/; revision=28712
2007-08-31 15:57:48 +00:00
Magnus Olsen
36a71365d2 move dummy api / old api, that does not do anything to historic.c, they are left in gdi32.dll for make it backwords compatble with older program
follow api moves from stubs.c to historic.c 
GdiPlayDCScript, GdiPlayJournal, GdiPlayScript, GdiConvertBitmap, GdiConvertBrush, GdiConvertDC, GdiConvertFont, GdiConvertPalette, GdiConvertRegion, GdiSetAttrs, GdiSetServerAttr.

svn path=/trunk/; revision=28711
2007-08-31 15:49:19 +00:00
Eric Kohl
f81d4e1677 Implement key bounce options dialog. The test area does not work yet!
svn path=/trunk/; revision=28710
2007-08-31 15:43:51 +00:00
Magnus Olsen
ec96e8225c redirect GetFontUnicodeRanges to win32k.sys
svn path=/trunk/; revision=28709
2007-08-31 15:09:51 +00:00
Magnus Olsen
d365bf2125 implement stub for NtGdiGetFontUnicodeRanges
svn path=/trunk/; revision=28708
2007-08-31 15:08:37 +00:00
James Tabor
5ea25d9303 Move GetDCObject to dc.c.
svn path=/trunk/; revision=28707
2007-08-31 14:41:01 +00:00
Magnus Olsen
4d772974cc implement GetFontAssocStatus.
do correct implement of GetFontData, if the lpvBuffer are NULL in user mode, gdi32.dll always send in cbData as 0 to win32k.sys

svn path=/trunk/; revision=28706
2007-08-31 14:38:48 +00:00
Magnus Olsen
58b517d1c1 implement stub for NtGdiQueryFontAssocInfo
svn path=/trunk/; revision=28704
2007-08-31 14:35:07 +00:00
Hervé Poussineau
9dff58ee42 Fix boot
svn path=/trunk/; revision=28703
2007-08-31 14:10:49 +00:00
Magnus Olsen
488437098d Update the good api list
svn path=/trunk/; revision=28701
2007-08-31 12:32:40 +00:00
Magnus Olsen
e57e366637 implement GetEUDCTimeStampExW but still unimplement in win32k
svn path=/trunk/; revision=28700
2007-08-31 12:16:45 +00:00
Hervé Poussineau
69bf414aee Fix build
svn path=/trunk/; revision=28699
2007-08-31 11:38:51 +00:00
Magnus Olsen
3af7c913e6 revert back the typo change I did in AddFontResourceExW
svn path=/trunk/; revision=28698
2007-08-31 11:36:44 +00:00
Magnus Olsen
0904489152 Fix typo in : AddFontResourceExW
Redirect    : GetColorAdjustment, GetCharWidthInfo to win32k.sys
implement   : GetEUDCTimeStamp
add smaller code in user mode : GetDeviceCaps, GetCurrentPositionEx, GetCurrentObject, GetClipBox, GetCharWidthFloatW, GetCharWidth32W, GetCharABCWidths

svn path=/trunk/; revision=28697
2007-08-31 11:28:45 +00:00
Ged Murphy
4e695a6ed0 not sure how/why I copied the number instead of the id
svn path=/trunk/; revision=28696
2007-08-31 11:08:26 +00:00
Ged Murphy
2738379118 fix controlling a service from the properties dialog and update the listview accordingly
svn path=/trunk/; revision=28695
2007-08-31 11:03:29 +00:00
Daniel Reimer
76504577f3 Update the German Translation of Ged's Service Manager.
svn path=/trunk/; revision=28694
2007-08-31 09:54:27 +00:00
Hervé Poussineau
03980448f8 Implement IsUserAnAdmin(), by copying implementation of IsUserAdmin() in setupapi (was implemented by Eric Kohl)
Redirect setupapi.IsUserAdmin to shell32.IsUserAnAdmin

svn path=/trunk/; revision=28693
2007-08-31 09:49:48 +00:00
Ged Murphy
3095e9d9e8 only enable the delete and create service buttons for administrators
svn path=/trunk/; revision=28692
2007-08-31 09:27:11 +00:00
Ged Murphy
32841791ae - report successful deletion
- refresh service list upon creation

svn path=/trunk/; revision=28691
2007-08-31 08:21:47 +00:00
Ged Murphy
144f0b2c27 make the create service code a little more readable and reliable.
svn path=/trunk/; revision=28690
2007-08-30 23:06:12 +00:00
Magnus Olsen
2c1780806e implement GetDeviceGammaRamp
svn path=/trunk/; revision=28689
2007-08-30 22:20:16 +00:00
Magnus Olsen
4fd8100175 update the good api list
svn path=/trunk/; revision=28688
2007-08-30 21:02:45 +00:00
Magnus Olsen
439c9ab215 implement : GetBoundsRect
remove redirect for follow api for they are need more stuff in user mode
GetBkColor, GetBkMode, GetBrushOrgEx, GetCharABCWidthsFloatW

svn path=/trunk/; revision=28687
2007-08-30 20:55:31 +00:00
Magnus Olsen
7c02bd07a1 add <define name="LANGPACK" /> should fix the build
svn path=/trunk/; revision=28686
2007-08-30 20:18:38 +00:00
Magnus Olsen
417c217247 do not hide stub with a DPRINT1 print it
svn path=/trunk/; revision=28685
2007-08-30 20:01:59 +00:00
Peter Ward
67896de824 French translations by Pierre Schweitzer (see bug 2618):
- Translation for win32csr.
- Fix two mistakes in the servman translation.

svn path=/trunk/; revision=28684
2007-08-30 19:56:50 +00:00
Magnus Olsen
5ba61edda1 implement stub for NtGdiHT_Get8BPPFormatPalette, NtGdiHT_Get8BPPMaskPalette, NtGdiUpdateTransform, NtGdiSetPUMPDOBJ, NtGdiBRUSHOBJ_DeleteRbrush, NtGdiUMPDEngFreeUserMem, NtGdiDrawStream
svn path=/trunk/; revision=28683
2007-08-30 19:35:59 +00:00
Magnus Olsen
5fefe33526 implement stub for NtGdiGetGlyphIndicesW, NtGdiGetGlyphIndicesWInternal, NtGdiGetLinkedUFIs, NtGdiGetMonitorID, NtGdiGetObjectBitmapHandle, NtGdiGetRealizationInfo
svn path=/trunk/; revision=28681
2007-08-30 19:24:17 +00:00
Magnus Olsen
0096b32061 implement GdiConvertPalette, GdiConvertRegion
svn path=/trunk/; revision=28680
2007-08-30 19:05:43 +00:00
Magnus Olsen
d21581599d redirect GdiSetLastError to SetLastError (who did forget GdiSetLastError and SetLastError are same, now it is implement as well)
svn path=/trunk/; revision=28679
2007-08-30 18:52:57 +00:00
Magnus Olsen
eb1bff28c5 fix the build
svn path=/trunk/; revision=28678
2007-08-30 18:39:08 +00:00
Magnus Olsen
9780c9b363 fix a typo
svn path=/trunk/; revision=28677
2007-08-30 18:38:31 +00:00
Magnus Olsen
15499d174f Implement GdiReleaseLocalDC, GdiFlush, GdiPlayDCScript, GdiPlayJournal, GdiPlayScript, GdiConvertBitmap, GdiConvertBrush, GdiConvertDC, GdiConvertFont, GdiSetAttrs
Redirect GdiConsoleTextOut, FontIsLinked, GdiDescribePixelFormat, GdiSetPixelFormat, GdiSwapBuffers, GdiFullscreenControl, GdiQueryFonts, GdiInitSpool to win32k.sys
do not redirect add smaller code in gdi32 and use share memory : GdiGradientFill, FrameRgn, GdiTransparentBlt
stub : GdiPrinterThunk, GdiConvertBitmapV5
update good api list. 

svn path=/trunk/; revision=28676
2007-08-30 18:06:35 +00:00
Magnus Olsen
280e3b52d4 implement stub for NtGdiInitSpool, NtGdiQueryFonts, NtGdiGetSpoolMessage.
the NtGdiGetSpoolMessage missing the protypes. 

svn path=/trunk/; revision=28675
2007-08-30 17:38:40 +00:00
Johannes Anderwald
c7b707f3fc - create a batch file to execute the commands required for sysreg
svn path=/trunk/; revision=28674
2007-08-30 17:20:32 +00:00
Magnus Olsen
19bf3dba24 adding prototype for NtGdiInitSpool()
svn path=/trunk/; revision=28673
2007-08-30 16:28:28 +00:00
Daniel Reimer
461943f891 Translate the new Restart Button into German
svn path=/trunk/; revision=28672
2007-08-30 16:26:24 +00:00
Ged Murphy
1fc9170197 update the visual service count when a service is deleted
svn path=/trunk/; revision=28671
2007-08-30 13:39:59 +00:00
Ged Murphy
5bdb637cb7 - implement setting the service description
- fix deleting of a service

svn path=/trunk/; revision=28670
2007-08-30 12:27:11 +00:00
Ged Murphy
4862094dd0 fix build. didn't realise this was still used.
svn path=/trunk/; revision=28669
2007-08-30 09:57:08 +00:00
Ged Murphy
1bf6653228 - remove the last of the reactos hacks of reading directly from the service's registry keys.
- servman appears to be broken in reactos at the moment, but it is actually implemented correctly now. It awaits widl / rpcrt4 updates and a working services.exe.

svn path=/trunk/; revision=28668
2007-08-30 09:29:45 +00:00
Hervé Poussineau
7395ac2cc6 [FORMATTING] Fix spaces/tabs mess
No code change.

svn path=/trunk/; revision=28667
2007-08-30 08:38:30 +00:00
Johannes Anderwald
157fa523ae - add linux path
- fix bug in getDefaultHDDImage
- sysreg can now create the hdd image and start the emulator

svn path=/trunk/; revision=28665
2007-08-30 00:05:29 +00:00
Ged Murphy
c8026e017e release the image resource once it's assigned
svn path=/trunk/; revision=28664
2007-08-29 23:05:23 +00:00
Johannes Anderwald
d374f7cbb0 - always create a hdd image if theres no default one
svn path=/trunk/; revision=28663
2007-08-29 22:38:44 +00:00
Johannes Anderwald
8d1c787d57 - missed that
svn path=/trunk/; revision=28662
2007-08-29 22:28:30 +00:00
Johannes Anderwald
4adb5cb9a7 - in theory arguments start at argv[1] - so this needs to be passed to qemu-img
svn path=/trunk/; revision=28661
2007-08-29 22:27:30 +00:00
Johannes Anderwald
0dd03527da - silence debug messages
svn path=/trunk/; revision=28660
2007-08-29 22:14:47 +00:00
Johannes Anderwald
be17f95ee8 - check if qemu-img exists for attempting to create hdd image
svn path=/trunk/; revision=28659
2007-08-29 22:09:07 +00:00
Johannes Anderwald
628a33b902 - add options required for sysreg
svn path=/trunk/; revision=28658
2007-08-29 21:10:42 +00:00
Johannes Anderwald
7d883c8352 - fix 2 bugs in unattend setup
- add option to start dbgprint.exe on 3rd boot when unattend key BootCDRegtestActive key is found (this makes sysreg detect that the 3rd boot has completed successfully)


svn path=/trunk/; revision=28657
2007-08-29 21:10:05 +00:00
Ged Murphy
592433992d add the remaining code for changing the list view text
svn path=/trunk/; revision=28656
2007-08-29 20:20:23 +00:00
Johannes Anderwald
0dd73d72c9 - add description for LocalID setting
svn path=/trunk/; revision=28655
2007-08-29 20:18:16 +00:00
Johannes Anderwald
3e77d24896 - close unattend inf in case of errors
- correctly convert provided LCID (with base 16)
- verify provided LCID with installed languages
- thanks to Colin_Fink

svn path=/trunk/; revision=28654
2007-08-29 20:13:27 +00:00
Ged Murphy
dcae8a5dc5 use the provided apis instead of reading directly from the registry
svn path=/trunk/; revision=28653
2007-08-29 19:36:58 +00:00
Ged Murphy
25ad5d5103 split the code, some files were getting too long
svn path=/trunk/; revision=28652
2007-08-29 18:10:58 +00:00
Ged Murphy
4ab28a9dcf - implement changing of the startup type from the properties dialog
- add functionality for changing the startup type listview text
- fix a couple of bugs

svn path=/trunk/; revision=28651
2007-08-29 15:46:52 +00:00
Peter Ward
dc17eb77d0 _really fix it this time. (and on with the language saga)
svn path=/trunk/; revision=28650
2007-08-29 13:31:04 +00:00
Peter Ward
39088be599 - Fix the friggin language file.
svn path=/trunk/; revision=28649
2007-08-29 13:23:24 +00:00
Peter Ward
985938a35d Forgot the eol style as well...
svn path=/trunk/; revision=28648
2007-08-29 12:56:18 +00:00
Peter Ward
80cf392257 Forgot this file... somehow
svn path=/trunk/; revision=28647
2007-08-29 12:46:14 +00:00
Peter Ward
1d2dcde9b5 Updated french translations by Pierre Schweitzer for:
- servman, explorer, access, mmsys, sysdm and syssetup.

svn path=/trunk/; revision=28646
2007-08-29 12:33:50 +00:00
Eric Kohl
639a2712f4 Implement basic filter keys settings
svn path=/trunk/; revision=28645
2007-08-29 11:47:37 +00:00
Ged Murphy
a4ebd5b085 Add functionality for changing the service config. unused at the moment.
svn path=/trunk/; revision=28644
2007-08-29 09:42:31 +00:00
Art Yerkes
8da0438ac6 Move creation of global objects to csrss as specified in the fixmes. Whatever
was broken before that prevented this seems to have been resolved.

svn path=/trunk/; revision=28643
2007-08-29 05:57:00 +00:00
Christoph von Wittich
72d3e9bd7e fix linux build
svn path=/trunk/; revision=28642
2007-08-28 23:47:54 +00:00
Johannes Anderwald
247523e709 - always wait and then kill the emulator
svn path=/trunk/; revision=28640
2007-08-28 22:48:40 +00:00
Johannes Anderwald
f918874665 - fix compilation
svn path=/trunk/; revision=28639
2007-08-28 22:47:16 +00:00
Johannes Anderwald
f2f35ad546 - remove hack
svn path=/trunk/; revision=28638
2007-08-28 22:36:21 +00:00
Johannes Anderwald
b0f1744735 - remove hack
svn path=/trunk/; revision=28637
2007-08-28 22:28:56 +00:00
James Tabor
cfae2a0eeb - Removed NtGdiPoly/Polygon from source, w32ksvc.db and updated ntgdibad.h.
- Renamed the Nt function to GdiCreatePolyPolygonRgn, it is not safe so it will not be named to IntGdiXxX.

svn path=/trunk/; revision=28636
2007-08-28 22:11:55 +00:00
Johannes Anderwald
063ab9a152 - if'd ROS_EMU_TYPE
- check for cdrom images + hdd images
- check provided image and qemu paths
- search for default cdrom image + hdd image

svn path=/trunk/; revision=28635
2007-08-28 22:07:54 +00:00
James Tabor
11cb1770c2 Plugin PolyPolygon, Polygon uses the same code and tested good.
svn path=/trunk/; revision=28634
2007-08-28 21:29:03 +00:00
Ged Murphy
bdcae44cbc missed a return type
svn path=/trunk/; revision=28633
2007-08-28 20:13:42 +00:00
Ged Murphy
d19fc5d52d fix IsUserAnAdmin
svn path=/trunk/; revision=28632
2007-08-28 20:13:09 +00:00
Colin Finck
68c9a2c5a0 Include "windef.h" in "mkstemps.c" for our wchar_t check.
This is just a temporary solution for fixing the compilation on Mac OS X hosts until host and target headers are fully separated.

svn path=/trunk/; revision=28631
2007-08-28 20:03:15 +00:00
Ged Murphy
07c2f6d0c5 - improve the start code
- add an edit button on the properties dialog to give admins the option to modify the service config

svn path=/trunk/; revision=28630
2007-08-28 19:54:25 +00:00
Johannes Anderwald
c94ecb5367 - update documentation
- implement wait for linux

svn path=/trunk/; revision=28626
2007-08-28 19:06:02 +00:00
Johannes Anderwald
2d0f7aa512 - silence a few debug messages
- implement creating of disk images with qemu-img for windows

svn path=/trunk/; revision=28624
2007-08-28 18:41:08 +00:00
Johannes Anderwald
df0b2c80d4 - include unattend.inf from boot/bootdata/bootcdregtest
svn path=/trunk/; revision=28623
2007-08-28 17:32:30 +00:00
Johannes Anderwald
edc4c2dc67 - add unattend.inf for bootcdregtest
svn path=/trunk/; revision=28622
2007-08-28 17:32:05 +00:00
Colin Finck
b04c880c20 Uncomment german translation again, this change accidentally got into my previous commit
svn path=/trunk/; revision=28621
2007-08-28 16:01:59 +00:00
Colin Finck
3124187a40 - Remove most of the Usage text from the german translation. It was just copied from the Windows "more" utility and our tool does not support any of the extended options yet.
I changed the text, so it only includes the features we currently support.
- Change SUBLANG_DEFAULT to SUBLANG_NEUTRAL in the german translation
- Add an English (US) translation
- Use a consistent indentation in "more.c"
- Exit the tool if reading IDS_CONTINUE fails instead of falling back to a hardcoded string

svn path=/trunk/; revision=28620
2007-08-28 15:54:19 +00:00
Timo Kreuzer
b91657fe81 - rename ASSERT1 to ASSERT
- link to w32kdll instead of implementing all syscalls as stubs. I will remove the rest of the syscall code as soon as our syscall db is more complete
- more TEST -> RTEST
- update w32kdll_ros.def
- add tests for NtGdiEngCreatePalette, NtGdiEnumFontOpen
- Add some gdi handle table code to w32knapi
- header cleanup

svn path=/trunk/; revision=28619
2007-08-28 15:06:36 +00:00
Ged Murphy
fd255663f3 - don't read the description directly from the registry
- give each property dialog it's own service data instead of relying on the the global current. This will eventually allow us to have multiple property dialogs open.

svn path=/trunk/; revision=28618
2007-08-28 14:49:47 +00:00
Hervé Poussineau
66747af942 Install VBE and VGA drivers when a compatible graphic adapter is detected
See issue #2589 for more details.

svn path=/trunk/; revision=28617
2007-08-28 14:27:23 +00:00
Johannes Anderwald
3e30ff41ef - search for ReactOS installation cd and try locate directly the unattend.inf. This allows us to use the _same_ unattend.inf which is used in usetup. As a result we no longer need to put a second unattend.inf in the reactos.cab which revives the bootcdregtest
svn path=/trunk/; revision=28616
2007-08-28 14:00:24 +00:00
Hervé Poussineau
c7416046e2 Revert r28603 and add the correct fix
svn path=/trunk/; revision=28615
2007-08-28 13:40:56 +00:00
Hervé Poussineau
a326fd84cb Forgot one file
svn path=/trunk/; revision=28614
2007-08-28 06:35:54 +00:00
Johannes Anderwald
3a6d290604 - implement AutoPartioning
- set AutoPartition = 1 if you want unattended setup to create one partition with maximum size of disk

svn path=/trunk/; revision=28613
2007-08-27 20:03:06 +00:00
Ged Murphy
415b655dfe - update the stored service status after attempting to change it
- add functionality for changing the list view text and use it to change the status text
- various other bits and bobs

svn path=/trunk/; revision=28612
2007-08-27 19:31:09 +00:00
Johannes Anderwald
8512542ef5 - fix typo and compilation under windows
svn path=/trunk/; revision=28610
2007-08-27 18:53:31 +00:00
Colin Finck
082b2c7533 Also add mIRC 6.21 to the "downloader.xml" in Trunk
svn path=/trunk/; revision=28609
2007-08-27 18:50:30 +00:00
Johannes Anderwald
b60c3ecf5a - autopartition setting and DisableVmInst should not be in the GuiRunOnce section
svn path=/trunk/; revision=28607
2007-08-27 18:48:23 +00:00
Johannes Anderwald
aade40eea8 - add description for AutoPartition setting to unattend.inf.sample
svn path=/trunk/; revision=28606
2007-08-27 18:41:53 +00:00
Johannes Anderwald
98a0698dc8 - implement an AutoPartition setting in usetup (needs to be tested though yet)
svn path=/trunk/; revision=28605
2007-08-27 18:40:02 +00:00
Hervé Poussineau
abcc833c45 qsort() prototype in stdlib.h doesn't specify that callback function must be __cdecl
svn path=/trunk/; revision=28603
2007-08-27 15:26:39 +00:00
Hervé Poussineau
a011fbf1c2 Define NTAPI and WINAPI to nothing, because host tools can use the default calling convention.
This change is correct because we are *not* linking host tools with Windows/ReactOS libraries

svn path=/trunk/; revision=28602
2007-08-27 14:56:14 +00:00
Hervé Poussineau
7cd48df5b6 Do not include <ntddk.h> when compiling cmlib_host. This file defines too much things.
svn path=/trunk/; revision=28599
2007-08-27 12:47:56 +00:00
Peter Ward
62a91eb656 - Fix a warning reported by Gregor Brunmar.
svn path=/trunk/; revision=28598
2007-08-27 11:57:02 +00:00
Hervé Poussineau
18af7ec60d Link to wine library if we are using Wine-style debug macros
svn path=/trunk/; revision=28597
2007-08-27 11:43:50 +00:00
Hervé Poussineau
513a12418d Rely only on host headers (+ target ntstatus.h) to build mkhive
svn path=/trunk/; revision=28596
2007-08-27 09:32:52 +00:00
Hervé Poussineau
36235f6d7f Use host crt when building mkhive tool
svn path=/trunk/; revision=28595
2007-08-27 07:36:25 +00:00
Hervé Poussineau
58f1fa340a Rename CFLAGS to HOST_FLAGS, CPPFLAGS to HOST_CPPFLAGS, LFLAGS to HOST_LFLAGS
svn path=/trunk/; revision=28594
2007-08-27 07:21:26 +00:00
Hervé Poussineau
7b6bb2a6fd Update shell32 tests
svn path=/trunk/; revision=28593
2007-08-27 07:03:32 +00:00
James Tabor
11b12696f1 Add new gdi object type. Discovered and documented by Timo Kreuzer.
svn path=/trunk/; revision=28592
2007-08-27 06:57:46 +00:00
Hervé Poussineau
6c31cb21d1 Add some missing definitions
Fix wrong structure alignment

svn path=/trunk/; revision=28591
2007-08-27 06:56:39 +00:00
James Tabor
abf715b9b2 Update ENUMFONTDATAW structure based on returned data.
svn path=/trunk/; revision=28590
2007-08-27 06:38:51 +00:00
Art Yerkes
067d30c566 Slight improvement: When terminating the process, kill sibling threads first.
We'll need this for synchronization at process termination among other things.
Thanks alex for pointing out that we didn't do this.

svn path=/trunk/; revision=28589
2007-08-27 05:00:03 +00:00
Johannes Anderwald
2c932d0e3a - fix warning
svn path=/trunk/; revision=28588
2007-08-26 23:56:05 +00:00
Johannes Anderwald
c48c7cff18 - add restart button by Vytis Girdzijauskas, "CMan", cman[at]cman[dot]us
- the icon is taken from the tango project (see view-refresh.svg)

See issue #2599 for more details.

svn path=/trunk/; revision=28587
2007-08-26 23:41:04 +00:00
Magnus Olsen
40ae71f23d fix the build
svn path=/trunk/; revision=28586
2007-08-26 23:01:18 +00:00
Johannes Anderwald
9b57eaeea0 - dont show the same resolution multiple times
- sort the resolution according to width, height and bits per pixel

See issue #2594 for more details.

svn path=/trunk/; revision=28585
2007-08-26 22:43:51 +00:00
Magnus Olsen
8598e12a2a Implement stub for NtGdiDvpGetVideoPortField, NtGdiDvpGetVideoPortFlipStatus, NtGdiDvpGetVideoPortInputFormats, NtGdiDvpGetVideoPortLine, NtGdiDvpGetVideoPortOutputFormats, NtGdiDvpGetVideoPortConnectInfo, NtGdiDvpGetVideoSignalStatus, NtGdiDvpUpdateVideoPort, NtGdiDvpWaitForVideoPortSync, NtGdiDvpAcquireNotification, NtGdiDvpReleaseNotification, NtGdiDxgGenericThunk,
NtGdiDeleteColorTransform, NtGdiGetPerBandInfo, NtGdiDoBanding, NtGdiEnumFontChunk, NtGdiEnumFontClose, NtGdiEnumFontOpen, NtGdiEudcLoadUnloadLink, NtGdiExtTextOutW, NtGdiForceUFIMapping, NtGdiFullscreenControl, NtGdiGetAppClipBox, NtGdiGetCharABCWidthsW, NtGdiGetCharacterPlacementW, NtGdiGetCharWidthW, NtGdiGetCharWidthInfo, NtGdiGetColorSpaceforBitmap, NtGdiGetDCforBitmap, NtGdiGetDCObject, NtGdiGetDeviceCapsAll, NtGdiGetETM, NtGdiGetEudcTimeStampEx

svn path=/trunk/; revision=28584
2007-08-26 22:03:02 +00:00
Johannes Anderwald
ed306957a1 - creation of empty environment variables should not be possible (tested under Windows XP SP2)
- dont create variables when cancel is hit
- bug report + patch by Gregor Schneider (aka DosX)
See issue #2600 for more details.

svn path=/trunk/; revision=28583
2007-08-26 21:42:48 +00:00
Magnus Olsen
ac5c71eddd Implement stub for NtGdiClearBrushAttributes, NtGdiColorCorrectPalette, NtGdiComputeXformCoefficients, NtGdiConsoleTextOut, NtGdiConvertMetafileRect, NtGdiCreateColorTransform, NtGdiDvpCanCreateVideoPort, NtGdiDvpColorControl, NtGdiDvpCreateVideoPort, NtGdiDvpDestroyVideoPort, NtGdiDvpFlipVideoPort, NtGdiDvpGetVideoPortBandwidth
svn path=/trunk/; revision=28582
2007-08-26 20:33:56 +00:00
Magnus Olsen
c01447f00f redirect FONTOBJ_cGetAllGlyphHandles, FONTOBJ_cGetGlyphs, FONTOBJ_pQueryGlyphAttrs, FONTOBJ_pfdg, FONTOBJ_pifi, FONTOBJ_pvTrueTypeFontFile, FONTOBJ_pxoGetXform, FONTOBJ_vGetInfo to win32k.sys
do not redirect ExcludeClipRect, ExtSelectClipRgn, FillRgn to win32k.sys, make a smaller functions in gdi32 for now, we need write more thing in user mode. 

svn path=/trunk/; revision=28581
2007-08-26 20:00:40 +00:00
Eric Kohl
0d9818dc28 Add cursor options to the display page.
svn path=/trunk/; revision=28580
2007-08-26 19:58:13 +00:00
Magnus Olsen
2f4d36ee4d Implement stub for NtGdiAddFontResourceW, NtGdiAddRemoteFontToDC, NtGdiAddFontMemResourceEx, NtGdiRemoveMergeFont, NtGdiAddRemoteMMInstanceToDC, NtGdiFontIsLinked, NtGdiCheckBitmapBits, NtGdiClearBitmapAttributes, NtGdiCreateDIBitmapInternal, NtGdiCreateMetafileDC, NtGdiCreatePaletteInternal, NtGdiCreateServerMetaFile, NtGdiGetUFI, NtGdiFONTOBJ_vGetInfo, NtGdiFONTOBJ_pxoGetXform, NtGdiFONTOBJ_cGetGlyphs, NtGdiFONTOBJ_pifi, NtGdiFONTOBJ_pfdg, NtGdiFONTOBJ_pQueryGlyphAttrs, NtGdiFONTOBJ_pvTrueTypeFontFile, NtGdiFONTOBJ_cGetAllGlyphHandles
svn path=/trunk/; revision=28579
2007-08-26 19:56:06 +00:00
Hervé Poussineau
d45b397464 Remove psdk dependency, as it is automatically added
svn path=/trunk/; revision=28578
2007-08-26 19:06:31 +00:00
Johannes Anderwald
6085c5e625 - if partition cannot be selected, let user create partition themselves
- autopartitioning still needs to be done
See issue #2593 for more details.

svn path=/trunk/; revision=28576
2007-08-26 18:19:23 +00:00
Aleksey Bragin
aad59dfc19 - Fix boot (thx hpoussin for hint).
svn path=/trunk/; revision=28575
2007-08-26 18:18:48 +00:00
Hervé Poussineau
149ea4f5f4 Try to fix infinite loop in "make depends"
svn path=/trunk/; revision=28574
2007-08-26 12:52:14 +00:00
Hervé Poussineau
dec7775361 Fix {module}_depends targets
svn path=/trunk/; revision=28573
2007-08-26 12:31:12 +00:00
Hervé Poussineau
c34ec8ad1d Transform psdk into a real dependency, instead of a target only created after rbuild.
Fixes case where compilation wasn't stopping if rbuild was failing/crashing

svn path=/trunk/; revision=28572
2007-08-26 12:06:28 +00:00
Magnus Olsen
718e6afb4c patch from Gregor Brunmar (gregor dot brunmar at home dot se)
* Added folder support for msvc+solution generation in rbuild
 * map up pch .h file as include file in vc project files.


svn path=/trunk/; revision=28571
2007-08-26 09:57:30 +00:00
Andrew Munger
63872a8e79 NtQueryInformationProcess:
Return STATUS_INFO_LENGTH_MISMATCH where appropriate, and return the needed length in any case.
"ntdll_winetest info" now has 5 failures.

svn path=/trunk/; revision=28570
2007-08-26 07:51:51 +00:00
Andrew Munger
03f90f222d NtQuerySystemInformation:
Do not blindly zero the buffer with the size sent in by the caller. This fixes the stack smash "ntdll_winetest info" was seeing. Thanks to arty for catching it.
Remove the nested SEH.
"ntdll_winetest info" now has 16 failures.

svn path=/trunk/; revision=28569
2007-08-26 07:39:29 +00:00
James Tabor
8fd9f85a76 AXESLIST, AXISINFO and ENUMTEXTMETRIC structures. Updated ENUMFONTDATAW structure with my best guess. It needs testing with Timo program.
svn path=/trunk/; revision=28568
2007-08-26 01:50:14 +00:00
Colin Finck
92877709d1 Some french additions and file header changes by Pierre Schweitzer (heis_spiter AT hotmail DOT com)
See issue #2530 for more details.

svn path=/trunk/; revision=28567
2007-08-25 22:17:35 +00:00
Colin Finck
b7c9a43ec4 More build fixes for Mac OS X by changing the header order (wrc.h, which includes windef.h, which includes winnt.h has to be included before stdlib.h)
I know that this is another change in a Wine-shared component, but as long as we don't come to a better solution for these problems, I'll continue doing such small changes for fixing the build.

svn path=/trunk/; revision=28566
2007-08-25 22:12:24 +00:00
Colin Finck
d465769732 Catalan translation of Solitaire by Marc Tormo i Bochaca (mtbochaca AT ya DOT com)
See issue #2580 for more details.

svn path=/trunk/; revision=28565
2007-08-25 21:36:07 +00:00
Magnus Olsen
7b5444b1e9 Alex is god of haven and shall rise to the sky ... (my poem to alex for he found I did a mistake)
in protypes for NtGdiEngCreateDeviceSurface, NtGdiEngCreateDeviceBitmap, NtGdiEngCreateBitmap
Part (2/2)

svn path=/trunk/; revision=28560
2007-08-25 19:25:24 +00:00
Magnus Olsen
630763066e Alex is god of haven and shall rise to the sky ... (my poem to alex for he found I did a mistake)
in protypes for NtGdiEngCreateDeviceSurface, NtGdiEngCreateDeviceBitmap, NtGdiEngCreateBitmap
Part (1/2)

svn path=/trunk/; revision=28559
2007-08-25 19:24:20 +00:00
Johannes Anderwald
4598afc8bb - fix typo
svn path=/trunk/; revision=28558
2007-08-25 18:40:23 +00:00
Johannes Anderwald
cf7c5bc702 -fix build some broke
svn path=/trunk/; revision=28557
2007-08-25 18:35:14 +00:00
Daniel Reimer
0a7ed18bbc Some fixes in my translation to let the text better fit.
svn path=/trunk/; revision=28556
2007-08-25 17:38:23 +00:00
Magnus Olsen
e4e94438f6 implement EngUnlockSurface
svn path=/trunk/; revision=28555
2007-08-25 17:36:45 +00:00
Magnus Olsen
2144841165 implement NtGdiEngLockSurface (not tested)
svn path=/trunk/; revision=28554
2007-08-25 17:34:03 +00:00
Colin Finck
9bb0ac0bd6 - Hardcode the Window Class string, there is no reason for it to be in localized resource files
- Remove duplicate header inclusions

svn path=/trunk/; revision=28553
2007-08-25 17:24:27 +00:00
Magnus Olsen
1fe725113b partly implement EngComputeGlyphSet in eng.c
move EngMultiByteToWideChar, EngQueryLocalTime, EngReleaseSemaphore from stub.c to eng.c
start implement of EngQueryEMFInfo need bit more figout how it is done

svn path=/trunk/; revision=28552
2007-08-25 17:12:59 +00:00
Magnus Olsen
02eec98371 implement stub for NtGdiEngComputeGlyphSet
svn path=/trunk/; revision=28551
2007-08-25 17:09:10 +00:00
Ged Murphy
0cdfc0038a fix the contact address
svn path=/trunk/; revision=28550
2007-08-25 15:57:27 +00:00
Ged Murphy
b0f23f18e1 - implement restarting of services
- update the main interface to reflect the state of the service after an attempt to change it's status

svn path=/trunk/; revision=28549
2007-08-25 15:51:55 +00:00
Daniel Reimer
8ec5ae847a German Translation for Magnifier. (Made by myself)
svn path=/trunk/; revision=28548
2007-08-25 15:39:51 +00:00
Ged Murphy
3e6a02c31d fix a typo
svn path=/trunk/; revision=28547
2007-08-25 15:18:45 +00:00
Ged Murphy
652314013e send the correct control message
svn path=/trunk/; revision=28546
2007-08-25 14:55:02 +00:00
Ged Murphy
28fcd88033 fix stop / pause / resume
svn path=/trunk/; revision=28545
2007-08-25 14:51:36 +00:00
Colin Finck
213b5a62d7 French translation for Magnify by Pierre Schweitzer (heis_spiter AT hotmail DOT com)
See issue #2531 for more details.

svn path=/trunk/; revision=28544
2007-08-25 14:36:22 +00:00
Magnus Olsen
4227e0ee25 move EngFreeModule, EngGetCurrentCodePage, EngGetPrinterDataFileName, EngLoadModule from stub.c to eng.c
svn path=/trunk/; revision=28543
2007-08-25 14:23:48 +00:00
Magnus Olsen
96fc91c2b8 add a new file call eng.c
remove EngAcquireSemaphore, EngCreateSemaphore, EngDeleteSemaphore, EngFindResource implement from stub.c to eng.c 
rewrite smaller part of EngFindResource so it works likes windows xp.
 

svn path=/trunk/; revision=28542
2007-08-25 14:07:00 +00:00
Ged Murphy
1adba33d1e code improvements and various bug fixes
svn path=/trunk/; revision=28541
2007-08-25 13:41:44 +00:00
Magnus Olsen
850675cbdd make AddFontResourceExA lite faster.
svn path=/trunk/; revision=28540
2007-08-25 11:38:35 +00:00
Magnus Olsen
2b7a66234a Fix : make AddFontResourceA acts like AddFontResourceW
Fix : smaller typo in AddFontResourceW 

svn path=/trunk/; revision=28539
2007-08-25 11:34:16 +00:00
Sylvain Petreolle
2c540b735a report freeldr bugs at ros-dev@reactos.org
svn path=/trunk/; revision=28538
2007-08-25 09:58:30 +00:00
Aleksey Bragin
37ae229f62 - Do not ignore BIOS memory map anymore. Private BIOS ranges (such as ACPI, SMBIOS, VideoROM, etc) are not assumed "free" anymore (which would result in hardware failure, crashes and/or corrupted memory).
- Enhance the FreeLDR 2 NTLDR Compatibility Layer:
 * Use a special routine for grabbing static memory descriptors, so that if we ever run out, we will bugcheck.
 * The descriptors need to contain physical addresses, not virtual. Do proper fixups to handle this.
 * Add a "Free" memory descriptor for all memory on the system. This needs to be fragmented later.
 * Add memory descriptors for each reserved entry in the BIOS memory map.
 * Add memory descriptors for the PDE and KPCR pages that FreeLDR allocates.
 * Add a memory descriptor for page 0, which is reserved.
 * Add a memory descriptor for the Video frame buffer at 0xA0000. This is the location on most systems, and also the location that ReactOS hard-codes in other Mm code.
- Bug found and NTLDR memory descriptor analysis by Alex.


svn path=/trunk/; revision=28537
2007-08-25 09:38:13 +00:00
Colin Finck
9ec7d785cb Revert r28526 for now until a problem for the livecd breakage has been found
svn path=/trunk/; revision=28536
2007-08-25 09:00:19 +00:00
Magnus Olsen
c8983b1354 forget some stubs
svn path=/trunk/; revision=28535
2007-08-24 23:54:44 +00:00
Magnus Olsen
5f81ef10bf update the good list of api
svn path=/trunk/; revision=28534
2007-08-24 22:46:38 +00:00
Magnus Olsen
2b32773575 * redirect EngCopyBits, EngCreateBitmap, EngCreatePalette, EngDeletePalette, EngDeletePath, EngDeleteSurface, EngEraseSurface, EngFillPath, EngMarkBandingSurface, EngPaint, EngPlgBlt, EngStrokeAndFillPath, EngStrokePath, EngTextOut, EngTransparentBlt to win32k.sys
* add smaller code for Ellipse
* redirect EngMultiByteToUnicodeN to RtlMultiByteToUnicodeN
* redirect EngUnicodeToMultiByteN to RtlUnicodeToMultiByteN

svn path=/trunk/; revision=28533
2007-08-24 22:44:36 +00:00
Magnus Olsen
fa0d1f8d20 add stub for NtGdiEngPlgBlt, NtGdiEngMarkBandingSurface, NtGdiEngFillPath, NtGdiEngPaint, NtGdiEngLineTo, NtGdiEngGradientFill, NtGdiEngStretchBltROP
svn path=/trunk/; revision=28532
2007-08-24 22:24:26 +00:00
Timo Kreuzer
71b085c651 - Simplify w32knapi. It now always uses w32kdll.dll
Copy the right dll into the same folder as w32knapi.exe (name must be w32kdll.dll) to make it work of different windows versions and ros of cause.
Tested on win xp.

svn path=/trunk/; revision=28531
2007-08-24 22:23:44 +00:00
Magnus Olsen
2154cc31a3 add stub for NtGdiEngDeleteSurface, NtGdiEngEraseSurface, NtGdiEngStrokeAndFillPath, NtGdiEngDeletePath
svn path=/trunk/; revision=28530
2007-08-24 21:57:50 +00:00
Timo Kreuzer
f268892b03 - move NtGdiGetAspectRatioFilterEx from text.c to dc.c
- move 2 prototypes from text.c to text.h

svn path=/trunk/; revision=28529
2007-08-24 21:49:12 +00:00
Magnus Olsen
a992736766 add stub for NtGdiEngCreateBitmap, NtGdiEngCreatePalette, NtGdiEngCopyBits, NtGdiEngDeletePalette, NtGdiEngStrokePath, NtGdiEngTransparentBlt, NtGdiEngTextOut
svn path=/trunk/; revision=28528
2007-08-24 21:42:06 +00:00
Magnus Olsen
44b52a90f7 NtGdiEngCreateBitmap got one undoc param
svn path=/trunk/; revision=28527
2007-08-24 21:39:49 +00:00
Colin Finck
31995f945e rbuild enhancements by Marc Piulachs (marc DOT piulachs AT codexchange DOT net):
- Provided an unifed way to resolve path macros ($Output) , ($Intermediate) , ($CDOUTPUT) and ($INSTALL)
- Removed some redundant code and place it in a global function 
- Modify media/inf/inf.rbuild to point to the correct location of the autogenerated syssetup.inf in ($Ouput) folder
- Other minor enhancements and modifications


See issue #2567 for more details.

svn path=/trunk/; revision=28526
2007-08-24 21:31:37 +00:00
Magnus Olsen
ef684f8eac mark EngReleaseSemaphore is implement
svn path=/trunk/; revision=28525
2007-08-24 20:20:18 +00:00
Magnus Olsen
f0942416ad mark EngQueryLocalTime are implement
svn path=/trunk/; revision=28524
2007-08-24 20:14:30 +00:00
Magnus Olsen
3a8089197d Bugfix : EngFreeModule
svn path=/trunk/; revision=28523
2007-08-24 18:39:19 +00:00
Magnus Olsen
df77afe61e bugfix : EngGetCurrentCodePage
svn path=/trunk/; revision=28522
2007-08-24 18:36:38 +00:00
Ged Murphy
6aa2fcb6f6 Start the move towards a partial rewrite of servman
Too many changes for me to bother listing

svn path=/trunk/; revision=28521
2007-08-24 18:27:12 +00:00
Magnus Olsen
00e28fca7d sorry fix the build
svn path=/trunk/; revision=28520
2007-08-24 17:46:43 +00:00
Magnus Olsen
1195f389f1 Kill of NtGdiCreatePolyPolygonRgn from the syscall list, it being use only internal in win32k. it should be rename to intGdiCreatePolyPolygonRgn
svn path=/trunk/; revision=28519
2007-08-24 17:43:11 +00:00
Magnus Olsen
10f4522cb9 Fix CreatePolygonRgn : use NtGdiPolyPolyDraw, old way was using NtGdiCreatePolyPolygonRgn, NtGdiCreatePolyPolygonRgn does not exists in windows NT 2000/XP/2003/VISTA
Fix CreatePolyPolygonRgn : use NtGdiPolyPolyDraw, old way was using NtGdiCreatePolyPolygonRgn, NtGdiCreatePolyPolygonRgn does not exists in windows NT 2000/XP/2003/VISTA
Redirect : EnableEUDC@4 to NtGdiEnableEudc@4, EngAssociateSurface@12 to NtGdiEngAssociateSurface@12, EngCheckAbort@4 to NtGdiEngCheckAbort@4, EngDeleteClip@4 to NtGdiEngDeleteClip@4
Redirect : EngCreateClip@0 to NtGdiEngCreateClip@0, EngCreateDeviceSurface@16 to NtGdiEngCreateDeviceSurface@16,  EngCreateDeviceBitmap@16 to NtGdiEngCreateDeviceBitmap@16


svn path=/trunk/; revision=28518
2007-08-24 17:37:53 +00:00
Magnus Olsen
79bd659def implement stub for NtGdiEnableEudc, NtGdiEngAssociateSurface, NtGdiEngCreateDeviceSurface, NtGdiEngCreateDeviceBitmap, NtGdiEngCreateClip, NtGdiEngDeleteClip, NtGdiEngCheckAbort
svn path=/trunk/; revision=28517
2007-08-24 14:49:53 +00:00
Magnus Olsen
7abd27da8c the NtGdiEngCreateDeviceSurface got 4 param, see syscall table. and official doc from msdn and osr say only 3, we can clear see it is 4 param in the syscall table.
and I name it the four param as UNKNOWN for now. 

svn path=/trunk/; revision=28516
2007-08-24 14:46:06 +00:00
Magnus Olsen
bd1e7500b2 NtGdiEngCreateDeviceBitmap need four param the last param are undoc in msdn/osr
at moment I do have small clude what it is use for. But I name it to UNKNOWN, 
you can check the syscall table and u see it is 4 param not 3 it need. 

svn path=/trunk/; revision=28515
2007-08-24 14:24:49 +00:00
Magnus Olsen
d419e5b695 Bug Fix from Gregor Brunmar (gregor dot brunmar at home dot se), IRC nick ALiENiD
we getting change display working again with this bugfix. details
* Added missing info from PrimarySurface.DMW when display driver defaults back to the video drivers standard mode
* Fixed caching system in IntEnumDisplaySettings when run more than once
* Hacked a way around the bug in FindDDIDriver

svn path=/trunk/; revision=28514
2007-08-24 12:10:10 +00:00
The Wine Synchronizer
c18bbbf9a7 Autosyncing with Wine HEAD
svn path=/trunk/; revision=28513
2007-08-24 09:42:29 +00:00
Hervé Poussineau
95797b4cf7 Update status of shlwapi
svn path=/trunk/; revision=28512
2007-08-24 09:40:17 +00:00
The Wine Synchronizer
6d150b1c57 Autosyncing with Wine HEAD
svn path=/trunk/; revision=28511
2007-08-24 09:07:52 +00:00
The Wine Synchronizer
bbc41d3721 Autosyncing with Wine HEAD
svn path=/trunk/; revision=28510
2007-08-24 09:07:34 +00:00
Aleksey Bragin
e1bf65e84c Daniel Zimmerman <netzimme@aim.com>:
- Test app for IoCheckEaBufferValidity() implementation (not included into the build system yet).

svn path=/trunk/; revision=28507
2007-08-24 07:59:29 +00:00
Aleksey Bragin
262a6322c1 Daniel Zimmerman <netzimme@aim.com>:
- Implement IoCheckEaBufferValidity()

svn path=/trunk/; revision=28506
2007-08-24 07:55:14 +00:00
Andrew Munger
e6b469c9c0 Free memory with the proper tag.
Spotted by Gregor Brunmar (gregor dot brunmar at home dot se).

svn path=/trunk/; revision=28505
2007-08-24 07:43:42 +00:00
James Tabor
dea1da8be6 Fixed it. Pluged in Polygon to use NtGdiPolyPolyDraw.
svn path=/trunk/; revision=28504
2007-08-24 05:25:21 +00:00
James Tabor
0d1fa60060 Pluged in NtGdiPolyPolyDraw. Does not work yet, still testing it.
svn path=/trunk/; revision=28503
2007-08-24 04:49:38 +00:00
Johannes Anderwald
cffe612011 - make more util mui-aware
- english translation needs to be done

svn path=/trunk/; revision=28502
2007-08-23 23:52:59 +00:00
James Tabor
f7da3af16d Fix math and add notes.
svn path=/trunk/; revision=28501
2007-08-23 22:29:37 +00:00
Aleksey Bragin
c2de09f61a - Make freeldr do identity memory mapping. This simplifies a lot of things throughout the code, and finally places the kernel at the same addresses where NT kernel is located.
- Fix code in ntoskrnl which was based on (wrong) assumptions.

svn path=/trunk/; revision=28497
2007-08-23 21:29:28 +00:00
Johannes Anderwald
7cc80286e0 - add german translation
svn path=/trunk/; revision=28495
2007-08-23 20:47:53 +00:00
Magnus Olsen
ee0dd7fa6e implement DeviceCapabilitiesExA and DeviceCapabilitiesExW, both always return -1
redirect DeleteColorSpace@4 to NtGdiDeleteColorSpace@4


svn path=/trunk/; revision=28494
2007-08-23 20:47:43 +00:00
Daniel Reimer
49b4adc779 Fix a typo.
svn path=/trunk/; revision=28493
2007-08-23 20:30:11 +00:00
Johannes Anderwald
40b600253d - turn back cursor on screensaver exit
- display fullscreen instead of maximized
- patch by Vytis Girdzijauskas, "CMan", cman[at]cman[dot]us
See issue #2583 for more details.

svn path=/trunk/; revision=28492
2007-08-23 20:25:20 +00:00
Aleksey Bragin
fd759f410c - Add some early skeleton for OHCI. This code isn't called by anything, so it can't break something.
svn path=/trunk/; revision=28491
2007-08-23 20:14:45 +00:00
Johannes Anderwald
a616c6c485 - part 2/2
- update french translation for sysdm by Pierre Schweitzer (heis_spiter at hotmail dot com)

See issue #2588 for more details.

svn path=/trunk/; revision=28490
2007-08-23 20:11:28 +00:00
Johannes Anderwald
cd2bd2ad1e - part 1/2
- add french translation for logoff by Pierre Schweitzer (heis_spiter at hotmail dot com)
- also add german translation
See issue #2588 for more details.

svn path=/trunk/; revision=28489
2007-08-23 20:10:36 +00:00
Daniel Reimer
23b758b293 - Update all SF Links to one of the fastest Mirrors. puzzle is EVIL!
- Fix some broken Links
- Update some Files to newer Versions.

svn path=/trunk/; revision=28488
2007-08-23 20:03:37 +00:00
Magnus Olsen
9b03238d39 commit my verify list with api that been tested and works same/simluare as windows xp, in windows 2000/xp
svn path=/trunk/; revision=28487
2007-08-23 19:56:57 +00:00
Aleksey Bragin
6ccab0cf5a - Set NULL Io cancel routine, fixes an assert when using usb storage driver.
svn path=/trunk/; revision=28486
2007-08-23 19:41:38 +00:00
Magnus Olsen
6b5a7d3908 Kill reactos own syscall api NtGdiCreatePolygonRgn, it have been redirect to another ros own syscall named NtGdiCreatePolyPolygonRgn. see my last commit for gdi32
svn path=/trunk/; revision=28485
2007-08-23 19:33:21 +00:00
Magnus Olsen
75fff0653f remove redirect of CreatePolyPolygonRgn@16 and implement own stub for it, it is hacked, it should doing, return (HRGN) NtGdiPolyPolyDraw(fnPolyFillMode, lppt, lpPolyCounts, nCount, 6 );
remove redirect of CreatePolygonRgn@12 and implement own stub for it, it is hacked, it should doing return NtGdiPolyPolyDraw(fnPolyFillMode,lppt,cPoints,1,6);
remove redirect of CreateRectRgn@16 and implement own stub for it,  some part need be done in user mode
Fix CreateRectRgnIndirect it call now on CreateRectRgn for some part need be done in user mode, and it crash if NULL comes in as param, like windows does. 
Fix CreatePenIndirect ir call now on CreatePen for some stuff need be done in user mode. 
Add comment to CreatePen it need be fix. 



svn path=/trunk/; revision=28484
2007-08-23 19:21:16 +00:00
Aleksey Bragin
d88b419c3a - Small NDK headers update
svn path=/trunk/; revision=28483
2007-08-23 19:20:28 +00:00
James Tabor
bae87c517b Fix build?
svn path=/trunk/; revision=28482
2007-08-23 18:35:46 +00:00
Timo Kreuzer
58091ef92d move NtGdiGetSetBoundsrect from paintobj.c to dc.c, remove paintobj.c
svn path=/trunk/; revision=28481
2007-08-23 17:28:24 +00:00
Magnus Olsen
5e95a39358 Remove NtGdiCreatePalette it was a ros specfify api in win32k syscall list. It have been replace with NtGdiCreatePaletteInternal
svn path=/trunk/; revision=28480
2007-08-23 17:22:27 +00:00
Timo Kreuzer
e60a2c2441 move NtGdiExtFloodFill from bitblt.c to filshap.c
svn path=/trunk/; revision=28479
2007-08-23 17:04:28 +00:00
Timo Kreuzer
c74dd37de0 - rename painting.c to bitblt.c
- move NtGdi/Int(Poly)PatBlt to bitblt.c

svn path=/trunk/; revision=28478
2007-08-23 16:38:23 +00:00
Magnus Olsen
3883e58615 Fix : CreatePalette@4 calling NtGdiCreatePaletteInternal
svn path=/trunk/; revision=28477
2007-08-23 16:19:51 +00:00
Magnus Olsen
a224171ac5 fast implementions of NtGdiCreatePaletteInternal
it is base on NtGdiCreatePalette

svn path=/trunk/; revision=28476
2007-08-23 15:36:20 +00:00
Ged Murphy
b5210a6c16 odd, this doesn't fail on my machine but it does on the buildserver
svn path=/trunk/; revision=28475
2007-08-23 15:30:49 +00:00
Ged Murphy
f68661bb9c add new file to rbuild file and fix gcc complaints
svn path=/trunk/; revision=28474
2007-08-23 15:23:10 +00:00
Magnus Olsen
122ab0a2bb Remove redirect of CreateDIBitmap@24 to NtGdiCreateDIBitmap@24, and create stub for it. we need do some stuff in user mode
Fix : CreateDiscardableBitmap shall be call on CreateCompatibleBitmap not the NtGdiCreateCompatibleBitmap, for we need do some thing in user mode
Fix : CreateEllipticRgnIndirect it crash now, if the param is NULL, that goes same for all windows NT I tested 

svn path=/trunk/; revision=28473
2007-08-23 15:03:13 +00:00
Ged Murphy
0c529df2e0 simplify some code
svn path=/trunk/; revision=28472
2007-08-23 14:57:44 +00:00
Magnus Olsen
520d244fe2 create stub for both CreateCompatibleDC and CreateCompatibleBitmap instead for redirect them, they need share memory, and it need do some stuff in user mode
svn path=/trunk/; revision=28470
2007-08-23 14:02:10 +00:00
Magnus Olsen
ed494d70d2 remove redirect of CombineRgn and CreateBitmap some part are need be done in user mode. not in win32k,
implement it as stub, and doing the syscall until some got time review and rewrite this code right

svn path=/trunk/; revision=28469
2007-08-23 12:54:09 +00:00
Magnus Olsen
0c8c94eb0d sorry fixed break in comping
svn path=/trunk/; revision=28468
2007-08-23 12:43:06 +00:00
Magnus Olsen
14b913746c Redirect : BRUSHOBJ_pvGetRbrush@4 to NtGdiBRUSHOBJ_pvGetRbrush@4
Redirect : BRUSHOBJ_ulGetBrushColor@4 to NtGdiBRUSHOBJ_ulGetBrushColor@4
Redirect : CLIPOBJ_bEnum@12 to  NtGdiCLIPOBJ_bEnum@12
Redirect : CLIPOBJ_cEnumStart@20  to  NtGdiCLIPOBJ_cEnumStart@20
Redirect : CLIPOBJ_ppoGetPath@4 to NtGdiCLIPOBJ_ppoGetPath@4

svn path=/trunk/; revision=28467
2007-08-23 12:10:13 +00:00
Magnus Olsen
46fb3ca2dc Implement stub : NtGdiCLIPOBJ_bEnum
Implement stub : NtGdiCLIPOBJ_cEnumStart
Implement stub : NtGdiCLIPOBJ_ppoGetPath
Implement stub : NtGdiBRUSHOBJ_ulGetBrushColor
Implement stub : NtGdiBRUSHOBJ_pvAllocRbrush
Implement stub : NtGdiBRUSHOBJ_pvGetRbrush

svn path=/trunk/; revision=28466
2007-08-23 12:07:37 +00:00
Magnus Olsen
94e74e9b8b Bugfix : AddFontResourceExW, SetLastError to invaild param when the fl are not set.
Redirect : AnyLinkedFonts@0 to NtGdiAnyLinkedFonts@0 (stubed in win32k)
Redirect : BRUSHOBJ_hGetColorTransform@4 to NtGdiBRUSHOBJ_hGetColorTransform@4 (stubed in win32k)
Redirect : BRUSHOBJ_pvAllocRbrush@8 to  NtGdiBRUSHOBJ_pvAllocRbrush@8  (stubed in win32k)
partly working : GdiAddFontResourceW is parttly working but it does not works as windows version, instead for being stub, it is not finish implementions of it. This is nassry to clean up some mess. 


svn path=/trunk/; revision=28465
2007-08-23 09:52:31 +00:00
Magnus Olsen
851f4ff721 adding stub for NtGdiAnyLinkedFonts, NtGdiBRUSHOBJ_hGetColorTransform, NtGdiBRUSHOBJ_pvAllocRbrush
svn path=/trunk/; revision=28464
2007-08-23 09:44:26 +00:00
Aleksey Bragin
1ca48793e3 Dmitry Chapyshev <lentind@yandex.ru>:
- Add a shortcut to a charmap tool, create start menu group for it.

svn path=/trunk/; revision=28463
2007-08-23 09:05:04 +00:00
Aleksey Bragin
ade3d4b9af Dmitry Chapyshev <lentind@yandex.ru>
- Change control panel icon to a better one

svn path=/trunk/; revision=28462
2007-08-23 08:05:05 +00:00
James Tabor
81666beff6 Add NtGdiFlushUserBatch callback.
svn path=/trunk/; revision=28461
2007-08-23 01:51:22 +00:00
Timo Kreuzer
dd008296b0 maze as a screensaver ;-)
svn path=/trunk/; revision=28460
2007-08-23 00:43:25 +00:00
Timo Kreuzer
95ba212738 - NtGdiAnimatePalette, NtGdiGe/SetPaletteEntries, NtGdiGetSystemPaletteEntries, NtGdiGet/SetDIBColorTable: rename into IntXxx, remove SEH and remove functions from w32ksvc.db
- implement NtGdiDoPalette calling the Int functions using SEH & ProbeForXxx and add it to w32ksvc.db
- change parameters of NtGdiDoPalette: HPALETTE -> HGDIOBJ, as it also accepts HDC, LPPALETTENTRY -> LPVOID as it also accepts RGBQUAD*
- implement stub functions in gdi32.dll calling NtGdiDoPalette instead of redirecting to the old NtGdixxx functions
- update ntgdibad.h


svn path=/trunk/; revision=28459
2007-08-23 00:31:26 +00:00
Timo Kreuzer
e2167fe00e one more TEST -> RTEST for NtGdiGetRandomRgn
svn path=/trunk/; revision=28458
2007-08-23 00:20:30 +00:00
Timo Kreuzer
3385ef604e some tests for NtGdiDoPalette
svn path=/trunk/; revision=28457
2007-08-23 00:19:00 +00:00
Timo Kreuzer
d99309335f win32k syscall dlls for win xp and 2k
svn path=/trunk/; revision=28456
2007-08-22 21:49:49 +00:00
James Tabor
28dafc3348 - Removed NtGdiGetDIBits from w32ksvc.db and updated ntgdibad.h.
- Created support function for GetDIBits when calling NtGdiGetDIBitsInternal.
- Connected the gdi32 parts.

svn path=/trunk/; revision=28455
2007-08-22 19:45:06 +00:00
Johannes Anderwald
12d4e8967e - fix description by Pierre Schweitzer (heis spiter at hotmail com)
svn path=/trunk/; revision=28454
2007-08-22 18:29:20 +00:00
Hervé Poussineau
00ea7e6ada Move generic part of ReactOS-$(ARCH).rbuild to ReactOS-generic.rbuild
svn path=/trunk/; revision=28453
2007-08-22 15:06:43 +00:00
James Tabor
33c9fa8993 Removed NtUserReleaseDC, replaced it with CallOneParam.
svn path=/trunk/; revision=28452
2007-08-22 14:12:55 +00:00
Art Yerkes
01d8c61545 Bug found by arty, thanks to alex for helping fix it:
Process termination fixes part 1: don't suicide our process when we're killing
a sibling.

 - Clarify the use of KillByHandle.  It does *not* mean "suicide".
 - In fact, we had considered the use of KillByHandle backward, that is,
   our process would commit suicide if it was killing a sibling process.
 - Make suicide contingent on killing the same process.
 - Properly handle DBG_TERMINATE_PROCESS semidocumented debugger hack.

svn path=/trunk/; revision=28451
2007-08-22 07:28:45 +00:00
James Tabor
2858198372 Win32 User32 rewrite example.
svn path=/trunk/; revision=28450
2007-08-22 02:54:22 +00:00
James Tabor
7dc8712f1b Cleanup, dont call inside SEH with SEH. IntGdiModifyWorldTransform calls DC_UpdateXforms which calls DCU_UpdateUserXForms and it calls SEH. Moved NtGdiFlush to dcutil.c
svn path=/trunk/; revision=28449
2007-08-21 23:27:44 +00:00
Johannes Anderwald
272d2be738 - Some typos and fixes for greek resource file for ncpa by Apostolos Alexiadis aka Apal (djapal at gmail dot com)
See issue #2582 for more details.

svn path=/trunk/; revision=28447
2007-08-21 16:34:23 +00:00
James Tabor
1deecb4b19 - Removed NtGdiSetMapMode from w32ksvc.db and updated ntgdibad.h.
- Moved NtGdiSetMapMode to an internal function.
- Changed NtGdiPaintRgn and added IntdiPaintRgn.
- Cleaned up win32k path.c.
- Connected the gdi32 parts.


svn path=/trunk/; revision=28446
2007-08-21 09:28:51 +00:00
James Tabor
c27ffbed0c Sorry missed this one. Turn it off.
svn path=/trunk/; revision=28445
2007-08-21 07:45:02 +00:00
James Tabor
1cdbcdc32e Turn Dc_Attr off.
svn path=/trunk/; revision=28444
2007-08-21 07:21:26 +00:00
James Tabor
ba4d4c6863 Turn off copy to user for now.
svn path=/trunk/; revision=28443
2007-08-21 06:47:49 +00:00
James Tabor
e308fab607 - Started the use of DC_ATTR. Created dcutil.c to handle xfers. I choose XForms this time and still trouble shooting it. If anyone wants to join in and help. Optimize syncing the data packets, add more, etc. Don't be shy!
- Removed NtGdiGetWorldTransform from w32ksvc.db and updated ntgdibad.h.
- Implemented GetTransform redirect to NtGdiGetTransform.
- Connected the gdi32 parts.


svn path=/trunk/; revision=28442
2007-08-21 05:01:00 +00:00
James Tabor
e2e96c6bc8 Bug patch 2382 by Zavyalov Alexey. GetCurrencyFormatW() added superfluous group sign in negative numbers and reformatting code.
svn path=/trunk/; revision=28441
2007-08-20 22:55:48 +00:00
Johannes Anderwald
d708f1133e - Some typos and fixes for greek resource file for newdev by Apostolos Alexiadis aka Apal (grad0621 at di dot uoa dot gr)
See issue #2576 for more details.

svn path=/trunk/; revision=28440
2007-08-20 22:29:40 +00:00
Johannes Anderwald
12fb19e113 - set check when theres a timeout
svn path=/trunk/; revision=28439
2007-08-20 22:10:55 +00:00
Johannes Anderwald
7f430604fd - implement writing startup recovery options
svn path=/trunk/; revision=28438
2007-08-20 22:01:54 +00:00
Johannes Anderwald
4871c23639 - implement reading startup / recovery options
svn path=/trunk/; revision=28437
2007-08-20 21:41:05 +00:00
Magnus Olsen
0b103054a4 Fix NtUserGetClipboardViewer in w32ksvc a smaller typo
svn path=/trunk/; revision=28436
2007-08-20 21:02:25 +00:00
Johannes Anderwald
e7fd85126b - support reading multiple boot configuration
- support saving prefered boot configuration (freeldr / boot ini style)
- parsing of boot options needs to be done

svn path=/trunk/; revision=28433
2007-08-20 19:21:54 +00:00
Magnus Olsen
7253f38afd Remove some expremnt code, need rehink how I can get current range of video memory pointer
svn path=/trunk/; revision=28432
2007-08-20 15:17:06 +00:00
Hervé Poussineau
07277867b0 Fix typo
svn path=/trunk/; revision=28431
2007-08-20 12:06:12 +00:00
Hervé Poussineau
bd443f4d74 Add rbuild file for winsta.dll, and add it to bootcd
See issue #2574 for more details.

svn path=/trunk/; revision=28430
2007-08-20 09:34:18 +00:00
Johannes Anderwald
7a1bf66462 - update available software items in configuration file by Pierre Schweitzer (heis_spiter at hotmail com)
See issue #2566 for more details.

svn path=/trunk/; revision=28429
2007-08-20 09:19:07 +00:00
Timo Kreuzer
0e85f8a438 - rename NtGdiSelectPalette to NtUserSelectPalette, move it to ntuser/windc.c and implement stub function SelectPalette in gdi32.dll calling it (Don't ask me why it is named this way, but it is on windows)
- rename NtGdiSetDIBitsToDevice to NtGdiSetDIBitsToDeviceInternal and implement stub function in gdi32.dll
- update ntgdibad.h

svn path=/trunk/; revision=28428
2007-08-19 23:49:47 +00:00
Ziliang Guo
263feb7b7d Fix kdbg disasm bug, patch by SamB
See issue #2408 for more details.

svn path=/trunk/; revision=28427
2007-08-19 22:51:10 +00:00
Johannes Anderwald
b4c3f2b5e3 more.c should not close INVALID_HANDLE_VALUE
patch by Apal
remove tab and quit when failing to open file (tested with Windows XP SP2)

svn path=/trunk/; revision=28426
2007-08-19 20:16:10 +00:00
Colin Finck
82f18756f0 - mkhive's "registry.c" used wcsncmp for comparing two strings. But this function seems to work different on different hosts (probably due to different handling of wchar_t's or whatever).
To avoid this problem, use memcmp now to compare the strings as it's done two lines later. This fixes the Live-CD on Linux/Unix hosts.
  (For the first time, Live-CDs created by our 64-Bit Debug Buildslave are usable :-)
- Change __volatile to volatile in "winddk.h". This fixes compilation problems under MSVC.
- Make the prototype of RtlCompareMemory in "winnt.h" similar to the one in "winddk.h". Fixes a compilation problem in MSVC.
- Define the prototype for xwcschr in "mkhive.h". Silences a warning in MSVC.
- Add some casts to "reginf.c" to silence some warnings in MSVC.
- Add a MSVC 2005 project file for mkhive. mkhive can be compiled under MSVC with this project file, when cmlib and inflib_host are compiled.
- Remove the duplicate definition of CMLIB_HOST in "cmlib.mak".

svn path=/trunk/; revision=28425
2007-08-19 19:37:47 +00:00
Eric Kohl
0f123ca26f - Implement the mouse keys dialog.
- Fix a tiny bug in the mouse keys dialog resource.
- Update file header.

svn path=/trunk/; revision=28424
2007-08-19 16:11:04 +00:00
Colin Finck
cddcaa508e - Always include "wine/unicode.h" before all other headers, when we need the wchar_t type.
unicode.h includes windef.h, which includes winnt.h, which has the handling for the wchar_t type. As it's the first included header, no other wchar_t type will be defined before.
- Remove the wchar_t definition from the Makefile as the winnt.h header will define it as "unsigned short" automatically.

svn path=/trunk/; revision=28423
2007-08-19 15:38:21 +00:00
Colin Finck
fd468bc98a Change the wchar_t logic once more to make it a bit simplier.
A host can only have one special wchar_t definition, so we don't need to define all. Also _WCHAR_T_DEFINED is the only definition used for overriding the wchar_t setting by applications.
So use the previous logic to check and define the wchar_t definitions for the host and at the end check for _WCHAR_T_DEFINED. In all cases, define _WCHAR_T_DEFINED.

Additionally, __need_wchar_t has to be undefined after including "ctype.h" as "ctype.h" defines it.

svn path=/trunk/; revision=28422
2007-08-19 14:04:20 +00:00
Sylvain Petreolle
4a878b945f update ncpa french translation
svn path=/trunk/; revision=28421
2007-08-19 12:49:29 +00:00
Eric Kohl
ec36584855 Add resources for the mouse keys settings dialog.
svn path=/trunk/; revision=28420
2007-08-19 10:52:59 +00:00
Art Yerkes
f6051eed12 Add async name functions, imported from wine. Modified for ReactOS, original
copyright assigment:

 * Copyright (C) 1993,1994,1996,1997 John Brezak, Erik Bos, Alex Korobka.
 * Copyright (C) 1999 Marcus Meissner

async.c was original licensed under the GNU Lesser General Public License v2.1

svn path=/trunk/; revision=28419
2007-08-19 10:39:26 +00:00
James Tabor
7330591df4 Implemented an easy API, XLATEOBJ_piVector. Just leave them in stubs for now.
svn path=/trunk/; revision=28418
2007-08-19 09:16:38 +00:00
James Tabor
5f7a8012cd Implemented a handfull of easy Eng APIs. Just leave them in stubs for now.
svn path=/trunk/; revision=28417
2007-08-19 08:16:01 +00:00
Art Yerkes
d149b737c0 (customize-variable 'indent-tabs-mode) ; nil
svn path=/trunk/; revision=28416
2007-08-19 05:11:54 +00:00
Art Yerkes
7acf61114d Fix part two of the bug:
The actual problem was that we'd overrun the end of the handle count array
when decrementing.  This also led to a handle leak (observed).  Stop correctly
when we find the handle we want.

svn path=/trunk/; revision=28415
2007-08-19 05:02:31 +00:00
Colin Finck
edceb16713 Use host_gpp instead of host_gcc for building "ssprintf.cpp" and "tools.cpp".
These are C++ files, so they should be built with g++ like it's done for the other tools. Usually they can also be built with gcc, but Collibri from IRC reported that broken gcc interfaces exist, which lead to problems with these files.

svn path=/trunk/; revision=28414
2007-08-18 22:06:00 +00:00
Colin Finck
5f5941543f Always include "wrc.h" before including "ctype.h".
wrc.h includes wrctypes.h, which includes windef.h, which includes winnt.h. And winnt.h contains our wchar_t check, which has to be done before including ctype.h to enable building on Mac OS X hosts.

svn path=/trunk/; revision=28413
2007-08-18 21:41:26 +00:00
Colin Finck
f4d00d9532 Mac OS X already defines iswdigit, so don't define it again on this host OS.
svn path=/trunk/; revision=28412
2007-08-18 21:14:20 +00:00
Colin Finck
7c2606f0a3 Include windef.h, which then includes winnt.h, which uses our wchar_t check and reports the wchar_t definition back to the host.
Then the host finally knows that it should not define wchar_t again.

svn path=/trunk/; revision=28411
2007-08-18 21:10:14 +00:00
Colin Finck
b92649d370 Fix the logic for the wchar_t checks.
We don't only need to check if wchar_t has already been defined, but also report this to all known hosts and operating systems.

svn path=/trunk/; revision=28410
2007-08-18 20:30:12 +00:00
Colin Finck
44840c6db3 Move the wchar_t check above the "#include <ctype.h>" line (this is needed for Mac OS X host compatibility)
svn path=/trunk/; revision=28409
2007-08-18 19:49:53 +00:00
Colin Finck
3d0bdbac16 forgot the #endif :-/
svn path=/trunk/; revision=28408
2007-08-18 19:33:36 +00:00
Colin Finck
6674258f80 Add a check for the wchar_t existence for Mac OS X hosts
svn path=/trunk/; revision=28407
2007-08-18 19:25:43 +00:00
Colin Finck
4bb5fb5f3c Build fixes for Mac OS X, thanks to Alex
svn path=/trunk/; revision=28406
2007-08-18 19:07:13 +00:00
Eric Kohl
b5c0564c8e Get rid of the space reserved for icons to make the dialogs look more XP-like.
svn path=/trunk/; revision=28404
2007-08-18 16:02:28 +00:00
Magnus Olsen
fb897e20fb fixing smaller FIXME in win32kdxtest
svn path=/trunk/; revision=28403
2007-08-18 15:54:03 +00:00
Magnus Olsen
f594821726 adding few mixing DDHALINFO_ISPRIMARYDISPLAY, DDHALINFO_MODEXILLEGAL
svn path=/trunk/; revision=28402
2007-08-18 15:53:03 +00:00
Colin Finck
1fe9b53b9e Fix an "implicit declaration of wcslen" warning on Linux/Unix hosts
svn path=/trunk/; revision=28401
2007-08-18 15:47:33 +00:00
Magnus Olsen
1d6628eb0c Adding one new define #define DDCAPS_STEREOVIEW aka DDCAPS_RESERVED1
svn path=/trunk/; revision=28399
2007-08-18 15:43:25 +00:00
Colin Finck
f49af53def Show whether the IP address was assigned by DHCP or manually configured. I also added the german translation strings for this.
Patch by Frode Lillerud (frode AT enkelt DOT no)
See issue #2570 for more details.

svn path=/trunk/; revision=28398
2007-08-18 14:32:03 +00:00
Colin Finck
d7248a8454 Send a LBN_SELCHANGE notification after selecting the first network component entry, so the description text gets updated.
Patch by Gregor Brunmar (gregor DOT brunmar AT home DOT se)
See issue #2577 for more details.

svn path=/trunk/; revision=28397
2007-08-18 14:03:12 +00:00
Colin Finck
64e01f1c3a Fix cabman build breakage, when compiling it on Windows hosts with GCC
(this is true, other tested build configurations did not make any problems :-P)

svn path=/trunk/; revision=28396
2007-08-18 13:46:12 +00:00
Colin Finck
3f2d0a1c8d Use typedefs64.h in wmc instead of defining the types in the Makefile.
The definition of wchar_t can also be removed as this type is defined in windef.h if it was not defined before.

svn path=/trunk/; revision=28395
2007-08-18 13:21:31 +00:00
Colin Finck
ddf6aa9ca0 Also use typedefs64.h in wrc instead of defining the types in the Makefile.
svn path=/trunk/; revision=28394
2007-08-18 13:09:55 +00:00
Colin Finck
2ebabda1fb - Use typedefs64.h also for 64-bit host system compatibility in cabman.
This unifies the way of 64-bit compatibility and also enables cabman to compile with MSVC.
  The remaining "unsigned long"'s have to be used for casting pointers as the pointers are always 64-bit on 64-bit machines.
- Silence some warnings in MSVC 2005 and also add a MSVC project file.
  When you compiled the zlib library with RosBE, you can now easily use this project file without any changes to compile cabman with MSVC.

svn path=/trunk/; revision=28393
2007-08-18 13:08:58 +00:00
Colin Finck
eca3c5411c Fix the mkhive bug on 64-bit systems, this time correct.
See issue #2272 for more details.

svn path=/trunk/; revision=28392
2007-08-18 10:27:23 +00:00
Colin Finck
fa63b1102e Revert r28389 as it causes a build break, when you perform a full clean build
I'll commit a correct fix later

svn path=/trunk/; revision=28391
2007-08-17 23:08:12 +00:00
Colin Finck
bcb482f04c [AUDIT]
I had to break some SVN locks to add my latest commit. Here I'm undoing some of them now:

builddep.h - Remains unlocked. It just contains basic type definitions and include statements
infcommon.h - Just unlocked this file. It just contains one basic definition and two type definitions
infhost.h - Remains unlocked. It just contains the function prototypes for functions in the other source files
infhostgen.c - Locked again as I did not check this file
infhostget.c - Locked again as I did not check this file
infhostglue.c - Remains unlocked. It just contains a DbgPrint function, which can be found in many ReactOS source files
infhostput.c - Locked again as I did not check this file
inflib.mak - Just unlocked this file. No reason for a makefile to be locked.
README.txt - Just unlocked this file. No reason for a readme file to be locked.

svn path=/trunk/; revision=28390
2007-08-17 22:32:52 +00:00
Colin Finck
fe41b9be51 Fix the long-standing mkhive bug on 64-bit systems
This is now done by adding a "typedefs64.h" header file, which uses int's instead of long's for 32-bit values. As far as I know, this is the only way to avoid the problem that a long has a size of 64-bit on 64-bit systems.
This header file is now used in the host makefiles of cmlib, inflib and mkhive. It is also suitable for the other host tools, which need 32-bit values (will do some changes there in the next few days).

Unfortunately, Live-CDs still do not work because of another bug (see bug #2290).
But I compared the hives created by 32-bit Debian Linux and 64-bit Debian Linux and after these changes, they are exactly the same.
See issue #2272 for more details.

svn path=/trunk/; revision=28389
2007-08-17 22:17:13 +00:00
Magnus Olsen
c4bb3a9eb4 fixing the build and adding wine d3d8 and wined3d to bootcd
svn path=/trunk/; revision=28388
2007-08-17 19:41:23 +00:00
Magnus Olsen
3e5582c97f adding wine dx to the build all, wined3d and d3d8 is from wine cvs server date 17/8-2007
svn path=/trunk/; revision=28387
2007-08-17 19:24:59 +00:00
Magnus Olsen
7d9fb66422 This is a temporary solution to our DX problem
it will take some times getting native DirectX working in user mode. 
Wine Have manger ported their DirectX to Windows, And after some help 
from wine (Roderick Colenbrander aka Thunderbird), That mean we got 
now DirectX8 support in ReactOS from wine DirectX (base on opengl).
(rember disable the SSE in mesa before trying it, and it is untested
in ReactOS)
    

svn path=/trunk/; revision=28386
2007-08-17 18:29:23 +00:00
James Tabor
aa4f2c2037 Add the rest of the dcattr structure, LocalIcm and flags with VDS size.
svn path=/trunk/; revision=28385
2007-08-17 17:55:56 +00:00
James Tabor
0774d97b40 Add 4 more dcattr units.
svn path=/trunk/; revision=28384
2007-08-17 16:24:28 +00:00
Magnus Olsen
188728e7c5 forget remove a wine hack from this headers
svn path=/trunk/; revision=28383
2007-08-17 15:41:54 +00:00
Magnus Olsen
2eb1586e0a updating wine dx headers, adding some new wine dx header, from wine cvs date 17/08-2007
svn path=/trunk/; revision=28380
2007-08-17 13:59:31 +00:00
James Tabor
a02bfc6197 Fix NtUserLoadKeyboardLayoutEx size.
svn path=/trunk/; revision=28378
2007-08-17 02:06:36 +00:00
James Tabor
e2d01e0703 Use Gdi32 DeleteDC now. Soon tests will start with most Get functions using dcattr.
svn path=/trunk/; revision=28377
2007-08-17 00:40:57 +00:00
James Tabor
dc8b712ce4 Removed two unsupported types.
svn path=/trunk/; revision=28376
2007-08-17 00:10:37 +00:00
James Tabor
2a6ac07ef7 Fix memory DC so CreateCompatibleDC with null will create it. Based on msdn2 info, we need to setup display surface, etc.
svn path=/trunk/; revision=28375
2007-08-17 00:08:48 +00:00
James Tabor
f0415590e9 Removed NtGdiSetWorldTransform. Made the code info updates. Need to report from wine Path.c in win32k. I guess around in the next two weeks will be ok.
svn path=/trunk/; revision=28374
2007-08-16 22:08:02 +00:00
Ged Murphy
047296bb00 Revert 28351. The bug lies elsewhere
svn path=/trunk/; revision=28373
2007-08-16 20:17:39 +00:00
James Tabor
c0622d865c Added note to EngQueryEMFInfo.
svn path=/trunk/; revision=28368
2007-08-16 00:41:26 +00:00
James Tabor
3e972976a4 Implemented a handfull of easy Eng APIs.
svn path=/trunk/; revision=28367
2007-08-16 00:12:10 +00:00
Aleksey Bragin
fa6d836c61 - Uncomment ukranian language, since the translation was fixed in r27745.
svn path=/trunk/; revision=28366
2007-08-15 20:44:26 +00:00
Aleksey Bragin
0364357251 Feng Yuning <fengyuning1984@gmail.com>:
- Fix ntfs reading problem (occurs when trying to load Windows from an NTFS partition, reading always failed).

svn path=/trunk/; revision=28364
2007-08-15 20:04:50 +00:00
Daniel Reimer
85c976b666 Fix some mistakes I made
svn path=/trunk/; revision=28363
2007-08-15 17:52:57 +00:00
Daniel Reimer
fbba3e614a Updated German Translations for access and mmsys CPLs
svn path=/trunk/; revision=28362
2007-08-15 16:45:24 +00:00
Colin Finck
0afb01de39 Somehow the "resource.h" and "rsrc.rc" files were missing in Fireball's commit.
This fixes the build of "find".

svn path=/trunk/; revision=28360
2007-08-15 16:07:32 +00:00
Daniel Reimer
2995c86adb German RC Files Update
charmap, devmgmt, servman, wordpad, fedebug: updated the License to a German Translation from Notepad
matrix, explorer, syssetup: small RC File fixes
desk, newdev, translated new stuff
Still tbd: access and mmsys

svn path=/trunk/; revision=28358
2007-08-15 15:48:42 +00:00
Aleksey Bragin
e129710f4a Dmitry Chapyshev <lentind@yandex.ru>:
- Fix so that letters like "p" or "y" are correctly displayed in messageboxes.

svn path=/trunk/; revision=28351
2007-08-15 14:49:44 +00:00
Aleksey Bragin
dfbe549c81 Dmitry Chapyshev <lentind@yandex.ru>:
- Russian translation fixes
- Separation of hardcoded strings into resource files

svn path=/trunk/; revision=28350
2007-08-15 14:46:36 +00:00
Ged Murphy
4e51142f10 move mmsys icons into the resources folder
svn path=/trunk/; revision=28346
2007-08-15 12:50:21 +00:00
Aleksey Bragin
6ed2f68a65 Dmitry Chapyshev <lentind@yandex.ru>:
- Add some icons to mmsys.
- Change ugly powercfg icons to better one.

svn path=/trunk/; revision=28345
2007-08-15 12:41:24 +00:00
Andrew Munger
421174102d Fixup the R_MAGIC code.
svn path=/trunk/; revision=28344
2007-08-15 07:45:55 +00:00
Art Yerkes
b8921e7fad Fix size of handle count database. We really didn't want to change the size
we remembered for the old one, and the newly computed size was wacky too.
We just want to add 4 to i and 4 * entry size to the size.

This was found by Wax.

svn path=/trunk/; revision=28343
2007-08-15 05:30:32 +00:00
James Tabor
9b8fc0d903 GdiComment, example port from Wine.
svn path=/trunk/; revision=28342
2007-08-15 01:41:30 +00:00
Timo Kreuzer
6f54ba60ab - Rename NtGdiCreateBitmap to IntGdiCreateBitmap and remove SEH
- implement new NtGdiCreateBitmap, calling IntGdiCreateBitmap with SEH
- Use only IntGdiCreateBitmap internally
- implement BITMAPOBJ_GetRealBitsPixel, finding an appropriate value for unsupported values of BitsPixel
- make parameter validation more windows compatible

svn path=/trunk/; revision=28341
2007-08-14 23:22:07 +00:00
Hervé Poussineau
d91a924361 Do not import RtlDuplicateUnicodeString from ntoskrnl, it doesn't exist on MS Windows XP
svn path=/trunk/; revision=28340
2007-08-14 17:15:16 +00:00
Hervé Poussineau
7278d4e247 Implement BackupEventLogA/W, ClearEventLogA/W, CloseEventLog, DeregisterEventSource, GetNumberOfEventLogRecords, GetOldestEventLogRecord, OpenBackupEventLogA/W, OpenEventLogA/W, ReadEventLogA/W, RegisterEventSourceA/W by calling appropriate method in eventlog.exe
Add correct implementation for ReportEventW, but do not activate it (WIDL doesn't support the prototype)

svn path=/trunk/; revision=28338
2007-08-14 13:20:14 +00:00
Hervé Poussineau
3bf2d78767 Forward RegisterEventSourceW and DeregisterEventSource to eventlog service
svn path=/trunk/; revision=28337
2007-08-14 08:49:29 +00:00
Hervé Poussineau
91add81a87 Start the RPC server in eventlog service
svn path=/trunk/; revision=28336
2007-08-14 08:48:02 +00:00
Hervé Poussineau
979222a38c Add back idl for eventlog
svn path=/trunk/; revision=28335
2007-08-14 08:01:01 +00:00
Ged Murphy
bea20932d4 only display resolutions which match the current frequency
svn path=/trunk/; revision=28333
2007-08-13 23:33:48 +00:00
Ged Murphy
26fb8f8d76 remove double comment
svn path=/trunk/; revision=28326
2007-08-13 21:09:49 +00:00
Ged Murphy
e22ac7131d add a temp fix to bypass our incomplete urlmon.idl
svn path=/trunk/; revision=28325
2007-08-13 21:06:05 +00:00
Ged Murphy
ea8a786bc0 - fix the code, untested
*note, shouldn't this be in rosapps?

svn path=/trunk/; revision=28324
2007-08-13 20:52:47 +00:00
Ged Murphy
95a14312ca Don't overshoot the for loop, fixes a memory leak
svn path=/trunk/; revision=28323
2007-08-13 20:20:31 +00:00
Maarten Bosma
cb14899998 Add a tiny command line download tool.
svn path=/trunk/; revision=28322
2007-08-13 20:09:47 +00:00
Hervé Poussineau
a8653e49fb Silent mmdrv a bit
svn path=/trunk/; revision=28320
2007-08-13 15:55:41 +00:00
Hervé Poussineau
0d694c9494 Check username/password when unlocking the workstation
Fix typo

svn path=/trunk/; revision=28318
2007-08-13 14:54:14 +00:00
Hervé Poussineau
6047f75c71 Add missing LOGON32_* constants
svn path=/trunk/; revision=28317
2007-08-13 14:51:02 +00:00
Hervé Poussineau
92e384aee9 Use the profile returned by GINA before calling LoadUserProfileW()
Destroy the environment when not needed anymore
Better cleanup in case of error

svn path=/trunk/; revision=28316
2007-08-13 14:23:03 +00:00
Hervé Poussineau
e65bdff8a0 Cleanup WlxInitialize(), WlxStartApplication() and WlxActivateUserShell()
Allocate and return a valid PWLX_PROFILE structure in DoLoginTasks
Fix some warnings

svn path=/trunk/; revision=28315
2007-08-13 14:20:36 +00:00
Hervé Poussineau
c13edbee03 Take care of lpProfileInfo->lpProfilePath in LoadUserProfileW
Return required size in GetUserProfileDirectoryW if buffer is too small

svn path=/trunk/; revision=28314
2007-08-13 14:18:49 +00:00
Hervé Poussineau
e78d113358 Convert language file for UTF8 to ASCII.
See issue #2569 for more details.

svn path=/trunk/; revision=28313
2007-08-13 12:04:54 +00:00
Art Yerkes
3dbef74491 Make boot options for the bootcd dependent on DBG. Suggested by Caemyr.
svn path=/trunk/; revision=28311
2007-08-13 03:10:40 +00:00
Timo Kreuzer
007aa094f9 65 tests for NtGdiCreateBitmap
svn path=/trunk/; revision=28308
2007-08-12 22:33:21 +00:00
Eric Kohl
6ffa8db23a Fix a typo.
svn path=/trunk/; revision=28307
2007-08-12 21:50:37 +00:00
Eric Kohl
9072c8ce96 Add some mouse keys settings and general settings.
svn path=/trunk/; revision=28306
2007-08-12 21:19:52 +00:00
Timo Kreuzer
939a564d17 - add gdihv to rosapps build
- comment out OpenProcess, it crashes ros again

svn path=/trunk/; revision=28305
2007-08-12 20:12:21 +00:00
Colin Finck
ff30235bb7 Metadata enhancement for rbuild and version report by Marc Piulachs (marc DOT piulachs AT codexchange DOT net)
See issue #2547 for more details.

svn path=/trunk/; revision=28304
2007-08-12 19:17:00 +00:00
Timo Kreuzer
79b789d4b7 move NtGdiBitBlt, NtGdiTransparentBlt, NtGdiExtFloodFill, NtGdiMaskBlt, NtGdiPlgBlt, NtGdiStretchBlt, NtGdiAlphaBlend from bitmaps.c to painting.c
svn path=/trunk/; revision=28302
2007-08-12 16:20:29 +00:00
Colin Finck
5bb7f86ce6 Finally uncomment the Norwegian keyboard layout again, the bug is really fixed by recent changes :-)
See issue #2414 for more details.

svn path=/trunk/; revision=28301
2007-08-12 15:55:56 +00:00
Timo Kreuzer
2342abfc76 rename NtGdiGetBitmapDimensionEx to NtGdiGetBitmapDimension, update ntgdibad.h
svn path=/trunk/; revision=28300
2007-08-12 15:20:09 +00:00
Magnus Olsen
f41e3a0f1a win32kdxtest does not contain any more test for NtGdiDdQueryDirectDrawObject
So now I start adding new test, that I did manual testing for and reading debugout put for. 
we still missing test for NtGdiDdQueryDirectDrawObject

svn path=/trunk/; revision=28299
2007-08-12 14:11:00 +00:00
Magnus Olsen
b694e14566 update with more test for w32knapi
svn path=/trunk/; revision=28298
2007-08-12 12:31:10 +00:00
Hervé Poussineau
cc185a5b73 Update code to add back support for ACPI
svn path=/trunk/; revision=28297
2007-08-12 08:37:38 +00:00
James Tabor
fcd3ddadc4 Added two new subroutines in support for writing data to and from user space. Fixed calc in CoordCnvP to use float not fixed.
svn path=/trunk/; revision=28296
2007-08-12 07:34:23 +00:00
Christoph von Wittich
66469de606 put typelibs which are embedded in win32dlls into $(INTERMEDIATE)
svn path=/trunk/; revision=28295
2007-08-11 21:42:02 +00:00
Christoph von Wittich
b95a167c31 don't touch absolute paths
this fixes the build when using absolute paths in ROS_INTERMEDIATE or ROS_OUTPUT

svn path=/trunk/; revision=28294
2007-08-11 21:22:00 +00:00
Eric Kohl
e379a4d781 Add high contrast settings
svn path=/trunk/; revision=28293
2007-08-11 20:53:52 +00:00
Aleksey Bragin
8dae7ddffe - Last part of Alex's work on CM before he left ReactOS development. It was unfinished, so I had to insert a few hacks and comment out some code to make it working in trunk.
- Implement subkey creation code (for NtCreateKey and CmiConnectHive) based on the new Cm branch code (just as all the other routines were changed previously).
- Also support creating hash leaves, used in XP hives, since all the new code was already able to read them.

svn path=/trunk/; revision=28292
2007-08-11 19:03:00 +00:00
James Tabor
edaf84b215 Added a set option to ModifyWorldTransform.
svn path=/trunk/; revision=28291
2007-08-11 18:15:02 +00:00
Magnus Olsen
01d9041103 adding more dx test to w32knapi, convert from win32kdxtest tool
svn path=/trunk/; revision=28290
2007-08-11 15:48:50 +00:00
Magnus Olsen
2b8f46f472 adding more dx test to w32knapi, convert from win32kdxtest tool
svn path=/trunk/; revision=28288
2007-08-11 14:35:44 +00:00
Thomas Bluemel
6dc469edbb CallWindowProc returns 0 if lpPrevWndFunc is NULL
svn path=/trunk/; revision=28285
2007-08-11 11:55:17 +00:00
Magnus Olsen
e6980dd58b update with some more dx test
svn path=/trunk/; revision=28284
2007-08-11 10:11:19 +00:00
Aleksey Bragin
056b071be7 - Minor code changes, plus a temporary (DPRINT1) change for the HandleCount != 0 problem.
svn path=/trunk/; revision=28280
2007-08-11 09:04:17 +00:00
Magnus Olsen
58272e652f Adding dx test from my win32kdxtest to win32knapi test.
win32kdxtest are more like a analysis tools to examine some struct and dumping it, 
win32knapi is true test tools 

svn path=/trunk/; revision=28279
2007-08-11 08:52:38 +00:00
James Tabor
56edf011f1 Added EMF and MF support to Ext-FloodFill. Changed gdi32.def too.
svn path=/trunk/; revision=28278
2007-08-11 07:57:46 +00:00
James Tabor
634225118c Add Wine port Metafile call to SetTextCharacterExtra.
svn path=/trunk/; revision=28277
2007-08-11 07:34:57 +00:00
James Tabor
e00125a8d6 Add Set-ModifyWorldTransform to gdi32. Added error set in GdiGetHandleUserData.
svn path=/trunk/; revision=28276
2007-08-11 07:25:35 +00:00
James Tabor
87243c8c1a Removed Ex from NtGdiSetBitmapDimensionEx and NtGdiSetBrushOrgEx.
svn path=/trunk/; revision=28275
2007-08-11 06:29:31 +00:00
Timo Kreuzer
08bb46f842 add syscall list for windows 2000 SP4, so GreatLord can do testing
svn path=/trunk/; revision=28274
2007-08-10 23:55:54 +00:00
Aleksey Bragin
8b82da55a1 - RtlpCreateUnicodeString() -> RtlCreateUnicodeString()
svn path=/trunk/; revision=28273
2007-08-10 18:41:14 +00:00
James Tabor
63316363bd Added CriticalRegions at locations working with FirstDce.
svn path=/trunk/; revision=28272
2007-08-10 18:14:38 +00:00
James Tabor
be5bce8b2a - Removed NtGdiLPTODP/DPTOLP from w32ksvc.db and updated ntgdibad.h.
- Connected the gdi32 parts.

svn path=/trunk/; revision=28270
2007-08-10 07:39:46 +00:00
James Tabor
1ed0850348 Needed the w32ksvc.db too.
svn path=/trunk/; revision=28269
2007-08-10 06:55:18 +00:00
James Tabor
12fdc9f38e - Removed NtGdiPie from w32ksvc.db, leaving NtGdiPie in fillshap.c and updated ntgdibad.h.
- Separated printing.c to printing.c and coord.c. This was for LP to DP.
- Fixed flags.

svn path=/trunk/; revision=28268
2007-08-10 06:47:00 +00:00
James Tabor
674c1a507f Fix a problem in metafile deallocation.
svn path=/trunk/; revision=28267
2007-08-10 05:52:26 +00:00
Colin Finck
3c1d31c4a9 Changes in the slovak translation of taskmgr by Mario Kacmar (kario AT szm DOT sk)
See issue #2552 for more details.

svn path=/trunk/; revision=28266
2007-08-09 16:53:31 +00:00
Timo Kreuzer
b395135182 fix icon display
svn path=/trunk/; revision=28265
2007-08-09 14:42:33 +00:00
Timo Kreuzer
e7e1292fea add myself to CREDITS
svn path=/trunk/; revision=28264
2007-08-09 12:47:07 +00:00
Magnus Olsen
e915e72713 win32k
Implement NtGdiEngStretchBlt, NtGdiEngLockSurface                              

gdi32
Implement EngStretchBlt, EngLockSurface                              

Fix small typo in NtGdiEngBitBlt

svn path=/trunk/; revision=28261
2007-08-09 10:11:47 +00:00
Magnus Olsen
b7aca87de2 fix a typo thx jimtablor
svn path=/trunk/; revision=28260
2007-08-09 09:36:15 +00:00
Aleksey Bragin
90307e077e One of Alex's uncommitted patches while he was working on the Cm branch:
- Fix CmpCacheTable and CmpNameCacheTable definition.
- Fix GET_HASH_ENTRY definition.
- Add KCB Lock Acquire/Release macros by Index and Key.
Has no effect on current code, but fixes some bugs in the branch-based code

svn path=/trunk/; revision=28259
2007-08-09 08:35:11 +00:00
Aleksey Bragin
79d430fe4a - Fix DBG=KDBG=0 build
svn path=/trunk/; revision=28257
2007-08-09 07:50:31 +00:00
Aleksey Bragin
a21d95da1f - Set correct hive version in the hive structure
svn path=/trunk/; revision=28256
2007-08-09 07:39:47 +00:00
James Tabor
6de3763291 - Removed NtGdiSetAbortProc and NtGdiEscape from w32ksvc.db, leaving NtGdiEscape in print.c and updated ntgdibad.h.
svn path=/trunk/; revision=28255
2007-08-09 07:21:12 +00:00
Aleksey Bragin
77ea930fcb - Fix definition of _DESCRIPTOR/KDESCRIPTOR
- Fix all code/data structures of GDT/IDT to match new definition
- Kernel is now MSVC/WDK compilable (but not linkable yet)
- Remove two previous fixes for bootvid/kdcom MSVC/WDK compiling

svn path=/trunk/; revision=28254
2007-08-09 07:12:59 +00:00
James Tabor
56ed3e702f - Fixed NtGdiAlphaBlend prototype.
- Changed name for NtGdiSetIcmMode, updated ntgdibad.h.
- Fix size issue in w32ksvc.db.

svn path=/trunk/; revision=28253
2007-08-09 06:48:07 +00:00
Magnus Olsen
e11b16d9e7 gdi32
implement EngBitBlt
win32k
implement NtGdiEngBitBlt

svn path=/trunk/; revision=28252
2007-08-08 23:53:58 +00:00
Magnus Olsen
bc272f3edd Implement NtGdiEngAlphaBlend
Implement EngAlphaBlend

svn path=/trunk/; revision=28251
2007-08-08 23:03:46 +00:00
Daniel Reimer
54c4a1be66 Add Cardsbav.dll to Build of RosApps
svn path=/trunk/; revision=28250
2007-08-08 22:05:04 +00:00
Colin Finck
83a2f634bd Slovak translations for Explorer, Taskmgr and Winhelp by Mario Kacmar (kario AT szm DOT sk)
See issue #2543,2551,2552 for more details.

svn path=/trunk/; revision=28249
2007-08-08 19:23:53 +00:00
James Tabor
cce849b312 - Removed NtGdiGet/SetArcDirection and NtGdiGetSetTextCharExtra, update ntgdibad.h.
- Updated NtGdiGet/AndSet/DCDword.
- Changes to other files to reflect the updates and removals.

svn path=/trunk/; revision=28248
2007-08-08 18:58:06 +00:00
Sylvain Petreolle
812a9e4d7b use unicode directive
svn path=/trunk/; revision=28247
2007-08-08 16:41:25 +00:00
Sylvain Petreolle
c03ea6d0ce use unicode directive
svn path=/trunk/; revision=28246
2007-08-08 16:34:54 +00:00
Colin Finck
5e9cfe8af3 Never use spaces in rbuild files!
Also re-unlock the file again

svn path=/trunk/; revision=28245
2007-08-08 15:22:02 +00:00
Hervé Poussineau
e1fb5a56a5 Replace a call to undocumented function CreateUserProfile by its documented equivalent (LogonUser + LoadUserProfile)
In all cases, this code should be removed once NtUnloadKey is implemented
Add a message to remind when to remove this hack

svn path=/trunk/; revision=28244
2007-08-08 13:44:03 +00:00
Hervé Poussineau
583043c3b0 Be less alarming in a debug message
svn path=/trunk/; revision=28243
2007-08-08 10:46:03 +00:00
Hervé Poussineau
7707da030b Add SCESTATUS_* constants
svn path=/trunk/; revision=28242
2007-08-08 08:58:58 +00:00
Hervé Poussineau
6d37743cf2 Improve LoadUserProfileW, by creating the profile if it doesn't exist
svn path=/trunk/; revision=28241
2007-08-08 08:26:44 +00:00
Hervé Poussineau
32789f3a9e Implement LsaLookupSids
Add a fake implementation to LsaLookupNames to return some information

svn path=/trunk/; revision=28240
2007-08-08 08:24:32 +00:00
James Tabor
982677792e Removed NtGdiGetRelAbs. Use GetDCDWord in gdi32. Update ntgdibad.h.
svn path=/trunk/; revision=28239
2007-08-08 02:20:43 +00:00
Timo Kreuzer
2fdc0258c0 remove NtGdiGetClipRgn from win32k
svn path=/trunk/; revision=28238
2007-08-08 02:03:25 +00:00
James Tabor
d89aa3a672 Add two more Dc_Attr Dirty flags.
svn path=/trunk/; revision=28237
2007-08-08 01:28:36 +00:00
Timo Kreuzer
a10bbf4d75 GetClipRgn: use NtGdiGetRandomRgn
svn path=/trunk/; revision=28236
2007-08-08 01:03:54 +00:00
James Tabor
3976fc7361 Removed AbortProc from WIN_DC_INFO. AbortProc is handled in gdi32 and stored in the Dc_Attr->pvLDC (LDC) structure. LDC structure is used for printing and EMF functions. WIN_DC_INFO is still useful and might stick around for a while.
svn path=/trunk/; revision=28235
2007-08-08 01:02:32 +00:00
James Tabor
2ccda083f9 Moved CurrentPos to Dc_Attr.ptlCurrent. Plugged in NtGdiGet-AndSetDCDword with out any internal support code. Still sorting out internal calls to old NtGdi functions. Ntgdibad.h will be updated on each removed external call of these functions are gone from w32ksvc.db.
svn path=/trunk/; revision=28234
2007-08-08 00:46:11 +00:00
Timo Kreuzer
18f3bc28a0 make NtGdiGetRandomRgn behave more like on XP, 33/34 tests now passing in w32knapi test
svn path=/trunk/; revision=28233
2007-08-08 00:28:08 +00:00
Timo Kreuzer
8f82a2f3ed - restructure syscall code, add edi to RosSyscall clobber list
- more NtGdiGetRandomRgn tests
- more TEST -> RTEST

svn path=/trunk/; revision=28232
2007-08-07 23:13:25 +00:00
Timo Kreuzer
ac4a0d249c fix build part 2
svn path=/trunk/; revision=28231
2007-08-07 23:06:51 +00:00
Ziliang Guo
e21a6e279a Fix build part 1, add precomp.h into bootvid.rbuild
svn path=/trunk/; revision=28230
2007-08-07 23:04:19 +00:00
James Tabor
d64282be7c Don't write to user space after an error. We do write if TRUE.
svn path=/trunk/; revision=28229
2007-08-07 22:19:32 +00:00
Christoph von Wittich
61583dabbe add support for Visual Studio 2008 (Orcas)
svn path=/trunk/; revision=28228
2007-08-07 21:19:22 +00:00
Aleksey Bragin
b5c613692e - WDK support for bootvid and kdcom.
svn path=/trunk/; revision=28227
2007-08-07 20:58:55 +00:00
Christoph von Wittich
d076ba3951 revert more.c to r25042
svn path=/trunk/; revision=28226
2007-08-07 20:52:55 +00:00
Aleksey Bragin
47bb187225 - Force using ReactOS's ntverp.h instead of the WDK.
- Don't include ntverp.h twice.

svn path=/trunk/; revision=28225
2007-08-07 20:51:50 +00:00
Aleksey Bragin
4224d31e22 - Make CSQ compatible with MSVC/WDK.
svn path=/trunk/; revision=28224
2007-08-07 20:49:09 +00:00
Aleksey Bragin
0e450718cd - Rename exception.c to except.c to avoid conflict with another exception.c in rtl project.
- Fix WDK compatibility.

svn path=/trunk/; revision=28223
2007-08-07 20:46:24 +00:00
Aleksey Bragin
ed479b0bf9 - Fix build (remove RtlUnwind redeclarations).
svn path=/trunk/; revision=28222
2007-08-07 20:20:15 +00:00
Aleksey Bragin
735dbb12c6 - Add RtlUnwind to headers, and make list.h MSVC-compatible.
- Rename framebased.asm to framebased.S and write in GAS compatible assembly, instead of using nasmw.
- Fix WDK compatibility.

svn path=/trunk/; revision=28221
2007-08-07 20:11:21 +00:00
Christoph von Wittich
b95ab0c9d7 fix release build
svn path=/trunk/; revision=28220
2007-08-07 20:04:46 +00:00
James Tabor
b82f6444f6 Don't write to user space with after an error.
svn path=/trunk/; revision=28219
2007-08-07 19:29:48 +00:00
Hervé Poussineau
434e1ef9df Support absolute paths for intermediate/output directories
Never put real intermediate/output directory names in generated makefile, use $(INTERMEDIATE) and $(OUTPUT) instead

svn path=/trunk/; revision=28218
2007-08-07 15:08:09 +00:00
Hervé Poussineau
ebb26326a5 Remove some debug messages
scsiport.c: Do not try to open Device subkey if we don't have a service key
cmhardwr.c: Write BIOS information only if we succeeded to open the key

svn path=/trunk/; revision=28217
2007-08-07 11:45:30 +00:00
Aleksey Bragin
9f62e7d5b8 - Remove empty init.S
svn path=/trunk/; revision=28216
2007-08-07 10:24:06 +00:00
The Wine Synchronizer
704b69f83f Autosyncing with Wine HEAD
svn path=/trunk/; revision=28215
2007-08-07 07:27:43 +00:00
James Tabor
eadf106405 Move Break Extra and Count justification to Dc_Attr.
svn path=/trunk/; revision=28214
2007-08-07 07:27:12 +00:00
Hervé Poussineau
8039a51a3d Add mlang.dll to bootcd
svn path=/trunk/; revision=28213
2007-08-07 06:54:21 +00:00
The Wine Synchronizer
2deacc72e3 Autosyncing with Wine HEAD
svn path=/trunk/; revision=28212
2007-08-07 06:52:34 +00:00
Hervé Poussineau
c86fc22726 Prepare import of mlang library. This revision does not compile.
svn path=/trunk/; revision=28211
2007-08-07 06:48:01 +00:00
James Tabor
914d831991 Removed NtGdiGetDCOrgEx, GetViewportExt/OrgEx, GetWindowExt/OrgEx. Added NtGdiGetDCPoint.
Will update ntgdibad.h once we sort out the internal use of these functions.

svn path=/trunk/; revision=28209
2007-08-07 05:58:29 +00:00
Timo Kreuzer
e54ae7b31f update ntgdibad.h
svn path=/trunk/; revision=28208
2007-08-07 01:28:02 +00:00
Timo Kreuzer
234451155e call IntGdiExtSelectClipRgn from inside win32k instead of NtGdiSelectClipRgn
remove NtGdiSelectClipRgn from win32k

svn path=/trunk/; revision=28207
2007-08-07 01:27:17 +00:00
Timo Kreuzer
4237ee71bd SelectClipRgn: call NtGdiExtSelectClipRgn with RGN_COPY
svn path=/trunk/; revision=28206
2007-08-07 00:56:12 +00:00
Magnus Olsen
e7b5eb420f Remove init.s and put Thomas's code into boot.s, so we don't have 2 files for the same purpose.
Write the few lines of C code that were part of the "final" code into boot.S as 
well, to avoid yet another trampoline jump. and
Thanks again to Thomas for finding and fixing the bug.

svn path=/trunk/; revision=28205
2007-08-06 23:55:35 +00:00
Timo Kreuzer
67759e297b fix build
svn path=/trunk/; revision=28204
2007-08-06 23:47:36 +00:00
Magnus Olsen
eac8e57854 Update win32k syscall table layout to win32xp sp2
this is not finish update, we are missing allot stub in 
win32k. before this layout are finish we need thuse stub in place. 

svn path=/trunk/; revision=28203
2007-08-06 19:57:58 +00:00
Daniel Reimer
f3c126accd Decrease cards.dll size by 700 kB by cuttung down all files to 8-Bit Colors.
svn path=/trunk/; revision=28202
2007-08-06 19:43:14 +00:00
Daniel Reimer
efbd79dea9 - Forgot two wrong sizes.
- Reverted to 24 bit Color. ROS's whole Cards.dll uses it, so I keep the colors here too.
- Freecard is now a monochrome Bitmap. This results in a Semi Transparent Card (= Dark Green) instead of a grey square. Try in XP Solitaire. Looks way better and its the way MS does it too.

svn path=/trunk/; revision=28201
2007-08-06 19:33:16 +00:00
Colin Finck
541deeba86 Expand environment strings in the szWallpaper variable. (patch by Marc Piulachs, marc DOT piulachs AT codexchange DOT net)
This is the same way how Windows XP does it (allowing environment variables in the "Wallpaper" registry value, but not as an argument for SystemParametersInfo, SPI_SETDESKWALLPAPER)

See issue #2536 for more details.

svn path=/trunk/; revision=28200
2007-08-06 19:07:34 +00:00
Hervé Poussineau
0838232088 Add more uuids in uuid lib
svn path=/trunk/; revision=28199
2007-08-06 16:17:55 +00:00
Hervé Poussineau
f6cd5eefb6 Generate as much headers as possible from idl
svn path=/trunk/; revision=28198
2007-08-06 16:16:57 +00:00
Hervé Poussineau
c5a567cffc Add some prototypes
svn path=/trunk/; revision=28197
2007-08-06 16:05:08 +00:00
Daniel Reimer
ea3c1cdddb - Resize wrong sized Backgrounds.
- Add the one from Bug 2535 (thx to Rhy Thornton (rhy <AT> leperkhanz <DOT> com) for it.) and replace the ugly Bird in Background 9. Right now only a resized one, but it still looks nice.

svn path=/trunk/; revision=28196
2007-08-06 15:23:11 +00:00
Colin Finck
270493f197 Starfield Screensaver by Marc Piulachs (marc DOT piulachs AT codexchange DOT net)
I committed the latest attachment (the C version) from bug #2510
See issue #2510 for more details.

svn path=/trunk/; revision=28195
2007-08-06 14:56:17 +00:00
Hervé Poussineau
c88c4b4ad1 Set setup type to 0 before the end of 2nd stage in syssetup instead of winlogon
svn path=/trunk/; revision=28194
2007-08-06 14:41:05 +00:00
Magnus Olsen
e753659117 fix a smaller issue with win32ksys, when u did delete win32k.s or type make win32ksys_clean
this file was not being rebuild or remove.  

svn path=/trunk/; revision=28193
2007-08-06 13:20:31 +00:00
Daniel Reimer
064b0ec043 Reduce from 24 Bit Colors to 8 Bit. No real difference in Quality, but waaay smaller. 3 MB reduced size.
svn path=/trunk/; revision=28192
2007-08-06 13:12:01 +00:00
Hervé Poussineau
8642e3d307 Enable shutdown privilege before trying to reboot
svn path=/trunk/; revision=28191
2007-08-06 11:57:15 +00:00
Hervé Poussineau
ca34acb3d6 Remove ARCH define in config.template.rbuild.
It is a duplicate of the ROS_ARCH environment variable.

svn path=/trunk/; revision=28189
2007-08-06 09:25:03 +00:00
Hervé Poussineau
9d77e4fff4 Add -D option to add variables in generated file
svn path=/trunk/; revision=28188
2007-08-06 09:19:25 +00:00
James Tabor
5a8a0a1af7 Moved Brush Origin to Dc_attr.
svn path=/trunk/; revision=28186
2007-08-06 08:28:54 +00:00
James Tabor
3137bd861c Fix typo.
svn path=/trunk/; revision=28185
2007-08-06 06:28:39 +00:00
James Tabor
2619101eee Move Window and Viewport Ext and Org to Dc_Attr. Tested it with qemu.
svn path=/trunk/; revision=28184
2007-08-06 05:13:47 +00:00
James Tabor
556e9b7da8 Moved most of the old Win struct to Dc_Attr structure. Tested it with qemu.
svn path=/trunk/; revision=28183
2007-08-06 02:48:09 +00:00
Timo Kreuzer
174418b0d1 - convert a bunch of tests to regression tests as they succeed on ros
- add tests for NtGdiGetRandomRgn

svn path=/trunk/; revision=28182
2007-08-05 23:05:02 +00:00
James Tabor
619203c31c Start of the dcattr migration.
svn path=/trunk/; revision=28181
2007-08-05 22:02:12 +00:00
Daniel Reimer
ecfdde12b9 My Present for ya all. A new cards.dll with bigger, photorealistic Bavarian Style Cards. I theory Number 2-5 are NON existant. But to be fully compatible I sat down and made them by myself. Its fully compatible to Windows Solitaire, not ROS Solitaire, which does not like the bigger cards. This needs a fix. Btw if someone finds out how to modify the edges on the cards to be transparent, plz tell me. They need to be waay more round.
svn path=/trunk/; revision=28180
2007-08-05 20:38:19 +00:00
Eric Kohl
c55a8d231d Add the status bar.
svn path=/trunk/; revision=28179
2007-08-05 18:56:39 +00:00
Sylvain Petreolle
ec345d7f85 fix build
svn path=/trunk/; revision=28178
2007-08-05 14:58:58 +00:00
Aleksey Bragin
56c73282c2 - More MSVC fixes
svn path=/trunk/; revision=28174
2007-08-05 11:27:39 +00:00
Eric Kohl
f3af35532e Implement toggle keys option.
svn path=/trunk/; revision=28173
2007-08-05 09:48:34 +00:00
James Tabor
dfd772ea97 Started CreateMetaFile, port from wine. Made changes to the structures. Added new support routines.
svn path=/trunk/; revision=28172
2007-08-05 09:21:00 +00:00
Aleksey Bragin
e8847e55ed - Comment out those lines again (sorry), to prevent having lots of uninstallable revisions built by buildbot. Please re-commit when the real bug is fixed.
svn path=/trunk/; revision=28171
2007-08-05 08:27:41 +00:00
Timo Kreuzer
f00375696c delete gdi32 test from win32 folder, as it is all in apitests folder now
svn path=/trunk/; revision=28170
2007-08-05 03:38:42 +00:00
Timo Kreuzer
58c6a293bc - make apitest.c into a static lib to be used by different tests
- add a gdi32 api test, based on the one in the win32 folder
- add a user32 api test
- change type of test functions to int
- implement a quick 'n dirty html api status output
- uncomment NtGdiTransormPoints in w32kdll.def
- add ASSERT1 macro (ASSERT is already used)
- include some more headers

svn path=/trunk/; revision=28169
2007-08-05 03:32:24 +00:00
James Tabor
342efc07e7 Removed non Enh Metafile stubs from win32k:
- Updated ntgdibad.h.
- List of known functions:
  NtGidConvertMetafileRect
  NtGdiCreateMetafileDC
  NtGdiCreateServerMetaFile
  NtGdiGetServerMetaFileBits
  NtGdiSetMetaRgn
- No updates for Enh Metafile.


svn path=/trunk/; revision=28166
2007-08-04 22:02:39 +00:00
James Tabor
0fc46e2a68 Copy Metafile.c to EnhMFile.c. Separating the code.
svn path=/trunk/; revision=28165
2007-08-04 21:02:55 +00:00
Daniel Reimer
a7c1fcdf5b revert some accidently commited changes in my tree.
svn path=/trunk/; revision=28164
2007-08-04 20:51:54 +00:00
Daniel Reimer
3dd7170968 Add 8 new Backgrounds to cards.dll. thx to Mario Kacmar (kario@szm.sk) (Bug 2416)
svn path=/trunk/; revision=28162
2007-08-04 20:13:19 +00:00
Timo Kreuzer
5f857c9cba small bugfix
svn path=/trunk/; revision=28161
2007-08-04 16:51:10 +00:00
Timo Kreuzer
2669c54fcc - implement quick 'n dirty HTML api status output
- change test function return type to INT
- add ASSERT macro
- include some more headers

svn path=/trunk/; revision=28160
2007-08-04 16:45:12 +00:00
Eric Kohl
cbba52ddde Add remaining sticky keys options.
svn path=/trunk/; revision=28159
2007-08-04 16:41:30 +00:00
Christoph von Wittich
c1152ad29c Fix scanning affinity in IoConnectInterrupt (patch by w3seek)
svn path=/trunk/; revision=28158
2007-08-04 15:52:17 +00:00
Sylvain Petreolle
21876ed8a8 C uses / as dir separator, not \
svn path=/trunk/; revision=28157
2007-08-04 13:22:48 +00:00
Ged Murphy
8db125b5c8 revert the unicode build for now as it causes a problem with our gcc build
svn path=/trunk/; revision=28156
2007-08-04 11:19:51 +00:00
Aleksey Bragin
1e9162f086 - Fix kernel32 compile.
svn path=/trunk/; revision=28155
2007-08-04 10:59:01 +00:00
Eric Kohl
2f2abb39d0 - Ask the user when he closes the window only if the game is still running.
svn path=/trunk/; revision=28154
2007-08-04 10:22:44 +00:00
Aleksey Bragin
415aa5eb49 - Fix NtSetInformationThread(ThreadBasePriority)
- Fix buffer overflow in KeRosDumpStackFrames
- Fix usage of garbage/uninitialized handle entry local variable in ObpCreateHandle
- Fix buffer overflow and logic bug in IoConnectInterrupt
- Fix MSVC warnings

svn path=/trunk/; revision=28153
2007-08-04 08:49:47 +00:00
Aleksey Bragin
ce187084c2 - Appropriate changes to kmtest
svn path=/trunk/; revision=28152
2007-08-04 08:47:52 +00:00
Aleksey Bragin
ac4295e788 - WDK and MSVC compatibility fixes.
svn path=/trunk/; revision=28151
2007-08-04 08:26:58 +00:00
James Tabor
bccb44324c Dc.c :
- Update Get/SetDCBrush/PenColor code.
  * Added dcattr sync flags to Set functions.
  * if'ed out, does compile.
Painting.c :
- Update LP to DP to LP code.
  * Added update flags for Xforms, the best way I understand them.
  * if'ed out.
- Moved Fixme line down and above GetDCObject.

svn path=/trunk/; revision=28150
2007-08-04 07:37:27 +00:00
Timo Kreuzer
9c457ea930 fix some names
svn path=/trunk/; revision=28149
2007-08-03 22:31:55 +00:00
Colin Finck
0ebf3b75fd - Define one LANGUAGE, SUBLANG pair per resource file and not per resource.
This makes it easier for translators and also fixes a mix-up of languages.
- Move the brazilian translations from pt-PT.rc to a new pt-BR.rc file.
- Remove the "#ifdef LANG_WALON" statement from wa-WA.rc and disable this resource file in rsrc.rc instead like it's done for eo-EO.rc.
  These are WINE-specific LANG defines. We also have them in include/reactos/wine/winnt.h, but this file is not included. It has to be decided later how to handle these languages.

See issue #2523 for more details.

svn path=/trunk/; revision=28148
2007-08-03 21:36:53 +00:00
Eric Kohl
a83c2f3d54 Enable "Deck" menu item.
svn path=/trunk/; revision=28146
2007-08-03 18:04:34 +00:00
Ged Murphy
423e234726 build sol as unicode
svn path=/trunk/; revision=28145
2007-08-03 18:01:04 +00:00
Ged Murphy
e4a100a916 don't rename the executable for make install. This should keep w3seek happy for a while :)
svn path=/trunk/; revision=28144
2007-08-03 17:48:24 +00:00
Ged Murphy
85145f3477 don't link to a non existent lib
svn path=/trunk/; revision=28143
2007-08-03 17:34:55 +00:00
Ged Murphy
38acb524ac don't ask everytime the user wants to close the window
svn path=/trunk/; revision=28142
2007-08-03 17:25:22 +00:00
Hervé Poussineau
d68373d641 Fix non mingw backend invocations
svn path=/trunk/; revision=28139
2007-08-03 16:09:09 +00:00
Hervé Poussineau
95029fea84 Create resource output directory before calling bin2res
svn path=/trunk/; revision=28138
2007-08-03 15:33:45 +00:00
Thomas Bluemel
4595bee66c Patch by Frode Lillerud <frode@enkelt.no>
- Basic implementation of logoff.exe
See issue #2509 for more details.

svn path=/trunk/; revision=28137
2007-08-03 15:14:49 +00:00
Colin Finck
e0997c086c Updated ukrainian translations by Artem Reznikov (temarez AT yandex DOT ru)
See issue #2524 for more details.

svn path=/trunk/; revision=28136
2007-08-03 15:12:08 +00:00
Hervé Poussineau
d5527355ec syssetup.inf really belongs to output directory, not intermediate one
svn path=/trunk/; revision=28135
2007-08-03 14:33:43 +00:00
Hervé Poussineau
623ca2cf0a Extract resources to intermediate directory
svn path=/trunk/; revision=28134
2007-08-03 13:51:19 +00:00
Hervé Poussineau
28a8baa325 Add -O option, to define where are stored extracted resources
svn path=/trunk/; revision=28133
2007-08-03 13:47:51 +00:00
Daniel Reimer
df1611977b Translate new stuff in German RC File.
svn path=/trunk/; revision=28132
2007-08-03 12:57:12 +00:00
Ged Murphy
ebe6b85b1b add language resources
svn path=/trunk/; revision=28131
2007-08-03 12:54:41 +00:00
Ged Murphy
7de49332f6 add a few more card back bitmaps
svn path=/trunk/; revision=28130
2007-08-03 12:50:49 +00:00
Ged Murphy
4c9ad2ec8a - add a dialog to allow users to change the card backs
- highlights a few drawing bugs in ros

svn path=/trunk/; revision=28129
2007-08-03 12:47:40 +00:00
Hervé Poussineau
85d3e8b1d1 Add missing include directory
svn path=/trunk/; revision=28128
2007-08-03 12:12:41 +00:00
Colin Finck
eb840bfc08 Check if the same Monitor ID (= 10 bytes from the EDID, which can be used to uniquely identify a monitor) appears two times and stop the enumeration in this case.
This is needed for some older monitors (1994-1999), which transmit the EDID data according to the VBE/DDC Standard 1.0.
We assumed that the function for reading the EDID fails, when we input higher controller unit numbers, but some older monitors don't care about the controller unit number and always return valid EDID data.
More information is available at: http://www.vesa.org/public/VBE/VBEDDC11.PDF

See issue #2239 for more details.

svn path=/trunk/; revision=28127
2007-08-03 12:10:43 +00:00
Hervé Poussineau
df770c6d06 Move some more autogenerated files to intermediate directory
Remove POSTAUTO hack in Makefile

svn path=/trunk/; revision=28126
2007-08-03 11:54:33 +00:00
Hervé Poussineau
1a47ede2ff Add ROS_ARCH environment variable
Set -r option of rbuild as mandatory

svn path=/trunk/; revision=28124
2007-08-03 11:35:01 +00:00
Thomas Bluemel
e94c193f12 Revert r28121 as it removes an optimization
svn path=/trunk/; revision=28122
2007-08-03 10:23:19 +00:00
Thomas Bluemel
ff44e1ea45 Improve calculation of new buffer size
svn path=/trunk/; revision=28121
2007-08-03 10:21:59 +00:00
Thomas Bluemel
401e48338f Fix buffer overflow
See issue #2516 for more details.

svn path=/trunk/; revision=28120
2007-08-03 10:12:25 +00:00
Hervé Poussineau
f74d31a796 Create directory before rbuild tries to access it
svn path=/trunk/; revision=28119
2007-08-03 10:12:03 +00:00
Hervé Poussineau
10cc6c5d40 Autogenerate syssetup.inf file in intermediate directory
svn path=/trunk/; revision=28118
2007-08-03 09:41:42 +00:00
Hervé Poussineau
cfda12103c Create the invisible SAS window even in setup mode
Explicitly reboot at the end of 2nd stage
See issue #2431 for more details.

svn path=/trunk/; revision=28116
2007-08-03 09:28:01 +00:00
Thomas Bluemel
eedac786ea Remove GetClassLong hack for GCL_MENUNAME, this is no longer needed
svn path=/trunk/; revision=28115
2007-08-03 08:19:47 +00:00
Thomas Bluemel
a866dc9db1 Patch by Carlo Bramix <carlo.bramix@libero.it>
- Get rid of some code duplication
See issue #2517 for more details.

svn path=/trunk/; revision=28114
2007-08-03 07:35:39 +00:00
Ged Murphy
c5997cd18b activate the properties option in the menu, also make it bold
See issue #2522 for more details.

svn path=/trunk/; revision=28113
2007-08-02 23:31:32 +00:00
Timo Kreuzer
867e2eb7f4 0x124a is NtUserValidateTimerCallback, thanks jimtabor for finding this out.
svn path=/trunk/; revision=28112
2007-08-02 23:29:43 +00:00
Timo Kreuzer
e97388eec3 small bugfix: don't zero terminate the szCSDVersion sting beyond the buffer.
svn path=/trunk/; revision=28111
2007-08-02 22:23:27 +00:00
Timo Kreuzer
9e4807d6e5 NtGdiGetSetBitmapBits:
- use SEH and probe the user mode buffers
- SetLastWin32Error on invalid handle
- move the copying to IntGetSetBitmapBits
- only use IntGetSetBitmapBits from inside win32k
- move NtGdiGetBitmapBits to bitmap.c
- allow copying a number of bytes not matching one entire line, like on windows
I think that was all changes.

svn path=/trunk/; revision=28110
2007-08-02 22:14:32 +00:00
James Tabor
20f9953389 Add NtGdiTransformPoints stub.
svn path=/trunk/; revision=28109
2007-08-02 22:02:23 +00:00
Timo Kreuzer
041123983d remove NtGdiArc, NtGdiArcTo and NtGdiChord from ntgdibad.h
svn path=/trunk/; revision=28107
2007-08-02 21:50:05 +00:00
Timo Kreuzer
603ac00e50 an API test kit + win32k native API test app.
It does syscalls on ros by linking to w32kdll.dll
On windows it uses syscall tables (only winxp sp2 available atm)

svn path=/trunk/; revision=28106
2007-08-02 21:42:37 +00:00
Hervé Poussineau
24de999ac2 Support "root" attribute in <directory> elements
svn path=/trunk/; revision=28102
2007-08-02 14:14:19 +00:00
Thomas Bluemel
d645b9c6d7 Add keyboard layouts again that were removed in r27723
svn path=/trunk/; revision=28099
2007-08-02 10:26:52 +00:00
Thomas Bluemel
5165b3275e Remove cmd_test for now...
svn path=/trunk/; revision=28097
2007-08-02 07:39:55 +00:00
Thomas Bluemel
4f2a8ebce4 Fix compiling rostests
svn path=/trunk/; revision=28096
2007-08-02 06:59:36 +00:00
Thomas Bluemel
e83fc637ea Include stddef.h for ptrdiff_t
svn path=/trunk/; revision=28095
2007-08-02 04:19:52 +00:00
Thomas Bluemel
5a7f727906 Fix buffer overflow in InfpAddSection.
See issue #2516 for more details.

svn path=/trunk/; revision=28094
2007-08-02 04:09:19 +00:00
Christoph von Wittich
4932311395 fix a crash
svn path=/trunk/; revision=28093
2007-08-02 03:08:17 +00:00
Christoph von Wittich
e470bad721 fix null pointer check
svn path=/trunk/; revision=28092
2007-08-02 01:45:02 +00:00
Timo Kreuzer
48428871b5 remove NtGdiArc, NtGdiArcTo and NtGdiChord from win32k, they are not used any longer.
svn path=/trunk/; revision=28091
2007-08-02 01:44:59 +00:00
Christoph von Wittich
2e7009f963 fix another memory leak
svn path=/trunk/; revision=28090
2007-08-02 01:13:28 +00:00
Timo Kreuzer
2ab8c8635c update ntgdibad.h
svn path=/trunk/; revision=28089
2007-08-02 00:25:02 +00:00
Timo Kreuzer
a0c19eb6f9 rename NtGdiSetDCState to IntGdiSetDCState
svn path=/trunk/; revision=28088
2007-08-02 00:23:48 +00:00
Timo Kreuzer
9574b5dbe1 rename NtGdiSetHookFlags into IntGdiSetHookFlags
svn path=/trunk/; revision=28087
2007-08-02 00:16:31 +00:00
Timo Kreuzer
bedc89bb5f rename NtGdiGetDCState to IntGdiGetDCState
svn path=/trunk/; revision=28086
2007-08-02 00:10:15 +00:00
Christoph von Wittich
1ef29d0d83 fix a memory leak
svn path=/trunk/; revision=28085
2007-08-01 22:50:58 +00:00
Christoph von Wittich
953da5af6e fix a memory leak
svn path=/trunk/; revision=28084
2007-08-01 22:41:35 +00:00
Christoph von Wittich
5440600381 don't double free hFile
See issue #2499 for more details.

svn path=/trunk/; revision=28083
2007-08-01 22:04:04 +00:00
Thomas Bluemel
8d60466f8a Special handling for some fake dos devices
svn path=/trunk/; revision=28081
2007-08-01 19:50:28 +00:00
James Tabor
29241f09f4 Move meta code from painting to arc. Including the new Pie function with ifed out.
svn path=/trunk/; revision=28079
2007-08-01 19:26:55 +00:00
Thomas Bluemel
e6e690ba9a Don't output "file not found" messages in recursive searches
svn path=/trunk/; revision=28078
2007-08-01 18:55:47 +00:00
Thomas Bluemel
604b0f6c03 Fix displaying the free space on the volume
svn path=/trunk/; revision=28077
2007-08-01 18:36:23 +00:00
Thomas Bluemel
790a3ef810 Improve output of directory summaries
svn path=/trunk/; revision=28076
2007-08-01 18:18:26 +00:00
Thomas Bluemel
e098f7d858 - Correctly detect volume changes when querying in multiple directories
- "dir directory" displays the contents of a directory

svn path=/trunk/; revision=28075
2007-08-01 17:48:08 +00:00
Thomas Bluemel
1f6dec06f4 Simplify and fix code by using GetFullPathName and GetVolumePathName instead of re-inventing the wheel once again.
See issue #2041 for more details.

svn path=/trunk/; revision=28074
2007-08-01 16:20:16 +00:00
Thomas Bluemel
e42a8d41ff Fix a memory leak in the dir command
svn path=/trunk/; revision=28073
2007-08-01 14:32:57 +00:00
Thomas Bluemel
c16f477a80 Fix buffer overflow bug in mkdir command
See issue #2499 for more details.

svn path=/trunk/; revision=28072
2007-08-01 13:34:48 +00:00
Thomas Bluemel
f5b38b5d3b Remove debug statements I accidently committed
svn path=/trunk/; revision=28071
2007-08-01 13:27:16 +00:00
Thomas Bluemel
c8479ce1cb - Detect memory leaks when cmd exits
- Use _tmain

svn path=/trunk/; revision=28070
2007-08-01 12:34:49 +00:00
Timo Kreuzer
9787ba0ce3 implement Arc, ArcTo, Chord, calling NtGdiArcInternal
svn path=/trunk/; revision=28069
2007-08-01 12:34:38 +00:00
Thomas Bluemel
683519ff1c Compile memory heap corruption detection code with _DEBUG_MEM and define it by default (for now)
svn path=/trunk/; revision=28068
2007-08-01 12:04:49 +00:00
Thomas Bluemel
8026c569b2 Improve debug message
svn path=/trunk/; revision=28067
2007-08-01 10:41:22 +00:00
Thomas Bluemel
fc6d0b3bc7 Allocate correct amount of memory.
See issue #2499 for more details.

svn path=/trunk/; revision=28066
2007-08-01 10:39:49 +00:00
Thomas Bluemel
df91a99233 - Add code to detect buffer overflows and buffer underflows on memory operations. This code is only enabled if _DEBUG is defined.
- Change all calls to malloc, realloc and free to cmd_alloc, cmd_realloc and cmd_free

svn path=/trunk/; revision=28065
2007-08-01 10:17:13 +00:00
Ged Murphy
9da2ad12a6 - update cards.dll to use GPL cards which don't resemble the Windows counterparts
- cards taken from http://sourceforge.net/projects/macsolitairex

svn path=/trunk/; revision=28064
2007-08-01 09:30:28 +00:00
Timo Kreuzer
478d0d4bc5 Implement ExtEscape, MaskBlt, PlgBlt, wich were linked to the Nt functions before. But those have a different parameter count. Fixes compilation.
svn path=/trunk/; revision=28063
2007-08-01 02:07:15 +00:00
Timo Kreuzer
369bfa51f2 NtGdiMaskBlt has 13 params not 12
NtGdiPlgBlt has 11 params not 10
NtGdiSetPixelFormat has 2 params not 3

svn path=/trunk/; revision=28062
2007-08-01 02:05:24 +00:00
Timo Kreuzer
e80f3b112e fix parameter count for NtGdiExtEscape in w32ksvc.db (8 parameters not 6)
svn path=/trunk/; revision=28061
2007-08-01 00:57:17 +00:00
Timo Kreuzer
4ef86834f9 fix nci tool to only generate one stub file for our win32ksys lib to silence the warning. Fix some comments.
svn path=/trunk/; revision=28060
2007-07-31 23:00:31 +00:00
Ged Murphy
2412a1aeb1 convert timedate.cpl to unicode
svn path=/trunk/; revision=28059
2007-07-31 22:17:07 +00:00
Magnus Olsen
71705afb69 revers guiconsole.c changes that was mistake committed in r28057
svn path=/trunk/; revision=28058
2007-07-31 21:41:15 +00:00
Magnus Olsen
d848c8c8f4 adding win32ksys the syscall lib for win32k
waring 
type make clean, 
delete makefile.auto
make clean does not delete the gdi32/misc/i386 delete that folder and need delete it u self
make clean does not delete the user32/misc/i386 delete that folder and need delete it u self



svn path=/trunk/; revision=28057
2007-07-31 21:38:52 +00:00
Ged Murphy
1fb9e7536b - don't write more bytes to the reg key than is required. fixes bug 2402
- use unicode explicitly
See issue #2402 for more details.

svn path=/trunk/; revision=28056
2007-07-31 21:17:57 +00:00
Magnus Olsen
59bf5f271d user32 cleanup lite
redirect the InvalidateRect@12 to NtUserInvalidateRect@12 in the def file

nci tools changes (done of timo and me)
frist part moving the w32ksvc.db and sysfuncs.lst where they belong


svn path=/trunk/; revision=28055
2007-07-31 20:22:13 +00:00
James Tabor
6428c40f66 Add NtGdiCreate-DeleteClientObj to win32k. This is used for Metafile not EnhMeta.
svn path=/trunk/; revision=28054
2007-07-31 07:06:06 +00:00
James Tabor
9d0415f7a7 Remove NtGdiGdiGet-SetBatchLimit.
svn path=/trunk/; revision=28053
2007-07-31 04:41:24 +00:00
Christoph von Wittich
fd37f2607a don't allow renaming of root keys
See issue #2508 for more details.

svn path=/trunk/; revision=28052
2007-07-30 23:27:52 +00:00
Christoph von Wittich
b430b691ac add a NULL pointer check
See issue #2508 for more details.

svn path=/trunk/; revision=28050
2007-07-30 21:04:38 +00:00
Christoph von Wittich
cb9cf60a0d Norwegian translation for msgina and mmc path by Frode Lillerud (frode at enkelt dot no)
See issue #2507 for more details.

svn path=/trunk/; revision=28049
2007-07-30 18:28:55 +00:00
Colin Finck
a98c23a440 Revert w3seek's changes from r27978, mkhive segfaults with them on 64-bit systems
svn path=/trunk/; revision=28047
2007-07-30 16:02:00 +00:00
Thomas Bluemel
ac648888c7 Only return valid values from WM_NOTIFYFORMAT with NF_QUERY in DefWindowProc
svn path=/trunk/; revision=28046
2007-07-30 15:16:15 +00:00
Timo Kreuzer
a2171e8ec6 - implement NtUserHideCaret, make NtUserShowCaret prototype match XP ones.
- update w32ksvc.db
- update ntuser.h
- remove implementations of ShowCaret and HideCaret from user32, redirectexports to nt functions
- add macros for ShowCaret / HideCaret to user32p.h to resolve user32 internal references

svn path=/trunk/; revision=28045
2007-07-30 15:08:14 +00:00
Hervé Poussineau
7855dd896f Remove ExportDriver concept.
If you want a driver which exports some functions, simply set it as kernelmodedriver and add a .def file

svn path=/trunk/; revision=28043
2007-07-30 13:18:35 +00:00
Daniel Reimer
1c474e61da Make output of "vol" command (more) compatible with windows (Bug 2255) from Coviti (coviti {at} gmail {dot} com)
svn path=/trunk/; revision=28042
2007-07-30 13:16:42 +00:00
Ged Murphy
41ba310733 remove the 'enterprise' text, I don't think we're worthy of it just yet.
svn path=/trunk/; revision=28040
2007-07-30 10:17:20 +00:00
Colin Finck
a2b61f49fb Add a Logon screensaver similar to the one of Windows developed by Marc Piulachs (marc DOT piulachs AT codexchange DOT net)
I modified the code, so the screensaver is listed as "Logon ScreenSaver" instead of "Default ScreenSaver"

I also added the other screensavers we have to the Boot-CD.
Some of them highlight some bugs in ReactOS, when you try to use them.
See issue #2505 for more details.

svn path=/trunk/; revision=28038
2007-07-30 09:36:32 +00:00
Christoph von Wittich
a629f387b9 fix broken condition in CallWindowProc
svn path=/trunk/; revision=28037
2007-07-30 08:44:52 +00:00
Timo Kreuzer
c5eb377a58 use NtUserInvalidateRect and NtUserInvalidateRgn in user32. Should be redirected directly in.def file, but it breaks a lot of references, so currently only calling it.
svn path=/trunk/; revision=28036
2007-07-30 04:03:00 +00:00
Timo Kreuzer
3b7f8774ac add NtUserInvalidateRect and NtUserInvalidateRgn to w32ksvc.db
svn path=/trunk/; revision=28035
2007-07-30 03:42:40 +00:00
Timo Kreuzer
54d13b61db add NtUserInvalidateRect and NtUserInvalidateRgn
svn path=/trunk/; revision=28034
2007-07-30 03:41:48 +00:00
Timo Kreuzer
52b31af55d implement NtUserInvalidateRect and NtUserInvalidateRgn
svn path=/trunk/; revision=28033
2007-07-30 03:30:55 +00:00
Timo Kreuzer
59d3012d08 simplify VIS_ComputeVisibleRegion
svn path=/trunk/; revision=28032
2007-07-30 02:49:11 +00:00
Timo Kreuzer
b8c09110a6 fix a DPRINT
svn path=/trunk/; revision=28031
2007-07-30 02:29:52 +00:00
Timo Kreuzer
133adbc1a6 update ntgdibad.h
svn path=/trunk/; revision=28030
2007-07-30 02:24:48 +00:00
Timo Kreuzer
ce40832234 rename NtGdiSelectVisRgn to IntGdiSelectVisRgn
svn path=/trunk/; revision=28029
2007-07-30 02:24:08 +00:00
Timo Kreuzer
0aa1be9e3f probe and copy hdc from usermode PAINTSTRUCT using SEH
svn path=/trunk/; revision=28028
2007-07-30 01:39:26 +00:00
Timo Kreuzer
7f423ecbdb remove useless NtGdiOffsetRgn
svn path=/trunk/; revision=28027
2007-07-30 01:26:57 +00:00
Timo Kreuzer
984be48dd5 - rename NtGdiGetTextMetrics to NtGdigetTextMetricsW and add cj parameter
- GetTextMetricsAW: call NtGdigetTextMetricW with cj set to sizeof(TMW_INTERNAL), use TextMetric member
- update w32ksvc.db
- update ntgdibad.h

svn path=/trunk/; revision=28026
2007-07-30 01:10:35 +00:00
Eric Kohl
380e7f70eb - Add sticky keys settings and make the existing settings work.
- Add empty filter keys dialog and toggle keys dialog.

svn path=/trunk/; revision=28024
2007-07-29 21:07:41 +00:00
Colin Finck
ddfbe083e9 Various cmd fixes by Carlo Bramini (carlo DOT bramix AT libero DOT it)
See issue #2232 for more details.

svn path=/trunk/; revision=28022
2007-07-29 19:53:17 +00:00
Christoph von Wittich
8fd67d96e0 Fix bug in IsValidLocale(), GetNumberFormatW(), GetCurrencyFormatW()
patch by Zavyalov Alexey (reactos at ilimschool dot ru)
See issue #2374 for more details.

svn path=/trunk/; revision=28020
2007-07-29 19:04:03 +00:00
Christoph von Wittich
e137a5326a Implement IsValidLanguageGroup, EnumDateFormatsExA, EnumDateFormatsExW
patch by Zavyalov Alexey (reactos at ilimschool dot ru)
See issue #2368 for more details.

svn path=/trunk/; revision=28019
2007-07-29 18:42:18 +00:00
Magnus Olsen
f1fce2a5f3 remove the title name hack some did
comment why popup menu does not working in cmd, it seam we never getting the process name, why ??

svn path=/trunk/; revision=28018
2007-07-29 18:39:32 +00:00
Christoph von Wittich
98ddfb0831 Load correct screensaver's name patch by piulachs (marc dot piulachs at codexchange dot net)
See issue #2500 for more details.

svn path=/trunk/; revision=28016
2007-07-29 18:09:42 +00:00
Christoph von Wittich
6ae0b2c8a0 remove ZeroMemory - not needed anymore since GetLogicalDriveStrings is fixed
svn path=/trunk/; revision=28015
2007-07-29 18:03:41 +00:00
Christoph von Wittich
d631ee5509 fix GetLogicalDriveStringsA/W
svn path=/trunk/; revision=28014
2007-07-29 18:02:31 +00:00
Christoph von Wittich
dff1e93f29 Norwegian translation for regedit patch by Frode Lillerud (frode at enkelt dot no)
See issue #2502 for more details.

svn path=/trunk/; revision=28013
2007-07-29 17:36:08 +00:00
Christoph von Wittich
7875f9d609 fix bug introduced in r27994
svn path=/trunk/; revision=28012
2007-07-29 17:30:21 +00:00
Magnus Olsen
e36095538d NtGdiGetCurrentObject
1. add OBJ_EXTPEN, it is same as OBJ_PEN, now some smaller graphice glitch are fixed. 

svn path=/trunk/; revision=28011
2007-07-29 16:54:00 +00:00
Magnus Olsen
336c8d7905 partly implement animations GET/SET spi, the value are store, but win32k ignore them
svn path=/trunk/; revision=28010
2007-07-29 15:55:09 +00:00
Magnus Olsen
06b622635a NtGdiGetCurrentObject
activate palette, so it sending back a palette objects
NtGdiCreateHalftonePalette
fix support for halftone palette for other color deep that is higher 8bits
This letting us passing some more winetest

svn path=/trunk/; revision=28006
2007-07-29 14:24:10 +00:00
Colin Finck
a8a2168214 These ones were missing in r27997, sorry...
svn path=/trunk/; revision=28005
2007-07-29 14:02:15 +00:00
Christoph von Wittich
e020821f2c GetTimeFormat should use LocalTime instead of SystemTime
See issue #1601 for more details.

svn path=/trunk/; revision=28004
2007-07-29 13:51:54 +00:00
Magnus Olsen
719e7db47a partly implement NtGdiGetRandomRgn, we do not support metadc, so we will fail on thuse wine test for this api.
The implemetions are base partly on wine and msdn 

svn path=/trunk/; revision=28001
2007-07-29 13:12:20 +00:00
Colin Finck
ee4bffbbb4 Bulgarian translations by Станев (sstpr AT narod DOT ru)
I slightly modified the patch to reflect recent changes
See issue #2412 for more details.

svn path=/trunk/; revision=27997
2007-07-29 13:01:45 +00:00
Christoph von Wittich
d44f78fb8a Fix warnings patch by Heis Spiter (heis_spiter at hotmail dot com)
See issue #2138 for more details.

svn path=/trunk/; revision=27996
2007-07-29 12:08:15 +00:00
Colin Finck
76144d8e7a Fix fontview build
See issue #2477 for more details.

svn path=/trunk/; revision=27995
2007-07-29 10:56:23 +00:00
Christoph von Wittich
b9f016c611 fix bug "Regedit will let you create two identical keys."
See issue #2496 for more details.

svn path=/trunk/; revision=27994
2007-07-29 10:33:17 +00:00
Magnus Olsen
d675ad4eb0 fixing swedish rc syntax fault
svn path=/trunk/; revision=27993
2007-07-29 10:12:04 +00:00
Christoph von Wittich
7cace070fb greek translations by Apal (grad0621 at di dot uoa dot gr)
See issue #2483 for more details.

svn path=/trunk/; revision=27992
2007-07-29 09:53:59 +00:00
Magnus Olsen
2a953aba59 fixing the langues show right,
no more wrong langues show ;)

svn path=/trunk/; revision=27991
2007-07-29 09:06:41 +00:00
Magnus Olsen
eeb75032d2 fixing the langues show right,
no more wrong langues show ;)

svn path=/trunk/; revision=27990
2007-07-29 09:05:42 +00:00
Magnus Olsen
5e57b86e57 fixing the langues show right,
no more wrong langues show ;)

svn path=/trunk/; revision=27989
2007-07-29 09:04:53 +00:00
Magnus Olsen
142e5c4d8b fixing the langues show right,
no more wrong langues show ;)

svn path=/trunk/; revision=27988
2007-07-29 09:03:29 +00:00
Magnus Olsen
805f0170b6 fixing the langues show right,
no more wrong langues show ;)

svn path=/trunk/; revision=27987
2007-07-29 09:02:29 +00:00
Magnus Olsen
f6b835f2e9 fixing the langues show right,
no more germany in english ;)

svn path=/trunk/; revision=27986
2007-07-29 08:58:24 +00:00
Thomas Bluemel
8ea64f258b Handle error case more correctly
svn path=/trunk/; revision=27985
2007-07-29 08:16:50 +00:00
Thomas Bluemel
690351d90a Simplify code by using dialog functions
svn path=/trunk/; revision=27984
2007-07-29 08:14:38 +00:00
Thomas Bluemel
e7faae18fc Fix buffer overflow on unicode builds introduced in r27982
svn path=/trunk/; revision=27983
2007-07-29 07:59:17 +00:00
Christoph von Wittich
5cd0ce3185 fix a crash and the selchange notification code
svn path=/trunk/; revision=27982
2007-07-29 00:27:08 +00:00
Christoph von Wittich
105b544d6c fix crash on linux systems when an invalid backend is specified
svn path=/trunk/; revision=27981
2007-07-28 23:38:59 +00:00
Christoph von Wittich
ff42fce079 -replace the ListView in swappage dialog with a ListBox
-fix some minor issues

svn path=/trunk/; revision=27980
2007-07-28 22:34:42 +00:00
Thomas Bluemel
d6bbe9b6e8 Fix repaint issue in the last row of the control
svn path=/trunk/; revision=27979
2007-07-28 21:59:05 +00:00
Thomas Bluemel
0172ae8384 Make sure LONG/ULONG is correctly defined for both cmlib and mkhive
svn path=/trunk/; revision=27978
2007-07-28 21:33:23 +00:00
Thomas Bluemel
ff56fe5fb3 Some more function prototype fixes and pointer type warning fixes
svn path=/trunk/; revision=27977
2007-07-28 21:30:16 +00:00
Christoph von Wittich
40c483fa1a fix compilation of usetup
svn path=/trunk/; revision=27976
2007-07-28 20:32:16 +00:00
Christoph von Wittich
c50397f0e4 fix no confirmation before format
See issue #2498 for more details.

svn path=/trunk/; revision=27975
2007-07-28 20:12:31 +00:00
Thomas Bluemel
979d2a51d4 Don't redefine HRESULT if already defined
svn path=/trunk/; revision=27974
2007-07-28 20:09:00 +00:00
Eric Kohl
2f450a8880 Check the menu items in the view submenu according to the selected type of view.
svn path=/trunk/; revision=27973
2007-07-28 20:03:06 +00:00
Thomas Bluemel
3b5160fc40 More function prototype fixes
svn path=/trunk/; revision=27972
2007-07-28 20:02:37 +00:00
Ziliang Guo
483007c6f5 update the bootdata readme
svn path=/trunk/; revision=27971
2007-07-28 20:00:20 +00:00
Thomas Bluemel
1c2063ec0f Fix the DisplayApplet function definition
svn path=/trunk/; revision=27970
2007-07-28 19:56:15 +00:00
Johannes Anderwald
bc9fefefbf - fix internet time update button for the languages which had it wrong
- add missing internet update time dialog to spanish resource file - needs to be translated

svn path=/trunk/; revision=27969
2007-07-28 19:48:00 +00:00
Christoph von Wittich
518d4a6885 display path in statusbar again when a menu is closed (doesn't seem to work properly on ReactOS yet)
See issue #2495 for more details.

svn path=/trunk/; revision=27968
2007-07-28 19:43:22 +00:00
Thomas Bluemel
025c8a964b Fix some prototypes
svn path=/trunk/; revision=27967
2007-07-28 19:20:30 +00:00
Thomas Bluemel
2c89355466 Fix some functions to match their prototypes
svn path=/trunk/; revision=27966
2007-07-28 19:15:10 +00:00
Johannes Anderwald
3fc2770451 - added slovak translation by Mario Kacmar
See issue #2486 for more details.

svn path=/trunk/; revision=27965
2007-07-28 19:11:09 +00:00
Thomas Bluemel
25ff32dbf6 Fix incompatible pointer type warning
svn path=/trunk/; revision=27964
2007-07-28 18:51:49 +00:00
Thomas Bluemel
87388c9075 Fix function callback prototype
svn path=/trunk/; revision=27963
2007-07-28 18:44:49 +00:00
Thomas Bluemel
f82b9c2321 Fix incompatible pointer type warnings
svn path=/trunk/; revision=27962
2007-07-28 18:42:36 +00:00
Thomas Bluemel
b6b71503a4 Fix incompatible pointer type warnings
svn path=/trunk/; revision=27961
2007-07-28 18:24:09 +00:00
Thomas Bluemel
f3ad83cca1 Make the InfpBuildFileBuffer prototype match it's definition
svn path=/trunk/; revision=27960
2007-07-28 18:09:51 +00:00
Thomas Bluemel
b837ae3d3c Make the prototypes match those defined in the .idl files
svn path=/trunk/; revision=27959
2007-07-28 18:06:51 +00:00
Thomas Bluemel
eb673ff506 Fix definition of DbgPrint to be compatible
svn path=/trunk/; revision=27958
2007-07-28 18:03:17 +00:00
Thomas Bluemel
15036a5b02 Fix incompatible pointer types
svn path=/trunk/; revision=27957
2007-07-28 18:01:30 +00:00
Thomas Bluemel
c9a7f7f8f2 Fix return types
svn path=/trunk/; revision=27956
2007-07-28 17:55:58 +00:00
Johannes Anderwald
c697530b17 - fix cmd not to crash when just typing "start" [enter]
See issue #2294 for more details.

svn path=/trunk/; revision=27955
2007-07-28 17:48:23 +00:00
Thomas Bluemel
0a931f1a75 Remove duplicate definition of SHChangeNotification_Lock
svn path=/trunk/; revision=27954
2007-07-28 17:47:49 +00:00
Thomas Bluemel
653ff24f1a Fix warnings with -O3
svn path=/trunk/; revision=27953
2007-07-28 17:44:39 +00:00
Thomas Bluemel
f00ee22138 Correctly calculate message time. Fixes slow clicks being interpreted as double clicks.
See issue #2238 for more details.

svn path=/trunk/; revision=27952
2007-07-28 17:16:51 +00:00
Johannes Anderwald
832362635d - set USERNAME environment variable
See issue #2487 for more details.

svn path=/trunk/; revision=27951
2007-07-28 16:29:33 +00:00
Thomas Bluemel
8e88ed96e4 Also hand 0 read bytes to XML_Parse to make sure we always signal that we're done reading the document
svn path=/trunk/; revision=27950
2007-07-28 15:47:56 +00:00
Eric Kohl
9952b46b92 - Load and save game settings.
- Disable unused dialog controls and menu items.

svn path=/trunk/; revision=27949
2007-07-28 13:03:13 +00:00
Christoph von Wittich
d585f1041b delete ocidl.h and autogenerate it from the idl
svn path=/trunk/; revision=27948
2007-07-28 12:51:59 +00:00
Thomas Bluemel
bcacb656fe Fix stack corruption
svn path=/trunk/; revision=27947
2007-07-28 12:48:02 +00:00
Thomas Bluemel
85928f924c turn assertion on again, this bug should be fixed now
svn path=/trunk/; revision=27946
2007-07-28 12:22:27 +00:00
Christoph von Wittich
4337ad0e49 add hh.exe to bootcd
svn path=/trunk/; revision=27945
2007-07-28 12:13:31 +00:00
Christoph von Wittich
12aef723e3 Updated Norwegian language file for explorer patch by Frode Lillerud (frode at enkelt dot no)
See issue #2491 for more details.

svn path=/trunk/; revision=27944
2007-07-28 12:03:46 +00:00
Thomas Bluemel
7bf577c9ba The menu names are on the user heaps now
svn path=/trunk/; revision=27943
2007-07-28 11:35:08 +00:00
Christoph von Wittich
03f66e49b1 fixed "invalid window handle" error msg
svn path=/trunk/; revision=27942
2007-07-28 11:11:27 +00:00
Thomas Bluemel
5222d1d7a2 Simplify and fix handling of menus for classes
svn path=/trunk/; revision=27941
2007-07-28 11:05:33 +00:00
Christoph von Wittich
ed85477766 better control placement for syssetup Italian rc file patch by devpao (devotip at tiscali.it)
See issue #2475 for more details.

svn path=/trunk/; revision=27940
2007-07-28 10:29:23 +00:00
Christoph von Wittich
b9fbd58a93 german text did not fit into the static controls
svn path=/trunk/; revision=27939
2007-07-28 10:04:52 +00:00
Christoph von Wittich
c6260888e2 -fix linking when entrypoint is set to "0"
See issue #2489 for more details.

svn path=/trunk/; revision=27938
2007-07-28 09:42:27 +00:00
Thomas Bluemel
d59de2819e Remove incorrect error check
svn path=/trunk/; revision=27937
2007-07-27 20:03:05 +00:00
Thomas Bluemel
ed630922e9 Disable debug output by default
svn path=/trunk/; revision=27936
2007-07-27 19:26:11 +00:00
Thomas Bluemel
2a672fc18c - Search for user32 window classes before searching for system classes
- Register the user32 base address with win32k. Technically this is not really neccessary because user32's base address is fixed

svn path=/trunk/; revision=27935
2007-07-27 19:23:22 +00:00
Hervé Poussineau
fb76bb0053 Add missing LIST_FOR_EACH_ENTRY_REV macro
svn path=/trunk/; revision=27932
2007-07-27 15:07:07 +00:00
Ged Murphy
c6b03c24b9 set the text in the mem and cpu graphs to use the default GUI font. This cleans up the appearance
svn path=/trunk/; revision=27931
2007-07-27 13:47:28 +00:00
Hervé Poussineau
c5cabb165a "entrypoint=0" is now auto-generated
svn path=/trunk/; revision=27930
2007-07-27 13:14:35 +00:00
Christoph von Wittich
3b6565d0fb -fix 2nd stage setup
svn path=/trunk/; revision=27928
2007-07-27 12:54:03 +00:00
The Wine Synchronizer
7cf2fea853 Autosyncing with Wine HEAD
svn path=/trunk/; revision=27927
2007-07-27 11:36:07 +00:00
Hervé Poussineau
660c29094c Fix hhctrl.ocx build
svn path=/trunk/; revision=27926
2007-07-27 11:19:19 +00:00
Ged Murphy
882a314408 fix the comment
svn path=/trunk/; revision=27925
2007-07-27 11:18:03 +00:00
Ged Murphy
59f123b12e revert r27504. translation shouldn't be added to Wine libs
svn path=/trunk/; revision=27924
2007-07-27 11:10:37 +00:00
Hervé Poussineau
5558f59489 Update status
svn path=/trunk/; revision=27923
2007-07-27 10:22:17 +00:00
The Wine Synchronizer
aff6899f29 Autosyncing with Wine HEAD
svn path=/trunk/; revision=27922
2007-07-27 10:20:13 +00:00
The Wine Synchronizer
071c7429f1 Autosyncing with Wine HEAD
svn path=/trunk/; revision=27921
2007-07-27 10:17:42 +00:00
The Wine Synchronizer
f5e0c36863 Autosyncing with Wine HEAD
svn path=/trunk/; revision=27920
2007-07-27 10:12:10 +00:00
The Wine Synchronizer
0c37710c2c Autosyncing with Wine HEAD
svn path=/trunk/; revision=27919
2007-07-27 10:11:12 +00:00
The Wine Synchronizer
f0f9ff6251 Autosyncing with Wine HEAD
svn path=/trunk/; revision=27918
2007-07-27 10:07:14 +00:00
The Wine Synchronizer
9bd259e856 Autosyncing with Wine HEAD
svn path=/trunk/; revision=27917
2007-07-27 10:05:21 +00:00
The Wine Synchronizer
3f23ffe17b Autosyncing with Wine HEAD
svn path=/trunk/; revision=27916
2007-07-27 10:03:59 +00:00
The Wine Synchronizer
914e5f3480 Autosyncing with Wine HEAD
svn path=/trunk/; revision=27915
2007-07-27 10:00:38 +00:00
The Wine Synchronizer
ba29140448 Autosyncing with Wine HEAD
svn path=/trunk/; revision=27914
2007-07-27 09:59:17 +00:00
The Wine Synchronizer
c82cab29ec Autosyncing with Wine HEAD
svn path=/trunk/; revision=27913
2007-07-27 09:52:38 +00:00
The Wine Synchronizer
a0b832df14 Autosyncing with Wine HEAD
svn path=/trunk/; revision=27912
2007-07-27 09:49:52 +00:00
The Wine Synchronizer
e2d4cbc97d Autosyncing with Wine HEAD
svn path=/trunk/; revision=27911
2007-07-27 09:46:28 +00:00
The Wine Synchronizer
2a21dbe77b Autosyncing with Wine HEAD
svn path=/trunk/; revision=27910
2007-07-27 09:45:02 +00:00
The Wine Synchronizer
cb1824c717 Autosyncing with Wine HEAD
svn path=/trunk/; revision=27909
2007-07-27 09:41:02 +00:00
The Wine Synchronizer
374593a187 Autosyncing with Wine HEAD
svn path=/trunk/; revision=27908
2007-07-27 09:38:44 +00:00
The Wine Synchronizer
35e9e5253f Autosyncing with Wine HEAD
svn path=/trunk/; revision=27907
2007-07-27 09:37:47 +00:00
The Wine Synchronizer
0f86de1a3a Autosyncing with Wine HEAD
svn path=/trunk/; revision=27906
2007-07-27 09:34:02 +00:00
Hervé Poussineau
cdcd38e9ae Add missing HH_SAFE_DISPLAY_TOPIC constant
svn path=/trunk/; revision=27905
2007-07-27 09:33:28 +00:00
The Wine Synchronizer
8f774e30a3 Autosyncing with Wine HEAD
svn path=/trunk/; revision=27904
2007-07-27 09:30:09 +00:00
The Wine Synchronizer
2513a18ec3 Autosyncing with Wine HEAD
svn path=/trunk/; revision=27903
2007-07-27 09:28:40 +00:00
Hervé Poussineau
7d642d88fb Update structure
svn path=/trunk/; revision=27902
2007-07-27 09:24:21 +00:00
The Wine Synchronizer
f29227b580 Autosyncing with Wine HEAD
svn path=/trunk/; revision=27901
2007-07-27 09:21:42 +00:00
The Wine Synchronizer
deaaa434f3 Autosyncing with Wine HEAD
svn path=/trunk/; revision=27900
2007-07-27 09:17:03 +00:00
The Wine Synchronizer
d5c96e105e Autosyncing with Wine HEAD
svn path=/trunk/; revision=27899
2007-07-27 09:12:45 +00:00
The Wine Synchronizer
42ff7ff0fa Autosyncing with Wine HEAD
svn path=/trunk/; revision=27898
2007-07-27 09:10:10 +00:00
The Wine Synchronizer
933a0dc886 Autosyncing with Wine HEAD
svn path=/trunk/; revision=27897
2007-07-27 09:03:12 +00:00
Hervé Poussineau
1cda0af518 Merge SetupGetFileCompressionInfo[Ex]A/W, SetupDecompressOrCopyFileA/W, SetupGetSourceFileLocationA/W, SetupGetSourceInfoA/W, SetupGetTargetPathA/W, SetupQueryInfOriginalFileInformationA/W from Wine
Misc fixes by me and Wine team

svn path=/trunk/; revision=27896
2007-07-27 09:02:18 +00:00
Hervé Poussineau
e95c6843c0 Revert r27863, and add the correct fix
svn path=/trunk/; revision=27895
2007-07-27 07:23:34 +00:00
Daniel Reimer
34dac511bc - Commit the modified Norwegian RC Files to the autosynched Wine DLLs, too. My Plan is to edit the diffs myself and let a dev look over my modifications before I commit them then. This speeds up the stuff a bit. We could need a new sync now that 0.3.7 is almost out, but we cant...
svn path=/trunk/; revision=27894
2007-07-27 07:11:35 +00:00
Steven Edwards
95e420e66e - Added the "(at your option) any later version" clause to the NDK license with
permission of the author. 

- Clarify the license requirements by breaking it to its own section and in this
case requiring the NDK to still be released as LGPLv2.1 or GPLv2 even if it is
released with a GPLv3 application.

- Minor spelling error fix


svn path=/trunk/; revision=27893
2007-07-27 03:19:23 +00:00
Timo Kreuzer
7f36f5002f Rename NtGdiGettextFace into NtGdiGetTextFaceW and add bAliasName parameter. Change parameter names in GetTextFaceW. Update ntgdibad.h
svn path=/trunk/; revision=27892
2007-07-26 23:02:47 +00:00
Timo Kreuzer
f08a04538a update ntgdibad.h
svn path=/trunk/; revision=27891
2007-07-26 22:37:20 +00:00
Timo Kreuzer
eb3712b47d - rename NtGdiGetTextExentExPoint to NtGdiGetTextExtentExW and add 8th parameter (currently unhandled)
svn path=/trunk/; revision=27890
2007-07-26 22:37:08 +00:00
Christoph von Wittich
c4aa25f1aa add shell32_ros.diff
svn path=/trunk/; revision=27889
2007-07-26 21:53:05 +00:00
Christoph von Wittich
ea206e8a12 -fix crash in shell32 caused by clamwin installer (patch by w3seek)
svn path=/trunk/; revision=27887
2007-07-26 21:43:22 +00:00
Timo Kreuzer
da22f48dfd - add painting.c to gdi32.def
- implement FloodFill, calling NtGdiExtFloodFill
- implement CreateRectRgnIndirect, calling NtGdiCreateRectRgn
- remove NtGdiCreateRectRgnIndirect, NtGdiFloodFill from win32k
- update ntgdibad.h

svn path=/trunk/; revision=27883
2007-07-26 19:52:51 +00:00
Timo Kreuzer
8a32a579d8 sorry forgot this one
svn path=/trunk/; revision=27872
2007-07-26 18:17:32 +00:00
Timo Kreuzer
f626203e0c update ntgdibad.h
svn path=/trunk/; revision=27866
2007-07-26 17:39:56 +00:00
Timo Kreuzer
fc315e7116 - fix parameter count for NtGdiCreatePen in w32ksvc.db (4 params, not 3)
- implement CreatePen, calling NtGdiCreatePen@16 instead of forwarding to NtGdiCreatePen@12, wich does not exist
- implement CreatePenIndirect, calling NtGdiCreatePen, instead of forwarding to NtGdiCreatePenIndirect
- remove NtGdiCreatePenIndirect from w32ksvc.db and win32k

svn path=/trunk/; revision=27865
2007-07-26 17:38:49 +00:00
Colin Finck
6e95387504 Fix the Winhelp build
I know this is a pretty bad "fix", but as long as we have nothing better and Winhelp builds again, we have to use it ;-)

svn path=/trunk/; revision=27863
2007-07-26 17:07:24 +00:00
Timo Kreuzer
ce4721237b update ntgdibad.h
svn path=/trunk/; revision=27860
2007-07-26 16:41:09 +00:00
Timo Kreuzer
e71ca90a57 remove NtGdiCreateEllipticRegionIndirect from win32k
svn path=/trunk/; revision=27859
2007-07-26 16:40:23 +00:00
Timo Kreuzer
1a455c9c06 remove NtGdiCreateEllipticRegionIndirect from w32ksvc.db
svn path=/trunk/; revision=27858
2007-07-26 16:39:27 +00:00
Timo Kreuzer
75fec6f6f9 implement CreateEllipticRgnIndirect, calling NtGdiCreateEllipticRgn, instead of redirecting to NtGdiCreateEllipticRgnIndirect
svn path=/trunk/; revision=27857
2007-07-26 16:27:47 +00:00
Timo Kreuzer
16306b2ce0 update ntgdibad.h
svn path=/trunk/; revision=27855
2007-07-26 16:02:37 +00:00
Timo Kreuzer
531bc84358 remove NtGdiCreateCompatibleBitmap from win32k
svn path=/trunk/; revision=27854
2007-07-26 16:01:58 +00:00
Timo Kreuzer
6488d2a0a3 remove NtGdiCreateCompatibleBitmap from syscall db
svn path=/trunk/; revision=27853
2007-07-26 16:01:13 +00:00
Timo Kreuzer
e81c617c19 implement CreateDiscardableBitmap, calling NtGdiCreateCompatibleBitmap instead of redirecting to NtGdiCreateDiscardableBitmap
svn path=/trunk/; revision=27852
2007-07-26 15:59:44 +00:00
Timo Kreuzer
ca6fc5cff9 - implement CreateBitmapIndirect, calling NtGdicreateBitmap
- NtGdiCreateBitmap: directly do the job instead of calling IntCreateBitmapIndirect
- remove IntCreateBitmapIndirect
- remove NtGdiCreateBitmapIndirect
- update ntgdibad.h

svn path=/trunk/; revision=27851
2007-07-26 15:20:29 +00:00
Hervé Poussineau
bc4b14c9c4 Don't abuse debug system
svn path=/trunk/; revision=27850
2007-07-26 15:13:36 +00:00
Christoph von Wittich
0cd283447c fix condition in rosglCopyContext patch by Dirus (DannyDaemonic at gmail.com)
See issue #2375 for more details.

svn path=/trunk/; revision=27849
2007-07-26 15:12:39 +00:00
Thomas Bluemel
bf93eab031 Removed hacks from findfirst/findnext APIs
See issue #1736 for more details.

svn path=/trunk/; revision=27847
2007-07-26 15:07:07 +00:00
Christoph von Wittich
4473df2e66 get sysdm to work with freeldr.ini as well
See issue #2302 for more details.

svn path=/trunk/; revision=27846
2007-07-26 14:56:01 +00:00
Johannes Anderwald
a27339eabc - fix duplicate control id constant by Carlo Bramini (carlo dot bramix at libero dot it)
See issue #2479 for more details.

svn path=/trunk/; revision=27845
2007-07-26 14:54:55 +00:00
Daniel Reimer
be3aec5033 Commited Workaround in userenv, too. ReactOS does not like Greek letters in Folder Names... See Bug 2478. (from Giannis Adamopoulos)
svn path=/trunk/; revision=27844
2007-07-26 14:53:15 +00:00
Johannes Anderwald
a276740842 - update italian translation and a few code simplifications by Carlo Bramini (carlo dot bramix at libero dot it)
- fix a few issues (remove SIZEOF macro + SUBLANG_ITALIAN...)
See issue #2365 for more details.

svn path=/trunk/; revision=27843
2007-07-26 14:48:47 +00:00
Timo Kreuzer
caeec5d190 - TextOutW: call NtGdiExtTextOut
- remove NtGdiTextOut from win32k
todo: NtGdiExtTextOut -> NtGdiExtTextOutW (does someone know what the 9th parameter is?)

svn path=/trunk/; revision=27840
2007-07-26 13:57:17 +00:00
Colin Finck
308132efa0 - Remove the main() procedure as we already have a WinMain() procedure and we need the hInstance value
- Use RegisterClass with WNDCLASS instead of RegisterClassEx with WNDCLASSEX, so we don't need to care about the small icon

svn path=/trunk/; revision=27838
2007-07-26 12:31:56 +00:00
Colin Finck
768fc82ee4 - Make some check boxes wider, so the text is fully displayed (patch by Nathan Davidson, coviti AT gmail DOT com)
- Also do that for the other languages
- Fix the Norwegian and Thai translation, where even control names and boot parameters were translated
  Translators, don't do that, that's highly wrong! (but funny anyway... :-D )
See issue #2343 for more details.

svn path=/trunk/; revision=27837
2007-07-26 12:14:14 +00:00
Colin Finck
8443ad9e13 Updated slovak translation for explorer-new by Mario Kacmar (kario AT szm DOT sk)
svn path=/trunk/; revision=27836
2007-07-26 11:46:10 +00:00
Colin Finck
8647578fc1 Apply a Downloader translation by Paolo Devoti (devotip AT tiscali DOT it) from bug 2027, so this bug can finally be closed now :-)
See issue #2027 for more details.

svn path=/trunk/; revision=27835
2007-07-26 11:42:59 +00:00
Daniel Reimer
174affb36d eol:style = native
svn path=/trunk/; revision=27834
2007-07-26 11:08:19 +00:00
Daniel Reimer
df75cfd9de Apply patches from BugZilla:
- Brazilian Portuguese translation for winmm (Bug 2442) from Marcelo Zamperetti (marcelohz AT gmail DOT com) (2nd bin with both Portugese RCs)
- Updated french translation for syssetup (Bug 2462) from Pierre Schweitzer (heis_spiter AT hotmail DOT com)
- Fixes to italian translation for powercfg applet (Bug 2467) from Carlo Bramini (carlo DOT bramix AT libero DOT it)
- Update for greek translation (Bug 2478) from Giannis Adamopoulos (johnyadams AT hotmail DOT com) except userenv.diff

svn path=/trunk/; revision=27833
2007-07-26 11:03:00 +00:00
Colin Finck
bd3f848ef4 Brazilian Portuguese translation for regedit by Marcelo Zamperetti (marcelohz AT gmail DOT com)
For the record, this seems to be the first program that we now have in both Brazilian Portuguese and Portuguese from Portugal :-)

If someone has time, please look at the regedit code and find out which dialogs are really still needed.
For me it looks like the layout of the resource files was changed some time ago and now we have files with the old and with the new layout.
See issue #2440 for more details.

svn path=/trunk/; revision=27832
2007-07-26 10:40:18 +00:00
Colin Finck
cdc93ad52e Brazilian Portuguese translation by Marcelo Zamperetti (marcelohz AT gmail DOT com)
I changed SUBLANG_PORTUGUESE_BRAZILIAN to SUBLANG_NEUTRAL, so the translation is also used as long as we have no other portuguese translation
See issue #2439 for more details.

svn path=/trunk/; revision=27831
2007-07-26 10:17:37 +00:00
Colin Finck
d031691221 Updated portuguese keyboard layout by João Jerónimo.
See issue #2436 for more details.

svn path=/trunk/; revision=27830
2007-07-26 10:09:30 +00:00
Colin Finck
4096e1a913 Updated polish translation by Artek Wiśniewski (aart3k AT gmail DOT com)
See issue #2433 for more details.

svn path=/trunk/; revision=27829
2007-07-26 10:04:46 +00:00
Colin Finck
23dd40bdad Fix the german "Run" dialog as requested by Christoph
svn path=/trunk/; revision=27828
2007-07-26 09:58:40 +00:00
Colin Finck
ca0081aaf6 Ah, forgot this one :-(
svn path=/trunk/; revision=27827
2007-07-26 09:50:03 +00:00
Colin Finck
53a6e85507 - Fix the mnemonic keys for the english translation and add a slovak translation (patch by Mario Kacmar, kario AT szm DOT sk)
- Fix the mnemonic keys in the other translations myself
- Fix the german configuration dialog
See issue #2472 for more details.

svn path=/trunk/; revision=27826
2007-07-26 09:45:18 +00:00
Colin Finck
34ba650217 Updated norwegian translation my Lars Martin Hambro (lars_martin4 AT hotmail DOT com)
See issue #1741 for more details.

svn path=/trunk/; revision=27825
2007-07-26 09:15:25 +00:00
Colin Finck
5663aa0b6f Ukrainian translations by Artem Reznikov (temarez AT yandex DOT ru)
See issue #2477 for more details.

svn path=/trunk/; revision=27824
2007-07-26 09:09:45 +00:00
Colin Finck
e97732e87c Slovak translation for netid by Mario Kacmar (kario AT szm DOT sk)
svn path=/trunk/; revision=27823
2007-07-26 08:18:08 +00:00
Colin Finck
e7f9003e73 Small fix in the slovak translation
svn path=/trunk/; revision=27822
2007-07-26 08:00:41 +00:00
Colin Finck
025355738a - Remove all the VS stuff from the english resource file and make it readable/editable/translateable
- Remove some redundant resources
- Fix some typos
- Use RegisterClass instead of RegisterClassEx in the MyRegisterClass function: This way we don't need a resource for the small icon, but it works the same
- Add a "rsrc.rc" file

svn path=/trunk/; revision=27821
2007-07-26 07:43:01 +00:00
Timo Kreuzer
c277abc3bb gdiobjects patch:
- stockmask and reuse counter are stored in the lower 16 bits of the typeinfo field in the entry, not in the upper 16 bits!
- take care of this when trying to lock an object (compare upper 16 bits of handle with lower 16 bits of typeinfo field)
- some variable renaming
- remove code duplication by moving debugoutput to an extra function
- move checking for expected object type to a different location, should be removed completely later
Fixes possible crashes if messing around with deleted / reused objects.

svn path=/trunk/; revision=27818
2007-07-25 22:39:14 +00:00
Timo Kreuzer
9a5a65a65b Add some type definitions and macros for gdi object entries. Needed for upcoming gdiobj patch.
svn path=/trunk/; revision=27817
2007-07-25 22:22:38 +00:00
Timo Kreuzer
e4aff98165 UserScrollDC (complete rewrite):
- include the region that could not be copied (invisible before) into invalid region
- use less regions and calculations
- return the type of the invalidated region (used by NtUserScrollWindowEx)
- Remove LPtoDP and DPtoPL. Everything is now in logical coordinates.
NtUserScrollDC:
- use SEH for buffer transfer
NtUserScrollWindowEx:
- use SEH for buffer transfer instead of MmCopyFromCaller
- use SEH to write back to usermode
- return the type of invalid region not of the invalidated region (nothing if SW_INVALIDATE is not set)
- use members of WINDOW_OBJECT instead of calling IntWinListChildren
Use hungarian notation for variables

fixes bug 2237
See issue #2237 for more details.

svn path=/trunk/; revision=27815
2007-07-25 21:51:56 +00:00
Christoph von Wittich
d3703b4fe6 don't stub a function we already have
svn path=/trunk/; revision=27813
2007-07-25 19:19:54 +00:00
Colin Finck
bdf7b50774 Updated language files by Olaf Siejka (caemyr AT gmail DOT com)
See issue #2438 for more details.

svn path=/trunk/; revision=27812
2007-07-25 18:25:16 +00:00
Colin Finck
654cb79562 Add a "magnify" application developed by Marc Piulachs (marc.piulachs AT codexchange DOT net)
Isn't finished and lights up some bugs in ReactOS, but at least it's a start
See issue #2463 for more details.

svn path=/trunk/; revision=27811
2007-07-25 18:00:56 +00:00
Christoph von Wittich
a7b34c7f12 -fix an endless loop when a rbuild file has an invalid date
See issue #2466 for more details.

svn path=/trunk/; revision=27810
2007-07-25 15:11:06 +00:00
Colin Finck
df43dc0653 Lithuanian translations by Vytis Girdzijauskas (cman AT cman DOT us)
See issue #2461 for more details.

svn path=/trunk/; revision=27809
2007-07-25 14:23:41 +00:00
Colin Finck
a2d6945b0a Norwegian translation for newdev.dll by Frode Lillerud (frode AT enkelt DOT no)
See issue #2474 for more details.

svn path=/trunk/; revision=27808
2007-07-25 14:03:09 +00:00
Colin Finck
e189c41b51 Slovak translation by Mario Kacmar (kario AT szm DOT sk)
svn path=/trunk/; revision=27807
2007-07-25 13:55:10 +00:00
Colin Finck
9789d03063 Change the width of one control to 110 as it's done in the other translations
svn path=/trunk/; revision=27806
2007-07-25 12:52:05 +00:00
Colin Finck
46740b8d9f Updated Czech translation by Kamil Hornicek (tykef AT atlas DOT cz)
svn path=/trunk/; revision=27805
2007-07-25 11:06:31 +00:00
James Tabor
7705c7b9d4 Removed Dce from the DC handle table. Tested bootcd, Explorer and Taskmgr.
svn path=/trunk/; revision=27804
2007-07-25 03:35:59 +00:00
Colin Finck
c440e3860d Remove the description for a temporary hack, which was already removed in r26451
svn path=/trunk/; revision=27803
2007-07-24 19:47:57 +00:00
Daniel Reimer
c09ba08b78 Commit final fixes for RC files except for Wine autosynched files. I will not change anything on them right now, no reverts, no further fixes. First I want a official course from our captain.
svn path=/trunk/; revision=27802
2007-07-24 18:40:25 +00:00
Colin Finck
9788276e00 New and updated greek translations by Apostolos Alexiadis (grad0621 AT di DOT uoa DOT gr)
Fixes a part of bug 2464
See issue #2464 for more details.

svn path=/trunk/; revision=27801
2007-07-24 17:12:40 +00:00
Colin Finck
996c22e459 Slovak translations by Mario Kacmar (kario AT szm DOT sk)
See issue #2465 for more details.

svn path=/trunk/; revision=27800
2007-07-24 16:50:52 +00:00
Ged Murphy
6f73fa7812 fix flex generated file
svn path=/trunk/; revision=27799
2007-07-24 15:28:12 +00:00
Daniel Reimer
39d069122f Small fixes in some RC Files
svn path=/trunk/; revision=27798
2007-07-24 10:20:37 +00:00
Colin Finck
025e513c98 Remove the second LANGUAGE setting from each file, we only need it one time in each translation file.
svn path=/trunk/; revision=27797
2007-07-24 09:33:20 +00:00
Aleksey Bragin
61cde810eb - Remove usewrc=false, I'm not sure what is a better option, but at least this fixes the problems with wrong language.
svn path=/trunk/; revision=27796
2007-07-24 09:14:18 +00:00
Aleksey Bragin
e8edd63af3 Magnus: THINK, then THINK, then THINK once more! and only then hit COMMIT button.
Reverting 27783 changes, since it's just a complete mess (setting LANG_NEUTRAL, then including langauge-specific resource files?! wtf?).

svn path=/trunk/; revision=27795
2007-07-24 09:13:14 +00:00
Ged Murphy
4a9419289a add a diff so rpcrt4 can be synched with Wine
svn path=/trunk/; revision=27794
2007-07-24 08:20:12 +00:00
Ged Murphy
b4fe4fe1f5 - new rpcrt4 from Wine-0_9_41 which is a big move from our current implementation, thus I've added it as a separate module for now until we have it working.
- includes an additional file, unix_func.c, which implements 3 unix API's which aren't available in Windows (poll, socketpair, inet_ntop)
- It builds, but it's completely untested.

svn path=/trunk/; revision=27793
2007-07-23 22:26:34 +00:00
Colin Finck
64d9543194 Remove the IDS_CMT_WINEFILE and IDS_CMT_IBROWSER strings in all translations.
Thanks to Apostolos Alexiadis for noticing this.

svn path=/trunk/; revision=27792
2007-07-23 18:38:15 +00:00
Colin Finck
2055852ec9 Greek translations by Apostolos Alexiadis (grad0621 AT di DOT uoa DOT gr)
Fixes a part of bug 2459
See issue #2459 for more details.

svn path=/trunk/; revision=27791
2007-07-23 18:28:55 +00:00
Colin Finck
9a7b3267ce Remove the TABs again, sorry that was a bad idea
At least we have a consistent indentation in the sysdm files now :-)

svn path=/trunk/; revision=27789
2007-07-23 16:32:04 +00:00
Ged Murphy
282435cac7 change the notepad icon for the GPL notepad++ icon until a suitable replacement can be found.
svn path=/trunk/; revision=27788
2007-07-23 15:19:20 +00:00
Colin Finck
5252fd9823 - Get rid of an unneeded variable in GetSystemInformation
- Minor changes to the GetProcNameString function
- Fix unselecting the license text. EM_SETSEL only works after the edit control has been drawn, so we cannot send this message in the WM_INITDIALOG message handler.
  Instead we use PostMessage now. See KB96674 for more details.
- Downloaded the latest GPL 2.0 text from the GNU website and use that as the "gpl.txt" now.
  Now we don't have these annoying "box" characters in the license dialog box anymore.

svn path=/trunk/; revision=27786
2007-07-23 11:48:55 +00:00
Colin Finck
e2cb9802d4 [FORMATTING] Use a consistent indentation (TABs) for all parts of sysdm.cpl
No code changes

svn path=/trunk/; revision=27785
2007-07-23 10:26:55 +00:00
Colin Finck
b17938545b Show a right title for the last setup page (Patch by Cameron Gutman, aicommander AT gmail DOT com)
I also fixed that in the german translation, other translation still need to be fixed.
See issue #2206 for more details.

svn path=/trunk/; revision=27784
2007-07-23 08:05:08 +00:00
Magnus Olsen
df23f0679e fixing intl are on english
here is the issue, either it is gcc bugs being tricked for wrc (I do not think it is this case)
or it is a bug in windres for some rc syntax. I think it is this issue, only way to workaround 
this bug are move en-us.rc to top of the langues list so it comes the frist langues for select



svn path=/trunk/; revision=27783
2007-07-22 21:26:38 +00:00
Johannes Anderwald
c33462b975 - make sysreg working on linux
svn path=/trunk/; revision=27782
2007-07-22 20:41:51 +00:00
Colin Finck
3087c56ea1 - Bugfix: As szBuf was not null-terminated after the _tcscpy, the Processor Name String could have been wrapped wrong (ie. when it contained more spaces after character 30)
- Use a consistent indentation in SetProcNameString

svn path=/trunk/; revision=27781
2007-07-22 19:31:29 +00:00
Aleksey Bragin
108a7ce988 - Patch by Dmitry Chapyshev <lentind@yandex.ru>:
* Add russian translation to shutdown app
 * Fix russian translation and fix text placement in timedate CPL applet

svn path=/trunk/; revision=27780
2007-07-22 17:04:20 +00:00
Colin Finck
e91abfbed8 Updated Slovak User32 translation by Mario Kacmar (kario AT szm DOT sk)
Fixes part of bug 2435
See issue #2435 for more details.

svn path=/trunk/; revision=27779
2007-07-22 16:47:00 +00:00
Colin Finck
2be60ffd29 Updated Slovak Notepad translation by Mario Kacmar (kario AT szm DOT sk)
See issue #2434 for more details.

svn path=/trunk/; revision=27778
2007-07-22 16:37:08 +00:00
Colin Finck
e71afc2d50 Updated Slovak WineMine translation by Mario Kacmar (kario AT szm DOT sk)
See issue #2395 for more details.

svn path=/trunk/; revision=27776
2007-07-22 15:55:45 +00:00
Thomas Bluemel
01934c7aad Merge freetype-2.3.5 to trunk
svn path=/trunk/; revision=27774
2007-07-22 11:39:18 +00:00
Magnus Olsen
0e180d02e0 adding missing guid IID_IShellFolderViewCB
svn path=/trunk/; revision=27769
2007-07-21 23:58:51 +00:00
Magnus Olsen
cf0aabe39c patch from : Paolo Devoti (email devotip at tiscali dot it)
-----------------------------------------------------------
Fixed right hdc being save/restore , the #if 0 change was not accpected. 
the code works fine without it. it was problare cause by another bug.
all wine test for gdi32_winetest dc pass now, without any foualt. 
See issue #2055 for more details.

svn path=/trunk/; revision=27768
2007-07-21 18:41:06 +00:00
Magnus Olsen
e54ea177eb fixed so metafile works bit better, do not crash on alloc memory
but we still does not implement it to 100%, it contain allot of bugs

svn path=/trunk/; revision=27767
2007-07-21 17:28:26 +00:00
Thomas Bluemel
891f537c3e Patch by Frode Lillerud <frode@enkelt.no>
- Updated Norwegian keyboard layout
See issue #2419 for more details.

svn path=/trunk/; revision=27765
2007-07-21 10:51:05 +00:00
Sylvain Petreolle
e3469b4e06 fix 2 mistyped \n
svn path=/trunk/; revision=27764
2007-07-20 23:17:42 +00:00
Timo Kreuzer
d0c7e3cf5e recommit part of previous patch: validate parent on moving windows. Fixes redraw problem when moving the slider of regedit etc.
svn path=/trunk/; revision=27763
2007-07-20 22:59:21 +00:00
Johannes Anderwald
f8e8ed2f81 - added slovak translation by Mario Kacmar
svn path=/trunk/; revision=27762
2007-07-20 20:26:19 +00:00
Colin Finck
b264c8b08a Updated italian translation for ImageSoft by Carlo Bramini (carlo DOT bramix AT libero DOT it)
See issue #2227 for more details.

svn path=/trunk/; revision=27761
2007-07-20 19:51:02 +00:00
Colin Finck
979b7cf89d - Fix the WineMine Icon in the Main window and About window (parts of the patch in bug #2397 by Mario Kacmar (kario AT szm DOT sk) applied)
- Make the dialogs of all languages consistent
See issue #2397 for more details.

svn path=/trunk/; revision=27760
2007-07-20 19:18:35 +00:00
Johannes Anderwald
5b1cf1f67f - make sysreg work again under Windows
svn path=/trunk/; revision=27759
2007-07-20 18:55:03 +00:00
Magnus Olsen
a67d29ae20 reform the code.
less warings and errors in vc

svn path=/trunk/; revision=27758
2007-07-20 16:59:44 +00:00
Magnus Olsen
7fd0ba2791 reform the code.
less warings and errors in vc

svn path=/trunk/; revision=27757
2007-07-20 16:57:59 +00:00
Johannes Anderwald
f57c2b81f4 - move cacls.rc to right directory
svn path=/trunk/; revision=27756
2007-07-20 14:00:23 +00:00
Ged Murphy
371e11e16c add missing API's in order to link an updated rpcrt4
svn path=/trunk/; revision=27755
2007-07-20 13:49:41 +00:00
Johannes Anderwald
8e87d40d23 Updated Norwegian language file for syssetup by Frode Lillerud
See issue #2430 for more details.

svn path=/trunk/; revision=27754
2007-07-20 13:39:44 +00:00
Colin Finck
d1815f4dcf Greek translations for cacls and devmgmt by Apostolos Alexiadis (grad0621 AT di DOT uoa DOT gr)
I couldn't apply all translations from bug 1908 as getfirefox and ibrowser were removed and the Solitaire translation is outdated
See issue #1908 for more details.

svn path=/trunk/; revision=27753
2007-07-20 13:36:46 +00:00
Johannes Anderwald
6df3c18077 - sndvol32 Slovak translation by Mario Kacmar
See issue #2396 for more details.

svn path=/trunk/; revision=27752
2007-07-20 13:26:47 +00:00
Johannes Anderwald
bc0d068040 - winemine Slovak translation by Mario Kacmar
See issue #2395 for more details.

svn path=/trunk/; revision=27751
2007-07-20 13:23:47 +00:00
Johannes Anderwald
f7dd1cc102 - French translation for vmwinst by Pierre Schweitzer (heis_spiter at hotmail com)
See issue #2427 for more details.

svn path=/trunk/; revision=27750
2007-07-20 13:14:46 +00:00
Johannes Anderwald
55bdc8aab4 - Norwegian resource file for shutdown.exe
- Written by Frode Lillerud
- change SUBLANG_NORWEGIAN_BOKMAL to SUBLANG_NEUTRAL
See issue #2426 for more details.

svn path=/trunk/; revision=27749
2007-07-20 13:12:00 +00:00
Colin Finck
32d235b53d Fix cmd build, when compilation units are turned off
svn path=/trunk/; revision=27748
2007-07-20 13:08:25 +00:00
Johannes Anderwald
58d9f1e777 - French translation for shutdown (based on en-US.rc) by Pierre Schweitzer (heis_spiter at hotmail com)
See issue #2425 for more details.

svn path=/trunk/; revision=27747
2007-07-20 13:04:55 +00:00
Johannes Anderwald
97299b0c55 - update norwegian translation by Frode Lillerud
See issue #2424 for more details.

svn path=/trunk/; revision=27746
2007-07-20 12:58:02 +00:00
Johannes Anderwald
899a4c3f8a - ukrainian translation from bug 2420
- the msi translation should be sent to wine cause we only autosync it...

svn path=/trunk/; revision=27745
2007-07-20 12:44:36 +00:00
Hervé Poussineau
97ba754ab3 [FORMATTING] Replace tabs by spaces
No code change

svn path=/trunk/; revision=27744
2007-07-20 10:22:58 +00:00
Colin Finck
7dcf35b862 Remove an unused Buffer variable in the SetupCopyFile function
Thanks to HeisSpiter for noticing this

svn path=/trunk/; revision=27741
2007-07-19 20:53:33 +00:00
Ged Murphy
6148da7aa2 add the start menu logo graphic
svn path=/trunk/; revision=27739
2007-07-19 20:19:41 +00:00
Johannes Anderwald
dd82a17f15 - fix warning
- simplify sysreg configuration options (implementation is coming next)

svn path=/trunk/; revision=27728
2007-07-19 13:43:49 +00:00
Aleksey Bragin
4a6f22cbbf - Remove compilation units support from win32k, because it often leads to problems and untested code. ReactOS kernel is compiled w/o cunits, and so should win32k be done.
- Fix TAB/spaces mess in win32k. Can't you, developers, finally understand that .rbuild uses TAB-only indentation? Is it too hard?

svn path=/trunk/; revision=27727
2007-07-19 12:55:58 +00:00
Aleksey Bragin
3c7b25d58e - Revert vis.c and winpos.c changes from 27672, due to a bug 2409.
- Fix win32k compiling without compilation units.

See issue #2409 for more details.

svn path=/trunk/; revision=27726
2007-07-19 12:43:54 +00:00
Aleksey Bragin
68f474c5af Patch by Dmitry Chapyshev <lentind@yandex.ru>:
- Make downloader icon in multiple color depths.
- Remove a newline character from winver's window title.

svn path=/trunk/; revision=27725
2007-07-19 12:14:08 +00:00
Aleksey Bragin
5d5733ba1f - Comment those 2 keyboard layouts so that trunk is installable. Uncommenting them reveals a bug in Config Manager, which is being investigated.
- DPRINT -> DPRINT1 for a critical error message.

svn path=/trunk/; revision=27724
2007-07-18 21:49:10 +00:00
Colin Finck
d759e74461 Remove the wrong \0 character
svn path=/trunk/; revision=27723
2007-07-18 20:00:26 +00:00
Colin Finck
244d310147 Add the missing "help <command>" functionality in cmd (patch by Pierre Schweitzer, heis_spiter AT hotmail DOT com)
I slightly modified the patch to include a terminating null character
See issue #2406 for more details.

svn path=/trunk/; revision=27722
2007-07-18 19:41:25 +00:00
Colin Finck
13f80b1452 - Localize the Usage message of "shutdown" and add a german localization
- Also add a version resource

Translators, feel free to make translations for this tool :-)

svn path=/trunk/; revision=27721
2007-07-18 18:40:07 +00:00
Colin Finck
fc5c5f5b46 Slovak translation for calc by Mario Kacmar (kario AT szm DOT sk)
See issue #2405 for more details.

svn path=/trunk/; revision=27720
2007-07-18 13:51:37 +00:00
Thomas Bluemel
6f93d6ebe5 Fix crash due to wrong calling convention
svn path=/trunk/; revision=27718
2007-07-18 12:23:29 +00:00
Andrew Munger
f8f289daef [AUDIT] kdbg is a custom ReactOS component, written and improved upon by numerous developers. It's nearly as old as the codebase itself.
svn path=/trunk/; revision=27717
2007-07-18 12:18:41 +00:00
Thomas Bluemel
aaad49980c Make use of Set/QuerySecurityAccessMask
svn path=/trunk/; revision=27715
2007-07-18 10:50:55 +00:00
Thomas Bluemel
974c3eaf16 Implement SetSecurityAccessMask
svn path=/trunk/; revision=27714
2007-07-18 10:50:48 +00:00
Thomas Bluemel
10ceb1dc62 Implement the ANSI stub EncryptFileA
svn path=/trunk/; revision=27713
2007-07-18 10:40:58 +00:00
Thomas Bluemel
1a9fa20283 Implement QuerySecurityAccessMask
svn path=/trunk/; revision=27712
2007-07-18 09:47:05 +00:00
Aleksey Bragin
c79612b989 - Fix an obvious bug in the code (patch by Thomas).
svn path=/trunk/; revision=27711
2007-07-18 07:17:25 +00:00
Thomas Bluemel
f2bbc79cf7 Fix warnings I introduced, forgot typecasts...
svn path=/trunk/; revision=27710
2007-07-17 14:56:02 +00:00
Thomas Bluemel
532d977072 Patch by Frode Lillerud <frode@enkelt.no>
- Norwegian keyboard layout
See issue #2419 for more details.

svn path=/trunk/; revision=27709
2007-07-17 14:28:49 +00:00
Thomas Bluemel
f1948e0bc2 Fix remaining incorrect dialog definitions using DS_SHELLFONT as an extended style.
svn path=/trunk/; revision=27708
2007-07-17 14:18:38 +00:00
Thomas Bluemel
d68854511a Fix the dialog manager to ignore WS_EX_MDICHILD.
See issue #2289 for more details.

svn path=/trunk/; revision=27707
2007-07-17 13:52:36 +00:00
Thomas Bluemel
14e9f977d9 Revert r27705. This change is incorrect and breaks MDI applications.
svn path=/trunk/; revision=27706
2007-07-17 13:51:00 +00:00
Christoph von Wittich
10c5cdc533 -forgot to save the file before committing - this is the actual fix from 27703
svn path=/trunk/; revision=27705
2007-07-16 23:02:29 +00:00
Christoph von Wittich
0a51ea233b -don't set DS_SHELLFONT as EXSTYLE
svn path=/trunk/; revision=27704
2007-07-16 22:57:35 +00:00
Christoph von Wittich
2bc61e5962 -get rid of DS_SHELLFONT when set as EXSTYLE, it is a STYLE flag
See issue #2289 for more details.

svn path=/trunk/; revision=27703
2007-07-16 22:56:04 +00:00
Colin Finck
4f3f3a53bc Readd the removed line from the patch and add more information about the Usage of the "-f" option (see comment #6 of bug #2379)
The "-f" option now works like in Windows: If you did not specify any other parameter, it will also log off from the current session.

svn path=/trunk/; revision=27702
2007-07-16 21:50:50 +00:00
Johannes Anderwald
3467fa05cc - add ukrainian translation by Artem Reznikov
See issue #2411 for more details.

svn path=/trunk/; revision=27700
2007-07-16 19:30:12 +00:00
Ged Murphy
e55869be78 call the correct event on system boot
svn path=/trunk/; revision=27699
2007-07-16 18:43:13 +00:00
Ged Murphy
87bd668b8c fix the startup event name as per r27697
svn path=/trunk/; revision=27698
2007-07-16 17:48:57 +00:00
Ged Murphy
70f3b132fa revert r27695 as it's already implemented in advapi32. My tests failed because it's incorrectly named.
svn path=/trunk/; revision=27697
2007-07-16 17:47:12 +00:00
Ged Murphy
1a14c5a8db don't leak handles
svn path=/trunk/; revision=27696
2007-07-16 17:17:34 +00:00
Ged Murphy
972d9788d0 Wait for the SCM to be fully initialized before calling allowing a call to OpenSCManager
svn path=/trunk/; revision=27695
2007-07-16 16:00:37 +00:00
Hervé Poussineau
e47b3f0dfa Resize the string table when needed
Fix a few warnings

svn path=/trunk/; revision=27694
2007-07-16 15:32:13 +00:00
Ged Murphy
029287899f fix SCM sync event name
svn path=/trunk/; revision=27693
2007-07-16 14:29:49 +00:00
Thomas Bluemel
4aa6574ca2 Implement Heap32First and Heap32Next based on the documentation on http://securityxploded.com/enumheaps.php
svn path=/trunk/; revision=27692
2007-07-16 12:21:38 +00:00
Aleksey Bragin
938646d914 - Don't do ObInsertObject() for a key object, but use CmpCreateHandle() instead.
- Remove some dead code from CmiConnectHive() and move freeing of the create information to a different place.

svn path=/trunk/; revision=27690
2007-07-15 21:35:16 +00:00
Johannes Anderwald
0d051c196e - update slovakian solitaire translation
See issue #2353 for more details.

svn path=/trunk/; revision=27685
2007-07-15 14:32:21 +00:00
Sylvain Petreolle
3f9f01b3b3 unicode compatibility
svn path=/trunk/; revision=27684
2007-07-15 13:53:28 +00:00
Ged Murphy
c0ccb82f23 remove redundant string
svn path=/trunk/; revision=27680
2007-07-15 12:53:03 +00:00
Ged Murphy
2bd18ec234 fix the start menu icon to be the right way up
svn path=/trunk/; revision=27675
2007-07-15 11:57:52 +00:00
Colin Finck
085f7002ae Add a "shutdown" utility written by Frode Lillerud (frode AT enkelt DOT no), which is more compatible with the syntax of the Windows "shutdown" utility
I applied the second patch of bug #2379 and made the following changes to it:

- Removed the LocalFree line
  LocalFree can only be used if the memory is allocated with LocalAlloc. The memory doesn't need to be freed explicitly here.
- Removed the "uncertain if this is needed. Do boolean struct members default to TRUE?" comment
  Independent of the value, this setting is needed here.
- Removed a wrong 'exitOpts.shouldExit = TRUE;' in line 101.
  shouldExit was already set before and resetting it here to TRUE would also lead to TRUE if the user only sets opts.force, but not any of the other shutdown options.
- Use a consistent indentation and coding style
- Modified the Usage text a little bit, so all lines fit into console lines (max. 80 characters)
See issue #2379 for more details.

svn path=/trunk/; revision=27674
2007-07-15 11:15:27 +00:00
Thomas Bluemel
544cdbf9dd Finally get the fake (and broken by design) DOS device check to work
svn path=/trunk/; revision=27673
2007-07-15 08:33:49 +00:00
Timo Kreuzer
5a95124349 - fix IntValidateParent
- validate Parent windows on moving pixels
(both was fine earlier, but has been messed up recently)
- move sending of WM_SIZE and WM_MOVE from co_WinPosShowWindow to co_WinPosSetWindowPos
co_WinPosSetWindowPos:
- instantly erase when drawing windows or exposing region
- Invalidate child windows on BeginPaint
This should fix most window redrawing bugs and also (hopefully) speed up the gui (less redrawing).

svn path=/trunk/; revision=27672
2007-07-15 03:30:03 +00:00
Magnus Olsen
99e20bb44c Copied remotely
CMIDriver to Trunk
on silverblade request

svn path=/trunk/; revision=27671
2007-07-14 23:52:33 +00:00
Thomas Bluemel
0d910647aa Simplify code
svn path=/trunk/; revision=27668
2007-07-14 22:49:47 +00:00
Thomas Bluemel
bd6665924c - Fix caching of directory queries, FindFirstFile(Ex) should no longer return garbage occasionally
- These changes re-introduce the problem with searches for fake DOS devices that I claimed to have fixed in r27634

svn path=/trunk/; revision=27667
2007-07-14 22:29:42 +00:00
Timo Kreuzer
8cd2e2a887 fix German resource
svn path=/trunk/; revision=27666
2007-07-14 21:57:22 +00:00
Magnus Olsen
191ff40f7f wrong spi value in allot SPI_
Rewrote all SPI_ to make sure no one got wrong value
hopply this prevent wax crash in spi. 


svn path=/trunk/; revision=27665
2007-07-14 16:47:48 +00:00
Ged Murphy
7249536db8 Patch by Dmitry Chapyshev <lentind@yandex.ru>:
- Add icon more image formats and clean up existing ones
- Fix some Russian translations

svn path=/trunk/; revision=27664
2007-07-14 16:17:45 +00:00
Sylvain Petreolle
ac6f734427 fix french resource file
svn path=/trunk/; revision=27663
2007-07-14 16:14:11 +00:00
Johannes Anderwald
5c48c77054 - add terminate emulator option :)
svn path=/trunk/; revision=27662
2007-07-14 15:23:56 +00:00
Johannes Anderwald
47dc768408 - remove obsolete pid option
svn path=/trunk/; revision=27661
2007-07-14 15:10:17 +00:00
Magnus Olsen
06fbf99e3f add activate of screensaver when they are being selected.
we do not set or read register value for it yet, so defualt is the screensaver offline until u go into desk.cpl and select a screensaver.

svn path=/trunk/; revision=27660
2007-07-14 14:52:10 +00:00
Magnus Olsen
b2272ba67c adding SPI_SETSCREENSAVEACTIVE now, it can be set to false or true
false for no screen saver and true for screensaver. 

svn path=/trunk/; revision=27657
2007-07-14 14:17:54 +00:00
Magnus Olsen
b63aeeb74d fixing the limit of hover maxium time for SPI_SETMOUSEHOVERTIME
see msdn : http://msdn2.microsoft.com/en-us/library/ms724947.aspx

svn path=/trunk/; revision=27656
2007-07-14 13:56:24 +00:00
Magnus Olsen
4baff3cd38 Patch by David Lenon <DavidL@126.com>:
fixing some spi that was retutring using wrong param in retutin and setting spi
-------------------------------------------------------------------------------
1. I did add formating of the code and two debug msg. so it getting easy debug
waxdragon crashs

svn path=/trunk/; revision=27654
2007-07-14 13:18:25 +00:00
Aleksey Bragin
e5c1383b31 Patch by Dmitry Chapyshev <lentind@yandex.ru>:
- Fix russian translation.

svn path=/trunk/; revision=27651
2007-07-14 12:28:54 +00:00
Aleksey Bragin
0dd033e04d Patch by Dmitry Chapyshev <lentind@yandex.ru>:
- Fix russian translation of calc, charmap, msconfig, mscutils and taskmgr.
- Fix mistakes in russian translation of explorer.
- Move title of servman to translation resources and translate to russian language.

svn path=/trunk/; revision=27650
2007-07-14 12:11:50 +00:00
Thomas Bluemel
008fc0b1ca Patch by David Lenon <DavidL@126.com>:
- Fix overflow check in RtlUpcaseUnicodeStringToCountedOemString
See issue #2403 for more details.

svn path=/trunk/; revision=27649
2007-07-14 10:59:18 +00:00
Johannes Anderwald
1309c3f3eb - fix commandline arguments
svn path=/trunk/; revision=27648
2007-07-14 10:28:58 +00:00
Johannes Anderwald
d07065ab90 - fix command line handlung
- fix configuration and file parser
- remove hack

svn path=/trunk/; revision=27647
2007-07-14 10:24:02 +00:00
Thomas Bluemel
bdd2ecc99e Hide the clock in setupldr
svn path=/trunk/; revision=27646
2007-07-14 10:04:32 +00:00
Johannes Anderwald
f07d18172d - make sysreg compilable under linux
svn path=/trunk/; revision=27645
2007-07-14 10:01:09 +00:00
Thomas Bluemel
3a4932988f Don't strip the trailing backslash if the path is only a drive
svn path=/trunk/; revision=27644
2007-07-14 08:01:01 +00:00
Thomas Bluemel
a0637bc3ac Display junction points
svn path=/trunk/; revision=27643
2007-07-14 07:16:05 +00:00
James Tabor
4aa8a9db0f Fix build.
svn path=/trunk/; revision=27642
2007-07-13 23:20:36 +00:00
Christoph von Wittich
79ae53bf4b -fix some linux build issues
svn path=/trunk/; revision=27641
2007-07-13 23:19:04 +00:00
Thomas Bluemel
111b3553aa Adjust the owner edit field on page resizes
svn path=/trunk/; revision=27640
2007-07-13 22:56:32 +00:00
Johannes Anderwald
0f27116821 - blame svn
svn path=/trunk/; revision=27639
2007-07-13 22:16:15 +00:00
Johannes Anderwald
4592bbb147 - update slovak translation by Kario <kario@szm.sk>
See issue #2353 for more details.

svn path=/trunk/; revision=27638
2007-07-13 22:13:52 +00:00
Johannes Anderwald
7007712b2f - update french translation by Pierre Schweitzer
See issue #2399 for more details.

svn path=/trunk/; revision=27637
2007-07-13 21:51:13 +00:00
Thomas Bluemel
0cfece1c1e Add support for user quotas in GetDiskFreeSpaceExW
svn path=/trunk/; revision=27636
2007-07-13 21:42:44 +00:00
Thomas Bluemel
8acdce6856 Sync GetTempFileNameW to wine HEAD
svn path=/trunk/; revision=27635
2007-07-13 20:23:26 +00:00
Thomas Bluemel
532f7fecc5 Rewrite parts of FindFirstFileEx to:
- Fix searches relative to the current directory using the features RtlDosPathNameToNtPathName_U provides instead of hacking around them
- Enable searches for fake DOS devices. Some installers like NSIS use this feature to determine if a drive exists, this works now.

svn path=/trunk/; revision=27634
2007-07-13 19:43:09 +00:00
Magnus Olsen
5bce20b1be patch from Preston Pigglessworth email : tykef at atlas dot cz
---------------------------------------------------------------
update the translations for CZ
See issue #1958 for more details.

svn path=/trunk/; revision=27630
2007-07-13 13:43:46 +00:00
Daniel Reimer
f7105f9acb Fix Translation.
svn path=/trunk/; revision=27629
2007-07-13 13:43:02 +00:00
Magnus Olsen
ad43654e07 patch from Preston Pigglessworth email : tykef at atlas dot cz
---------------------------------------------------------------
update the translations for CZ
See issue #1958 for more details.

svn path=/trunk/; revision=27628
2007-07-13 13:38:26 +00:00
Magnus Olsen
846d92706e patch from Pierre Schweitzer (aka Heis Spiter) heis_spiter at hotmail dor com
------------------------------------------------------------------------------
1. remove one hard code line.
2. cleanup one rc file


See issue #2400 for more details.

svn path=/trunk/; revision=27627
2007-07-13 11:42:20 +00:00
Thomas Bluemel
062ffc428c Fix unoptimized builds
svn path=/trunk/; revision=27626
2007-07-13 09:53:48 +00:00
Johannes Anderwald
ea4c53340d - fix Buffer overflow in CmpHiveRootSecurityDescriptor
- patch by w3seek
See issue #2401 for more details.

svn path=/trunk/; revision=27625
2007-07-13 09:34:16 +00:00
Christoph von Wittich
456cbf9376 -revert my last change - I confused it with regedt32.exe
svn path=/trunk/; revision=27624
2007-07-12 23:26:19 +00:00
Johannes Anderwald
99ba170554 - add system.ini property page resource definition
svn path=/trunk/; revision=27623
2007-07-12 23:20:28 +00:00
Christoph von Wittich
1a4b3833af -change shortcut targetdir to system32
svn path=/trunk/; revision=27622
2007-07-12 23:16:16 +00:00
Christoph von Wittich
b690c23325 -install regedit in system32
svn path=/trunk/; revision=27621
2007-07-12 23:15:41 +00:00
Magnus Olsen
e8c11f0d71 patch from Yaroslav Ponomarenko yarryp at gmail dot com
-------------------------------------------------------
This is a small hack, instead send invaild data we are sending 
a hardcode value for few unimplement spi, This solv some problem 
with firefox, like icon is not longer gray out, frist time u start 
firefox, it also fix some other werid problem, 




svn path=/trunk/; revision=27620
2007-07-12 22:14:40 +00:00
Ged Murphy
b0309a9b22 add a note as to why I hackfixed it, so I don't forget
svn path=/trunk/; revision=27619
2007-07-12 22:02:47 +00:00
Magnus Olsen
924a230291 patch from w3seek
------------------
Don't mess with the stack in inline assembly because it cannot be
assumed that the compiler magically knows where the local variables are located
after changing the stack pointer manually.


See issue #2364 for more details.

svn path=/trunk/; revision=27618
2007-07-12 19:48:27 +00:00
Colin Finck
2f178e8cb6 Updated Italian translation by Paolo Devoti (devotip AT tiscali DOT it)
See issue #2391 for more details.

svn path=/trunk/; revision=27617
2007-07-12 16:44:15 +00:00
Ged Murphy
447975d4e0 fix shortcut icons
svn path=/trunk/; revision=27616
2007-07-12 15:50:19 +00:00
Aleksey Bragin
277f2718d0 - Firstly mark the IRP as pending, and only then release the lock (otherwise IRP is firstly completed/freed, and then tried to be marked as pending). This makes FireFox 1.5 working again.
- NULLify handle in case of TdiOpenDevice() failure.

svn path=/trunk/; revision=27615
2007-07-12 12:38:25 +00:00
Colin Finck
90ce81d302 Somehow this translation contained duplicate data, removed the duplicates
svn path=/trunk/; revision=27614
2007-07-12 12:28:42 +00:00
Colin Finck
cd5888ebd5 Small changes in the german translation of syssetup.dll
svn path=/trunk/; revision=27613
2007-07-12 11:29:29 +00:00
Thomas Bluemel
e0bf78bad7 Fix the semantics of SetFilePointer as described by Raymond Chen on http://blogs.msdn.com/oldnewthing/archive/2007/07/11/3805135.aspx
svn path=/trunk/; revision=27612
2007-07-12 10:56:00 +00:00
Johannes Anderwald
87d4c1e2b4 - update polish translation
See issue #2388 for more details.

svn path=/trunk/; revision=27611
2007-07-12 10:52:15 +00:00
Johannes Anderwald
8b1fea2111 - update french translation by Pierre Schweitzer
See issue #2390 for more details.

svn path=/trunk/; revision=27610
2007-07-12 10:47:07 +00:00
Christoph von Wittich
6368c774ec -export _strtoull - now dbghelp.dll should load
svn path=/trunk/; revision=27609
2007-07-12 10:05:28 +00:00
Ged Murphy
a6182da3f4 - Allow a greater distance between the underscore and the text for aesthetics
- Patch by David Leon (david at 126 dot com)

svn path=/trunk/; revision=27608
2007-07-12 08:13:18 +00:00
Andrew Munger
9f3137e69e Restore a missing " so I can build again.
svn path=/trunk/; revision=27607
2007-07-12 04:31:25 +00:00
Daniel Reimer
f5b6b4b6d1 Ged, you wanted a translation. ;-)
svn path=/trunk/; revision=27606
2007-07-11 23:40:21 +00:00
Thomas Bluemel
69a12fc06c Add missing structures
svn path=/trunk/; revision=27605
2007-07-11 23:12:54 +00:00
Daniel Reimer
4cfa3cd17e set eol:style native
svn path=/trunk/; revision=27604
2007-07-11 22:42:20 +00:00
Daniel Reimer
44df677a32 Add five new German translations.
svn path=/trunk/; revision=27603
2007-07-11 22:38:24 +00:00
Magnus Olsen
ea5e738541 patch from Yaroslav Ponomarenko yarryp at gmail dot com
1. adding support for  SPI_GETNONCLIENTMETRICS,  SPI_GETICONMETRICS, SPI_SETICONTITLELOGFONT, 
2. adding few unsupport spi and print it out, it mean we do not need do a context switch for them
3. and bugfix other spi as well



svn path=/trunk/; revision=27602
2007-07-11 22:11:58 +00:00
Ged Murphy
31735fc29d - Fix the syssetup resource files
- This fixes the issue of the device manager and service manager not showing in admin tools due to LoadString failing.
- Translators required please

svn path=/trunk/; revision=27601
2007-07-11 22:09:36 +00:00
Colin Finck
e63dd20980 getfirefox has been removed long time ago, so don't create its shortcut anymore
Thanks to HeisSpiter for making me noticing this :-)

svn path=/trunk/; revision=27600
2007-07-11 19:52:10 +00:00
Thomas Bluemel
1c694b55bc Fix checking the file's existence
svn path=/trunk/; revision=27599
2007-07-11 19:43:57 +00:00
Thomas Bluemel
9dfc7b707b Set the executable's directory as working directory, not the link's...
svn path=/trunk/; revision=27598
2007-07-11 19:34:45 +00:00
Colin Finck
d9e6b3b8eb Hm, Tortoise seems to forgot this one as well... :-/
svn path=/trunk/; revision=27597
2007-07-11 19:06:54 +00:00
Colin Finck
90e76cef8e Forgot this one, sorry...
svn path=/trunk/; revision=27596
2007-07-11 19:05:11 +00:00
Thomas Bluemel
14c9f8917d Set a working directory for the start menu items
svn path=/trunk/; revision=27595
2007-07-11 18:49:01 +00:00
Colin Finck
ce4d81a117 - Brazilian Portuguese Translations by Wagner Leandro Bueno Angelo (wagner.snake AT gmail DOT com), fixes bug #2385
- Moved the localization stuff to "rsrc.rc" files in some more components
See issue #2385 for more details.

svn path=/trunk/; revision=27594
2007-07-11 18:35:42 +00:00
Aleksey Bragin
4742301dbe - Fix wrongly-applied translation.
svn path=/trunk/; revision=27591
2007-07-11 16:08:29 +00:00
Colin Finck
349224ee0f Updated XML file by Coviti (coviti AT gmail DOT com)
See issue #2358 for more details.

svn path=/trunk/; revision=27590
2007-07-11 14:34:33 +00:00
Hervé Poussineau
19e99b1930 Add a status window instead of a black screen at the start of the 2nd stage, when installing devices
Now, we should be able to diagnostic if a hang is caused by a bad driver or something else

svn path=/trunk/; revision=27589
2007-07-11 11:51:42 +00:00
Hervé Poussineau
092b297b59 Put common code in livecd and 2nd stage to a shared routine
Simplify creating of optional shortcuts
Create an install log
LiveCD: start userinit.exe instead of directly starting the shell

svn path=/trunk/; revision=27588
2007-07-11 09:55:53 +00:00
Hervé Poussineau
01e4b9b9ac Write source file and line in the setup install log
svn path=/trunk/; revision=27587
2007-07-11 09:04:22 +00:00
Hervé Poussineau
3a9951f710 [FORMATTING]
Fix indentation (mixed tabs and spaces) by always using 4 spaces

svn path=/trunk/; revision=27586
2007-07-11 08:52:55 +00:00
Aleksey Bragin
13c22ddec4 - Russian translation fixes by Dmitry Chapyshev (lentin).
svn path=/trunk/; revision=27578
2007-07-10 20:45:56 +00:00
Timo Kreuzer
783668fa9a UTF8 -> ANSI encoding, so the file will not get messed up again with notepad
svn path=/trunk/; revision=27575
2007-07-10 20:18:58 +00:00
Timo Kreuzer
f34ad18bda - fix messed up file beginning. Do not use ms notepad to edit rc files!
svn path=/trunk/; revision=27574
2007-07-10 19:39:49 +00:00
Johannes Anderwald
0bc8628373 Lithuanian localization support.
Name: CMan
Mail: cman at cman dot us

See issue #2383 for more details.

svn path=/trunk/; revision=27573
2007-07-10 18:46:10 +00:00
Johannes Anderwald
8e5daa28f1 Lithuanian localization support.
Name: CMan
Mail: cman at cman dot us


See issue #2383 for more details.

svn path=/trunk/; revision=27572
2007-07-10 18:45:06 +00:00
Johannes Anderwald
1c17aab025 - forgot one file
svn path=/trunk/; revision=27570
2007-07-10 18:24:17 +00:00
Johannes Anderwald
c0caac9484 - major rewrite of sysreg
- refactor code to abstract os differences more cleaner
- code needs still be tested

svn path=/trunk/; revision=27569
2007-07-10 18:23:07 +00:00
Magnus Olsen
06641a82b7 patch from Yaroslav Ponomarenko yarryp at gmail dot com
NtGdiExtTextOut did try render no existed glyth in the glyth cache 



svn path=/trunk/; revision=27568
2007-07-10 17:44:23 +00:00
Ged Murphy
08344fca94 fix the SetServiceStatus idl definition
svn path=/trunk/; revision=27567
2007-07-10 14:55:14 +00:00
Ged Murphy
e9982e936f fix SetServiceStatus to now call ScmrSetServiceStatus to set the service data
svn path=/trunk/; revision=27566
2007-07-10 14:54:30 +00:00
Ged Murphy
f8ab7f007a implement ScmrSetServiceStatus, this goes some way to being able to manually control services
svn path=/trunk/; revision=27565
2007-07-10 14:49:51 +00:00
Colin Finck
31491cefa9 Update copyrights to 2007
svn path=/trunk/; revision=27564
2007-07-10 14:17:15 +00:00
Hervé Poussineau
9541d1c816 Prevent possible access out of bounds when calculating CPU speed
svn path=/trunk/; revision=27563
2007-07-10 13:30:43 +00:00
Colin Finck
aab51cffca Delete the unneeded and wrong SUBLANG_NEUTRAL line from the dialog definition
See issue #2381 for more details.

svn path=/trunk/; revision=27562
2007-07-10 13:29:27 +00:00
Colin Finck
de3cbdd76e Adding/updating french translations for WordPad and ImageSoft by Heis Spiter (heis_spiter AT hotmail DOT com)
This patch also removes the call to a wrong window in ImageSoft

I slightly modified the patch to match with our new SUBLANG rules.
See issue #2377 for more details.

svn path=/trunk/; revision=27561
2007-07-10 13:17:54 +00:00
Colin Finck
84b861da97 SUBLANG fixes for rosapps
svn path=/trunk/; revision=27558
2007-07-10 12:20:59 +00:00
Colin Finck
cabf9252e6 Change the sublanguage of "nl-NL.rc" to SUBLANG_NEUTRAL again, since LANG_DUTCH has two sublanguages (SUBLANG_DUTCH and SUBLANG_DUTCH_BELGIAN)
This reverts tkreuzer's change in r27541

svn path=/trunk/; revision=27557
2007-07-10 10:16:07 +00:00
Hervé Poussineau
8b12884393 [FORMATTING]
Fix formatting, to have an indentation of 4 spaces
No code change

svn path=/trunk/; revision=27553
2007-07-09 23:22:43 +00:00
Ged Murphy
4216adf631 - Rewrite the service handler and parts of the main control thread. The rest will be rewritten bit by bit.
- tcpsvcs now cleanly starts serves and stops in Windows.

svn path=/trunk/; revision=27552
2007-07-09 23:13:09 +00:00
James Tabor
2c13c59b51 Fix Linux build.
svn path=/trunk/; revision=27551
2007-07-09 20:39:05 +00:00
Daniel Reimer
79bbf63c2b Set eol:style native
svn path=/trunk/; revision=27547
2007-07-09 18:11:53 +00:00
Daniel Reimer
b5277127b7 - Commit Translations from Bug #2350 - Bug #2353 by Kairo (kario@szm.sk)
- Half Commit rc file fix of Bug #2355 (Other half was already fixed today ;-) )

svn path=/trunk/; revision=27546
2007-07-09 17:59:50 +00:00
Hervé Poussineau
b71a99a951 Add reason.h header
See issue #2378 for more details.

svn path=/trunk/; revision=27545
2007-07-09 17:43:38 +00:00
Daniel Reimer
1431bed8bb Add Slovak Translation made by Kario.
See issue #2349 for more details.

svn path=/trunk/; revision=27544
2007-07-09 17:34:26 +00:00
Daniel Reimer
86977cdc8c Set eol:style native. This should be the Final Commit.
svn path=/trunk/; revision=27543
2007-07-09 17:14:36 +00:00
Daniel Reimer
f2136dc264 DOZENS of SUBLANG Fixes.
svn path=/trunk/; revision=27542
2007-07-09 17:03:56 +00:00
Timo Kreuzer
c1a1384688 SUBLANG_NEUTRAL -> SUBLANG_DEFAULT to fix regedit resource compilation
svn path=/trunk/; revision=27541
2007-07-09 16:03:23 +00:00
Colin Finck
2e52161bb0 Part 2 of X of trying to end up with all this SUBLANG mess
Alphabetically, the last RC file I changed was "cdlg_No.rc"

svn path=/trunk/; revision=27540
2007-07-09 15:25:44 +00:00
Colin Finck
f86a818579 Part 1 of X of trying to end up with all this SUBLANG mess
The new rules for the SUBLANGs are here: http://www.reactos.org/wiki/index.php/Sublang

Reverts r27532 as this was a step in the wrong direction
Also corrects some of the wrong SUBLANGs

svn path=/trunk/; revision=27539
2007-07-09 14:45:32 +00:00
Christoph von Wittich
699bd03ad8 -fix a warning (part 2/2)
svn path=/trunk/; revision=27538
2007-07-09 12:59:00 +00:00
Christoph von Wittich
54c9e4033d -fix a warning
svn path=/trunk/; revision=27537
2007-07-09 12:58:38 +00:00
Colin Finck
ca6658fc5a SUBLANG_SPANISH_MODERN is missing in the table on MSDN, but it's needed by our NLS
Readded it

Maybe someone can check if we can replace this with SUBLANG_SPANISH or another spanish variant, since SUBLANG_SPANISH_MODERN seems to be outdated

svn path=/trunk/; revision=27536
2007-07-09 12:21:08 +00:00
Colin Finck
b518786f1b Revert EmuandCo's change in r27533 (should work now with the new defines in winnt.h)
svn path=/trunk/; revision=27535
2007-07-09 11:08:51 +00:00
Colin Finck
7bc3f0f289 Add some more LANG and SUBLANG defines
Source: http://msdn2.microsoft.com/en-us/library/ms776294.aspx

svn path=/trunk/; revision=27534
2007-07-09 11:05:06 +00:00
Daniel Reimer
7cfb369ca4 Fix Build
svn path=/trunk/; revision=27533
2007-07-09 10:44:29 +00:00
Daniel Reimer
a8077b66ae Part 1 of X.
Changing SUBLANGS to SUBLANG_(CoutryName)
If I touched a wine synched one, I'll revert later.

svn path=/trunk/; revision=27532
2007-07-09 10:22:26 +00:00
Magnus Olsen
b660147329 patch from Yaroslav Ponomarenko yarryp at gmail dot com
revert 27521, bugfix the regress in second boot with this patch
-----------------------------------------------------------------
I GreatLord hope it is no more regress, if any one found any werid
with this change, please let me known direcly.



svn path=/trunk/; revision=27531
2007-07-09 05:44:59 +00:00
Christoph von Wittich
2ee6ba87f9 -fix a memory leak
svn path=/trunk/; revision=27530
2007-07-09 02:02:30 +00:00
Christoph von Wittich
972c5d1754 -fix a memory leak
svn path=/trunk/; revision=27529
2007-07-09 01:52:35 +00:00
Hervé Poussineau
e392256c32 Do not complain on IRP_MN_FILTER_RESOURCE_REQUIREMENTS
svn path=/trunk/; revision=27526
2007-07-08 22:19:51 +00:00
Christoph von Wittich
0eb1866364 -add a newline to the end of the file to make gcc happy
svn path=/trunk/; revision=27524
2007-07-08 21:28:37 +00:00
Christoph von Wittich
5fc7647c8a -fix some more warnings
svn path=/trunk/; revision=27523
2007-07-08 21:27:33 +00:00
Hervé Poussineau
1d4ef813b6 Revive acpi.sys driver
svn path=/trunk/; revision=27522
2007-07-08 21:26:42 +00:00
Hervé Poussineau
4a614a2899 Revert half of revision 27465, as it breaks 2nd stage setup ("Failure rendering glyph")
svn path=/trunk/; revision=27521
2007-07-08 21:23:47 +00:00
Eric Kohl
a1c8d56925 Fix a typo.
svn path=/trunk/; revision=27519
2007-07-08 20:39:27 +00:00
Christoph von Wittich
9017e736ff -fix some warnings
svn path=/trunk/; revision=27518
2007-07-08 20:38:35 +00:00
Eric Kohl
65e920d5da InternalOpenDirW: Fix object attribute.
svn path=/trunk/; revision=27517
2007-07-08 20:21:42 +00:00
Daniel Reimer
e32148b1e4 - Set eol:style native
svn path=/trunk/; revision=27516
2007-07-08 20:19:35 +00:00
Hervé Poussineau
e394d5e78d Fix usage of KdComPortInUse
svn path=/trunk/; revision=27515
2007-07-08 20:13:20 +00:00
Eric Kohl
add1532e20 - Fix indentation.
- Replace tabs by spaces.
- Replace STDCALL by WINAPI.
- Replace Alex' unreadable single-line statements by readable ones.
- No code changes.

svn path=/trunk/; revision=27514
2007-07-08 20:09:22 +00:00
Christoph von Wittich
c57c69624e -fix some format strings
svn path=/trunk/; revision=27513
2007-07-08 19:44:11 +00:00
Christoph von Wittich
7b99b108be -fix some more compilation issues
svn path=/trunk/; revision=27511
2007-07-08 19:34:23 +00:00
James Tabor
d08a778fd1 Fix Linux build.
svn path=/trunk/; revision=27510
2007-07-08 19:26:23 +00:00
Daniel Reimer
c7fc846f80 - set all RC Files to eol:style native
- add German RC File to mmc and Matrix Screensaver
- Fix RC Headers in the hope that GreatLord is happy. It builds well in GCC.

svn path=/trunk/; revision=27509
2007-07-08 19:15:50 +00:00
Christoph von Wittich
addc92fc58 -fix some compilation errors
svn path=/trunk/; revision=27507
2007-07-08 18:54:07 +00:00
Daniel Reimer
03fb0c8a35 set eol:style native
svn path=/trunk/; revision=27506
2007-07-08 18:02:55 +00:00
Daniel Reimer
02934dc3c6 Reorganize winhelp the way all other apps are organized too.
svn path=/trunk/; revision=27505
2007-07-08 18:01:14 +00:00
Johannes Anderwald
fe8c39773c - part 2/2 of bulgarian translation update
See issue #2366 for more details.

svn path=/trunk/; revision=27504
2007-07-08 18:00:21 +00:00
Johannes Anderwald
3f0a181d72 - part 1/2 of bulgarian translation update
See issue #2366 for more details.

svn path=/trunk/; revision=27503
2007-07-08 17:58:30 +00:00
Andrew Greenwood
330b16d830 Restructured PORTCLS as requested by Christoph_vW (so PREfast can be
used.) Here is also a very bare-bones implementation of SysAudio 
(actually it just creates \Device\sysaudio and a symlink for now...)


svn path=/trunk/; revision=27494
2007-07-08 17:31:55 +00:00
Aleksey Bragin
8d3e4b4e77 - Fix a couple of places where tagged commands support was not implemented.
- Uncomment buslogic.sys since it now half-works (at least it doesn't hang, and it even recognizes the driver, however an attempt to setup reactos to scsi disk fails).

svn path=/trunk/; revision=27493
2007-07-08 17:14:19 +00:00
Daniel Reimer
34fdc401c5 Set eol:style native (I hope....)
svn path=/trunk/; revision=27492
2007-07-08 17:03:40 +00:00
Johannes Anderwald
402b14fa42 - French translation for fontview (based on en-US.rc) by Pierre Schweitzer (heis_spiter at hotmail com)
See issue #2370 for more details.

svn path=/trunk/; revision=27491
2007-07-08 16:51:03 +00:00
Johannes Anderwald
5fcc4be1d1 - lithuanian translation by Vytis Girdzijauskas (cman at cman dot us)
See issue #2376 for more details.

svn path=/trunk/; revision=27490
2007-07-08 16:43:53 +00:00
Hervé Poussineau
ec9f3068a6 Explicitly use Unicode version
svn path=/trunk/; revision=27489
2007-07-08 16:37:22 +00:00
Magnus Olsen
3f6528063c patch from Yaroslav Ponomarenko yarryp at gmail dot com
fixed last bug for swamp mouse button 


svn path=/trunk/; revision=27488
2007-07-08 16:24:29 +00:00
Andrew Greenwood
224af7cee9 Further tidying up of the multimedia components. Renamed MPU401_KS to
MPU401 and SB16_KS to SB16. Have updated the rbuild files so these 
should still build without issue.


svn path=/trunk/; revision=27487
2007-07-08 16:12:09 +00:00
Magnus Olsen
6c0a11007b use // as comment instead for ;
svn path=/trunk/; revision=27486
2007-07-08 16:09:29 +00:00
Andrew Greenwood
ec310c8989 Renamed legacy mpu401 driver to mpu401_nt4 and disabled the building of
all drivers in this directory (all are incomplete, none of them work and 
are superceded by the Kernel Streaming alternatives.) Leaving drivers in 
source tree for reference at present but they can eventually be removed.


svn path=/trunk/; revision=27485
2007-07-08 16:07:01 +00:00
Magnus Olsen
15355ab9a9 patch from Yaroslav Ponomarenko yarryp at gmail dot com
Implement so spi_ msg works now with swamp mouse buttun, but it seam our msg quare does not support it yet or must 
we send a msg from spi msg we change the mouse buttun to notify the program. either way it is now partly supported 
by his patch

svn path=/trunk/; revision=27484
2007-07-08 15:58:47 +00:00
Andrew Greenwood
3f14a21b6f Kernel-mode COM rough implementation for KS. Forgot to add to SVN on
last commit.


svn path=/trunk/; revision=27483
2007-07-08 15:54:12 +00:00
Magnus Olsen
aec8f7eff1 correct fix for log10.
svn path=/trunk/; revision=27482
2007-07-08 15:33:38 +00:00
Christoph von Wittich
a8ea3c335e -set eol-style:native
-fix line endings

svn path=/trunk/; revision=27477
2007-07-08 14:50:25 +00:00
Christoph von Wittich
5eea562870 -release spinlocks before calling IoCompleteRequest
-fix some format strings

svn path=/trunk/; revision=27476
2007-07-08 14:27:17 +00:00
Andrew Greenwood
ed12e0c8c9 Missed a file on last commit...
svn path=/trunk/; revision=27475
2007-07-08 13:58:51 +00:00
Andrew Greenwood
dff03c9e44 A few modifications necessary to get PortCls and KS to build. PortCls
needs restructuring but that will be done later.


svn path=/trunk/; revision=27474
2007-07-08 13:53:39 +00:00
Christoph von Wittich
9be5d6e114 -avoid dereferencing of NULL pointers
svn path=/trunk/; revision=27473
2007-07-08 13:38:08 +00:00
Christoph von Wittich
7a7bdde4ec -use ExAllocatePoolWithTag instead of ExAllocatePool
-IoMapTransfer should not called without an AdapterObject

svn path=/trunk/; revision=27472
2007-07-08 13:24:53 +00:00
Aleksey Bragin
540155a12a - Delete unneeded fields from DeviceExtension.
- Reformat ScsiPortGetVirtualAddress(), and make it using SrbExtensionBuffer pointer instead of a removed VirtualAddress.

svn path=/trunk/; revision=27471
2007-07-08 12:32:02 +00:00
Aleksey Bragin
ad9fd2687e - Enable DMA support, this time properly.
- Fix ScsiPortGetPhysicalAddress() function to use scatter-gather list, if needed.
- Now BusLogic initializes succesfully, but BSODs later.

svn path=/trunk/; revision=27470
2007-07-08 12:21:18 +00:00
Aleksey Bragin
081ca81b64 Reverting last commit, sorry it makes scsiport hanging.
svn path=/trunk/; revision=27469
2007-07-08 11:47:28 +00:00
Aleksey Bragin
6a56fe39cc - Start adding DMA support (still not finished, so BusLogic fails).
svn path=/trunk/; revision=27468
2007-07-08 11:44:42 +00:00
Magnus Olsen
b35a8f64a1 patch from Daniel Reimer reimer.daniel at freenet dot de
fixed some sublang mess


svn path=/trunk/; revision=27467
2007-07-08 11:33:54 +00:00
Eric Kohl
9699821101 Fix bug in log10 function. Patch by Carlo Bramix.
This fixes bug #2357.

svn path=/trunk/; revision=27466
2007-07-08 11:22:39 +00:00
Magnus Olsen
aba2e5a942 patch from Yaroslav Ponomarenko yarryp at gmail dot com
adding almost all spi msg can be resive/send to win32k and 
some are stub and will not work yet, but win32k will accpect them 

svn path=/trunk/; revision=27465
2007-07-08 11:16:42 +00:00
Daniel Reimer
30764d14ac - Add German RC FIle for intl_new
- Fix Hungarian and Ukrainian RC File. (I hope..)

svn path=/trunk/; revision=27464
2007-07-08 11:06:25 +00:00
Colin Finck
2767e008a0 Fix the "intl_new" build (add an "rsrc.rc" file)
svn path=/trunk/; revision=27463
2007-07-08 10:55:58 +00:00
Magnus Olsen
6c6e093fbd adding rsrc.rc
svn path=/trunk/; revision=27462
2007-07-08 10:41:31 +00:00
Magnus Olsen
f905e2a4fd Fixing some of the wrong sublang problem
svn path=/trunk/; revision=27461
2007-07-08 10:37:00 +00:00
Colin Finck
a0530e5dd5 - Brazilian Portuguese Translations by Snake (wagner.snake AT gmail DOT com)
- Also adds an "rsrc.rc" file to "ntvdm"
See issue #2373 for more details.

svn path=/trunk/; revision=27460
2007-07-08 10:19:12 +00:00
Magnus Olsen
ba38a037b5 fixing right sub id
please check with vs if the rc got right sub id before a commit.
I do not whant file on other langues like fi in english lang and so on

svn path=/trunk/; revision=27459
2007-07-08 01:11:17 +00:00
Magnus Olsen
972b4279de patch from Yaroslav Ponomarenko yarryp at gmail dot com
adding missing #define of a spi_ into winuser.h

svn path=/trunk/; revision=27458
2007-07-08 00:34:43 +00:00
Magnus Olsen
3c5e9fd0c0 move some value to right place into the text FIXME load from register
svn path=/trunk/; revision=27457
2007-07-07 21:09:15 +00:00
Thomas Bluemel
016296a635 When calling ShellExecuteEx for the selected objects in a shell view, set the current directory to the view's directory.
svn path=/trunk/; revision=27456
2007-07-07 19:11:49 +00:00
Magnus Olsen
3207aad442 TrackMouseEvent
remove some hard code value, thuse value are now in win32k, it is either full implement, or partly implement 

TrackMouseEventProc
remove some hard code value, thuse value are now in win32k, it is either full implement, or partly implement 

svn path=/trunk/; revision=27455
2007-07-07 18:23:09 +00:00
Magnus Olsen
52dc4e8d79 patch from Yaroslav Ponomarenko yarryp at gmail dot com
implement pointers 
MouseSpeed, CursorAccelerationInfo.FirstThreshold , 
CursorAccelerationInfo.SecondThreshold, CursorAccelerationInfo.Acceleration, 
MouseHoverTime, MouseHoverWidth, MouseHoverHeight
for SPI_SETMOUSEHOVERTIME, SPI_SETMOUSEHOVERWIDTH, SPI_SETMOUSEHOVERHEIGHT, SPI_SETMOUSE, SPI_SETMOUSESPEED.
WARING : 
Some of them are not 100% support in win32k for they are need be fill in from the mouse drv and 
send them to the mouse drv as well, this part are not done yet.


svn path=/trunk/; revision=27454
2007-07-07 18:17:03 +00:00
Aleksey Bragin
c7b28e24dd - Temporarily remove buslogic.sys from 1st stage too. It'll be reincluded once scsiport.sys is fixed.
svn path=/trunk/; revision=27453
2007-07-07 18:00:11 +00:00
Colin Finck
257520e113 Partly commit the patch from bug #2358
svn path=/trunk/; revision=27452
2007-07-07 14:50:10 +00:00
Ged Murphy
9a6cc3dc06 set the address bar font to the default GUI font
svn path=/trunk/; revision=27450
2007-07-07 10:28:53 +00:00
Christoph von Wittich
32212ecff8 -check for already defined NDEBUG to be able to build the driver with PREfast
svn path=/trunk/; revision=27449
2007-07-07 10:23:09 +00:00
Aleksey Bragin
315b516aea - Disable BusLogic driver until scsiport fully supports it.
- Do NOT keep VMWare Tools CD mounted after 2nd stage, or you'll get vmscsi.sys installed, which is not supported yet either!

svn path=/trunk/; revision=27448
2007-07-07 10:13:04 +00:00
Ged Murphy
de5865bcd6 - fixes / improvements to regedit, see bug 2356 for details
- patch by carlo bramix  (carlo.bramix at libero it)
- it should be noted that import_registry_file needs more work to support unicode files

svn path=/trunk/; revision=27447
2007-07-07 10:09:24 +00:00
Aleksey Bragin
f9fbc836c8 - Separate common buffer allocation routine from ScsiPortGetUncachedExtension() into SpiAllocateCommonBuffer(), along with a code reformat.
- Use this function in ScsiPortInitialize() and in ScsiPortGetUncachedExtension().

svn path=/trunk/; revision=27446
2007-07-07 09:56:55 +00:00
Aleksey Bragin
0d4033d95d - Zero initialize a variable (I have no idea how PREfast missed this important flaw).
- Fix PCI bus enumeration, so that finding SCSI controllers on PCI bus works now.

svn path=/trunk/; revision=27445
2007-07-07 08:52:35 +00:00
Art Yerkes
adb11df303 Resolve imports at boot time by loading the appropriate modules. We still need
to fix the same stuff in ntoskrnl for pnp loading.
Thanks to hpoussin for fixing pnp so this works.

svn path=/trunk/; revision=27444
2007-07-07 04:43:08 +00:00
Christoph von Wittich
320491c5f1 -fix a memory leak
-don't use uninitialized memory

svn path=/trunk/; revision=27443
2007-07-07 01:39:19 +00:00
Christoph von Wittich
733237f1ad -use ExAllocatePoolWithTag instead of ExAllocatePool
svn path=/trunk/; revision=27442
2007-07-07 01:16:58 +00:00
Christoph von Wittich
8d94a7336b -some changes to be able to build the driver with PREfast
svn path=/trunk/; revision=27441
2007-07-07 01:09:55 +00:00
Christoph von Wittich
891171aebf -added msbuild target to rbuild to be able to test drivers with PREfast
svn path=/trunk/; revision=27440
2007-07-07 00:38:59 +00:00
Hervé Poussineau
9c9992b6a5 Fix traces
Do an unicode build

svn path=/trunk/; revision=27439
2007-07-06 22:47:39 +00:00
Christoph von Wittich
f974855d7e fix some PREfast warnings
svn path=/trunk/; revision=27438
2007-07-06 21:50:48 +00:00
Christoph von Wittich
676da8d7b8 fix gcc build
svn path=/trunk/; revision=27437
2007-07-06 21:36:43 +00:00
Christoph von Wittich
a9c2017b33 fix some PREfast issues
svn path=/trunk/; revision=27436
2007-07-06 21:33:51 +00:00
Hervé Poussineau
e3d5443c9a Simplify IoSynchronousInvalidateDeviceRelations/IoInvalidateDeviceRelations
IoInvalidateDeviceRelations now creates a workitem, which will call IoSynchronousInvalidateDeviceRelations()

svn path=/trunk/; revision=27435
2007-07-06 21:12:44 +00:00
Christoph von Wittich
8b8021bbb9 -some minor changes to be able to build the driver with PREfast
-use ExAllocatePoolWithTag instead of ExAllocatePool

svn path=/trunk/; revision=27434
2007-07-06 20:25:40 +00:00
Christoph von Wittich
01b3f0d7cf -some minor changes to be able to build the driver with PREfast
-use ExAllocatePoolWithTag instead of ExAllocatePool

svn path=/trunk/; revision=27433
2007-07-06 20:25:30 +00:00
Aleksey Bragin
03c866e842 [AUDIT]
- There are plenty of information about PCI, about bus drivers in Windows, and where there is too small information, the testing helps.
- Code is logical, authors are known.

svn path=/trunk/; revision=27432
2007-07-06 20:24:15 +00:00
Aleksey Bragin
8d27e7eff0 [AUDIT]
- isapnp is based on a linux driver, and mainly had only fixes after importing that code. Clean.

svn path=/trunk/; revision=27431
2007-07-06 20:18:43 +00:00
Christoph von Wittich
ea6b02f501 -some minor changes to be able to build the driver with PREfast
-declare I8042InterruptService* routines as KSERVICE_ROUTINE

svn path=/trunk/; revision=27430
2007-07-06 18:14:23 +00:00
Christoph von Wittich
9f79a749af Never call IoCompleteRequest while holding a spin lock. Attempting to complete an IRP while holding a spin lock can cause deadlocks.
svn path=/trunk/; revision=27429
2007-07-06 17:14:24 +00:00
Ged Murphy
f0124e6d34 0 -> FALSE for clarity
svn path=/trunk/; revision=27424
2007-07-06 14:02:37 +00:00
Ged Murphy
843b40c7ad - ensure SetLastError is called when EnumServicesStatusEx is returning required buffer sizes
- servman.exe now lists all ReactOS services

svn path=/trunk/; revision=27423
2007-07-06 13:53:29 +00:00
Aleksey Bragin
771911b3ab Dmitry Chapyshev:
- More russian translations, this time in rosapps.

svn path=/trunk/; revision=27422
2007-07-06 11:59:52 +00:00
Aleksey Bragin
8a99fa15c5 Dmitry Chapyshev:
- Change strange icon in mmc to a better one.
- Fix russian translation of newdev.dll and serialui.dll (I, Aleksey, partially changed the translation to my personal preference).

svn path=/trunk/; revision=27421
2007-07-06 10:42:22 +00:00
Aleksey Bragin
6d53c91bed - Start turning KDBG into a KD wrapper (and thus removing where possible KDBG-specific hacks in various places of the kernel).
- KdbSymInit() became a general initialization routine.
- KdpEnterDebuggerException() is modified to:
  * Call KDBG's symbol-loading hook when BREAKPOINT_LOAD_SYMBOLS is hit.
  * If KDBG is turned on, and it's a breakpoint, the Eip is incremented (thus fixing the inability to "cont" after breaking into the KDBG debugger).

svn path=/trunk/; revision=27419
2007-07-06 09:02:16 +00:00
Magnus Olsen
7df63f2bb1 add a missuing DPRINT1 in a unpimplement function
svn path=/trunk/; revision=27416
2007-07-06 08:24:55 +00:00
Magnus Olsen
aeccd973cc write out the bus name we say is not pnp, instead using number
svn path=/trunk/; revision=27415
2007-07-06 08:19:09 +00:00
Christoph von Wittich
92128ef797 fix some typos in the comments
svn path=/trunk/; revision=27414
2007-07-05 23:29:54 +00:00
Magnus Olsen
5ecbbb6ebb Do not hack video driver, VBE driver works in windows xp
----------------------------------------------------------------
Fixed to detect few legazy bus types, fill the list for no
PnP bus type in videprt/videoprt.c functions VideoPortInitialize

svn path=/trunk/; revision=27413
2007-07-05 22:06:47 +00:00
Hervé Poussineau
a6fa0638e6 Never call driver AddDevice routine with a NULL PDO
svn path=/trunk/; revision=27412
2007-07-05 20:08:28 +00:00
Hervé Poussineau
a10da52c02 Do not rely on a call to AddDevice with a NULL PDO to start to use a legacy video miniport
svn path=/trunk/; revision=27411
2007-07-05 20:03:22 +00:00
Hervé Poussineau
478a0d960b ReactOS now supports ACLs... (fix SeAccessCheck to sometimes deny access)
svn path=/trunk/; revision=27409
2007-07-05 17:01:02 +00:00
Hervé Poussineau
fa6d39f0e0 Let admins modify the token
svn path=/trunk/; revision=27408
2007-07-05 16:59:27 +00:00
Hervé Poussineau
e8c10e466d Better support of GUID_DEVICE_SYS_BUTTON interface.
Now, the kernel can receive power events from the keyboard, but only reacts by displaying a message

svn path=/trunk/; revision=27407
2007-07-05 14:23:16 +00:00
Magnus Olsen
802891c598 smaller cleanup remove empty folders
svn path=/trunk/; revision=27406
2007-07-05 12:31:09 +00:00
Magnus Olsen
8183f17038 adding usp10.dll to bootcd some program need it
svn path=/trunk/; revision=27405
2007-07-05 11:24:46 +00:00
Christoph von Wittich
28e26ae6bc don't zero an OEM_STRING with sizeof(UNICODE_STRING)
svn path=/trunk/; revision=27404
2007-07-05 11:10:08 +00:00
Magnus Olsen
e2651a0dbc Fixing a smaller bug was intrudes in rev 27394
----------------------------------------------
1. vmware driver child windows was not show right no button or text, in second boot
this change take care of that regress and does not intrudes any new regress what I can 
see. 

svn path=/trunk/; revision=27403
2007-07-05 09:46:57 +00:00
Magnus Olsen
1abc4ee915 Bugfix TrackMouseEvent
patch from Yaroslav Ponomarenko yarryp at gmail dot com
1. make it thread safe
2. fixing so ToolBar  works


/* greatlord */
1. I did smaller change to the patch
2. I also fixed if with missing { } alredy in ros code
See issue #2359 for more details.

svn path=/trunk/; revision=27402
2007-07-05 09:28:11 +00:00
Hervé Poussineau
05fa42912f Fix MSVC project files if version is not 8.00
svn path=/trunk/; revision=27399
2007-07-05 08:02:57 +00:00
Hervé Poussineau
1cf915a077 ZeroMemory the correct amount of bytes
svn path=/trunk/; revision=27398
2007-07-05 07:05:05 +00:00
Christoph von Wittich
7f02b7b93c ZeroMemory the correct amount of bytes
svn path=/trunk/; revision=27397
2007-07-05 01:24:57 +00:00
Christoph von Wittich
9699e0506c ZeroMemory the correct amount of bytes
svn path=/trunk/; revision=27396
2007-07-05 01:22:40 +00:00
Timo Kreuzer
f1a7f30887 co_WinPosSetWindowPos: fix the redrawing (instead of simply removing some code, like my last commit, sorry). Now it works more like on windows and both the problem of a blank control panel and ugly wizard pages are gone. Fixes bug 735, see also bug 902, may fix bug 2141.
See issue #735 for more details.

svn path=/trunk/; revision=27394
2007-07-04 22:22:30 +00:00
Andrew Greenwood
9dc5649fa5 Including <debug.h> in order to use DPRINT rather than my own homebrew
equivalent (using printf!) - this should prevent the un-necessary 
verbose output when starting cmd.exe now ;)


svn path=/trunk/; revision=27393
2007-07-04 18:55:23 +00:00
Aleksey Bragin
1070114e85 - IntCallWindowsProc(): DPRINT1 -> DPRINT, it seems it's allright if it's called with WndProc == NULL.
svn path=/trunk/; revision=27392
2007-07-04 17:20:06 +00:00
Christoph von Wittich
6fccf28376 fixed IopLockFileObject
svn path=/trunk/; revision=27391
2007-07-04 17:05:31 +00:00
Ged Murphy
be2228c407 change the name of the VS config from * - Wine headers to * - ReactOS headers
svn path=/trunk/; revision=27389
2007-07-04 15:28:56 +00:00
Thomas Bluemel
2e3fcb5dd9 Don't silently accept entrypoint=""
svn path=/trunk/; revision=27388
2007-07-04 15:27:32 +00:00
Christoph von Wittich
c0ed3a362f fix loading of comcat.dll
svn path=/trunk/; revision=27387
2007-07-04 15:25:21 +00:00
Hervé Poussineau
9c03ef676e Add a message in case of error when loading/initializing driver
svn path=/trunk/; revision=27386
2007-07-04 14:13:30 +00:00
Aleksey Bragin
122331f605 - Correctly set DN_DRIVER_LOADED flag.
- This fixes "i8042prt/kbdclass.sys get installed one more time at each boot".
See issue #2330 for more details.

svn path=/trunk/; revision=27385
2007-07-04 13:58:30 +00:00
Andrew Greenwood
4d91599bd6 Removing WDMAUD until I figure out how it can be implemented properly
(this will not have any adverse effects as it doesn't actually work 
yet.) Also replacing MMDRV with a rewritten version as it appears to
contain big chunks copied directly from NT4 DDK examples!


svn path=/trunk/; revision=27384
2007-07-04 10:17:48 +00:00
Christoph von Wittich
a941582fa2 fixed vmware video driver installation in vmware 6
svn path=/trunk/; revision=27383
2007-07-04 10:17:28 +00:00
Ged Murphy
d090403690 - Add some UNIMPLEMENTED macros to highlight API's being called
- Reformat the code, no other changes

svn path=/trunk/; revision=27382
2007-07-04 08:26:47 +00:00
Andrew Munger
8db103104e Remove stdole2.tlb from the bootcd also.
svn path=/trunk/; revision=27381
2007-07-03 22:04:42 +00:00
Christoph von Wittich
8201eb491c remove stdole2.tlb from build until there is a solution to build it properly with our buildsystem - wrc can't handle files from other directories than the source dir
svn path=/trunk/; revision=27379
2007-07-03 21:17:51 +00:00
Aleksey Bragin
daf2928882 - Uncomment PCNet driver's installation, since it's support has been fixed in 27377.
- Fix a typo.

svn path=/trunk/; revision=27378
2007-07-03 20:46:43 +00:00
Aleksey Bragin
c2af381a89 - Fix a multiplication error, which lead to a garbage DueTime being passed to KeSetTimerEx().
svn path=/trunk/; revision=27377
2007-07-03 20:38:09 +00:00
Christoph von Wittich
efb16b636b add stdole2.tlb to bootcd
svn path=/trunk/; revision=27376
2007-07-03 19:12:19 +00:00
Christoph von Wittich
114fb8a243 add stdole2.tlb to build
svn path=/trunk/; revision=27375
2007-07-03 19:11:35 +00:00
Christoph von Wittich
ccf9439e1e renamed TypeLib target to EmbeddedTypeLib
svn path=/trunk/; revision=27374
2007-07-03 19:10:33 +00:00
Christoph von Wittich
c9c06660a0 Copied remotely
svn path=/trunk/; revision=27373
2007-07-03 19:09:50 +00:00
Aleksey Bragin
d2ec09ba38 - Add debug prints.
svn path=/trunk/; revision=27369
2007-07-03 17:59:35 +00:00
Christoph von Wittich
42b7fb0c0e -added support for TypeLibs
svn path=/trunk/; revision=27368
2007-07-03 15:27:43 +00:00
Aleksey Bragin
2d419df2e3 - Revert changes to CRT which were not supposed to happen at all (26820, 27200:27204), and were incorrect.
- Remove artifacts from strtoul/strtoull source code (excessive line breaks).

svn path=/trunk/; revision=27367
2007-07-03 15:24:59 +00:00
Hervé Poussineau
55f2798900 Replace tabs by spaces. No code change
svn path=/trunk/; revision=27366
2007-07-02 22:39:11 +00:00
Hervé Poussineau
bffd171f09 Fix indentation (no code change)
svn path=/trunk/; revision=27365
2007-07-02 22:31:30 +00:00
Hervé Poussineau
e3d5a1d218 Clean up options between files
svn path=/trunk/; revision=27363
2007-07-02 18:24:43 +00:00
Hervé Poussineau
989dc0e975 Fix paths to some files
svn path=/trunk/; revision=27362
2007-07-02 18:24:01 +00:00
Hervé Poussineau
668dd86fe9 Fix some prototypes
svn path=/trunk/; revision=27360
2007-07-02 13:40:06 +00:00
The Wine Synchronizer
317ea83284 Autosyncing with Wine HEAD
svn path=/trunk/; revision=27359
2007-07-02 12:07:09 +00:00
Hervé Poussineau
052f7faeee Update README file about Wine shared DLLs
svn path=/trunk/; revision=27358
2007-07-02 12:06:25 +00:00
Christoph von Wittich
2c3f812b5c add comcat.dll to build
svn path=/trunk/; revision=27357
2007-07-02 01:47:50 +00:00
Christoph von Wittich
3ca18547fe Copied remotely
svn path=/trunk/; revision=27356
2007-07-02 01:36:28 +00:00
Christoph von Wittich
549e05c149 Removed file/folder
svn path=/trunk/; revision=27355
2007-07-02 01:35:53 +00:00
Christoph von Wittich
d6f775854f Added a folder remotely
svn path=/trunk/; revision=27354
2007-07-02 01:32:15 +00:00
Christoph von Wittich
853b33abbf -deleted comcat.h
-added comcat.idl to build
-added the baseaddress for comcat.dll
-added comcat related error values to winerror.h

svn path=/trunk/; revision=27351
2007-07-01 22:13:20 +00:00
Magnus Olsen
b79355c407 update dejavu font from 2.15 to 2.17
------------------------------------
What new Extend latin C support 
two more langues are complete
over 600 new glypt have been add
reencoing thing to unicode that was not inu uncode format. 
bug fix ae special char and other bugfix as well
this is last update of dejavu until they come to version 2.3.0 or to version 3.0.0

svn path=/trunk/; revision=27350
2007-07-01 18:34:40 +00:00
Franz Lehner
d32320fa56 Added Repair and update function to installer
svn path=/trunk/; revision=27349
2007-06-30 19:37:43 +00:00
Aleksey Bragin
ffce5f4f66 - Commit a fix for KDBG's attach to process problem.
See issue #1263 for more details.

svn path=/trunk/; revision=27348
2007-06-30 18:58:09 +00:00
Magnus Olsen
57f28d6036 forget adding this file sprry I broken the build
thx HeisSpiter
See issue #2314 for more details.

svn path=/trunk/; revision=27347
2007-06-30 17:47:14 +00:00
Aleksey Bragin
1d25003483 - Revert accidentally committed ASSERT by Magnus in revision 27342.
svn path=/trunk/; revision=27346
2007-06-30 16:03:34 +00:00
Aleksey Bragin
28244e5ffa - Clean up the mess Magnus introduced (remove allowwarnings="true").
- RpcTryFinall set of macros was mapped to PSEH incorrectly, which lead to a "finally" block being treated as an "except" block (thus ending up in a memory leak). Reverting this part for now until a better solution is found.

svn path=/trunk/; revision=27345
2007-06-30 16:01:03 +00:00
Magnus Olsen
3c6d190150 accpect pacth in bug 2314, with one smaller change
the msvcrt20.def change was not accpect, it need more time for review.
and we do not support __set_error in libcntpr.  
the patch are base on current strtoul, the strtoull are the long long version 
of strtoul. so he took current stroul and adpate it to long long. and also add
missing error code. patch are done by Pierre Schweitzer email heis_spiter at hotmail.com

See issue #2314 for more details.

svn path=/trunk/; revision=27344
2007-06-30 14:12:10 +00:00
Magnus Olsen
149ffee96d part 7 of 7
at last removing wine hack, that disable seh in rpc.h 
we have now seh activate in rpcrt4 and some other idl stuff as well, 
they where complete hacked to be offline, in wine header, I reworte the 
header and move some prototype to right header. 



svn path=/trunk/; revision=27342
2007-06-30 00:33:38 +00:00
Magnus Olsen
69a5d63fb0 part 6 of xx
removing wine hack, that disable seh in rpc.h 
1. adding  allowwarnings ="true"

svn path=/trunk/; revision=27337
2007-06-29 19:58:33 +00:00
Magnus Olsen
0f28005f96 part 5 of xx
removing wine hack, that disable seh in rpc.h 
cleanup work fireball ask about it

svn path=/trunk/; revision=27336
2007-06-29 19:15:12 +00:00
Magnus Olsen
73ebe1fb97 part 4 of xx
removing wine hack, that disable seh in rpc.h 
1. adding pseh lib to eventlog

svn path=/trunk/; revision=27335
2007-06-29 19:04:20 +00:00
Magnus Olsen
3ca8fa0d70 part 3 of xx
removing wine hack, that disable seh in rpc.h 
1. adding pseh lib to eventlog

svn path=/trunk/; revision=27334
2007-06-29 18:54:48 +00:00
Magnus Olsen
1fee243552 part 2 of xx
removing wine hack, that disable seh in rpc.h 
1. adding pseh lib to eventlog

svn path=/trunk/; revision=27333
2007-06-29 18:36:18 +00:00
Magnus Olsen
a077242b10 part 1 of xx
removing wine hack, that disable seh in rpc.h 
1. adding pseh lib to eventlog

svn path=/trunk/; revision=27332
2007-06-29 18:35:34 +00:00
Magnus Olsen
420c60d889 part 1 of xx
removing wine hack, that disable seh in rpc.h 
1. adding pseh lib to eventlog

svn path=/trunk/; revision=27331
2007-06-29 17:47:07 +00:00
Aleksey Bragin
017976049f - Reimplement HalpAssignPCISlotResources() (based on the old implementation, just changing to the new way of reading/writing PCI config space, formatting and other misc changes).
svn path=/trunk/; revision=27330
2007-06-29 17:20:26 +00:00
Timo Kreuzer
129a800f3f co_WinPosSetWindowPos:
- use IntInvalidateWindows() instead of co_UserRedrawWindows()

svn path=/trunk/; revision=27318
2007-06-28 20:23:46 +00:00
Aleksey Bragin
e706d4ba84 - Always use PsLoadedModuleList as a list of modules.
- Load kernel and hal symbols during BootPhase 1 initialization of this KD wrapper.

svn path=/trunk/; revision=27317
2007-06-28 20:19:16 +00:00
Timo Kreuzer
0a3292ae0a co_UserRedrawWindow(): Don't use region after it was deleted -> hRgn = NULL
svn path=/trunk/; revision=27315
2007-06-28 19:23:59 +00:00
Timo Kreuzer
8ec3b717ee - remove hack from co_WinPosSetWindowPos()
fixes bug 902
it doesn't reintroduce bug 735, wich seems to be fixed.
See issue #902,735 for more details.

svn path=/trunk/; revision=27313
2007-06-28 18:57:24 +00:00
Aleksey Bragin
a0e07982e6 - Rewrite KdbSymProcessBootSymbols() with respect to recent kernel changes.
- Change KdbSymInit() to match standard kd-wrapper init function.
- They are not called from anywhere, so don't expect something to either improve or break.

svn path=/trunk/; revision=27312
2007-06-28 17:49:02 +00:00
Aleksey Bragin
f290d37f66 - Fix incorrect usage of sprintf.
svn path=/trunk/; revision=27311
2007-06-28 16:19:35 +00:00
Johannes Anderwald
e129100556 - add option to macro to specify for which backend this macro is intended
If the macro is for all backends, then you dont need to set this option
However, if this macro is for gcc only then put an option, i.e.:
<define name="__USE_W32API" backend="mingw" />

for msvc backend set backend="msvc"
-Currently filtering is only implemented for msvc backend

svn path=/trunk/; revision=27303
2007-06-28 10:03:54 +00:00
Aleksey Bragin
13e2fd4bc6 - Fix symbols loading (PE sections are mapped now, not just read 1:1 from the disk, thus a need to use SectionHeader->VirtualAddress instead of SectionHeader->PointerToRawData).
svn path=/trunk/; revision=27301
2007-06-28 09:26:05 +00:00
Andrew Munger
1289745bf8 Fix realloc behavior when size == 0 and ptr != NULL.
Patch by DrV, bug 2347.

svn path=/trunk/; revision=27299
2007-06-28 07:05:24 +00:00
Aleksey Bragin
57e548bec4 - Fix incompatibility: In Windows IoGetDeviceProperty(DevicePropertyAddress) returns information as 0xDDDDFFFF (D=Device, F=Function) and not as a PCI_SLOT_NUMBER structure. This is confirmed by tests in Windows XP and 2003, and also found via Google.
- Fix incorrect usage of DevicePropertyAddress in videoprt and ndis (thus ndis.sys+pcnet.sys load [again] in Windows XP).

svn path=/trunk/; revision=27290
2007-06-27 18:05:04 +00:00
Dmitry Gorbachev
2beeeef110 The last commit.
Bulgarian translations by CCTAHEB (sstpr [at] narod [dot] ru). Bug #2344.

svn path=/trunk/; revision=27285
2007-06-26 23:31:01 +00:00
Ged Murphy
cf9d30ec8d - change the new explorer rbuild files to stop the IRC users from going insane.
- just remove the comment in shell.rbuild to build (just don't expect a fully working shell)

svn path=/trunk/; revision=27282
2007-06-26 13:30:53 +00:00
Daniel Reimer
533ca516f7 - Translate the Strings in the German Solitaire RC File, which were added a while ago.
- Add a German RC File to th new Explorer.

Its my first commit in Trunk, if I broke something, kill me ;-)

svn path=/trunk/; revision=27280
2007-06-26 07:55:08 +00:00
Thomas Bluemel
875b16dac6 Fix the build system, accidently broke it with r27269
svn path=/trunk/; revision=27276
2007-06-25 17:56:54 +00:00
Aleksey Bragin
43fb21136e - Ignore incorrect responses to ACK and just retry sending data until either ACK is read, or max number of iterations is reached. This fixes the keyboard/mouse detection problems when running ReactOS inside VMWare.
svn path=/trunk/; revision=27274
2007-06-25 11:55:51 +00:00
Magnus Olsen
67f892011c Fixing allot of werid bugs + cleanup debug nsg that we do not need any longer.
svn path=/trunk/; revision=27271
2007-06-24 17:29:03 +00:00
Magnus Olsen
e3d3cf7171 fixing more value that are not beig fill in, now we getting back the freq
svn path=/trunk/; revision=27270
2007-06-24 13:20:44 +00:00
Thomas Bluemel
a5b5d59762 Place .h files generated from .idl definitions in the intermediate directory
svn path=/trunk/; revision=27269
2007-06-24 12:54:54 +00:00
Magnus Olsen
caa55436f4 Fixing some value that are not being set
svn path=/trunk/; revision=27268
2007-06-24 11:47:00 +00:00
Magnus Olsen
f26b273557 simplefly Main_DirectDraw_QueryInterface code
svn path=/trunk/; revision=27266
2007-06-23 09:57:34 +00:00
Magnus Olsen
2d2cf54cc3 small redesgin do not type cast DirectDraw COM to LPDDRAWI_DIRECTDRAW_INT, use LPDDRAWI_DIRECTDRAW_INT as prototype in all directdraw functions.
svn path=/trunk/; revision=27265
2007-06-22 20:03:04 +00:00
Magnus Olsen
bd57936267 Fixing comping waring, also diamble our debug macro (it does not work for full screen for some reason
svn path=/trunk/; revision=27264
2007-06-22 19:34:06 +00:00
Magnus Olsen
1d08d6b833 fixing a member that are not being set
svn path=/trunk/; revision=27263
2007-06-22 16:50:36 +00:00
Magnus Olsen
e46a5994cf Fixing smaller bugs, like save the internal surface list, document up some members what they do
svn path=/trunk/; revision=27262
2007-06-22 15:11:59 +00:00
Magnus Olsen
a06823792a revert 27246 it is a hack a proper fix should be done in gdi32 or win32k
thx ged for review the old code with me, and talking what can be wrong 
this hack also solv dispare buttom in some case. 

svn path=/trunk/; revision=27253
2007-06-21 16:16:23 +00:00
Colin Finck
9c62047e36 Re-add the "lake.bmp" wallpaper inclusion (partly imported from the deleted 0.3.1 branch, r26044)
The wallpaper is now also added to the %SystemRoot% directory instead of %SystemRoot%\system32

The only thing I did not import is the setting of the default wallpaper in "hivedef.inf". For 0.3.1, we hardcoded the full path to the wallpaper in the "hivedef.inf" file.
For 0.3.3, we should either do this only in the branch or better implement a proper solution like setting the path in 2nd stage setup.

svn path=/trunk/; revision=27250
2007-06-21 15:23:49 +00:00
Colin Finck
f214c4f31e Finally fix the left/right confusion in all translations
svn path=/trunk/; revision=27249
2007-06-21 13:06:28 +00:00
Colin Finck
5f6ee9af28 Change the "ReactOS (R) Version 5.2 ..." boot message to "ReactOS (R) Kernel Version 5.2 ...", so people don't get confused by the different version numbers of the Kernel and ReactOS itself
svn path=/trunk/; revision=27248
2007-06-21 12:27:36 +00:00
Magnus Olsen
87c9cac62c fixing regress of icon drawing copyimage are complete mess and have allot of bugs.
I fixed tempary the icon drawing bug until I or some else got time rewriting copyimage image_load case
here is known bugs 
1. alpha icon does not working. 
2. wrong background getting selected 
3. and allot other thing. 

svn path=/trunk/; revision=27246
2007-06-20 19:54:22 +00:00
Magnus Olsen
ec6a3bd4ea do not cause a crash in lock, some how lock and unlock does not work as they should
svn path=/trunk/; revision=27244
2007-06-20 05:23:09 +00:00
Magnus Olsen
73ca69bb50 actavite debuger trace again
svn path=/trunk/; revision=27243
2007-06-20 05:14:45 +00:00
Christoph von Wittich
9eaf219355 return FALSE instead of 0
svn path=/trunk/; revision=27241
2007-06-19 20:38:49 +00:00
Aleksey Bragin
a2c98932c0 - Russian language translation by Dmitry Chapyshev.
svn path=/trunk/; revision=27236
2007-06-19 08:40:36 +00:00
Aleksey Bragin
556cfbf54a - Russian language translation and fixes to existing translation by Dmitry Chapyshev.
svn path=/trunk/; revision=27235
2007-06-19 08:37:36 +00:00
Aleksey Bragin
04c89b07a5 - Russian language translation fixes by Dmitry Chapyshev.
svn path=/trunk/; revision=27234
2007-06-19 08:27:45 +00:00
Magnus Olsen
74d47c7244 Check the sub_lang before a commit I do not want other langues that english,
like getting ukrain instead for english when the os are set to english

svn path=/trunk/; revision=27232
2007-06-18 21:57:11 +00:00
Magnus Olsen
d6273d8a62 Fixed some smaller bugs
svn path=/trunk/; revision=27226
2007-06-18 18:11:39 +00:00
Maarten Bosma
0e95f8362e - Some formatting fixes
- Some checks and fixed return values

svn path=/trunk/; revision=27224
2007-06-18 14:58:44 +00:00
Colin Finck
93e0ad758f Fix bug #2312 and add a check to show only the relevant information for Windows/Unix users
See issue #2312 for more details.

svn path=/trunk/; revision=27223
2007-06-18 11:58:35 +00:00
Christoph von Wittich
5fb6fb2312 added explorer-like addressbar
svn path=/trunk/; revision=27222
2007-06-18 00:09:37 +00:00
Magnus Olsen
4f5153dd3a Time to cellbrate we got bltblt hal working again
1. Createsurface can only create one surface at moment 
2. crash can occured if wrong param are being putin to createsurface for no error check are done. 
3. createsurface are still under havy devloping 

svn path=/trunk/; revision=27221
2007-06-17 23:43:21 +00:00
Magnus Olsen
7ae32c6424 last commit for today
fixing some compile warings for ddraw. 

svn path=/trunk/; revision=27220
2007-06-17 22:11:08 +00:00
Magnus Olsen
2f7fc5300c 1. fixed typo in DD->GetCaps
2. Started implement Createsurface for real this time. 
   thanks to all old try and error the new desgin make more sent 
   and are more clean. still Createsruface does not working yet. 

3. Fixed some comment tags for some whant start writing doc for thuse api 
   you are wellcome

svn path=/trunk/; revision=27218
2007-06-17 21:49:35 +00:00
Magnus Olsen
f8757ee824 GetCaps are complete, not tested in all case but almost all
svn path=/trunk/; revision=27216
2007-06-17 15:19:59 +00:00
Dmitry Gorbachev
d3a9230c70 Activate debug message about misbehaving "userinit.exe"
svn path=/trunk/; revision=27215
2007-06-17 15:18:06 +00:00
Magnus Olsen
487f93e2d7 DD->GetCaps for hal are so complete we can do with current
startup process we are missing setting This->lpLcl->lpGbl->lpddNLVCaps

fixed a smaller bugs in caps data

svn path=/trunk/; revision=27214
2007-06-17 14:46:04 +00:00
Magnus Olsen
d68da75a83 50% are implmene in DD->GetCaps now
svn path=/trunk/; revision=27213
2007-06-17 14:14:42 +00:00
Magnus Olsen
b51c13f0a3 GetCpas filling in how much memory we got now from HAL
svn path=/trunk/; revision=27212
2007-06-17 12:30:58 +00:00
Magnus Olsen
157883db74 start implement of DirectDraw_GetCaps
svn path=/trunk/; revision=27211
2007-06-17 11:22:23 +00:00
Magnus Olsen
588314ccad fixing one more bugs in QueryInterface
svn path=/trunk/; revision=27210
2007-06-16 22:05:16 +00:00
Magnus Olsen
4d6cc7d9a6 forget using addref in DirectDraw_QueryInterface, more werid bugs in ref
svn path=/trunk/; revision=27209
2007-06-16 20:04:01 +00:00
Magnus Olsen
4f6e4650de fixing couple of bugs in Main_DirectDraw_QueryInterface
1. adding create linking when u req a new directdraw interface from old one. 
   This Type of linking is exacly same lcl pointer as the linked interface,
   it mean we shall not create new lcl but use the current we got.
 
waring still bugs in DirectDraw_QueryInterface

svn path=/trunk/; revision=27208
2007-06-16 19:38:20 +00:00
Magnus Olsen
6eae3cd5e1 rewrite lite of Create_DirectDraw and add reenble options.
svn path=/trunk/; revision=27206
2007-06-16 18:18:04 +00:00
Magnus Olsen
e0e7446ed1 adding allot of fix and partly implement
1. Adding table lockup for directdraw 1-6 but they are not complete
2. remove out GetDevicreIdentifer to own file it is a large functions
3. Fixed DirectDrawCreate works now
4. found out bit more how DirectDraw_QueryInterface works and comment the new found 
5. add the new table to QueryInterface they are partly support now, the new IID is IID_IDirectDraw4, IID_IDirectDraw2 and IID_IDirectDraw it partly support now. 

svn path=/trunk/; revision=27205
2007-06-16 16:42:50 +00:00
Aleksey Bragin
9fea2af376 - Fix a typo.
svn path=/trunk/; revision=27204
2007-06-16 12:48:04 +00:00
Sylvain Petreolle
9120964800 revert previous r27194
ntoskrnl already exports InterlockedDe/Increment
spotted by hpoussin

still fails to link,
thans to heisspiter for win32 test

svn path=/trunk/; revision=27203
2007-06-16 12:45:02 +00:00
Aleksey Bragin
a49bd59734 - Finally, removing frame pointer was a bad idea (think of exceptions / etc).
svn path=/trunk/; revision=27202
2007-06-16 12:28:56 +00:00
Aleksey Bragin
f1c06f9d0b - Uhh.. Doing it properly now.
- Also gathered trigonometric function into one file.

svn path=/trunk/; revision=27201
2007-06-16 11:55:21 +00:00
Magnus Olsen
7c9d0792cb rewrite atan, cos, fabs, sin, sqrt, tan, it will give us better speed as well the old version was slow
svn path=/trunk/; revision=27200
2007-06-16 11:19:30 +00:00
Dmitry Gorbachev
b1afaa85ca Unable to reproduce that bug (#2047). Apply r27177 patch again.
svn path=/trunk/; revision=27199
2007-06-16 08:27:02 +00:00
Magnus Olsen
21dfa5bf59 adding one missing stub
svn path=/trunk/; revision=27198
2007-06-16 01:32:59 +00:00
Magnus Olsen
9c81f9ad19 prepare vbe driver for two thing
1. a framebuf for VBE 1.2 this will be pretty hard to implement, 
   I got some idea, this mean our vbe drv will work on vbe 1.2 
   without doing a bankswitch

2. prepare for some dx api for vbe by adding support for special mode 0x81FF
   meaing we getting full access to the video driver memory in vbe. Thx aleasky
   you remmid and long talk in some month how we can do it. 


 

svn path=/trunk/; revision=27197
2007-06-15 23:58:10 +00:00
Dmitry Gorbachev
a3897f253f Fix bug #2151. Thanks to Alex Ionescu.
svn path=/trunk/; revision=27196
2007-06-15 21:46:42 +00:00
Dmitry Gorbachev
7bba5bf9ba I'm sorry, but r27177 does not work for me. I just tested LiveCD on real
hardware, something goes wrong. So I'm reverting it for now. Please test it 
more carefully.

svn path=/trunk/; revision=27195
2007-06-15 21:39:28 +00:00
Sylvain Petreolle
e6e9d500a4 add missing library to portcls
svn path=/trunk/; revision=27194
2007-06-15 19:52:26 +00:00
Dmitry Gorbachev
20560b2ef4 Do not break away from the loop on every error. It can cause situation when
many threads die after one client death.

svn path=/trunk/; revision=27193
2007-06-15 19:14:15 +00:00
Magnus Olsen
a02534e0fe Fixing right behvoir for setcooperlevel with normal flag set in windows mode
Fixing gpl.dwflag being set right. 


svn path=/trunk/; revision=27192
2007-06-15 17:02:17 +00:00
Magnus Olsen
7ac1277f52 Fixing smaller bugs in startup.c it does not set windows handler or use windows handler hdc it create own hdc
svn path=/trunk/; revision=27191
2007-06-15 16:44:15 +00:00
Magnus Olsen
33ce8924d2 Fix so our demo apps can be compile with vs, this mean we can now using our demo apps debug our ddraw.dll internal struct data or ms ddraw.dll internal struct data allot easy.
svn path=/trunk/; revision=27190
2007-06-15 14:46:18 +00:00
Maarten Bosma
0dfb900085 Add lots of test cases for the CreateSurface API. See caps_tests.h for more info.
svn path=/trunk/; revision=27189
2007-06-15 14:46:03 +00:00
Dmitry Gorbachev
355f43c264 Improve FIXME comment. For future generations of developers. :)
svn path=/trunk/; revision=27187
2007-06-15 12:11:48 +00:00
Magnus Olsen
4f5eb73a1f make ddraw.dll lite more msvs frendly
svn path=/trunk/; revision=27184
2007-06-15 10:21:54 +00:00
Magnus Olsen
4db57afdf1 Fixing some bugs in startup.c
1. check for DDHALINFO_GETDRIVERINFOSET before using of 
   DdGetDriverInfo, it exists two diffent version of 
   DdGetDriverInfo2

2. Adding a fixme for fixing CreateSurfaceEx, GetDriverState 
   and DestroyDDLocal callbacks for HAL, and adding partly 
   code in the fixme.

   

svn path=/trunk/; revision=27183
2007-06-15 09:54:52 +00:00
Magnus Olsen
4bac086c86 more rewriting of setcooperlevel, it start working simluare as windows ddraw. and it start setup same value as well in the private struct.
svn path=/trunk/; revision=27181
2007-06-14 22:04:32 +00:00
Magnus Olsen
52c6c5e833 commit more test for setcooperlevel, not all test are in that we need.
svn path=/trunk/; revision=27180
2007-06-14 22:01:22 +00:00
Magnus Olsen
4a4c71ea2b fixing ddrawi is compatible with vs
svn path=/trunk/; revision=27178
2007-06-14 20:02:51 +00:00
Johannes Anderwald
c4f39da5a8 - release lock on error
svn path=/trunk/; revision=27177
2007-06-14 19:51:19 +00:00
Dmitry Gorbachev
e2299b4583 - Do not leak ports.
- Use threads. This should allow shutdown.
- Fix indentation.

svn path=/trunk/; revision=27176
2007-06-14 19:09:32 +00:00
Dmitry Gorbachev
076ca93553 - Do not create process data twice.
- Check message type.

svn path=/trunk/; revision=27175
2007-06-14 16:47:24 +00:00
Dmitry Gorbachev
0743fc87cf - Hackish solution of issue #2062.
- Turn off title change, as it can cause a deadlock.

svn path=/trunk/; revision=27174
2007-06-14 16:41:55 +00:00
Magnus Olsen
88bc96e3df start rewrite SetCooperativeLevel
we pass some more test for setcooper but not all, the wine code are allot mess and wrong. 
the wine code will be remove complete. 

svn path=/trunk/; revision=27173
2007-06-14 13:41:48 +00:00
Ged Murphy
05105d3d12 these files should have headers
svn path=/trunk/; revision=27166
2007-06-12 20:56:01 +00:00
Aleksey Bragin
59cf409608 - Translation to Russian language by Dmitry Chapyshev.
svn path=/trunk/; revision=27164
2007-06-12 20:41:34 +00:00
Aleksey Bragin
66a9ac9e88 - Translation to Russian language by Dmitry Chapyshev.
svn path=/trunk/; revision=27163
2007-06-12 20:35:04 +00:00
Aleksey Bragin
adcf0f69c7 - Translation to Russian language by Dmitry Chapyshev.
svn path=/trunk/; revision=27162
2007-06-12 20:31:45 +00:00
Johannes Anderwald
77e68c3d5a - was not meant to be commited
svn path=/trunk/; revision=27161
2007-06-12 19:35:15 +00:00
Johannes Anderwald
4d8d218004 - dont double free memory
svn path=/trunk/; revision=27160
2007-06-12 19:33:44 +00:00
Johannes Anderwald
13eda403d7 - remove MenuItem from MenuItemList on request
svn path=/trunk/; revision=27158
2007-06-12 18:18:32 +00:00
Magnus Olsen
bbbe421396 making portcls can be compile now
svn path=/trunk/; revision=27157
2007-06-12 15:37:30 +00:00
Dmitry Gorbachev
d37dc1d14e Dutch translation by Joost de Meij (bug report #2300).
svn path=/trunk/; revision=27156
2007-06-12 15:35:03 +00:00
Magnus Olsen
425ddbf45a fixing some header problem for portcls
svn path=/trunk/; revision=27155
2007-06-12 15:23:28 +00:00
Magnus Olsen
36f388cc37 adding include windows.h it take care for some macro was not declare and COM macro are only in psdk what I known, still create compiling issue
svn path=/trunk/; revision=27154
2007-06-12 10:26:47 +00:00
Hervé Poussineau
ad0d69c348 Do not create a new device node if we already know the PDO
svn path=/trunk/; revision=27153
2007-06-12 08:38:32 +00:00
Aleksey Bragin
5b7bb95ec1 Massive changes to the driver loading / device creation logic (as a result of collaborative work with Herve):
- Really reuse the driver's object, instead of always failing in "IopGetDriverObject()". Fix driver's object creation accordingly in NtLoadDriver() and IopActionInitChildServices().
- Move InvalidateRelations to a later stage, when it really should happen (previously it just delayed the boot process but couldn't load any driver since boot device was inaccessible and reusing drivers loaded by the bootloader was not possible).
- Minor bugfixes in various places related to these changes.
- Add DPRINTs for easier debugging and failure tracking (silent failure is the worst enemy of a developer).

Results:
- VMWare video driver regression is gone.
- "New device found" wizard appears in the 3rd stage like in "old good times".
- Network drivers hang somewhere, so a hack is added to temporarily disable installation of pcnet.sys.


svn path=/trunk/; revision=27151
2007-06-11 22:02:55 +00:00
Hervé Poussineau
8bb5ea4208 Always complete the IRP_MJ_PNP irp, even if we don't recognize the minor function
svn path=/trunk/; revision=27150
2007-06-11 21:26:51 +00:00
Aleksey Bragin
0a8b633b06 - hpoussin: If minor function is not recognized, you must not change the Irp->IoStatus.Status field.
svn path=/trunk/; revision=27149
2007-06-11 21:20:25 +00:00
Timo Kreuzer
1b70c2f495 - use LOGFONTW structure from GetFontResourceInfo for face name
- use LF_FULLFACESIZE
- some cleanup

svn path=/trunk/; revision=27148
2007-06-11 20:38:55 +00:00
Thomas Bluemel
07e6389f6c Fix syntax error
svn path=/trunk/; revision=27147
2007-06-11 18:14:14 +00:00
Aleksey Bragin
c8492ec043 - Remove a call to TREEVIEW_Update() which causes an infinite loop on ReactOS. Now it should be possible to use treeview controls (such as regedit's left pane) without major problems.
svn path=/trunk/; revision=27146
2007-06-11 17:57:07 +00:00
Dmitry Gorbachev
6284ebf8b2 Update Polish translation. Bug #2298.
svn path=/trunk/; revision=27145
2007-06-11 15:57:16 +00:00
Dmitry Gorbachev
272fa75e9d Translations:
- Dutch  by Joost de Meij (dreamsmsn *at* gmail *dot* com). Bug #2296.
- French by Pierre Schweitzer. Bug #2297.
- Polish by Olaf Siejka. Bug #2298.

svn path=/trunk/; revision=27144
2007-06-11 15:56:42 +00:00
Dmitry Gorbachev
12130e71ab - Remove root device hack.
- Add event dereferencing hack (bug report #2240).

svn path=/trunk/; revision=27141
2007-06-11 15:02:23 +00:00
Ged Murphy
ca4a88afa0 fix build
svn path=/trunk/; revision=27140
2007-06-11 14:48:39 +00:00
Ged Murphy
b0b8a08702 delete todo.h the definitions
svn path=/trunk/; revision=27139
2007-06-11 14:24:50 +00:00
Ged Murphy
72c2c80949 move a couple more definitions into the public sdk
svn path=/trunk/; revision=27138
2007-06-11 14:23:49 +00:00
Aleksey Bragin
80f6386261 - Fix a bug with querying registry values (a typo, spotted/fixed by Herve).
- Fix a problem when a device, which was already in the list is freed and memory corruption is introduced.

svn path=/trunk/; revision=27137
2007-06-11 13:35:42 +00:00
Dmitry Gorbachev
9b0d081e49 Add Belgian French variant, resolve political / cultural conflict.
svn path=/trunk/; revision=27135
2007-06-11 11:43:39 +00:00
Ged Murphy
6cd0c03313 remove corresponding definitions out of todo.h
svn path=/trunk/; revision=27134
2007-06-11 09:52:31 +00:00
Ged Murphy
d772596da8 start to move some definitions into the public sdk
svn path=/trunk/; revision=27133
2007-06-11 09:51:44 +00:00
Dmitry Gorbachev
fe667853fa Fix LPC port referencing.
svn path=/trunk/; revision=27132
2007-06-11 01:24:41 +00:00
Maarten Bosma
1bc331c11f Blt-API Tests
svn path=/trunk/; revision=27129
2007-06-10 20:47:17 +00:00
Maarten Bosma
d1d6598616 Tests BltBatch and GetBltStatus
svn path=/trunk/; revision=27124
2007-06-10 18:19:46 +00:00
Hervé Poussineau
db153659fe Fill HardwareDatabase, DriverStart and DriverSize fields before calling init routine
svn path=/trunk/; revision=27120
2007-06-10 16:15:16 +00:00
Maarten Bosma
65c877d142 Some clean up
svn path=/trunk/; revision=27118
2007-06-10 14:43:48 +00:00
Maarten Bosma
b7a21ac467 Add tests for IDirectDrawSurface methods:
- GetCaps
- GetDC / ReleaseDC
- ChangeUniquenessValue / GetUniquenessValue
- GetPixelFormat
- GetSurfaceDesc
- GetDDInterface 

svn path=/trunk/; revision=27117
2007-06-10 14:32:19 +00:00
Maarten Bosma
c80a21e102 added wrong file
svn path=/trunk/; revision=27115
2007-06-10 12:03:01 +00:00
Maarten Bosma
919058559b Some more movement.
svn path=/trunk/; revision=27112
2007-06-10 11:50:56 +00:00
Thomas Bluemel
b966dbe7ee convert a switch statement with a range to an if statement (msvc compatibility)
svn path=/trunk/; revision=27111
2007-06-10 11:50:48 +00:00
Maarten Bosma
2fe952c999 - some rearrangement
- tests for GetPrivateData, SetPrivateData, FreePrivateData of IDirectDrawSurface

svn path=/trunk/; revision=27110
2007-06-10 11:42:58 +00:00
Thomas Bluemel
c3bd31ab5a Fix accidentally introduced thread and memory leak when the cache should be run down
svn path=/trunk/; revision=27109
2007-06-10 11:24:34 +00:00
Thomas Bluemel
f7d3dc0bd6 Display nice images taken (and modified) from http://www.lullabot.com/articles/free_gpl_icons_lullacons_pack_1, which are licensed under the GPL.
svn path=/trunk/; revision=27108
2007-06-10 11:17:38 +00:00
Dmitry Gorbachev
6ccaee160f Fix issue #2151.
svn path=/trunk/; revision=27107
2007-06-10 11:11:05 +00:00
Thomas Bluemel
9705ebf7f4 Display the owner of the security descriptor
svn path=/trunk/; revision=27106
2007-06-10 10:45:38 +00:00
Thomas Bluemel
8b79ad2052 Add GUIDs for IID_IBandSite, CLSID_RebarBandSite and IID_IDeskBand
svn path=/trunk/; revision=27105
2007-06-10 09:32:11 +00:00
Thomas Bluemel
880c4059fe Add a very experimental explorer that heavily relies on the shell. It's still very buggy, not very functional and will not work on ReactOS due to the lack of support in shell32.dll and friends. It will not be built by default.
- todo.h is a header that contains definitions and GUIDs that we miss in the public sdk headers.
- undoc.h contains functions that are not publicly documented. It also contains internal (not yet complete) COM interfaces used with the start menu and SHCreateDesktop.

svn path=/trunk/; revision=27104
2007-06-10 08:09:42 +00:00
Thomas Bluemel
fe0d133fdf Add a base address for usrmgr.dll
svn path=/trunk/; revision=27103
2007-06-10 07:39:21 +00:00
Magnus Olsen
53c602d78e simplefly the math for calc out the guiddeviceidentify
svn path=/trunk/; revision=27102
2007-06-10 04:36:19 +00:00
Magnus Olsen
2d86b0c8ad update some comment
DD COM object
now we got 7 of 30 done and 7 of 30 are under developing / testing 
total we got 14 of 30 that is working 

svn path=/trunk/; revision=27101
2007-06-10 03:54:37 +00:00
Magnus Olsen
048061505b adding real testcase to GetDeviceIdentifier, we can not test everything, I leave small code comment out for easy debuging
svn path=/trunk/; revision=27100
2007-06-10 03:41:49 +00:00
Magnus Olsen
62c5149fce Only dwWHQLLevel are left todo in GetDeviceIdentifier
svn path=/trunk/; revision=27099
2007-06-10 03:33:17 +00:00
Magnus Olsen
f8a6e087fd Building part of guidDeviceIdentifier in GetDeviceIdentifier
left to coding in is REV_ SUBSYS_ liDriverVersion

svn path=/trunk/; revision=27098
2007-06-10 03:10:20 +00:00
Eric Kohl
f2d0f12dc0 Add a user manager control panel application since the 0.3.2 release has been canceled.
svn path=/trunk/; revision=27097
2007-06-09 23:17:33 +00:00
Eric Kohl
472b0cb7f3 Add NetLocalGroupEnum stub.
svn path=/trunk/; revision=27096
2007-06-09 23:14:07 +00:00
Magnus Olsen
b0186e348f almost finish GetDeviceIdentifier implementions,
leftdo fill in guidDeviceIdentifier and dwWHQLLevel

svn path=/trunk/; revision=27095
2007-06-09 22:49:38 +00:00
Hervé Poussineau
bd0786560f Support IRP_MN_FILTER_RESOURCE_REQUIREMENTS
svn path=/trunk/; revision=27094
2007-06-09 20:39:34 +00:00
Magnus Olsen
e19e754ce3 start implement of GetDeviceIdentifier we are filling one more member right. this time we getting the driver name
svn path=/trunk/; revision=27093
2007-06-09 20:22:09 +00:00
Hervé Poussineau
c5cf277736 Simplify method to call to DriverEntry of a driver
svn path=/trunk/; revision=27092
2007-06-09 20:16:29 +00:00
Hervé Poussineau
05b27afd12 Zero the full structure. Thanks Fireball
svn path=/trunk/; revision=27090
2007-06-09 19:37:41 +00:00
Magnus Olsen
0dabf31e76 start implement of GetDeviceIdentifier we are filling one member right.
svn path=/trunk/; revision=27088
2007-06-09 17:24:32 +00:00
Magnus Olsen
2e1e1e0140 prepare testkit for GetDeviceIdentifier
svn path=/trunk/; revision=27087
2007-06-09 13:23:18 +00:00
Aleksey Bragin
db99cff20e - If the module failed to load (e.g. fixup couldn't be done), then don't include it in the list of loaded modules.
svn path=/trunk/; revision=27086
2007-06-09 13:10:02 +00:00
Johannes Anderwald
62c077140e - disable building avtest for now
svn path=/trunk/; revision=27085
2007-06-09 10:15:00 +00:00
Magnus Olsen
535019cbf6 commit GetDeviceIdentifier and GetDeviceIdentifier7 both are under devloping, I hope I finish this implement today
svn path=/trunk/; revision=27084
2007-06-09 10:05:41 +00:00
Aleksey Bragin
8ef4afc835 - Don't load a module with the same name more than once.
svn path=/trunk/; revision=27083
2007-06-09 10:03:33 +00:00
Magnus Olsen
e619b8cca2 commit which api are under developing and hard tested.
mark which one have been completed and acts like ms ddraw does. 

svn path=/trunk/; revision=27082
2007-06-08 23:32:13 +00:00
Magnus Olsen
22c7e66366 rename Main_DirectDraw_GetAvailableVidMem to Main_DirectDraw_GetAvailableVidMem4
Fixing smaller bugs in Main_DirectDraw_GetAvailableVidMem4, complete works simluare now to ms version of this api
Implement Main_DirectDraw_GetAvailableVidMem for directdraw2 and directdraw3

svn path=/trunk/; revision=27081
2007-06-08 20:55:48 +00:00
Magnus Olsen
8c9302e2aa last testcase for getavailmemory
svn path=/trunk/; revision=27080
2007-06-08 20:30:07 +00:00
Johannes Anderwald
4102c22bc1 - include ddk
svn path=/trunk/; revision=27079
2007-06-08 20:03:56 +00:00
Magnus Olsen
7380e3282a Fixing smaller bugs in Main_DirectDraw_GetAvailableVidMem, it is still buggi
svn path=/trunk/; revision=27078
2007-06-08 19:25:39 +00:00
Magnus Olsen
779fdc743f small code cleanup
svn path=/trunk/; revision=27077
2007-06-08 19:18:45 +00:00
Magnus Olsen
3aa5478e6d adding allot more testcase for Test_GetAvailableVidMem it is not complete but we testing allot more now
svn path=/trunk/; revision=27076
2007-06-08 19:17:46 +00:00
Magnus Olsen
edddb00510 Fixing allot bugs in Main_DirectDraw_GetAvailableVidMem, it is still buggi
svn path=/trunk/; revision=27075
2007-06-08 17:12:05 +00:00
Magnus Olsen
032150f031 adding allot more testcase for Test_GetAvailableVidMem it is not complete but we testing allot more now
svn path=/trunk/; revision=27074
2007-06-08 16:46:50 +00:00
Dmitry Gorbachev
f77f4a810a Fix failed assertion in MM code.
svn path=/trunk/; revision=27072
2007-06-08 14:42:36 +00:00
Magnus Olsen
e248b95f9d fixing a smaller bug extream hard to find,
if we got two or more directdraw object we choice always the lates hDD not the object own hDD
use This->lpLcl->lpGbl->hDD = This->lpLcl->hDD; to set the object own hDD before call any dxhal api

svn path=/trunk/; revision=27070
2007-06-08 12:57:00 +00:00
Johannes Anderwald
869f31838e - check if window was created successfully...
svn path=/trunk/; revision=27069
2007-06-08 11:58:04 +00:00
Magnus Olsen
6a1c6e4790 my last commit was wrong, more testing show me diffen
svn path=/trunk/; revision=27068
2007-06-08 11:43:16 +00:00
Magnus Olsen
5e019b656f update with some new info
svn path=/trunk/; revision=27067
2007-06-08 11:36:38 +00:00
Magnus Olsen
3d128d4bc5 remove VideoPortPutDmaAdapter implement sorry breaking the build it is fix 2 / 2 next commit fixing the build again
svn path=/trunk/; revision=27066
2007-06-07 22:12:10 +00:00
Magnus Olsen
01148285c7 revert my commit to this filem sorry breaking the build it is fix 1 / 2 next commit fixing the build again
svn path=/trunk/; revision=27065
2007-06-07 22:09:47 +00:00
Magnus Olsen
7eedda6459 patch from Pierre Schweitzer <heis_spiter at hotmail dot com>
comment from Pierre Schweitzer
In rev 27054, ekohl reduced access right when creating partition list (when
opening "disk"). To work, usetup needs more rights (like reading contents). So
this patch adds the missing right
See issue #2293 for more details.

svn path=/trunk/; revision=27064
2007-06-07 21:33:17 +00:00
Dmitry Gorbachev
fb92e1fc3d Improve debug message.
svn path=/trunk/; revision=27063
2007-06-07 21:19:57 +00:00
Magnus Olsen
48d33901ec implement VideoPortFreeCommonBuffer,
implement VideoPortPutDmaAdapter use halPutDmaAdapter for this

we already have all code for it, it was simple write a warper for both so they works, both api need be tested hard.

svn path=/trunk/; revision=27062
2007-06-07 21:13:06 +00:00
Magnus Olsen
69be2950f9 export HalPutDmaAdapter so we can use it for VideoPortPutDmaAdapter
svn path=/trunk/; revision=27061
2007-06-07 21:11:58 +00:00
Magnus Olsen
23a0686be6 fixing bug in reactos GetFreq code for dx
svn path=/trunk/; revision=27060
2007-06-07 19:05:28 +00:00
Magnus Olsen
a5b4c11371 adding a big freq test
svn path=/trunk/; revision=27059
2007-06-07 19:03:11 +00:00
Eric Kohl
e86c5c5ce0 - Fix indentation and coding style.
- Fix the Unicode-only code.
- No code changes.

svn path=/trunk/; revision=27055
2007-06-07 16:18:38 +00:00
Eric Kohl
f807c0daab Fix access rights.
svn path=/trunk/; revision=27054
2007-06-07 16:08:08 +00:00
Eric Kohl
7f2ba4663b Fix object attributes
svn path=/trunk/; revision=27053
2007-06-07 16:05:12 +00:00
Magnus Olsen
94e835008d comment out line 2028 it seam bit wrong and it crash the win32k.
svn path=/trunk/; revision=27052
2007-06-07 14:03:10 +00:00
Maarten Bosma
06ea7c3758 sorry. fix it for real now.
svn path=/trunk/; revision=27051
2007-06-07 13:23:44 +00:00
Maarten Bosma
3db527c9d9 Fix little mistake
svn path=/trunk/; revision=27050
2007-06-07 13:19:56 +00:00
Magnus Olsen
eafaa0751c adding get FourCC working now
svn path=/trunk/; revision=27049
2007-06-07 13:12:55 +00:00
Magnus Olsen
a4e1dbf9bd cleanup Create_DirectDraw after all debuging and thx w3seek thuse advice. I was getting insaine why malloc fail.
svn path=/trunk/; revision=27048
2007-06-07 13:02:10 +00:00
Magnus Olsen
bfccdbeac1 wrong size of memory was alloc in startup.c
svn path=/trunk/; revision=27047
2007-06-07 12:56:13 +00:00
Magnus Olsen
01309cc881 no crash in ddraw what I known about for moment
svn path=/trunk/; revision=27046
2007-06-07 12:50:11 +00:00
Magnus Olsen
79583495ee fixing another crash for -O3
svn path=/trunk/; revision=27045
2007-06-07 12:39:42 +00:00
Magnus Olsen
259286f6fc Fixed one weird crash, please type make draw_clean 3 times so it gurated be clean in u tree, now build the ddraw,
tested compile with -O and no crash have been show 

svn path=/trunk/; revision=27044
2007-06-07 12:20:13 +00:00
Maarten Bosma
d4c1add2a8 Some Clipper Code.
svn path=/trunk/; revision=27043
2007-06-07 11:49:43 +00:00
Magnus Olsen
6a3725e689 commit SFV_CREATE at w3seek requet
svn path=/trunk/; revision=27042
2007-06-07 11:46:33 +00:00
Magnus Olsen
3246f9583b Cleanup debug msg allot
svn path=/trunk/; revision=27041
2007-06-07 11:28:23 +00:00
Dmitry Gorbachev
6ed41fe051 Do not free memory twice.
svn path=/trunk/; revision=27039
2007-06-07 11:15:22 +00:00
Magnus Olsen
fdf97aa483 remove seh on malloc
svn path=/trunk/; revision=27038
2007-06-07 10:33:04 +00:00
Magnus Olsen
a0230af6f5 fixing a stuoied bug, when malloc fail, gcc genrated code will crash.
This fix will provent ddraw alloc crash.   

svn path=/trunk/; revision=27037
2007-06-07 09:43:50 +00:00
Magnus Olsen
8d0428bfbd adding more seh protection to the code
svn path=/trunk/; revision=27036
2007-06-07 08:46:33 +00:00
Magnus Olsen
958b55cf2c fixing smaller bugs in cleanup so it remove memory that we alloc, adding more seh around some ore api
svn path=/trunk/; revision=27035
2007-06-07 02:23:54 +00:00
Magnus Olsen
201a7b042d more seh fixed
svn path=/trunk/; revision=27034
2007-06-07 01:53:44 +00:00
Dmitry Gorbachev
32740d717d Fix my previous "fix", which is even worse then original.
svn path=/trunk/; revision=27033
2007-06-07 01:34:35 +00:00
Magnus Olsen
8c5a2928ed adding more seh, everthing need warp around seh in ddraw.
svn path=/trunk/; revision=27032
2007-06-07 01:27:38 +00:00
Magnus Olsen
9ad6d62b37 Fixing another bugm, leaking memory, it will when we trying alloc memory for FourCC, this bug fix it and I manger come bit futher with my werid crash
svn path=/trunk/; revision=27031
2007-06-07 01:12:42 +00:00
Magnus Olsen
0c0bb0a0f4 Fixing some bugs
svn path=/trunk/; revision=27030
2007-06-07 01:00:52 +00:00
Dmitry Gorbachev
73f5eae1ad Fix stack corruption bug.
svn path=/trunk/; revision=27029
2007-06-06 22:44:33 +00:00
Dmitry Gorbachev
822527aaa7 Check for ERROR_PIPE_CONNECTED.
svn path=/trunk/; revision=27024
2007-06-06 11:44:20 +00:00
Timo Kreuzer
cf7825f156 - partly implement GetFontResourceInfoW
- Remove GetFontResourceInfo stub

svn path=/trunk/; revision=27023
2007-06-06 11:15:27 +00:00
Timo Kreuzer
c77aba633c - IntGdiAddFontResource: Add the filename to the font entry
- implement NtGdiGetFontResourceInfoInternalW and add it to the syscall table

svn path=/trunk/; revision=27022
2007-06-06 11:00:53 +00:00
Magnus Olsen
1ac461d40d implement VideoPortAllocateContiguousMemory after msdn documations (need be tested) see msdn http://msdn2.microsoft.com/en-us/library/aa479107.aspx
remove assert on VideoPortReleaseDeviceLock and VideoPortAcquireDeviceLock
it should not be a assernt if any of thuse api  success

svn path=/trunk/; revision=27021
2007-06-05 22:51:44 +00:00
Dmitry Gorbachev
ffb658d9bb Fix keyboard layout name. See www.reactos.org/forum/viewtopic.php?t=4004
svn path=/trunk/; revision=27019
2007-06-05 21:59:46 +00:00
Dmitry Gorbachev
684273bc12 Fix issue #2284.
svn path=/trunk/; revision=27016
2007-06-05 21:26:38 +00:00
Dmitry Gorbachev
0d8c6fe483 Update Polish translation. Add French translation by Pierre Schweitzer.
Reorganize resource files. (Bugs 2283 & 2284).

svn path=/trunk/; revision=27012
2007-06-05 19:18:12 +00:00
Magnus Olsen
785873953b delete a unuse rc file
thx irc:HeisSpiter notice this 

svn path=/trunk/; revision=27010
2007-06-05 17:29:30 +00:00
Dmitry Gorbachev
319d53aa6b French translations. Bug #2282.
svn path=/trunk/; revision=27009
2007-06-05 16:01:58 +00:00
Hervé Poussineau
f5d19e8198 It doesn't seem required to be called once with a NULL PDO.
Force this call, as it is where we initialize the keyboard/mouse

svn path=/trunk/; revision=27001
2007-06-04 20:22:07 +00:00
Hervé Poussineau
5f83cc2f85 Don't assume that a device without driver doesn't need any driver. It can simply not be installed
Better debugging messages

svn path=/trunk/; revision=27000
2007-06-04 19:32:28 +00:00
Hervé Poussineau
5423d567cc i8042prt is not a pnp driver yet
svn path=/trunk/; revision=26999
2007-06-04 19:32:19 +00:00
Hervé Poussineau
f859d4a99a Add missing registry value
svn path=/trunk/; revision=26998
2007-06-04 19:32:10 +00:00
Dmitry Gorbachev
8c1718142f Update Polish translation. Bug #2280.
svn path=/trunk/; revision=26997
2007-06-04 19:04:03 +00:00
Aleksey Bragin
cd085ee581 - Revert 26995 since it breaks booting.
svn path=/trunk/; revision=26996
2007-06-04 18:59:08 +00:00
Sylvain Petreolle
f7efcc22cc Install ISA PNP bus driver
svn path=/trunk/; revision=26995
2007-06-04 16:34:19 +00:00
Aleksey Bragin
fc0bcf57b3 - Correctly fill FullDllName for modules loaded by the bootloader. This prevents loading them again later by MmLoadSystemImage().
svn path=/trunk/; revision=26994
2007-06-04 15:32:35 +00:00
Hervé Poussineau
cc07f4e2d7 Reapply r18676/r18677 (dispatch.S part) on w3seek advice.
Fixes vmwinst.exe crash on 2nd stage in qemu

svn path=/trunk/; revision=26993
2007-06-04 14:49:28 +00:00
Hervé Poussineau
2a9396bf7f Add a bus number to the PCI resource descriptor
svn path=/trunk/; revision=26992
2007-06-04 10:01:29 +00:00
Hervé Poussineau
1c8c62aa42 Copy usetup and welcome apps to the right cdrom directory
svn path=/trunk/; revision=26991
2007-06-04 09:44:46 +00:00
Hervé Poussineau
6b63d35926 Use a tag when allocating/freeing some memory
svn path=/trunk/; revision=26990
2007-06-04 09:25:04 +00:00
Hervé Poussineau
e4d5c105d9 Install ISA PNP bus driver
Add NO_DRV.HW section, as it is needed by some 3rd party drivers

svn path=/trunk/; revision=26989
2007-06-04 09:17:06 +00:00
Hervé Poussineau
5c102f92f4 Rewrite pnproot:
- Don't create multiple devices with the same pnp id (Root\UNKNOWN\0000)
- Use RtlQueryRegistryValues to read multiple registry values
- Keep devices list in memory instead of always reading the registry
- Support IRP_MN_QUERY_DEVICE_TEXT/IRP_MN_QUERY_ID/IRP_MN_QUERY_BUS_INFORMATION/IRP_MN_FILTER_RESOURCE_REQUIREMENTS
- Better error handling
- ...

svn path=/trunk/; revision=26988
2007-06-04 09:15:04 +00:00
Hervé Poussineau
67c8317973 Commit a patch I have in my tree since 1 year. This may be related to bug 2238.
svn path=/trunk/; revision=26987
2007-06-04 09:02:12 +00:00
Hervé Poussineau
01d55fc116 Do not force user to enter an admin password
This decision needs to be reconsidered once ReactOS has a better security (lsass...)

svn path=/trunk/; revision=26986
2007-06-04 08:23:45 +00:00
Magnus Olsen
ef546be459 irc : Myrria (from linux xbox project) desc a bug in KiUserExceptionDispatcher and how to fix it.
See issue #2279 for more details.

svn path=/trunk/; revision=26985
2007-06-04 05:50:39 +00:00
Dmitry Gorbachev
eb63aa49cc - Remove corresponding kernel hack.
svn path=/trunk/; revision=26984
2007-06-03 22:12:28 +00:00
Dmitry Gorbachev
caa2fdd5fa - Fix r26980 hack.
svn path=/trunk/; revision=26983
2007-06-03 22:12:14 +00:00
Magnus Olsen
1d38ecfc6a small bugfix from alex ion*, he postet on irc channel and Haos posted the fix into bugzila.
"NullString.Length = sizeof(WCHAR); otherwise SMSS's environment strings are all messed"


See issue #2277 for more details.

svn path=/trunk/; revision=26981
2007-06-03 19:57:41 +00:00
Eric Kohl
d9314287a7 Redirect registry keys from 'CurrentControlSet' to 'ControlSet001' without using registry links.
svn path=/trunk/; revision=26980
2007-06-03 19:01:58 +00:00
Magnus Olsen
d6f3effcff audit vga driver, it is clean, writen by varius reactos devlopers from scartch it still contain tons with bugs and unfinish code.
svn path=/trunk/; revision=26978
2007-06-03 16:45:34 +00:00
Dmitry Gorbachev
6fb64d3bfc Commit patch #1504 from Paolo Devoti (bug #2276).
svn path=/trunk/; revision=26975
2007-06-03 14:35:08 +00:00
Ged Murphy
5f7db15852 - Don't return directly from PSEH. Same error, same dev, different day.
- Thanks to pigglesworth for noticing

svn path=/trunk/; revision=26973
2007-06-03 13:06:32 +00:00
Eric Kohl
f1aa2269d5 - Removed unused dialog resource and MSVC rubbish.
- Use a more descriptive id for the icon.

svn path=/trunk/; revision=26972
2007-06-03 11:58:45 +00:00
Dmitry Gorbachev
244e1cd74b Solitaire patch by Pierre Schweitzer (bug #2275).
svn path=/trunk/; revision=26971
2007-06-02 21:47:06 +00:00
Dmitry Gorbachev
d6d5cf7f99 - Fix LiveCD boot error.
- Remove MPW thread hack.

svn path=/trunk/; revision=26970
2007-06-02 21:20:12 +00:00
Eric Kohl
337e46a378 Add options dialog.
svn path=/trunk/; revision=26969
2007-06-02 16:32:19 +00:00
Magnus Olsen
ac282bf4e4 commited bugfix if we got if (my) dxallocfree and so on, also fixed the alloc macro it always zero the memory buffer
svn path=/trunk/; revision=26968
2007-06-02 15:09:52 +00:00
Magnus Olsen
ef4d675d1e sorry startup.c are bit messy but I change heapalloc to malloc and guess what all our weird problem are gone.
svn path=/trunk/; revision=26967
2007-06-02 14:42:43 +00:00
Magnus Olsen
8c5febf184 Fixing Getavil memory
svn path=/trunk/; revision=26966
2007-06-02 14:01:43 +00:00
Magnus Olsen
c5832b0f71 protect DirectDrawCreateEx with seh no more crash
svn path=/trunk/; revision=26965
2007-06-02 13:26:33 +00:00
Dmitry Gorbachev
576e0fdc97 Update Italian translation (Bug #2273).
svn path=/trunk/; revision=26959
2007-06-01 16:18:37 +00:00
Dmitry Gorbachev
2d9779cd5f Use DbgPrint() to print confusing debug message. (Bug #2224).
svn path=/trunk/; revision=26958
2007-06-01 16:09:23 +00:00
Magnus Olsen
4fc04f9002 fixed hardcode string in syssetup by Pierre Schweitzer (email : heis_spiter at hotmail dot com)
See issue #2247 for more details.

svn path=/trunk/; revision=26954
2007-05-31 20:52:44 +00:00
Aleksey Bragin
977e1bb11b Revert last commit, asked by Magnus Olsen.
svn path=/trunk/; revision=26953
2007-05-31 18:42:28 +00:00
Magnus Olsen
26e9b0e0e7 fixing LONG be typdef as int32_t
fixing ULONG be typdef as uint32_t

svn path=/trunk/; revision=26952
2007-05-31 18:10:14 +00:00
Dmitry Gorbachev
fde1a5a7fd - Add Finnish keyboard layout to CD.
svn path=/trunk/; revision=26950
2007-05-31 10:29:24 +00:00
Dmitry Gorbachev
26e9956f86 - Finnish keyboard layout by Kaj Kaloinen (kkaloine /at/ gmail /dot/ com).
With certain modifications. Bugzilla bug #2270.

svn path=/trunk/; revision=26949
2007-05-31 10:28:55 +00:00
Magnus Olsen
7b5da8f737 add seh around Main_DirectDraw_AddRef this prevent any crash it can cause
svn path=/trunk/; revision=26946
2007-05-30 18:46:59 +00:00
Magnus Olsen
07306934a8 implement Main_DirectDraw_Compact with same behvoir as ms DirectDraw_Compact does
in msdn it say it is unimplement and always return DD_OK, but the true is it can 
return DDERR_NOEXCLUSIVEMODE when we have a exlusive mode set. 

svn path=/trunk/; revision=26945
2007-05-30 18:26:56 +00:00
Ged Murphy
e8318db301 fix typo
svn path=/trunk/; revision=26944
2007-05-30 13:53:35 +00:00
Dmitry Gorbachev
5eb9a85a9d Burmese keyboard layout (2/2)
svn path=/trunk/; revision=26943
2007-05-30 12:21:10 +00:00
Dmitry Gorbachev
43b953c995 Burmese keyboard layout (1/2)
svn path=/trunk/; revision=26942
2007-05-30 12:20:44 +00:00
Dmitry Gorbachev
eb8e07f1a2 - Do not look outside VkToWcharTable[].
- Check for WCH_NONE.

svn path=/trunk/; revision=26940
2007-05-30 09:35:41 +00:00
Ged Murphy
90342114af - knock loop back to 0 as it's a shared function. Thanks to Colin for noticing this.
- fix a prototype and call it correctly

svn path=/trunk/; revision=26939
2007-05-30 07:11:22 +00:00
Hervé Poussineau
9c24c8e35e Add a first network adapter at index 0000, as real ones start at index 0001
See issue #2034 for more details.

svn path=/trunk/; revision=26938
2007-05-29 16:45:43 +00:00
Dmitry Gorbachev
d36da2336c Fix bug #2267.
svn path=/trunk/; revision=26937
2007-05-29 13:36:03 +00:00
Johannes Anderwald
3804dd3952 - clean up GuiHandleSysMenuCommand a bit
svn path=/trunk/; revision=26935
2007-05-29 11:23:31 +00:00
Aleksey Bragin
671ab7b5b1 - Give "RAW" filesystem driver a name which it deserves.
svn path=/trunk/; revision=26934
2007-05-28 21:34:49 +00:00
Magnus Olsen
d5cee88414 finish Main_DirectDraw_CreateSurface4 and Main_DirectDraw_CreateSurface
left todo is Internal_CreateSurface

svn path=/trunk/; revision=26933
2007-05-28 17:53:02 +00:00
Dmitry Gorbachev
6a80de90e0 - Use new resource file names.
- Uncomment NLS settings for Korean.

svn path=/trunk/; revision=26932
2007-05-28 15:55:38 +00:00
Dmitry Gorbachev
7543840918 - Fix ISO 639-1 language code.
svn path=/trunk/; revision=26931
2007-05-28 15:55:13 +00:00
Dmitry Gorbachev
98eb0fb639 - Add NLS file for Korean (from WINE).
svn path=/trunk/; revision=26930
2007-05-28 15:54:14 +00:00
Timo Kreuzer
cf5b4c7e99 undocumented behavior of LoadStringW: If nBufferMax is 0, LoadStringW will copy a pointer to the in-memory image of the string to the specified buffer and return the length of the string in WCHARs.
svn path=/trunk/; revision=26929
2007-05-28 00:35:55 +00:00
Timo Kreuzer
a009b642f6 - remove unused DrawPreview function
- small code reformat

svn path=/trunk/; revision=26928
2007-05-27 22:34:20 +00:00
James Tabor
d8af591e49 Fix NtUserLoadKeyboardLayoutEx prototype:
- Current prototype breaks compatibility.
- This prototype was researched in clean room techniques.
- Any questions, please email me, I will write a book to explain these techniques.

svn path=/trunk/; revision=26927
2007-05-27 20:47:12 +00:00
Dmitry Gorbachev
eaf620126f - Add Hebrew keyboard layout to CD.
- Fix font substitutes: DejaVu Vera -> DejaVu.

svn path=/trunk/; revision=26926
2007-05-27 18:59:00 +00:00
Eric Kohl
461dca557f Move language-specific files to the lang folder.
svn path=/trunk/; revision=26925
2007-05-27 15:37:33 +00:00
Eric Kohl
77286996f0 - Add "Clear display" command.
- Change menu item prefix to IDM.

svn path=/trunk/; revision=26924
2007-05-27 15:27:40 +00:00
Eric Kohl
a9a7a6ef22 Remove outdated email address.
svn path=/trunk/; revision=26923
2007-05-27 14:50:12 +00:00
Magnus Olsen
31942c7ebe adding Vmrender.idl compatible with ms dxsdk 2004 dec
svn path=/trunk/; revision=26922
2007-05-27 13:27:51 +00:00
Timo Kreuzer
e4925bf539 - fix a region leak
- unlock bitmap

svn path=/trunk/; revision=26921
2007-05-27 13:21:44 +00:00
Timo Kreuzer
6e719efbe9 fix region leak
svn path=/trunk/; revision=26920
2007-05-27 12:48:45 +00:00
Magnus Olsen
b476f82321 adding ddyngraph.idl compatible with ms dxsdk 2004 dec
svn path=/trunk/; revision=26919
2007-05-27 12:40:26 +00:00
Magnus Olsen
b0bc996f70 adding dmodshow.idl compatible with ms dxsdk 2004 dec
svn path=/trunk/; revision=26918
2007-05-27 11:38:03 +00:00
Magnus Olsen
f2bbc0c14a adding tvratings.idl compatible with ms dxsdk 2004 dec
svn path=/trunk/; revision=26917
2007-05-27 11:31:37 +00:00
Magnus Olsen
9ad0275820 adding regbag.idl compatible with ms dxsdk 2004 dec
svn path=/trunk/; revision=26914
2007-05-27 11:04:46 +00:00
Magnus Olsen
ca9b163cdb adding bdatypes.h compatible with ms dxsdk 2004 dec
svn path=/trunk/; revision=26913
2007-05-27 10:56:05 +00:00
Christoph von Wittich
a94fcd5985 64-Bit Fixes for cabman (patch from Colin Finck)
See issue #2236 for more details.

svn path=/trunk/; revision=26912
2007-05-27 10:26:43 +00:00
Christoph von Wittich
cdda19fd20 added an empty intrin_x86_64.h
svn path=/trunk/; revision=26911
2007-05-27 10:12:19 +00:00
Magnus Olsen
cd9120322a add correct mediaoobj.idl compatible with ms dxsdk 2004 dec
add medoaram.idl compatible with ms dxsdk 2004 dec

svn path=/trunk/; revision=26908
2007-05-27 09:34:59 +00:00
Eric Kohl
c6c58b7697 Calculate L2 cache size for AMD CPUs.
svn path=/trunk/; revision=26907
2007-05-26 16:37:11 +00:00
Magnus Olsen
15e6e8404d adding mixerocx.idl, vidcap.idl, videoacc.idl compatible with ms dxsdk 2004 dec
svn path=/trunk/; revision=26906
2007-05-26 16:16:01 +00:00
Magnus Olsen
d9221af45a adding correct amstream.idl , compatible with ms dxsdk 2004 dec
remove amvideo.idl this idl does not exists as idl in ms dxsdk only as amvideo.h 

svn path=/trunk/; revision=26905
2007-05-26 15:41:51 +00:00
Johannes Anderwald
c714ded2a4 - set svn:eol-style native
svn path=/trunk/; revision=26904
2007-05-26 15:14:07 +00:00
Magnus Olsen
670e9db84e adding austream.idl and ddstream.idl comptaible with ms dxsdk 2004 dec
svn path=/trunk/; revision=26903
2007-05-26 11:51:45 +00:00
Magnus Olsen
13f9ebd354 forget adding a header hack, for widl
svn path=/trunk/; revision=26902
2007-05-26 11:26:23 +00:00
Magnus Olsen
42b522ea77 adding correct mmstream.idl
svn path=/trunk/; revision=26901
2007-05-26 11:22:58 +00:00
Magnus Olsen
a74a1a7af1 adding dshowasf.idl did miss this file is a idl compatible wih ms dxsdk 2004 dec
svn path=/trunk/; revision=26900
2007-05-26 09:48:35 +00:00
Magnus Olsen
ea4a1dfdd0 adding two idl file 100% compatible with ms dxsdk 2004 dec
This two idl can not yet be auto genrated in reactos for varius reason. 

svn path=/trunk/; revision=26899
2007-05-26 09:28:26 +00:00
Magnus Olsen
780533a258 Created folder remotely
This folder will contain dxsdk idl files

svn path=/trunk/; revision=26898
2007-05-26 08:36:56 +00:00
Magnus Olsen
4a0055bc36 Wrote two new header this morning compatible with dxsdk 2004 dec release.
svn path=/trunk/; revision=26897
2007-05-26 07:03:52 +00:00
Magnus Olsen
2f6b952a84 Wrote one new header this night compatible with dxsdk 2004 dec release.
svn path=/trunk/; revision=26896
2007-05-25 21:51:35 +00:00
Dmitry Gorbachev
997f872497 Uncomment Japanese, as it is supported already.
svn path=/trunk/; revision=26895
2007-05-25 18:25:06 +00:00
Dmitry Gorbachev
b73dbd37d5 Borrow Japanese NLS file from WINE project.
svn path=/trunk/; revision=26894
2007-05-25 18:24:55 +00:00
Dmitry Gorbachev
0f337a24cb Do not free the string twice.
svn path=/trunk/; revision=26893
2007-05-25 17:10:11 +00:00
Aleksey Bragin
5f53b128c9 - Remove a hack from IopCreateDriver(), no boot hang happens in VMWare without it anymore.
- Uncomment a ExFreePool() in a Delete routine for Driver object type, should prevent a possible memory leak (was commented due to the previous hack).
- Added a small piece of a new logic into IopCreateDriver(). In ReactOS it's being called two times almost immediately, which results in a non-unique driver object name, since KeTickCount is the same. In order to prevent this situation a loop is added, having 100 iterations as max.

svn path=/trunk/; revision=26891
2007-05-25 13:52:58 +00:00
Magnus Olsen
e0d8bd0a65 switch to dxsdk 2 of 2 step
This commit fix the build again

svn path=/trunk/; revision=26889
2007-05-25 11:19:11 +00:00
Magnus Olsen
5fcac65ce9 switch to dxsdk 1 of 2 step
This commit break the build

svn path=/trunk/; revision=26888
2007-05-25 11:18:13 +00:00
Magnus Olsen
d7e4c52534 fixing two typo
svn path=/trunk/; revision=26887
2007-05-25 10:51:26 +00:00
Magnus Olsen
ec5f57ddaf remove a dprint that is not lonnger need it
svn path=/trunk/; revision=26886
2007-05-25 10:07:18 +00:00
Magnus Olsen
45333a49c3 Wrote one new header this morning compatible with dxsdk 2004 dec release.
svn path=/trunk/; revision=26885
2007-05-25 10:02:08 +00:00
Magnus Olsen
e7b2733b20 Wrote one new header this morning compatible with dxsdk 2004 dec release.
svn path=/trunk/; revision=26884
2007-05-25 09:32:37 +00:00
Timo Kreuzer
2b0336eaf8 - initialize display class with "Ms Shell Dlg"
- don't show display window until font is set
- use negative value for font size (patch by roytam1)

See issue #2260 for more details.

svn path=/trunk/; revision=26883
2007-05-25 07:48:17 +00:00
Aleksey Bragin
86ca0a4eba - ACPI was intentionally disabled. Reverting 26870, thus unregressing VMWare video driver installation (since PCI bus is now again being enumerated).
svn path=/trunk/; revision=26882
2007-05-25 07:46:48 +00:00
Aleksey Bragin
03356a723c - Fix wrong access-rights when referencing the object (fixes NtEnumerateKey() API).
- Add DPRINTs for problems with objects referencing.

svn path=/trunk/; revision=26880
2007-05-24 13:23:33 +00:00
Aleksey Bragin
2691c6bc92 - Add tracing DPRINTs to all public APIs.
svn path=/trunk/; revision=26878
2007-05-24 08:59:34 +00:00
James Tabor
9f2630ccce - Fixed arithmetic semantics. Making it more Windows compatible.
- This example work now.
double F2F(PFLOATOBJ f)
{
 if(SIGN(f->ul1)) // negate mant
   return (double) -(-f->ul1 * pow(2,(double)f->ul2-32));
 else return (double) f->ul1 * pow(2,(double)f->ul2-32);
}

svn path=/trunk/; revision=26877
2007-05-24 01:39:31 +00:00
Hervé Poussineau
8b7099f2cd Specify W suffix when possible
Don't allocate unneeded memory in SetupDiCreateDeviceInfoListExW
Replace strings by array of WCHARs

svn path=/trunk/; revision=26876
2007-05-23 21:40:46 +00:00
Magnus Olsen
f1a1a96940 Fixing CreateDirectDraw crash
svn path=/trunk/; revision=26873
2007-05-23 19:48:54 +00:00
Magnus Olsen
e9753c14a8 comment out GetDOURCC data from DDHALINFO for it seam some strang crash.
svn path=/trunk/; revision=26872
2007-05-23 19:27:29 +00:00
Timo Kreuzer
96b50f2d59 - make fontview look closer to MS fontview, patch by roytam1, modified by me.
- Create fonts only once
- Remove possibility to get page height without drawing


See issue #2260 for more details.

svn path=/trunk/; revision=26871
2007-05-23 00:25:31 +00:00
Ged Murphy
5cecf17b6f re-enable ACPI
svn path=/trunk/; revision=26870
2007-05-22 19:33:20 +00:00
Maarten Bosma
a898075895 Fix two oversights in GetDisplayMode.
svn path=/trunk/; revision=26869
2007-05-22 19:30:25 +00:00
Maarten Bosma
f31403fe80 Change EnumDisplayModes to use EnumDisplaySettingsEx because Nvidia does not set lpModeInfo in DDHALINFO.
svn path=/trunk/; revision=26868
2007-05-22 12:39:59 +00:00
Ged Murphy
6545618504 remove unnecessary NDEBUG definitions. freeldr has it's own debugging system.
svn path=/trunk/; revision=26867
2007-05-22 11:00:00 +00:00
Maarten Bosma
5dd4476d06 Fix another typo.
svn path=/trunk/; revision=26866
2007-05-22 10:58:27 +00:00
Maarten Bosma
fb06e53fc5 Fix a typo and improve a test.
svn path=/trunk/; revision=26865
2007-05-22 10:57:53 +00:00
Magnus Olsen
3355adf732 Fixing another memory crash bug this time for GetFourCCCodes
svn path=/trunk/; revision=26864
2007-05-22 10:46:17 +00:00
Hervé Poussineau
2a62b56fd9 Add installation path for VMware 6.0
svn path=/trunk/; revision=26863
2007-05-22 10:40:57 +00:00
Ged Murphy
f18c692bc2 turn debugging off
svn path=/trunk/; revision=26862
2007-05-22 10:17:07 +00:00
Ged Murphy
41624f4f99 - fix the release build for Colin.
- clean up formatting of a file I was playing with.

svn path=/trunk/; revision=26861
2007-05-21 23:12:16 +00:00
Magnus Olsen
d746c66d94 Fixing another memory crash bug this time for GetFourCCCodes
svn path=/trunk/; revision=26860
2007-05-21 20:51:55 +00:00
Magnus Olsen
3893f07116 hacking so we manger only create one directdraw interface, the linked code for create one is offline.
svn path=/trunk/; revision=26859
2007-05-21 20:25:23 +00:00
Ged Murphy
fe490d6ce0 revert 26844 to fall back in line with widl
svn path=/trunk/; revision=26858
2007-05-21 19:48:47 +00:00
Magnus Olsen
298cd5e094 Thx DrFred notice I did take wrong struct at alloc, I also comment up the code bit.
svn path=/trunk/; revision=26857
2007-05-21 18:49:28 +00:00
Eric Kohl
30740cbe3d Revert latest update due to unexpected bug in compiled files.
svn path=/trunk/; revision=26856
2007-05-21 18:28:00 +00:00
Maarten Bosma
6891a17fe5 MIN => min
svn path=/trunk/; revision=26855
2007-05-21 18:25:17 +00:00
Maarten Bosma
813da313d4 - Also leave critical section if lpNumCodes is 0
- make sure we do not copy too much - thanks to Hervé
- check if window is valid 

svn path=/trunk/; revision=26854
2007-05-21 17:18:41 +00:00
Magnus Olsen
327cd7852d fixing thread safe in GetFourCCCodes
svn path=/trunk/; revision=26853
2007-05-21 16:23:43 +00:00
Maarten Bosma
1c247edcf4 Implement IDirectDraw7::GetFourCCCodes
svn path=/trunk/; revision=26852
2007-05-21 15:47:39 +00:00
Magnus Olsen
0dd6b57e78 Fixing minors bugs
1. The linking interface was use when we req no linking interface.
2. The no linking was use when we req linking interface
3. cleanup the linking interface code so it getting simplire, like reuse same dx  handler and other stuff. (have not check if ms ddraw resue it or not)

svn path=/trunk/; revision=26851
2007-05-21 15:44:27 +00:00
Maarten Bosma
16abbb4536 Test for IDirectDraw7::GetFourCCCodes
svn path=/trunk/; revision=26850
2007-05-21 15:24:57 +00:00
Maarten Bosma
ded6f889ce Implement IDirectDraw7::EnumDisplayModes and IDirectDraw7::RestoreDisplayMode
svn path=/trunk/; revision=26849
2007-05-21 12:01:07 +00:00
Maarten Bosma
8bbbeb08ba - Implement IDirectDraw7::GetMonitorFrequency, GetDisplayMode
- Outsource display mode related APIs into own file
- Some formatting and spelling fixes

svn path=/trunk/; revision=26848
2007-05-21 10:11:10 +00:00
Aleksey Bragin
f52f59db1d - Make 2 disk read error messages different, so it's possible to see what fails more exactly.
svn path=/trunk/; revision=26847
2007-05-21 08:46:18 +00:00
Maarten Bosma
6a11c13aa1 Sorry, I forgot this one.
svn path=/trunk/; revision=26846
2007-05-20 22:56:32 +00:00
Maarten Bosma
d49bca10c2 Implement IDirectDraw7::GetAvailableVidMem.
svn path=/trunk/; revision=26845
2007-05-20 22:48:19 +00:00
Aleksey Bragin
cc557fcbd2 - Fix WebBrowser struct declaration to conform with a new WIDL.
svn path=/trunk/; revision=26844
2007-05-20 11:29:22 +00:00
Eric Kohl
486714fd5a Update WIDL to rev 20070519.
svn path=/trunk/; revision=26843
2007-05-19 23:02:35 +00:00
Hervé Poussineau
5cb63e5d4a Another try to fix release builds to please Colin_Finck...
svn path=/trunk/; revision=26842
2007-05-19 20:45:17 +00:00
Dmitry Gorbachev
413eb57968 Do not use paged pool at page fault time; see bug report #2252.
svn path=/trunk/; revision=26841
2007-05-19 15:13:37 +00:00
Timo Kreuzer
87c5734a34 fix drawing on resize
svn path=/trunk/; revision=26840
2007-05-19 14:23:00 +00:00
Sebastian Gasiorek
d6c16357c0 - add support for ETO_GLYPH_INDEX in NtGdiExtTextOut.
(fixes character shift problem in QT apps) see bug #975

svn path=/trunk/; revision=26839
2007-05-19 13:55:23 +00:00
Eric Kohl
9341afafbf Unicode.nls contains the Unicode case conversion tables. It does _not_ contain codepage tables.
svn path=/trunk/; revision=26838
2007-05-19 10:40:59 +00:00
Dmitry Gorbachev
f13108e171 - Add Chinese (PRC) and Armenian NLS settings.
svn path=/trunk/; revision=26837
2007-05-19 10:11:59 +00:00
Dmitry Gorbachev
667c44e8f0 - Handle DBCS codepages.
- Add Armenian locale definitions from Wine.

svn path=/trunk/; revision=26836
2007-05-19 10:11:48 +00:00
Dmitry Gorbachev
43b368ee01 - Add some code to deal with multibyte code pages.
svn path=/trunk/; revision=26835
2007-05-19 10:11:22 +00:00
Timo Kreuzer
61d291959e implement a basic fontview.exe. It doesn't work on ROS atm due to missing implementation of GetFontResourceInfoW(), but works on XP.
svn path=/trunk/; revision=26834
2007-05-19 01:33:27 +00:00
Dmitry Gorbachev
921f00b600 Fix German translation. Bug #2258.
svn path=/trunk/; revision=26833
2007-05-18 22:01:13 +00:00
Hervé Poussineau
d2eb919808 Check that we retrieved a value data before marking it as dirty
This is related to bug 1998

svn path=/trunk/; revision=26830
2007-05-18 12:41:16 +00:00
Magnus Olsen
1be0ddc3d5 fix a comment in it for swedish langues
svn path=/trunk/; revision=26829
2007-05-17 20:14:21 +00:00
Magnus Olsen
6b761fbc8e Audlt locale_rc.rc clean it is from wine see the comment in the file
svn path=/trunk/; revision=26828
2007-05-17 20:13:30 +00:00
Magnus Olsen
3e37ffb5a4 Fixing a small bug in sve.nls
svn path=/trunk/; revision=26827
2007-05-17 20:10:16 +00:00
Magnus Olsen
c6ae22c636 Fixing right sublang on SE and PL rc files, some have change the sublang to wrong one.
svn path=/trunk/; revision=26826
2007-05-17 20:01:02 +00:00
Sylvain Petreolle
860ff42e86 freebsd/linux/other unixes build fixes
svn path=/trunk/; revision=26824
2007-05-17 18:46:31 +00:00
Eric Kohl
15242938e7 - Update WPP and fix the resulting bugs because wpp_find_include has changed.
- Add notes to wpp.mak about how to build lex.yy.c, ppy.tab.c and ppy.tab.h manually.

svn path=/trunk/; revision=26822
2007-05-17 14:47:37 +00:00
Magnus Olsen
0935620f31 optimizing atan and log10, do not use frame pointer, use the stack pointer direcly
svn path=/trunk/; revision=26820
2007-05-17 10:48:00 +00:00
Alex Ionescu
70e2b462a5 - Implement NtDeleteKey as a simpler wrapper around CmDeleteKey.
- Add cmkeydel.c to handle key deletion. Will proably move to cmkcbncb.c later. Implemented CmpMarkKeyDirty, CmpFreeKeyBody, CmpFreeKeyByCell.
- Implement CmpMarkIndexDirty, CmpRemoveSubKey in cmindex.c.
- Implement CmDeleteKey (which uses CmpFreeKeyByCell for all the work).
- Remove CmiRemoveKeyFromList, CmiRemoveSubKey, CmiRemoveKeyFromHashTable, CmiSaveTempHive.

svn path=/trunk/; revision=26817
2007-05-17 00:27:14 +00:00
Magnus Olsen
b527796afa fixing some smaller bugs found by the regress test
svn path=/trunk/; revision=26816
2007-05-16 22:58:25 +00:00
Maarten Bosma
1ddfd23075 GetAvailableVidMem-Test
svn path=/trunk/; revision=26815
2007-05-16 22:19:07 +00:00
Magnus Olsen
ea1eae3dd9 Fixing a msvc7 comping issue
svn path=/trunk/; revision=26814
2007-05-16 21:03:02 +00:00
Maarten Bosma
316f38cf0f fix typo.
svn path=/trunk/; revision=26813
2007-05-16 20:59:01 +00:00
Maarten Bosma
2522ca071a - Comment out tests which works does not work for me under xp.
- Release returns ref count and no HRESULT (my bad).
 

svn path=/trunk/; revision=26812
2007-05-16 20:54:20 +00:00
Maarten Bosma
2c56fc8f36 Forgot to commit this one.
svn path=/trunk/; revision=26811
2007-05-16 20:47:02 +00:00
Maarten Bosma
3fa5e74711 - Tests for Compact, TestCooperativeLevel, Initialize, GetDisplayMode, RestoreDisplayMode
- Merge GetMonitorFrequency Test with other Display Mode Tests

svn path=/trunk/; revision=26810
2007-05-16 20:42:33 +00:00
Maarten Bosma
d64da71c44 - Enable display mode tests but do not tests all of them, but only the first five onces.
- Add tests for AddRef, QueryInterface, Release

svn path=/trunk/; revision=26809
2007-05-16 18:57:21 +00:00
Maarten Bosma
e2ad78e62d Add downloader.xml again.
svn path=/trunk/; revision=26808
2007-05-16 18:11:25 +00:00
Maarten Bosma
be864d9d6e Revert r25952 for now.
svn path=/trunk/; revision=26807
2007-05-16 18:05:03 +00:00
Dmitry Gorbachev
8559c5a684 Fix WinSock mapping data.
svn path=/trunk/; revision=26806
2007-05-16 15:52:50 +00:00
Dmitry Gorbachev
bf6eed30bc Do not divide by zero.
svn path=/trunk/; revision=26805
2007-05-16 15:52:27 +00:00
Dmitry Gorbachev
d9e562832a Polish translation update by Olaf Siejka. BugZilla report #2254.
svn path=/trunk/; revision=26804
2007-05-16 09:55:37 +00:00
Ged Murphy
332eec647d a better winmine icon
svn path=/trunk/; revision=26803
2007-05-15 22:27:34 +00:00
Ged Murphy
7d6e95e227 add a regedit icon, made for ReactOS by Taliesin Penfound (tpenfound at gmail!com)
svn path=/trunk/; revision=26802
2007-05-15 22:20:35 +00:00
Eric Kohl
722745be27 Implement sound acessibility settings.
svn path=/trunk/; revision=26801
2007-05-15 21:59:14 +00:00
James Tabor
12ccaa3207 Finish up float.c, hopfully the div and sub math is right.
svn path=/trunk/; revision=26799
2007-05-15 20:48:58 +00:00
Dmitry Gorbachev
0a44b61c7f Fix Italian rc file. Bug report #2253. From Paolo Devoti.
svn path=/trunk/; revision=26798
2007-05-15 20:16:08 +00:00
Maarten Bosma
e381e0f4df Fix types in startup.c.
svn path=/trunk/; revision=26795
2007-05-15 17:52:00 +00:00
Maarten Bosma
f6773f20a3 Fix compiler warning.
svn path=/trunk/; revision=26794
2007-05-15 17:41:27 +00:00
Maarten Bosma
ada941267c Some formatting and implement SetDisplayMode.
svn path=/trunk/; revision=26793
2007-05-15 16:18:30 +00:00
Aleksey Bragin
149c5b1cae - Revert rpcrt4 update, too buggy for now. My apologizes.
svn path=/trunk/; revision=26792
2007-05-15 12:12:42 +00:00
Aleksey Bragin
3d1bf7d14e - Make advapi32 compilable without CUNITs.
svn path=/trunk/; revision=26790
2007-05-15 11:21:09 +00:00
Aleksey Bragin
c08df38aaa - Sync RPCRT4.dll to Wine-20070507 (recent release Wine 0.9.36).
- Fix a couple of headers.
- NOTE: I tested this rpcrt4 under ReactOS 0.3.1 and it boots normally. However, for future work, a wrapper library around winsock should be built, and a rpcrt4_ros.diff should be developer. Right now it's manually synced, and contains a few modifications (marked as #ifdef FIX_LATER in most cases).
Also, I'm not going to do a proper vendor import of this library, because next sync will most probably be autosync.
In case of problems, it could be reverted.

svn path=/trunk/; revision=26789
2007-05-15 11:19:12 +00:00
Christoph von Wittich
00495fbe26 changed some german translations
svn path=/trunk/; revision=26787
2007-05-15 01:49:17 +00:00
Hervé Poussineau
a3bda9f0e6 One more fix for release build
svn path=/trunk/; revision=26786
2007-05-14 21:09:52 +00:00
Hervé Poussineau
94e0b70c25 Try to fix release build
svn path=/trunk/; revision=26785
2007-05-14 20:28:26 +00:00
Alex Ionescu
753ad4922b - Re-organize regobj.c so that new APIs are at the bottom.
- Make NtDeleteKey delete the key in-line instead of waiting for the Ob callback.

svn path=/trunk/; revision=26784
2007-05-14 20:24:12 +00:00
Hervé Poussineau
5f71c28029 Also define the DPRINT_ constants in release mode
svn path=/trunk/; revision=26783
2007-05-14 20:07:16 +00:00
Aleksey Bragin
368e2849a5 - Fix debug print macros (by hpoussin).
svn path=/trunk/; revision=26782
2007-05-14 20:01:05 +00:00
Alex Ionescu
475bf24b50 - Implement CmpFindSubKeyByNumber and CmpDoFindSubKeyByNumber.
- Make NtEnumerateKey a simpler wrapper around CmEnumerateKey.
- Implement CmEnumerateKey by using the same API as previously, CmpQueryKeyData instead of duplicating code like the previous version did. Use CmpFindSubKeyByNumber to convert from index to key node.
- Remove CmiGetValueFromKeyByIndex, CmiGetKeyFromHashByIndex, CmiCopyPackedName: deprecated.

svn path=/trunk/; revision=26781
2007-05-14 19:35:58 +00:00
Alex Ionescu
64f4f03b95 - Make CmiGetMaxClassLength, CmiGetMaxNameLength, CmiGetMaxValueDataLength, CmiGetMaxValueNameLength use PHHIVE and PCM_KEY_NODE instead of PKEY_OBJECT or PERGSITRY_HIVE/PCM_KEY_NDOE so they're consistent.
- Implement NtQueryKey as a simple wrapper around CmQueryKey.
- Implement CmQueryKey based on previous code, and handle only the classes that the previous code handled, through CmpQueryKeyData.
- The CmiGetMax* routines will be depreated soon since they're a perf hit and we should be reading the key node's values instead.

svn path=/trunk/; revision=26780
2007-05-14 18:12:57 +00:00
Alex Ionescu
934cae8069 - Implement NtEnumerateValueKey as a simpler wrapper.
- Implement CmEnumerateValueKey. Simply calls already-existing Value Cache routines (CmpGetValueListFromCache, CmpGetValueKeyFromCache and CmpQueryKeyValueData) to do all the work.

svn path=/trunk/; revision=26778
2007-05-14 06:40:40 +00:00
Alex Ionescu
3ecce0a306 - Delete CmiGetPackedNameLength, CmiComparePackedNames, CmiCompareHash, CmiCompareHashI, CmiCompareKeyNames, CmiCompareKeyNamesI; dead code.
svn path=/trunk/; revision=26775
2007-05-14 05:43:27 +00:00
Alex Ionescu
c045c30908 - Implement NtQueryValueKey as a simple wrapper around CmQueryValueKey (same idea as always).
- Add cmvalche.c to deal with Value Caches. Cm implements these to quickly look up either the value list and/or the value index and/or the value data itself.  The routines fallback on non-cached access, which is what we currently do, since we don't have value caches yet.
- Implement CmQueryValueKey and CmpQueryKeyValueData based on previous code, but update to use value caches and new routines.

svn path=/trunk/; revision=26774
2007-05-14 05:36:25 +00:00
James Tabor
6f9af1cef6 Implement FLOATOBJ_GetFloat and Long, SetFloat and Long, and Neg.
svn path=/trunk/; revision=26773
2007-05-14 03:55:28 +00:00
James Tabor
5bca352f7d Update painting.c with new storage method for floating point operations.
svn path=/trunk/; revision=26772
2007-05-14 03:18:42 +00:00
Christoph von Wittich
ac6836eee1 asome extra space for the german text
svn path=/trunk/; revision=26771
2007-05-14 01:09:50 +00:00
Christoph von Wittich
0a26c894c2 some extra space for the text (to be displayed completely)
svn path=/trunk/; revision=26770
2007-05-14 01:05:57 +00:00
James Tabor
bea034c7dc Commit union for float conversion.
svn path=/trunk/; revision=26769
2007-05-14 00:47:29 +00:00
Alex Ionescu
4752c4b4c7 - Implement NtDeleteValueKey as a simple wrapper around CmDeleteValueKey so that handles, callbacks and SEH is abstracted away.
- Implement CmpRemoveValueFromList.
- Implement CmDeleteValueKey based on the old code, make it use CmpRemoveValueFromList.
- Remove CmiDeleteValueFromKey, CmiDestroyValueCell.

svn path=/trunk/; revision=26768
2007-05-14 00:44:26 +00:00
Dmitry Gorbachev
e834db9305 Fix r26764.
svn path=/trunk/; revision=26766
2007-05-13 22:44:36 +00:00
Maarten Bosma
ec669d109c Lots of additional cases by EmuandCo.
svn path=/trunk/; revision=26765
2007-05-13 20:31:38 +00:00
Alex Ionescu
03466c9be1 - Properly remove trailing \r\n depending on system configuration. Previous code assumed our wmc tool used target-newlines instead of host-newlines, causing Linux builds to display incorrect boot messages. New code scans the string.
svn path=/trunk/; revision=26764
2007-05-13 20:26:08 +00:00
Alex Ionescu
b7c77071ec - Remove confusion.
svn path=/trunk/; revision=26763
2007-05-13 19:57:35 +00:00
Alex Ionescu
0e7bfb3fd3 - Fix crash at end of text-mode setup (by hacking cmlib not to write a log file anymore -- logs aren't critical and I'll see why exactly it couldn't write the log anymore later, and apply a proper fix).
svn path=/trunk/; revision=26762
2007-05-13 19:11:13 +00:00
Alex Ionescu
41abdae9ca - Remove more old/dead code.
svn path=/trunk/; revision=26761
2007-05-13 19:10:23 +00:00
Alex Ionescu
cfb706a690 - HvGetCellSize should return the correct positive length instead of the raw negative length. Update code and callers to match.
- Add cmapi.c file containing internal Cm* APIs for the Nt counterparts and to make it easier to seperate the handle->object code, SEH and callback parts.
- Remove CmiAddValueToKey, CmiAllocateValueCell since we have new routines for this.
- Make NtSetValueKey a simple wrapper around CmSetValueKey.
- Implement CmSetValueKey based on previous code, but use newer Cm APIs instead (this also fixes some cell allocation bugs regarding Stable/Volatile storage).
- New code is more conservative with HvMakeCellDirty calls when they're not needed, and is more scalable to support big cells in the future.

svn path=/trunk/; revision=26760
2007-05-13 18:39:35 +00:00
Maarten Bosma
39932ced34 Some more CreateSurface Tests (for invaild flags)
svn path=/trunk/; revision=26759
2007-05-13 17:58:05 +00:00
Maarten Bosma
35b29a1d0a - Release Ddraw Object Test_CreateDDraw
- First Surface Test of many to follow
- GetMonitorFrequency and whitespace changes by EmuandCo

svn path=/trunk/; revision=26758
2007-05-13 17:31:35 +00:00
Alex Ionescu
779a784f15 - Fix critical bug in CmpCopyName, it wasn't compressing names at all.
- Implement new cmlib routines: HvIsCellAllocated, Doesn't really work fully since we don't support mapped-file hives, but works for the kinds of hives we currently use. HvIsCellDirty, should work as expected.
- Implement new cm routines: CmpMarkValueDataDirty, CmpFreeValueData, CmpFreeValue. There are generic so they can deal with Big, Small or Normal keys.
- Implement CmpAddValueToList, CmpSetValueDataNew.
- Add RtlCheckBit to winddk.h, it's inlined instead of being an actual function call.

svn path=/trunk/; revision=26757
2007-05-13 16:58:54 +00:00
Magnus Olsen
75685e5dd4 adding more check for createsurface
svn path=/trunk/; revision=26756
2007-05-13 16:51:15 +00:00
Maarten Bosma
e37697709f Beginning of CreateSurface test.
svn path=/trunk/; revision=26755
2007-05-13 16:37:58 +00:00
Hervé Poussineau
f9560fb69d Move itss.idl to the place it belongs
svn path=/trunk/; revision=26754
2007-05-13 14:38:27 +00:00
Magnus Olsen
85c06f6f40 adding more check
svn path=/trunk/; revision=26753
2007-05-13 13:14:54 +00:00
Magnus Olsen
393d729ca1 fixing two return code thx Ventron for the info for one of the return code
svn path=/trunk/; revision=26752
2007-05-13 12:43:51 +00:00
Magnus Olsen
336c7c37c4 adding smore check for createsurface, (still does not create a surface)
svn path=/trunk/; revision=26751
2007-05-13 12:11:41 +00:00
Maarten Bosma
57f86bb38b Add debugging macro to get error code and test for display modes (commented out because it checks every single display mode and thus takes fairly long).
svn path=/trunk/; revision=26750
2007-05-13 12:09:44 +00:00
Maarten Bosma
ba36cacf56 SetCooperativeLevel Test
svn path=/trunk/; revision=26749
2007-05-13 09:58:47 +00:00
Magnus Olsen
b955734dc0 fixing more linux build issue
svn path=/trunk/; revision=26748
2007-05-13 08:47:35 +00:00
Dmitry Gorbachev
7622d26ba5 Update Polish translation. Patch by Caemyr. Bug report #2249.
svn path=/trunk/; revision=26747
2007-05-13 08:46:14 +00:00
Magnus Olsen
968fb23c3b fixing a path issue so it is compatible with linux
svn path=/trunk/; revision=26746
2007-05-13 08:38:22 +00:00
Timo Kreuzer
c21f54bb23 handle FW_DONTCARE in GetFontScore. Fixes gray/thin display of dialogbox elements' text.
svn path=/trunk/; revision=26743
2007-05-13 02:31:00 +00:00
Timo Kreuzer
8e23820aa6 On win XP the gdi handle index can be > 0x3fff, so change GDI_HANDLE_INDEX_MASK to 0x0000ffff to not fail on win XP on higher handle index.
svn path=/trunk/; revision=26742
2007-05-13 00:57:09 +00:00
Dmitry Gorbachev
7bef6e865e Check result of ANSI -> Unicode conversion, which can fail in the case of
memory shortage.

svn path=/trunk/; revision=26741
2007-05-12 22:54:58 +00:00
Maarten Bosma
a6e430f084 Add it to build.
svn path=/trunk/; revision=26740
2007-05-12 19:43:23 +00:00
Maarten Bosma
1c0a28e0fa Start of ddraw test case.
svn path=/trunk/; revision=26739
2007-05-12 19:43:01 +00:00
Magnus Olsen
053c08fc8e commit some bugfix for ddraw createsurface, fixing comping as well
svn path=/trunk/; revision=26738
2007-05-12 19:20:54 +00:00
Magnus Olsen
e535eb641e fixing smaller bugs
svn path=/trunk/; revision=26737
2007-05-12 18:33:28 +00:00
Maarten Bosma
bf51ef9a82 Create Internal_CreateSurface stub.
svn path=/trunk/; revision=26736
2007-05-12 17:50:09 +00:00
Magnus Olsen
9dbe363154 implement internal api CopyDDSurfDescToDDSurfDesc2
svn path=/trunk/; revision=26735
2007-05-12 17:48:27 +00:00
Maarten Bosma
a54fcea595 - outsourced DirectDraw_SetCooperativeLevel
- adjusted .c file headers

svn path=/trunk/; revision=26734
2007-05-12 17:30:37 +00:00
Magnus Olsen
9fb321d933 start implement Main_DirectDraw_CreateSurface
we need now finish  internal_CreateSurface and  CopyDDSurfDescToDDSurfDesc2

svn path=/trunk/; revision=26733
2007-05-12 17:23:48 +00:00
Maarten Bosma
1846501455 Reformating
svn path=/trunk/; revision=26732
2007-05-12 16:37:17 +00:00
Maarten Bosma
80e4e04c0c Sorry, just noticed that I forgot to commit this one.
svn path=/trunk/; revision=26731
2007-05-12 16:29:58 +00:00
Maarten Bosma
8658735640 Formating
svn path=/trunk/; revision=26730
2007-05-12 16:28:54 +00:00
Maarten Bosma
4a65ec1dcc splitted rosdraw.h; outsourced big comment into text file.
svn path=/trunk/; revision=26729
2007-05-12 16:21:50 +00:00
Magnus Olsen
216cb06c21 forget this change, did think it still was in svn.
svn path=/trunk/; revision=26728
2007-05-12 15:52:09 +00:00
Magnus Olsen
a05a002084 start reimplement createsurface
svn path=/trunk/; revision=26727
2007-05-12 15:50:26 +00:00
Maarten Bosma
499e453d66 Fix warning.
svn path=/trunk/; revision=26726
2007-05-12 15:45:54 +00:00
Maarten Bosma
b4e08acebe Forgot to include surface_main.c in ddraw.rbuild.
svn path=/trunk/; revision=26725
2007-05-12 15:24:54 +00:00
Maarten Bosma
c0c39ccc77 DirectDraw rearrangement. (part 2/2)
svn path=/trunk/; revision=26724
2007-05-12 14:58:26 +00:00
Maarten Bosma
b2247432db DirectDraw rearrangement. (part 1/2)
svn path=/trunk/; revision=26723
2007-05-12 14:20:12 +00:00
Magnus Olsen
afe388c584 sorry did use some private headers that are not commited yet, here is win32kdxtest comping fix.
svn path=/trunk/; revision=26722
2007-05-12 13:58:27 +00:00
Maarten Bosma
52e0d50e08 Deactivate a check.
svn path=/trunk/; revision=26721
2007-05-12 13:17:01 +00:00
Eric Kohl
7e499053cd - Attach clock specific data to the window instead of storing them in global variables.
- Stop the clock and show the system time when the user changes the system time.

See issue #2241 for more details.

svn path=/trunk/; revision=26720
2007-05-12 12:37:23 +00:00
Ged Murphy
d5d68cf53f - Add winhelp based on Wine.
- Not fully complete and has some bugs.
- go to help -> help on help for a preview

svn path=/trunk/; revision=26719
2007-05-12 10:14:45 +00:00
Magnus Olsen
62ae8a3919 update dxhaltest with some new test, Thuse test are not 100% correct in all case. some error should be supress when it been run in vmware with windows or reactos
svn path=/trunk/; revision=26718
2007-05-12 10:14:22 +00:00
Aleksey Bragin
a3d6e8f3e9 Undo last change, since it's an index in an array of TCHARs, so "1" is correct.
svn path=/trunk/; revision=26717
2007-05-12 08:44:49 +00:00
Alex Ionescu
8202615b33 - Rename CmiInitNonVolatileRegistryHive to CmiInitHiveFromFile.
- Remove CmiCreateNewRegFile and the way new hives were created, saved, then re-reloded. Instead initialize a new hive only once.
- Add support for calling either HINIT_FILE or HINIT_CREATE with a hive, and support log file hives now.
- Make hacks/oldcm differences smoother, and copy routine to cmsysini.c, since it's now compatible with the rewrite. This is probably the last function that was easily convertible/modifiable.

svn path=/trunk/; revision=26716
2007-05-12 08:27:28 +00:00
Magnus Olsen
66d03d55cd did see a small mistake use sizeof(TCHAR) for adding NULL termeting of string for u do not known if we switch compile regedit as unicode-16 or ANSI.
svn path=/trunk/; revision=26715
2007-05-12 08:27:00 +00:00
Alex Ionescu
ff7c618dd0 - Change CmiInitNonVolatileRegistry hive to use CmpOpenHiveFiles and CmpInitializeHive. Required a lot of hacking to get to work right, but at least it does, and uses our new code paths.
- Update CmpInitializeHive with the HINIT_FILE hack required for current cmlib functionality.

svn path=/trunk/; revision=26714
2007-05-12 06:47:39 +00:00
James Tabor
7ae94663c6 Moving FLOATOBJ code in preparations of implementation of basic float storage emulation and float code processing.
svn path=/trunk/; revision=26713
2007-05-12 04:48:40 +00:00
Alex Ionescu
ef1f549526 - Get rid of CmiCopyKey since it was dead code. Make CmiScanKeyForValue and CmiScanForSubKey simple wrappers around the newer CmpFindSubKeyByName and CmpFindValueByName routines.
- Allow cmlib to support HINIT_FILE flag for HvInitializeHive. This means the kernel doesn't need to create a section for the hive, then call HvInitializeHive with HINIT_MEMORY anymore, and can simply send the file handle. I wrote a sneaky little hack in cmlib which actually ends up doing the same idea, albeit not by using a section, making it portable.
- Fix a serious bug in CmpFindSubKeyInLeaf affected by our lack of alphabetically-sorted cells; the linear search I hacked was slightly broken.
- Remove the need to hold a LogFileName in the hive structure, since we generate it dynamically now.

svn path=/trunk/; revision=26712
2007-05-12 03:28:04 +00:00
Alex Ionescu
6ef9f575cb - Move CmInitSystem1 to cmsysini.c and merge in existing code from Cm rewrite branch.
- Merge code into cmkcbncb.c related to KCB/Cache initialization (This is "Dead" code for now, since it's not used, just initailized.)
- Rename CmiRegistryLock to CmpRegistryLock.
- The new /config registry code is now totally isolated from the old /cm code, although some of the old structures are still used until the actual rewrite is fully merged/finished.

svn path=/trunk/; revision=26710
2007-05-11 23:35:19 +00:00
Dmitry Gorbachev
10f84bdddc Do not write beyond the buffer.
svn path=/trunk/; revision=26709
2007-05-11 23:17:44 +00:00
Dmitry Gorbachev
acd6160248 Do not write beyond the buffer.
svn path=/trunk/; revision=26708
2007-05-11 23:15:53 +00:00
Dmitry Gorbachev
14f97db8a4 Do not fail with less then two arguments.
svn path=/trunk/; revision=26707
2007-05-11 23:12:49 +00:00
Timo Kreuzer
c04165689d make caption font bold again
svn path=/trunk/; revision=26706
2007-05-11 22:57:21 +00:00
Alex Ionescu
47687d1136 - Copy CmOpenHiveFiles to cminit.c and rename to CmpOpenHiveFiles. Extend the functionality of the routine:
- Allow caller to have full power over handles and filenames being used instead of hard-coding a pointer to the registry hive.
  - Setup proper I/O flags to disable compression and open for random access, backup-intent and allow disabling buffering.
  - Allow proper access mask/share mode when booting off read-only media.
  - Call the FS driver with FSCTL_MARK_AS_SYSTEM_HIVE if instructed.
  - Call with FSCTL_SET_COMPRESSION to make sure compression is off.
  - Allow creating the hive if it doesn't exist already.
  - Consider 0-byte opened hives as new hives.
  - Allow caller to request volume sector size and validate with hive cluster size.
  - Make .log hives hidden.
- Implemement CmpCreateEvent to allowed for overlapped I/O registry operations.
- Move more globals to cmdata.c.

svn path=/trunk/; revision=26705
2007-05-11 22:51:11 +00:00
Alex Ionescu
57ddb7b014 - Move Cmlib wrapper functions to cmwraprs.c and add the file -- no code change.
- Move CmCheckRegistry stub to cmcheck.c and add the file.
- Move CmpInitializeHive to cminit.c and add the file. Modify it to add Cm-rewrite compatible code (but #ifed out).
- Change the HiveList lock to a pushlock instead of an ERESOURCE. Rename CmiHiveListHead to CmpHiveListHead.
- Get rid of Cm security functions and stub the CmpSecurityMethod in cmse.c to always return success. Key security was never really working anyway, this just removes more code.

svn path=/trunk/; revision=26704
2007-05-11 21:35:56 +00:00
Alex Ionescu
e433606342 - Move CmpCreateRootNode and CmpCreateRegistryRoot to cmsysini.c as well, and add some fixes to CmpCreateRegistryRoot to make it compatible with the Cm Rewrite when it's done.
- Initialize some stuff that wasn't being initialized in CmpCreateRootNode.
- Use CmpHiveRootSecurityDescriptor in CmpCreateRegistryRoot to protect the key.
- Save the root handle globally so we can close it during shutdown.
- Add cmkcbncb.c with an empty stub for CmpCreateKeyControlBlock. Will copy from Cm rewrite branch later.
- Properly name fields of CM_KEY_NODE in the headers of the /config tree.

svn path=/trunk/; revision=26703
2007-05-11 19:34:11 +00:00
Alex Ionescu
703c503a4f - Move CmpInitializeSystemHive and CmpCreateObjectTypes to cmsysini.c since they're almost identical to the Cm rewrite and compatible, so they're considered "new" code (although they still use EREGISTRY_HIVE).
- Add code missing in CmpInitializeSystemHive from Cm Rewrite (mainly detecting boot type and self-healing settings).
- Free a memory leak.
- Enable security for key objects.
- Rename CmiKeyType to CmpKeyObjectType.

svn path=/trunk/; revision=26702
2007-05-11 18:58:34 +00:00
Alex Ionescu
010910bc34 - Add missing ACE structures to ntifs.h.
- Add missing SeLengthSid to ntifs.h.
- Implement CmpHiveRootSecurityDescriptor and use it in CmpInitializeSystemHive and CmInitSystem1 to properly secure system-created hives.
- Implement CmpInitializeHardwareConfiguration and call it. Its job is to populate the hardware hive, but FreeLDR already does this, so it doesn't do much at the moment.

svn path=/trunk/; revision=26701
2007-05-11 18:15:13 +00:00
Dmitry Gorbachev
852a223ab9 - Terminate the string. NtUserMenuItemInfo() sometimes returns no string.
- Check if NtUserBuildMenuItemList() returns negative result.

svn path=/trunk/; revision=26700
2007-05-11 14:12:57 +00:00
Dmitry Gorbachev
5b30343d53 Check result of DRIVER_FindFromHDrvr().
svn path=/trunk/; revision=26699
2007-05-11 14:12:40 +00:00
Dmitry Gorbachev
915201e112 Fix (partially) bug #2243.
svn path=/trunk/; revision=26698
2007-05-11 14:12:21 +00:00
Aleksey Bragin
5e9f050616 Fix for linux build (#include "..\ -> #include "../).
svn path=/trunk/; revision=26696
2007-05-11 13:07:54 +00:00
Alex Ionescu
384af65d69 - More simplification: Get rid of CmImportBinaryHive, CmpImportSystemHive, CmpImportHardwareHive and all of import.c!
- Fix CmpInitializeHive to set any flags that are passed, not assume HIVE_NO_FILE by default.
- "Import" the system and hardware hives using CmpInitializeHive instead of the cmimport.c routines which are gone.
- Get rid of old/unused cmdata.c in /cm.

svn path=/trunk/; revision=26693
2007-05-11 06:24:00 +00:00
Alex Ionescu
59a8c8c5dc - Remove unusued, complex hive checking code from regfile.c.
- Implement CmpInitializeHive based on Cm Rewrite but keep code compatible with the current EREGISTRY_HIVE structure in the current Cm.
- Remove CmiCreateVolatileHive and CmiCreateTemp since they're unused.
- Implement CmpCreateRootNode based on CmRewrite and CmCreateRootNode in cmlib, CmpCopyName and CmpNameSize from Cm Rewrite and use them.
- Use CmpInitializeHive + CmpCreateRootNode for the master volatile hive.

svn path=/trunk/; revision=26692
2007-05-11 04:59:38 +00:00
Alex Ionescu
107f14ad9f - CmpInitializeMachineDependentConfiguration: Finish up by using the same code as for System BIOS Version detection for the Video BIOS Detection. This routine should be pretty much finished now since all required hardware keys are created.
svn path=/trunk/; revision=26686
2007-05-10 21:40:39 +00:00
Alex Ionescu
65a66f73b8 - Add code to detect and save the BIOS Version string to the registry. We use the same detection patterns as Windows for now (Ver, Rev, Rel, v0-9).
- All BIOS Version strings are scanned and saved in a REG_MULTI_SZ key, as on Windows. QEMU BIOS Version String is correctly detected as the CVS/SVN $ID tag, which is good enough.

svn path=/trunk/; revision=26685
2007-05-10 21:36:24 +00:00
Alex Ionescu
0efeac48a8 - Remove CPU Detection code from FreeLDR (hwcpu.c) since our kernel properly does the same job now (and better).
- Remove ReactOS hacks from recent code due to FreeLDR, since it doesn't conflict with us anymore.

svn path=/trunk/; revision=26684
2007-05-10 20:51:50 +00:00
Alex Ionescu
3fcfcbce89 - CmpInitializeMachineDependentConfiguration: Use the same strategy as for the BIOS to get the Video ROM BIOS Date as well and save it into VideoBiosDate.
svn path=/trunk/; revision=26683
2007-05-10 20:43:40 +00:00
Alex Ionescu
3511920f89 - Create \Device\PhysicalMemory in Phase 1 instead of Phase 2, since CmInit needs it.
- CmpInitializeMachineDependentConfiguration: Map the IVT to detect the Video ROM Area and save it (corretly detected on QEMU at 0xC000). Then map the BIOS at 0xF0000 and scan it for the newest BIOS Date.
- Save detected BIOS date in the System Node's SystemBiosVersion, and save BIOS-default date (11 bytes before the ROM end) in Control\BIOSINFO.

svn path=/trunk/; revision=26682
2007-05-10 20:36:15 +00:00
Alex Ionescu
b5dc8db0ee - CmpInitializeMachineDependentConfiguration: Add Processor Name and Vendor ID as well (the former doesnt' work on QEMU because QEMU desn't support CPUID-EX, but on VMWare, I get: Dual Core AMD Opteron(tm) Processor 185.
svn path=/trunk/; revision=26681
2007-05-10 19:06:52 +00:00
Alex Ionescu
82bcb975e4 - CmpInitializeMachineDependentConfiguration: Write FeatureSet, MHZ and Update Signature to registry CentralProcessor node.
svn path=/trunk/; revision=26680
2007-05-10 18:11:11 +00:00
Alex Ionescu
bd87454d22 - Make CmpInitializeMachineDependentConfiguration create the FloatingPointProcessor hardware key/ARC node.
svn path=/trunk/; revision=26678
2007-05-10 18:04:41 +00:00
Alex Ionescu
0d78fd8f3d - Add more code to CmpInitializeMachineDependentConfiguration to create the BIOSINFO key and to start working on the CentralProcessor key (which, in ReactOS, FreeLDR creates when it shouldn't). Creates the basic CentralProcessor nodes for now.
- Add cmconfig.c and implement a helper routine that converts from ARC CONFIGURATION_COMPONENT_DATA to a Hardware Description entry and resource descriptor.
- Fix outdated _CONFIGURATION_TYPE definition in our DDK.

svn path=/trunk/; revision=26677
2007-05-10 17:52:09 +00:00
Alex Ionescu
78b58e34df - Add i386/cmhardwr.c and start implementing CmpInitializeMachineDependentConfiguration. Currently it only detects and writes the key for PAE.
- Call the API from CmInitSystem1.

svn path=/trunk/; revision=26675
2007-05-10 16:42:24 +00:00
Dmitry Gorbachev
5b30480967 Fix a bug in ScServiceMainStub(), add more checks.
svn path=/trunk/; revision=26672
2007-05-10 10:13:01 +00:00
Alex Ionescu
107cb5719e - Remove/deprecate some certain chunks of Cm which are not critical to booting and not even to applications (such as NtSaveKey, which didn't even have NtRestoreKey) and mark them as unimplemented functions.
- This doesn't do much but clean up some of our code to make it easier to see what the critical parts are and reduce bug surface exposure.
- Move and slightly reformat (without touching any of the actual code) registry callback/notification code to cmhook.c.

svn path=/trunk/; revision=26671
2007-05-10 09:14:15 +00:00
Alex Ionescu
e72d90dbc8 - Move CmpSetSystemValues to cmsysini.c
- Remove all NTLDR-style profile code from cmsysini.c, since ReactOS doesn't support it, and there's no use lugging that code around.
- Rename CmpCreateCurrentControlSetLink to CmpCreateControlSet.
- Get rid of CmiCreateCuttenControlSetLink and use the new version instead, which also supports setting the right current Hardware Profile ID.

svn path=/trunk/; revision=26670
2007-05-10 01:48:54 +00:00
Alex Ionescu
0285323c9d - Refactor the registry initialization code to be somewhat closer to the Cm rewrite branch.
- No actual code/implementation changes per-se, simply moved code into new routines, deleted old routines, renamed some routines and added more error-checking.
- Also performed registry initialization in an order more analogous to Windows.
- Added cmsysini.c from the branch, but it's not used at the moment.

svn path=/trunk/; revision=26669
2007-05-10 00:02:04 +00:00
Alex Ionescu
83bd3b5fc0 - Fix crash in Install CD introduced in 26666, with a ludicrious hack for FreeLDR
svn path=/trunk/; revision=26668
2007-05-09 21:15:52 +00:00
Aleksey Bragin
959a4b6f1e - Add error messages to prevent silent failing, no functionality change.
svn path=/trunk/; revision=26667
2007-05-09 20:52:08 +00:00
Alex Ionescu
33ea79c7fe - Implement CmGetSystemControlValues and all related low-level Cm functionality required to select the proper control set and read all the kernel variables during Phase 0 initialization. We can now read time-zone data, version, suite, language IDs and other important kernel variables in the lowest-level boot phase.
- New code uses cmlib from Filip Navara without any modification, and is fully compatible with reading Windows hives as well except XP's "Big value cells" (cells with > 2GB data) which aren't supported.
- Create /config directory where the new Configuration Manager code lies.

svn path=/trunk/; revision=26666
2007-05-09 18:30:21 +00:00
Alex Ionescu
5aaa1671e7 1) Update KiPcToFileHeader to work in early-boot stage by looking through the KeLoaderBlock instead.
2) Make KeRosDumpStrackFrames use KiPcToFileHeader instead of KiRosPrintAddress. The end result is the same but we don't recursively bugcheck anymore during Phase 0 bugchecks :)

svn path=/trunk/; revision=26665
2007-05-09 16:15:22 +00:00
Aleksey Bragin
d80647e124 - Add km regtests to build.
- Add a very simple memory monitor (to be improved later).

svn path=/trunk/; revision=26664
2007-05-09 11:55:19 +00:00
Aleksey Bragin
7ba021c0ca - Move tests from trunk.
svn path=/trunk/; revision=26663
2007-05-09 11:18:34 +00:00
Aleksey Bragin
93510b1a0f - Delete /drivers dir (it's gonna be created by svn copy commit)
svn path=/trunk/; revision=26662
2007-05-09 11:17:46 +00:00
Aleksey Bragin
8088e369f7 - Create a place for kernel-mode regression testing drivers.
svn path=/trunk/; revision=26661
2007-05-09 11:13:20 +00:00
Alex Ionescu
2f0daf6186 - Fix line endings.
svn path=/trunk/; revision=26660
2007-05-09 04:55:24 +00:00
Alex Ionescu
b4e9b56b39 - Added more improvements/fixes to the Executive Initialization code:
- We now print out error messages at each SESSIONX_INITIALIZATION_FAILURE directly on the screen.
  - Build CmNtCSDVersion to include SP1 and our SVN Revision number.
  - Build CmNtSpBuildNumber with the actual SP1 build number.
  - Detect Headless Terminal usage.
  - Build and create the CmVersionString.
  - Display a startup banner similar to Windows based on the CmVersionString, also indicating the SVN revision.
  - Fix some bugs in the timezone code.
  - Display a second startup banner like Windows's, displaying memory and CPU counts.
  - Add calls to initialize RANGE_LISTs, the Prefetecher, XIP Support and Phase 2 Executive Initialization.
  - Parse the command line to detect /SAFEBOOT: switch and which type of safe mode boot this is.
  - Display an optional third startup banner showing which safemode boot type this is.
  - Detect /BOOTLOG switch and display a fourth startup banner if it's enabled, but don't initialize boot logging yet.
  - Don't allow driver loading to push the progress bar beyond 75%.
  - Write safe-boot type to registry, detect AlternateShell mode and validate that one is configured.
  - Write MININT key to registry if booting in WinPE (LiveCD) mode.
  - Don't leak smss environment and parameters anymore.
  - Cleanup and reformat some code, use VER_ constants instead of magic numbers.

svn path=/trunk/; revision=26659
2007-05-09 00:44:45 +00:00
Alex Ionescu
0724e3d18e - Add CcPf (Cache Manager PreFetcher) structures and add a stub function to initailize the global settings for the pre-fetcher (only a lock and list for now).
- Add hdlsterm.c for Headless Terminal Support and a stub function to detect if anyone is trying to do this.
- Add xipdisp.c for eXecute-In-Place Support and add a stub function to detect if anyone is trying this, as well as get various supported command line settings.
- Try to find XIP Memory Descriptor if one was given.
- Get Power Event callback from Win32k in PsEstablishWin32Callouts.
- Notifiy System Time Change callback with PoNotifySystemTimeSet.
- Add safemode and bootlog Message IDs.

svn path=/trunk/; revision=26658
2007-05-09 00:29:38 +00:00
Alex Ionescu
da6c47f5f8 - Stripped down ntstrafe.h routines required for a future patch, and for basic functionality. Do not support any flags yet (and will ASSERT if attempt is made): RtlStringCbCopyA, RtlStringCbCatExA, RtlStringCbCopyExA, RtlStringCbPrintfExA, RtlStringCbPrintfA.
svn path=/trunk/; revision=26657
2007-05-09 00:06:18 +00:00
Alex Ionescu
f0b1b0e858 - Buildno now generates a KERNEL_VERSION_BUILD_HEX ULONG containing the SVN revision.
svn path=/trunk/; revision=26656
2007-05-08 23:00:35 +00:00
Eric Kohl
0ab223d167 Save user cursor schemes using the environment variables SystemRoot, USERPROFILE or ProgramFiles in the cursor paths instead of absolute paths.
svn path=/trunk/; revision=26655
2007-05-08 22:13:18 +00:00
Alex Ionescu
651efa4a73 - Fix broken definition of IsBoostAllowed which would cause ERESOURCE boosts to be applied backwards.
- Use cleaner, inlined definitions for ExAcquire/ReleaseResourceLock.
- Convert ERESOURCE code to use a Queued In-Stack Spinlock instead of a regular spinlock.
- Force usage of the spinlock instead of cli/sti for DBG builds, and enable strict sanity checks.
- Fix incorrect check in ExpCheckForApcsDisabled.
- Properly handle memory starvation in the contended path.
- Make sure to allocate a semaphore if needed during ExAcquireSharedStarveExclusive.
- Fix multiple bugs in ExIsResourceAcquiredSharedLite.
- ExReleaseResourceForThreadLite didn't always properly set the ResourceOwnedExclusive flag, and didn't validate ownership.
- ExSetResourceOwnerPointer wouldn't set the owner if there wasn't one already.

svn path=/trunk/; revision=26654
2007-05-08 21:35:10 +00:00
Aleksey Bragin
b5d4ee9e39 - Fix unshielded "return"s inside PSEH blocks, in the kernel.
- Fix formatting of a couple of lines.

svn path=/trunk/; revision=26653
2007-05-08 10:32:16 +00:00
Aleksey Bragin
182dd09c91 - Fix an unshielded "return" inside a PSEH block.
svn path=/trunk/; revision=26652
2007-05-08 09:01:39 +00:00
Timo Kreuzer
64b29c8149 - fix resources
svn path=/trunk/; revision=26651
2007-05-07 09:27:43 +00:00
Hervé Poussineau
deb7fbe415 Fix memory corruption in freeldr
svn path=/trunk/; revision=26650
2007-05-06 07:35:57 +00:00
Eric Kohl
6786d8e6a9 The current cursor scheme will now be loaded correctly and the scheme list will display the correct name of the cursor scheme.
svn path=/trunk/; revision=26649
2007-05-06 02:06:30 +00:00
Eric Kohl
e0364c78da Remove outdated email addresses.
svn path=/trunk/; revision=26648
2007-05-05 11:32:25 +00:00
Dmitry Gorbachev
5cfa655cbc Update Polish translation (bug #2233).
svn path=/trunk/; revision=26647
2007-05-05 08:16:59 +00:00
Martin Fuchs
231dcbf43a update to XMLStorage version 1.2
svn path=/trunk/; revision=26646
2007-05-05 07:30:20 +00:00
Dmitry Gorbachev
841a6e2567 Fix a bug in stub generation code. There are some other lesser bugs.
svn path=/trunk/; revision=26645
2007-05-05 03:48:20 +00:00
Dmitry Gorbachev
2210b29b99 Chinese translation (bug report #2221).
svn path=/trunk/; revision=26644
2007-05-04 23:31:08 +00:00
Dmitry Gorbachev
4559868d74 Chinese translation by Zhangbing (bug #2222).
svn path=/trunk/; revision=26643
2007-05-04 23:30:48 +00:00
Dmitry Gorbachev
231b59a486 Fix a typo in translation. Bug report #2233.
svn path=/trunk/; revision=26642
2007-05-04 23:27:54 +00:00
Dmitry Gorbachev
a11eecdb83 Update Polish translation. Patch by Lech Groblewicz
<xrogers'at'gmail'dot'com> and Olaf Siejka. Bug #2233.

svn path=/trunk/; revision=26641
2007-05-04 23:27:28 +00:00
Dmitry Gorbachev
2408771fff Patch for reformatting the cabman code, Colin Finck, see bug report #2234.
svn path=/trunk/; revision=26640
2007-05-04 22:21:55 +00:00
Eric Kohl
0a981d42cf Removed my name because these files no longer contain any code written by me.
svn path=/trunk/; revision=26639
2007-05-04 22:15:13 +00:00
Eric Kohl
21cced5dc3 Removed my name because I did not write this file!
svn path=/trunk/; revision=26638
2007-05-04 21:59:25 +00:00
Sylvain Petreolle
103b32e6e4 slash is alive !
-#include "..\gditest.h"
+#include "../gditest.h"


svn path=/trunk/; revision=26637
2007-05-04 21:23:42 +00:00
Aleksey Bragin
34aac7b904 - Add fundamental VCB structure, and function to initialize it.
- Add common headers to all xCB structures.
- All development is being done according to Rajeev Nagar's book and some parts are inspired by its accompanying FSD sample.

svn path=/trunk/; revision=26636
2007-05-04 18:34:48 +00:00
Aleksey Bragin
e45d903111 - Fixes and changes to NPFS debug printing system, so it actually works now.
svn path=/trunk/; revision=26635
2007-05-04 13:40:14 +00:00
Aleksey Bragin
57ba31d95a - Add function stubs
- Add simple dbgprinting mechanism for easier debugging.

svn path=/trunk/; revision=26634
2007-05-04 11:50:41 +00:00
Hervé Poussineau
86d213a22d Set a valid (but unknown) last write time to registry keys, instead of a random one
svn path=/trunk/; revision=26633
2007-05-04 11:00:14 +00:00
Hervé Poussineau
965eebb584 Don't ignore results of IRP_MN_FILTER_RESOURCE_REQUIREMENTS
svn path=/trunk/; revision=26632
2007-05-04 10:49:53 +00:00
Aleksey Bragin
1e04962f7e - Prepare a playground for a new NPFS driver implementation.
svn path=/trunk/; revision=26631
2007-05-04 10:15:00 +00:00
Hervé Poussineau
defa5fee07 Joliet supports directory names with extension.
svn path=/trunk/; revision=26630
2007-05-03 20:41:46 +00:00
Dmitry Gorbachev
9269358c6f Do not call DefFrameProc() for not yet created MDI client window.
svn path=/trunk/; revision=26629
2007-05-03 19:06:55 +00:00
Christoph von Wittich
d229077222 "fix" my email address :P
svn path=/trunk/; revision=26628
2007-05-03 18:43:15 +00:00
Magnus Olsen
0acfc6fc7b Clean, writen by casper in frist place in C++ and are not complete and full with unimplement stuff, see the text file.
svn path=/trunk/; revision=26627
2007-05-03 18:32:54 +00:00
Dmitry Gorbachev
761de0042d - Fix a bug in "close all log files" code.
- Replace custom list functions by RTL ones.
- Fix indentation.

svn path=/trunk/; revision=26626
2007-05-03 07:47:12 +00:00
Aleksey Bragin
80b680b6ae - Delete cromwell-based usb drivers since they don't work with modern reactos kernel.
- Remove usbhub from the build.

svn path=/trunk/; revision=26625
2007-05-02 11:37:29 +00:00
Dmitry Gorbachev
cff3ed531e Use _SEH_YIELD().
svn path=/trunk/; revision=26624
2007-05-02 08:21:57 +00:00
Dmitry Gorbachev
12a24bb9e3 Do not crash on broken pipe.
svn path=/trunk/; revision=26623
2007-05-02 03:06:18 +00:00
Timo Kreuzer
45986f803a sorry another one creeped in ;-)
svn path=/trunk/; revision=26622
2007-05-01 22:28:25 +00:00
Timo Kreuzer
cef53d8369 sorry accidentally committed this file
svn path=/trunk/; revision=26621
2007-05-01 22:20:15 +00:00
Timo Kreuzer
a2a4bb1e51 update gdi32_test
- fix #line ...
- add more tests

svn path=/trunk/; revision=26620
2007-05-01 22:08:34 +00:00
Timo Kreuzer
85be5ff46c Extpen implementation:
- give GDI_OBJECT_TYPE_EXTPEN a sizeof(GDIBRUSHOBJ) and EXTPEN_Cleanup function in GDI_OBJ_INFO table
- define PENOBJ_AllocExtPen, PENOBJ_FreeExtPen, PENOBJ_LockExtPen needed by IntGdiExtCreatePen
- create A Tag for extpen for tagged pool that holds style dwords
- implement IntGdiExtCreatePen
- implement EXTPEN_Cleanup, freeing the stylebuffer
- implement NtGdiExtCreatePen
- make CreateStockObjects, NtGdiCreatePen(Indirect) call IntGdiExtCreatePen
- remove IntGdiCreatePenIndirect

svn path=/trunk/; revision=26619
2007-05-01 22:04:47 +00:00
Dmitry Gorbachev
5dfe58e2d0 Update Italian keyboard layout (bug #1963).
svn path=/trunk/; revision=26618
2007-05-01 21:35:14 +00:00
Dmitry Gorbachev
3d4456f568 Use _SEH_YIELD() to return from PSEH block. Thanks to Alex Ionescu.
svn path=/trunk/; revision=26617
2007-05-01 19:07:11 +00:00
Ged Murphy
983ad60182 quick hack to make sysdm.cpl open our standalone device manager
it's a democracy : http://www.reactos.org/forum/viewtopic.php?t=3835

svn path=/trunk/; revision=26616
2007-05-01 16:25:26 +00:00
Eric Kohl
219c4c8eb7 Fix indentation, no code changes.
svn path=/trunk/; revision=26615
2007-05-01 13:55:11 +00:00
Alex Ionescu
4e78c81b3c - OMG I wanna be awesome too!
svn path=/trunk/; revision=26614
2007-05-01 13:54:29 +00:00
Ged Murphy
eb0ae252ec FireBall, trend setter
svn path=/trunk/; revision=26613
2007-05-01 13:49:10 +00:00
Aleksey Bragin
48cc5fcfe7 Fix my email address.
svn path=/trunk/; revision=26612
2007-05-01 13:44:55 +00:00
Timo Kreuzer
acf05c5f44 remove from build, won't compile
svn path=/trunk/; revision=26611
2007-05-01 13:01:10 +00:00
Sebastian Gasiorek
adba938cb6 change default font to DeJavu Sans (patch by preston)
fixes bug #2183

svn path=/trunk/; revision=26610
2007-05-01 10:07:52 +00:00
Sebastian Gasiorek
e86b6ad881 implement polish keyboard layout
svn path=/trunk/; revision=26609
2007-05-01 09:39:57 +00:00
Dmitry Gorbachev
0a0395bfc8 - Fix infinite loop.
- Add debug msg.

svn path=/trunk/; revision=26608
2007-05-01 08:52:59 +00:00
Ged Murphy
583ae73f0f add hh to the build
svn path=/trunk/; revision=26603
2007-04-30 22:41:09 +00:00
Ged Murphy
171d1fe1a6 a couple of small fixes to the marlett font
svn path=/trunk/; revision=26602
2007-04-30 22:39:32 +00:00
Ged Murphy
2d954aec2f fix timezone cities
svn path=/trunk/; revision=26601
2007-04-30 22:25:56 +00:00
Ged Murphy
639abb18c5 don't risk a leak. precompify header
svn path=/trunk/; revision=26600
2007-04-30 22:25:26 +00:00
James Tabor
66e137da1f Fix build. Sdk reports something about; needed for win95 functionality
svn path=/trunk/; revision=26599
2007-04-30 19:24:46 +00:00
Ged Murphy
69bd4cc6a6 - correctly get local NTP server info
- fix some bugs in the socket code

svn path=/trunk/; revision=26598
2007-04-30 19:05:04 +00:00
James Tabor
710ef6922b Moved NtGdiGetTextCharset to NtGdiGetCharSet.
svn path=/trunk/; revision=26597
2007-04-30 18:58:22 +00:00
James Tabor
ab9029ca76 Fix build.
svn path=/trunk/; revision=26596
2007-04-30 17:31:55 +00:00
James Tabor
c0289e7d9d Fix name for GdiFlush.
svn path=/trunk/; revision=26595
2007-04-30 17:20:56 +00:00
James Tabor
817d5ed49b Plug in locale GetStockObject.
svn path=/trunk/; revision=26594
2007-04-30 16:15:13 +00:00
James Tabor
4bb33d9f46 Win32k/Gdi32
- Remove NtGdiCreateFont/Indirect, and NtGdiGetOutlineTextMetrics.

svn path=/trunk/; revision=26593
2007-04-30 15:33:35 +00:00
Hervé Poussineau
6e7167b022 Rename msacm directory to msacm32
svn path=/trunk/; revision=26592
2007-04-30 15:25:51 +00:00
James Tabor
7a81790bac Win32k/Gdi32
- Remove NtGdiCreateD/IC, it served us well.
- Add a note to NtGdiCreateEnhMetaFile.

svn path=/trunk/; revision=26591
2007-04-30 14:33:10 +00:00
Christoph von Wittich
aeb5637da4 add a FORCE_CPP condition to the C::B backend - sometimes the g++ compiler finds some errors in the C code which cc doesn't
svn path=/trunk/; revision=26590
2007-04-30 12:01:14 +00:00
Eric Kohl
9497aaca2a Remove "Properties for" from caption.
svn path=/trunk/; revision=26589
2007-04-30 11:22:07 +00:00
Timo Kreuzer
6f233933c1 - Add Alex' test for GetObject (word alignment check)
- change TEST macro a little for better output

svn path=/trunk/; revision=26588
2007-04-30 10:44:18 +00:00
Timo Kreuzer
1b553a5e55 Sorry Alex, my fault. NtGdiExtGetObjectW *does* need a WORD alignment.
svn path=/trunk/; revision=26587
2007-04-30 09:33:11 +00:00
Ged Murphy
4e7353cb79 move rbuild project back to 7.1
svn path=/trunk/; revision=26586
2007-04-30 08:58:53 +00:00
Dmitry Gorbachev
5072c761aa Add a stub for TraceMessage.
svn path=/trunk/; revision=26585
2007-04-30 08:42:04 +00:00
Dmitry Gorbachev
9b13eaa0c0 Add RtlDllShutdownInProgress().
svn path=/trunk/; revision=26584
2007-04-30 08:41:42 +00:00
Sylvain Petreolle
8486880a27 forgot this file
svn path=/trunk/; revision=26583
2007-04-29 21:32:27 +00:00
Sylvain Petreolle
ccc433f9a2 translate start menu & desktop links
display 2nd stage install in system language
original patch by Pierre Schweitzer

svn path=/trunk/; revision=26582
2007-04-29 21:29:41 +00:00
Eric Kohl
b290654c00 - Replace CHECKBOXes by AUTOCHECKBOXes.
- Add a sticky keys configuration dialog (not finished yet).
- Remove "Properties for" from the title.
- Remove the property sheet callback function.

svn path=/trunk/; revision=26581
2007-04-29 14:53:57 +00:00
Eric Kohl
84ab282bdf - Remove "Properties for" from title.
- Fix page order.
- Disable first year edittext control on the "Date" page.
- Add missing (english) dialogs to the polish resource file.
- Fix coding style.

svn path=/trunk/; revision=26580
2007-04-29 13:45:10 +00:00
Thomas Bluemel
0c3487a948 Fix typo. Thanks to PeterK
See issue #2208 for more details.

svn path=/trunk/; revision=26577
2007-04-29 08:43:49 +00:00
Dmitry Gorbachev
fbdc420d95 Terminate hWnd list.
svn path=/trunk/; revision=26576
2007-04-29 08:20:39 +00:00
James Tabor
26e3f1e305 ReactOS is now using NtGdiOpenDCW for CreateD*IC. Tested with Qemu and real hardware.
svn path=/trunk/; revision=26575
2007-04-29 06:50:36 +00:00
James Tabor
d05f5dec2f Implement NtGdiOpenDCW.
svn path=/trunk/; revision=26570
2007-04-29 02:02:17 +00:00
Timo Kreuzer
a0d7f57718 gdi32_test:
a lot of testcases especially for GetObject

svn path=/trunk/; revision=26569
2007-04-29 01:43:41 +00:00
James Tabor
ec3552fddf Now we can turn on GdiReleaseDC.
svn path=/trunk/; revision=26568
2007-04-28 23:46:30 +00:00
James Tabor
0ad5a2118e Fix compile.
svn path=/trunk/; revision=26567
2007-04-28 23:42:38 +00:00
James Tabor
d51049e8a2 Allow for the deallocation of the local DC structure once the new create I and DC are ready.
svn path=/trunk/; revision=26566
2007-04-28 23:40:51 +00:00
Timo Kreuzer
9d118cb21a BRUSH_GetObject:
- return sizeof(LOBRUSH) not BRUSHOBJ
- don't return 0 on too small usermode buffer
NtGdiExtGetObjectW:
- remove unnecessary hacks
- no need to align usermode buffer to words
- add ENUMLOGFONTEXDVW, wich should be the biggest structure needed
more fixes for fonts and extpens needed in the corresponding subfunctions, but all of my other tests pass now.

svn path=/trunk/; revision=26565
2007-04-28 21:53:06 +00:00
Timo Kreuzer
8d57329f09 GetNonFontObject:
- OBJECTTYPE_META_DC does not SetLastError()
- beautify the code a little

svn path=/trunk/; revision=26564
2007-04-28 21:45:18 +00:00
Dmitry Gorbachev
2dd2c5e5b5 Undo r26555 change as suggested by Aleksey & Thomas.
svn path=/trunk/; revision=26563
2007-04-28 21:23:44 +00:00
Ged Murphy
50ff73801f update wine doc with hhctrl info
svn path=/trunk/; revision=26562
2007-04-28 11:50:21 +00:00
Ged Murphy
5d395b8ba1 add sensapi.dll to bootcd
svn path=/trunk/; revision=26561
2007-04-28 11:47:48 +00:00
Timo Kreuzer
9c609558ab wintests build fix:
- comment out type redefinitions

svn path=/trunk/; revision=26560
2007-04-28 09:02:15 +00:00
Timo Kreuzer
bccf77e454 winetsts build fix
- add needed #includes to test.h
- add windef.h including psdk/windef.h

svn path=/trunk/; revision=26559
2007-04-28 08:58:18 +00:00
James Tabor
495edaf0e6 Fix build.
svn path=/trunk/; revision=26558
2007-04-28 07:05:13 +00:00
James Tabor
57b3bc520a Fix indexing mistake, added new LDC structure items. New defines for LDC and Xfroms. Now the Dc_Attr works. Read and write to it in user space.
svn path=/trunk/; revision=26557
2007-04-28 06:43:44 +00:00
Dmitry Gorbachev
eaa232fee7 Chinese translation by Zhangbing (bug #2219).
svn path=/trunk/; revision=26556
2007-04-28 06:02:39 +00:00
Dmitry Gorbachev
2d98eea8ca Patch by Sbs (sbarthes [at] gmail [dot] com). Bugzilla report #2137.
svn path=/trunk/; revision=26555
2007-04-28 06:02:22 +00:00
Dmitry Gorbachev
d36cd41e29 - Use hack to prevent Explorer crash.
svn path=/trunk/; revision=26554
2007-04-28 04:10:33 +00:00
Dmitry Gorbachev
4b61211e6d - Do not write beyond the buffer.
svn path=/trunk/; revision=26553
2007-04-28 04:10:19 +00:00
Dmitry Gorbachev
a29c27d211 - Enlarge window name buffer.
- Do not free Menu Item Info many times.
- Remove r26508 hack.

svn path=/trunk/; revision=26552
2007-04-28 04:09:56 +00:00
Dmitry Gorbachev
8373c171aa - Do not free statically allocated structure.
svn path=/trunk/; revision=26551
2007-04-28 04:09:31 +00:00
Eric Kohl
7289c6023a - Enable and disable the "Long" and "Short" labels along with the mouse trails trackbar.
- Use BS_MULILINE and BS_TOP button styles for checkboxes that display long texts.
- Indent the edittext control on the wheel page.

svn path=/trunk/; revision=26550
2007-04-28 00:20:41 +00:00
Ged Murphy
73b74596f8 add hhctrl.ocx to bootcd
svn path=/trunk/; revision=26549
2007-04-27 23:06:43 +00:00
Ged Murphy
2292629085 - fix hhctrl.ocx and add to the build
- remove autogenerated itss.h, it was committed accidentally

svn path=/trunk/; revision=26548
2007-04-27 22:27:46 +00:00
Sylvain Petreolle
2d4262cf8c fix msi winetest
svn path=/trunk/; revision=26547
2007-04-27 21:31:07 +00:00
Magnus Olsen
039e4a7b2e patch by hto.
Fixing the crash in win32k after user-mode callback
 Some forget use seh. all user mode param shall always be using seh. 
See issue #2212 for more details.

svn path=/trunk/; revision=26546
2007-04-27 19:11:22 +00:00
Hervé Poussineau
253fa4b7a0 Fix mkdir command, if compiled in UNICODE. Patch by Pierre Schweitzer (heis_spiter at hotmail dot com)
See issue #2216 for more details.

svn path=/trunk/; revision=26545
2007-04-27 17:40:50 +00:00
James Tabor
07a4c5d550 Fix build, Error conflict.
svn path=/trunk/; revision=26544
2007-04-27 16:31:55 +00:00
Ged Murphy
d74b0da468 add hhctrl.ocx from Wine.
unfinished at the moment, so not included in the build yet.

svn path=/trunk/; revision=26543
2007-04-27 16:07:21 +00:00
James Tabor
622eab9dfa Move CreateFontIndirectEx from stubs to font.c.
svn path=/trunk/; revision=26542
2007-04-27 15:26:21 +00:00
Ged Murphy
66c85e2957 - add support for .ocx files to rbuild
- update project to VS2005

svn path=/trunk/; revision=26541
2007-04-27 15:18:34 +00:00
Eric Kohl
d7d69d0175 Add code that applies the currently selected cursor scheme.
svn path=/trunk/; revision=26540
2007-04-27 13:54:19 +00:00
Eric Kohl
aa12c0e3e3 Define missing SPI_SETCURSORS.
svn path=/trunk/; revision=26539
2007-04-27 12:56:29 +00:00
The Wine Synchronizer
8348169a15 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26538
2007-04-27 12:00:08 +00:00
The Wine Synchronizer
4d550168bb Autosyncing with Wine HEAD
svn path=/trunk/; revision=26537
2007-04-27 11:59:52 +00:00
Ged Murphy
d0ec5bba5d export stubbed LsaEnumerateTrustedDomains to get dameware loading
svn path=/trunk/; revision=26536
2007-04-27 11:54:12 +00:00
Hervé Poussineau
691d28d40a Add missing WINAPI in function prototypes
svn path=/trunk/; revision=26535
2007-04-27 11:51:50 +00:00
Ged Murphy
453ad10eac forgot to svn add the rbuild file
svn path=/trunk/; revision=26534
2007-04-27 09:39:00 +00:00
Ged Murphy
1324d35870 add wtsapi32.dll from Wine
svn path=/trunk/; revision=26533
2007-04-27 09:32:47 +00:00
Ged Murphy
dbcf03ede1 - add cryptnet.dll from wine (stub)
- relocate a few dlls

svn path=/trunk/; revision=26532
2007-04-27 09:05:43 +00:00
James Tabor
3b4b572193 Win32/Gdi32:
- Implement NtGdiHfontCreate, removed NtGdiCreateFont and NtGdiCreateFontIndirect from service. Changed name to NtGdiGetOutlineTextMetricsInternalW.
- Updated TEXTOBJ structure changing LOGFONTW to ENUMLOGFONTEXDVW.
- Update FontGetObject plus the rest of text.c in win32k.
- Added CreateFontIndirectExA/W to psdk/wingdi.h, it was missing.
Tested with Qemu.

svn path=/trunk/; revision=26530
2007-04-27 05:42:25 +00:00
Dmitry Gorbachev
9e76cf5867 Update French translation of Desk.cpl (bug #2209).
svn path=/trunk/; revision=26529
2007-04-27 02:45:39 +00:00
Dmitry Gorbachev
9438750f06 - Update French translation of Explorer (bug #2209).
- Fix minor bug in USetup.

svn path=/trunk/; revision=26528
2007-04-27 02:45:12 +00:00
Eric Kohl
0cb9c0bdde Remove quotation marks from the scheme data string to make main.cpl work on WinXP.
svn path=/trunk/; revision=26527
2007-04-26 23:34:48 +00:00
James Tabor
67e078d353 Tooling up for big changes. GetOutlineTextMetricsW, minnor update.
svn path=/trunk/; revision=26526
2007-04-26 17:58:57 +00:00
James Tabor
db6a940431 Dc allocation of DC_ATTR. If'ed out for now.
svn path=/trunk/; revision=26525
2007-04-26 16:28:50 +00:00
Eric Kohl
f2e37886f7 Add a new cursor scheme to the scheme list and select it after it has been saved.
svn path=/trunk/; revision=26524
2007-04-26 15:42:12 +00:00
James Tabor
66b0c897a2 Pluggin NtGdiArcInternal and NtGdiPolyPolyDraw
svn path=/trunk/; revision=26523
2007-04-26 14:53:36 +00:00
James Tabor
78d8963001 Start NtGdiPolyPolyDraw stub.
svn path=/trunk/; revision=26522
2007-04-26 14:42:22 +00:00
Hervé Poussineau
89546243af Add some missing const
svn path=/trunk/; revision=26521
2007-04-26 14:02:59 +00:00
The Wine Synchronizer
9cea416d3b Autosyncing with Wine HEAD
svn path=/trunk/; revision=26520
2007-04-26 13:38:13 +00:00
The Wine Synchronizer
c6e78e42c8 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26519
2007-04-26 13:37:57 +00:00
Hervé Poussineau
68e79fb538 Update some headers
svn path=/trunk/; revision=26518
2007-04-26 13:37:38 +00:00
The Wine Synchronizer
a841c3b409 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26517
2007-04-26 11:37:49 +00:00
Hervé Poussineau
14c4779a12 Add clusapi.dll to bootcd, and set it as autosynced in README.WINE
svn path=/trunk/; revision=26516
2007-04-26 11:36:30 +00:00
Ged Murphy
a1d727df3c add clusapi base address
svn path=/trunk/; revision=26515
2007-04-26 11:32:51 +00:00
Ged Murphy
cdd37d19ea - add a minimal clusapi.h. part 2 of clusapi
- this header will need a lot more work.

svn path=/trunk/; revision=26514
2007-04-26 11:32:13 +00:00
Ged Murphy
93d1dcecc4 add stubed out clusapi.dll from Wine. part 1 of 3
svn path=/trunk/; revision=26513
2007-04-26 11:28:30 +00:00
Eric Kohl
638bc65d33 - Ensure that cursor schemes can be loaded from an unmodified Windows XP. The users "Schemes" key does not exist in this case.
- Also use the KEY_QUERY_VALUE access right to open registry keys.

svn path=/trunk/; revision=26512
2007-04-26 08:28:23 +00:00
James Tabor
25e902187c Update FontGetObject, point out required modifications to support ENUMLOGFONTEXDVW for font objects.
svn path=/trunk/; revision=26511
2007-04-26 04:34:46 +00:00
James Tabor
cd5a11a313 Apply Alex patch to dc.c NtGdiExtGetObject.
svn path=/trunk/; revision=26510
2007-04-26 03:25:42 +00:00
James Tabor
5610a60b73 GetObject:
Don't mix Apples and Oranges!
- Reorder A/W structure handling for ColorSpace. 
- Pointed out the default size to be sent to NtGdiExtGetObjectW.

svn path=/trunk/; revision=26509
2007-04-26 00:37:09 +00:00
Dmitry Gorbachev
42f1c2363d "Fix" explorer crash.
svn path=/trunk/; revision=26508
2007-04-25 23:54:45 +00:00
Timo Kreuzer
96d2b5521b - Fix calculation of handle
- Add Type column

svn path=/trunk/; revision=26507
2007-04-25 22:09:23 +00:00
Johannes Anderwald
b0c5d40269 - add missing rosapps targets
svn path=/trunk/; revision=26506
2007-04-25 21:48:56 +00:00
Eric Kohl
d11c32fcc8 - Implement the mouse speed and acceleration settings.
- Update mouse option settings only if they have changed.

svn path=/trunk/; revision=26505
2007-04-25 15:22:44 +00:00
Sylvain Petreolle
a887f1c7fa winver now lives in rosapps,
add it as optional

svn path=/trunk/; revision=26504
2007-04-25 11:03:10 +00:00
Hervé Poussineau
8232bcdfd7 Do not try to copy winver.exe on the bootcd, it was deleted in r26486
svn path=/trunk/; revision=26503
2007-04-25 08:38:23 +00:00
The Wine Synchronizer
1ef7375549 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26502
2007-04-25 08:22:35 +00:00
The Wine Synchronizer
dee6701b2c Autosyncing with Wine HEAD
svn path=/trunk/; revision=26501
2007-04-25 08:22:24 +00:00
The Wine Synchronizer
a8e8588392 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26500
2007-04-25 08:22:13 +00:00
The Wine Synchronizer
b0d8e30526 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26499
2007-04-25 08:21:59 +00:00
The Wine Synchronizer
9e6fba7c97 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26498
2007-04-25 08:21:43 +00:00
The Wine Synchronizer
dbf733fa0d Autosyncing with Wine HEAD
svn path=/trunk/; revision=26497
2007-04-25 08:21:30 +00:00
The Wine Synchronizer
2815d57683 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26496
2007-04-25 08:21:11 +00:00
The Wine Synchronizer
239c488ad1 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26495
2007-04-25 08:20:45 +00:00
The Wine Synchronizer
66c1fabe11 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26494
2007-04-25 08:20:24 +00:00
The Wine Synchronizer
a601165253 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26493
2007-04-25 08:20:01 +00:00
The Wine Synchronizer
200bde0d76 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26492
2007-04-25 08:19:27 +00:00
Hervé Poussineau
85ecb99534 Fix some prototypes, prepare Wine sync of msvfw32
svn path=/trunk/; revision=26491
2007-04-25 08:18:48 +00:00
Hervé Poussineau
f330a8a5db Oops, typo
svn path=/trunk/; revision=26490
2007-04-25 07:57:40 +00:00
Hervé Poussineau
4b1d44da29 Rename msvideo to msvfw32, part 2/2
svn path=/trunk/; revision=26489
2007-04-25 07:51:26 +00:00
Hervé Poussineau
0ec9407980 Rename msvideo to msvfw32, part 1/2
svn path=/trunk/; revision=26488
2007-04-25 07:49:34 +00:00
Johannes Anderwald
abf638636b - remove reference
svn path=/trunk/; revision=26487
2007-04-24 22:53:40 +00:00
Johannes Anderwald
3c9168b478 - this module should only live in rosapps
svn path=/trunk/; revision=26486
2007-04-24 22:53:01 +00:00
Timo Kreuzer
adf530ab36 - Fix BITMAP_GetObject()
- NtGdiExtGetObjectW: return 0 if IntGdiGetObject returns 0

svn path=/trunk/; revision=26485
2007-04-24 19:01:52 +00:00
Dmitry Gorbachev
8ce4938620 Simplified Chinese resources from Zhangbing (bug #2202).
svn path=/trunk/; revision=26484
2007-04-24 12:58:14 +00:00
Dmitry Gorbachev
f0f64567fa Undo r26482 change, waste more stack space.
svn path=/trunk/; revision=26483
2007-04-24 05:05:49 +00:00
Dmitry Gorbachev
1abb769823 Use allocation function instead of hack, save 12 bytes.
svn path=/trunk/; revision=26482
2007-04-23 22:06:34 +00:00
Johannes Anderwald
4684a592f2 - fix rbuild file for modules
- avtest
- downloader
- gettype
- green
- imagesoft
- ramdrv
- roshttpd
- screenshot
- winefile
- winver

svn path=/trunk/; revision=26481
2007-04-23 18:54:51 +00:00
Johannes Anderwald
65af5cdee8 - add a few spanish translations by Javier Remacha, remialdo@gmail.com
See issue #2110,2111 for more details.

svn path=/trunk/; revision=26480
2007-04-23 18:30:35 +00:00
Johannes Anderwald
59165de8b8 - fix sublang ids
svn path=/trunk/; revision=26479
2007-04-23 18:13:03 +00:00
Eric Kohl
4759ac6aa7 Use the IDs of the default cursors to load the default cursor scheme.
svn path=/trunk/; revision=26478
2007-04-23 18:10:14 +00:00
Johannes Anderwald
4ddb4966b9 - add a few spanish translations by Javier Remacha, remialdo@gmail.com (bug 2113) (bug 2114) (bug 2115) (bug 2116) (bug 2117)
svn path=/trunk/; revision=26477
2007-04-23 17:58:43 +00:00
Eric Kohl
e1363274d9 Add default cursors using IDs 100 to 116 because these IDs are used by Windows and the Mouse Control Panel Applet will use these IDs to show the default cursor scheme. The old cursor resources will be removed as soon as cursor schemes are properly loaded by user32.dll and win32k.sys.
svn path=/trunk/; revision=26476
2007-04-23 17:07:46 +00:00
Timo Kreuzer
1fb9668017 - fix indentation, no code change
svn path=/trunk/; revision=26475
2007-04-23 15:48:37 +00:00
Timo Kreuzer
a21f8262bf GetObject rewrite part 2 (NtGdiExtGetObjectW, ...)
- hanlde GDI_OBJECT_TYPE_EXTPEN
- PALETTEOBJ* -> PPALGDI
- fix return value of BITMAP_GetObject & BRUSH_GetObject
- implement PALETTE_GetObject
- handle cases where the buffer gets filled partly

svn path=/trunk/; revision=26474
2007-04-23 15:32:04 +00:00
Johannes Anderwald
a3c8ac67d5 - update polish translation by Groblewicz (xxrogers@users.sourceforge.net)
See issue #2194 for more details.

svn path=/trunk/; revision=26473
2007-04-23 15:22:38 +00:00
Timo Kreuzer
67962f297e GetObject rewrite part one (gdi32)
- use switch/case instead of if
- SetLastError() only in the correct cases
- add additional object types
- restructure the code
- change to @implemented
Before someone reverts everything: I have testcases. 129/132 tests pass now (this is without EXTLOGPEN tests)

svn path=/trunk/; revision=26472
2007-04-23 14:31:08 +00:00
Eric Kohl
99183c7f49 - Enable the "Apply" button when a change to the current cursor scheme has been made.
- Support any cursor size.

svn path=/trunk/; revision=26471
2007-04-23 09:21:13 +00:00
Dmitry Gorbachev
b6ec0ae75f Do not wait so long for drive reset.
svn path=/trunk/; revision=26470
2007-04-23 04:54:13 +00:00
Eric Kohl
b25aaa3d59 Use WS_EX_CLIENTEDGE to make the main windows look a little nicer.
svn path=/trunk/; revision=26469
2007-04-22 23:09:45 +00:00
Magnus Olsen
eb55201ce5 Fixing a crash, fixed so Setcoparative pass the test, still some werid bugs after I delete all code in ddraw.
anyone whant debuging this u are wellcome

svn path=/trunk/; revision=26468
2007-04-22 19:59:44 +00:00
Magnus Olsen
2189a28c87 adpabte wine SetCooperativeLevel to reactis ddraw. allot test need be done, I also took DDRAWI_DIRECTDRAW_LCL->dwObsolete1 as device windows.
memory leak can exists and some value I forget free as well. 

svn path=/trunk/; revision=26467
2007-04-22 18:15:31 +00:00
Eric Kohl
84234a9add Add message boxes to confirm the removal of user cursor schemes and the replacement of existing cursor schemes.
svn path=/trunk/; revision=26466
2007-04-22 17:55:11 +00:00
Eric Kohl
14dabcb80d Add missing strings.
svn path=/trunk/; revision=26465
2007-04-22 15:16:36 +00:00
Eric Kohl
d9543390bb - Add the ability to save cursor schemes.
- Open the browse dialog upon double-click on a cursor in the cursor list.
- Localize the filter string and the title string of the browse dialog.

svn path=/trunk/; revision=26464
2007-04-22 15:11:04 +00:00
Dmitry Gorbachev
9ff0fd619e Fix Polish translation (bug #2194).
svn path=/trunk/; revision=26463
2007-04-22 14:35:02 +00:00
Magnus Olsen
8c548667ca fixing a small bug in startup.c
svn path=/trunk/; revision=26462
2007-04-22 14:02:37 +00:00
Magnus Olsen
6a8616e1f8 This commit break ddraw.dll it does not working any longer can not execlute a program. it is part of cleanup of the startup process of dx interface.
svn path=/trunk/; revision=26461
2007-04-22 13:54:34 +00:00
James Tabor
e808f1ee16 Implement Wine port EnumLogFontExW2A.
svn path=/trunk/; revision=26460
2007-04-22 12:46:26 +00:00
Dmitry Gorbachev
8c39ab1ac8 Fix bug #2188.
svn path=/trunk/; revision=26458
2007-04-22 00:25:32 +00:00
James Tabor
6a08b2af85 Removed NtGdiGetObjectType, use GDI_HANDLE_GET_TYPE.
svn path=/trunk/; revision=26457
2007-04-21 22:23:19 +00:00
James Tabor
09a93d1379 GetObjectA/W:
- During testing of font objects, I passed ENUM/EXT/LOGFONT/EX/W to NtGdiExtGetObjectW.
   I think it likes EXTLOGFONTW. More resesrch is required.
 - Added a helper subroutine GetNonFontObject.


svn path=/trunk/; revision=26456
2007-04-21 21:56:29 +00:00
Thomas Bluemel
8bafbd4cdb link against powrprof
svn path=/trunk/; revision=26455
2007-04-21 20:16:11 +00:00
Thomas Bluemel
447e15240e Display current CPU speed
svn path=/trunk/; revision=26454
2007-04-21 19:37:11 +00:00
Eric Kohl
ab2d232623 - The initially selected cursor scheme was always treated as a system scheme. Fixed!
- Clean-up the "browse cursor" and "delete cursor scheme" code.
- Remove string buffers from the PointerProc function.

svn path=/trunk/; revision=26453
2007-04-21 14:56:23 +00:00
Christoph von Wittich
82e7994a44 removed unneeded dependencies
svn path=/trunk/; revision=26452
2007-04-21 14:24:15 +00:00
Hervé Poussineau
d91187e69e Try to fix build by including a POSTAUTO target, executed after the creation of makefile.auto
Remove a hack in Makefile
WARNING: You need to delete makefile.auto after updating to this revision!

svn path=/trunk/; revision=26451
2007-04-21 13:19:59 +00:00
Christoph von Wittich
02af37bdf4 add ks back to build
svn path=/trunk/; revision=26450
2007-04-21 12:47:04 +00:00
Christoph von Wittich
d7e104f635 set svn:eol-style native
svn path=/trunk/; revision=26449
2007-04-21 11:23:41 +00:00
James Tabor
bdc91e1345 Initialize stock_object cache.
svn path=/trunk/; revision=26447
2007-04-21 01:56:47 +00:00
James Tabor
28d7cf70fc Fix my code so it can compile.
svn path=/trunk/; revision=26445
2007-04-20 23:53:04 +00:00
James Tabor
a7c2ad7021 Implement CreatePolygonRgn and partial implementation of CreatePolyPolygonRgn. Need to implement NtGdiPolyPolyDraw. It is stubbed in my tree.
svn path=/trunk/; revision=26444
2007-04-20 23:50:44 +00:00
James Tabor
eff89f2d9a Implement GetAndSetDCDWord. Clearing out my code base. This has set here for six months now.
svn path=/trunk/; revision=26443
2007-04-20 23:31:51 +00:00
James Tabor
7b205923df Reimplement GetStockObject, based on Wine. It is bypassed in the def file. Init support code is not added yet.
svn path=/trunk/; revision=26442
2007-04-20 22:44:37 +00:00
Christoph von Wittich
cf933b1f2b implement NtGdiGetSystemPaletteEntries (patch by w3seek)
svn path=/trunk/; revision=26441
2007-04-20 22:36:57 +00:00
James Tabor
789cd80e65 Forgot stubs.c update.
svn path=/trunk/; revision=26440
2007-04-20 21:30:49 +00:00
James Tabor
02492896d1 Implement GdiFixUpHandle, fix handle masking and entry indexing.
svn path=/trunk/; revision=26439
2007-04-20 21:21:15 +00:00
Christoph von Wittich
e97e061bad fix compilation of ks
and fix some issues with portcls (not all)

svn path=/trunk/; revision=26438
2007-04-20 16:45:18 +00:00
Hervé Poussineau
006c35bd43 Add missing dependancy
svn path=/trunk/; revision=26437
2007-04-20 12:37:53 +00:00
The Wine Synchronizer
f662eaa548 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26436
2007-04-20 12:23:52 +00:00
Hervé Poussineau
c3111bb5ce Process .idl files before source files
svn path=/trunk/; revision=26435
2007-04-20 12:18:10 +00:00
Hervé Poussineau
0186ef646d Autosyncing with Wine HEAD
svn path=/trunk/; revision=26434
2007-04-20 11:44:43 +00:00
The Wine Synchronizer
c1a0a2b00c Autosyncing with Wine HEAD
svn path=/trunk/; revision=26433
2007-04-20 11:26:32 +00:00
Eric Kohl
ac9fa62a28 - Fix the "Use default" and "Browse" functions on the pointer page.
- Remove useless code.

svn path=/trunk/; revision=26432
2007-04-20 11:02:35 +00:00
The Wine Synchronizer
24ed99d8d9 Revert changes done to ole32, oleaut32 and riched20 in r26428.
You need to *exclusively* use wineimport.cmd tool when updating these libraries

svn path=/trunk/; revision=26431
2007-04-20 10:28:01 +00:00
Christoph von Wittich
d0cdae3bdc forgot to set a dependency
svn path=/trunk/; revision=26430
2007-04-20 02:43:06 +00:00
Christoph von Wittich
c89ee63d25 move ks.h to psdk
svn path=/trunk/; revision=26429
2007-04-20 02:33:02 +00:00
Christoph von Wittich
1f121135ab update riched20,ole32,oleaut32 to latest wine versions
disable ks,portcls,wdm because of broken ks.h
updated psdk,ddk headers
updated uuid and wine libs
implement IdlHeader handling in rbuild
added new idl files and removed the old header files
TODO: get rid of the WINELIB_NAME_AW macros, fix ks.h

svn path=/trunk/; revision=26428
2007-04-20 02:30:53 +00:00
Christoph von Wittich
dfb2099f2c rename internal CreateToolBar function to avoid naming conflicts
svn path=/trunk/; revision=26427
2007-04-19 22:55:37 +00:00
Christoph von Wittich
0ed01d58fd added some more defines (taken from wine)
svn path=/trunk/; revision=26426
2007-04-19 21:04:40 +00:00
James Tabor
b242b46662 Move name NtGdiGetObject to NtGdiExtGetObjectW, no code change.
svn path=/trunk/; revision=26425
2007-04-19 20:30:28 +00:00
Magnus Olsen
bd137f7767 put back right code for in NtGdiGetObject after all people have been mess around in it. please ask how it works before u thuch this code.
svn path=/trunk/; revision=26424
2007-04-19 18:55:25 +00:00
Dmitry Gorbachev
8961a9e5d5 Zhangbing's Solitaire translation (bug #2186).
svn path=/trunk/; revision=26423
2007-04-19 15:25:54 +00:00
Eric Kohl
1cefaa15f9 - Fix a bug in EnumerateCursorSchemes that caused the selection of the wrong cursor scheme upon page initialization.
- Remove obsolete global variables.

svn path=/trunk/; revision=26422
2007-04-19 15:00:56 +00:00
Ged Murphy
38945890be revert base changes. The original test case was wrong
svn path=/trunk/; revision=26421
2007-04-19 09:33:53 +00:00
Eric Kohl
8d7099f9ac Fix the tab order on the wheel page and replace generic CONTROL statements by RADIOBUTTON statements.
svn path=/trunk/; revision=26420
2007-04-19 08:37:27 +00:00
Eric Kohl
b7e4d48a47 Update indentation, no code changes.
svn path=/trunk/; revision=26419
2007-04-19 07:10:37 +00:00
The Wine Synchronizer
627d3f8c10 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26418
2007-04-19 07:10:09 +00:00
Hervé Poussineau
df36abec77 Prepare autosync of Wine wldap32 dll
svn path=/trunk/; revision=26417
2007-04-19 07:09:34 +00:00
Magnus Olsen
df581d7e3c Wrote one new header this morning compatible with dxsdk 2004 dec release.
svn path=/trunk/; revision=26416
2007-04-19 06:42:57 +00:00
Dmitry Gorbachev
cfccfd2a06 Fix Ukrainian translation.
svn path=/trunk/; revision=26414
2007-04-19 00:31:15 +00:00
Dmitry Gorbachev
08cc46e1f1 Use separate directory for language-specific files.
svn path=/trunk/; revision=26413
2007-04-19 00:31:01 +00:00
Christoph von Wittich
e005356583 add wldap32.rbuild
svn path=/trunk/; revision=26412
2007-04-18 23:57:15 +00:00
Christoph von Wittich
b67e2c97a8 Copied remotely
svn path=/trunk/; revision=26411
2007-04-18 23:49:02 +00:00
Christoph von Wittich
196301c5c4 Removed file/folder
svn path=/trunk/; revision=26410
2007-04-18 23:48:22 +00:00
Christoph von Wittich
67f8b0225f Removed file/folder
svn path=/trunk/; revision=26409
2007-04-18 23:45:10 +00:00
Christoph von Wittich
814fee4797 add rbuild files for wldap32 and add it to bootcd
svn path=/trunk/; revision=26408
2007-04-18 23:42:27 +00:00
Christoph von Wittich
96e23d17f6 Copied remotely
svn path=/trunk/; revision=26407
2007-04-18 23:41:42 +00:00
James Tabor
2317af487c Correct pointer in LDC.
svn path=/trunk/; revision=26405
2007-04-18 19:52:40 +00:00
James Tabor
7eca5e510f Correct statment for NtGdiGetObject.
svn path=/trunk/; revision=26404
2007-04-18 19:51:33 +00:00
Christoph von Wittich
dd05afbec1 fix a bug and some warnings in ddraw
svn path=/trunk/; revision=26403
2007-04-18 19:51:21 +00:00
Christoph von Wittich
f90ddf0d29 disable IntEngGradientFillTriangle because of an endless loop and add a FIXME
svn path=/trunk/; revision=26402
2007-04-18 19:07:11 +00:00
Christoph von Wittich
fb3ba4445f fix build of d3d8.dll and add it to bootcd (needed by Trillian)
svn path=/trunk/; revision=26401
2007-04-18 18:19:26 +00:00
Christoph von Wittich
9b77e5185f implemented SPI_GETKEYBOARDCUES (hardcoded to TRUE)
svn path=/trunk/; revision=26400
2007-04-18 16:45:09 +00:00
Eric Kohl
68e9e8da8f - Show the current cursor scheme upon page initialization.
- Update the cursor list and the cursor preview when a new cursor scheme is selected.
- Update the cursor preview when another cursor is selected.

svn path=/trunk/; revision=26399
2007-04-18 15:42:13 +00:00
Christoph von Wittich
8288717157 revert the translation patches for wine-autosynced modules
svn path=/trunk/; revision=26398
2007-04-18 15:30:04 +00:00
Christoph von Wittich
6029bc5beb polish translation from the polish translation team
See issue #2181 for more details.

svn path=/trunk/; revision=26397
2007-04-18 15:21:29 +00:00
Timo Kreuzer
81e62c37bf NtGdiGetObject:
- return 0 if buffer != 0 and count == 0
- don't write beyond umode buffer size (max count bytes!)
- use SEH only once
- No need for Ret & RetCount, use only RetCount
- document the function

svn path=/trunk/; revision=26396
2007-04-18 13:46:11 +00:00
Christoph von Wittich
c52d16c759 use the correct index in Module32Next
svn path=/trunk/; revision=26395
2007-04-18 13:39:26 +00:00
Christoph von Wittich
1b8f5cd0bb fix formatting
svn path=/trunk/; revision=26394
2007-04-18 12:50:21 +00:00
Christoph von Wittich
99163e450a fix some bugs in CreateActCtxA
svn path=/trunk/; revision=26393
2007-04-18 12:31:39 +00:00
Dmitry Gorbachev
285ed6ed7e Chinese translations by Zhangbing (bugs 2179, 2180).
svn path=/trunk/; revision=26392
2007-04-18 08:53:15 +00:00
Christoph von Wittich
3a413e53d1 forgot to commit this file
svn path=/trunk/; revision=26390
2007-04-18 02:50:29 +00:00
Christoph von Wittich
951839f487 fix build of d3d9.dll and add it to bootcd
svn path=/trunk/; revision=26389
2007-04-18 02:40:09 +00:00
Christoph von Wittich
a8e41c3f8f include npfs.h before debug.h - this fixes compilation with MSVC
svn path=/trunk/; revision=26388
2007-04-18 01:51:27 +00:00
Christoph von Wittich
90441d106e fix formatting (no code changes)
svn path=/trunk/; revision=26387
2007-04-18 01:25:28 +00:00
Christoph von Wittich
4f58b4d38e don't cast HBITMAP to HICON in when type is IMAGE_BITMAP
svn path=/trunk/; revision=26386
2007-04-18 00:55:04 +00:00
Christoph von Wittich
1f00c50b85 take care of DIB_PAL_COLORS in NtGdiStretchDIBits
svn path=/trunk/; revision=26385
2007-04-18 00:38:36 +00:00
Christoph von Wittich
d2796783e0 fix console font
svn path=/trunk/; revision=26384
2007-04-17 23:38:39 +00:00
Ged Murphy
96b61f6b0b - fix GetObject call for bitmaps
- Windows returns the number of bytes copied, not the size of the struct.
- fix NtGdiGetObject, 'count' is now irrelevant
- this breaks CopyImage, but it's broken anyway so it can wait until tomorrow.

svn path=/trunk/; revision=26383
2007-04-17 22:58:34 +00:00
Dmitry Gorbachev
d5d519547c Simplified Chinese translation by zhangbing (bug #2175).
svn path=/trunk/; revision=26382
2007-04-17 20:38:03 +00:00
Christoph von Wittich
2ac5f48e47 change the condition in NtGdiGetObject to if ((RetCount) && (count)) (patch by GreatLord)
svn path=/trunk/; revision=26381
2007-04-17 20:26:49 +00:00
Christoph von Wittich
0751108eaf add cryptui.dll to bootcd
svn path=/trunk/; revision=26380
2007-04-17 20:06:00 +00:00
Christoph von Wittich
c35151ce3d fix crash in VerQueryValueA/W
svn path=/trunk/; revision=26379
2007-04-17 18:58:58 +00:00
Christoph von Wittich
da377e0f0b implemented NtUserDrawCaptionTemp (doesn't support all flags yet but enough to get the desk.cpl working)
svn path=/trunk/; revision=26378
2007-04-17 17:15:33 +00:00
Dmitry Gorbachev
ee9ffb6236 Finnish translation (see bug #1781).
svn path=/trunk/; revision=26377
2007-04-17 17:00:20 +00:00
Thomas Bluemel
0cfc87c00c Revert r26375 partly, being able to select multiple applications *does* make sense (e.g. to minimize/restore them)!
svn path=/trunk/; revision=26376
2007-04-17 16:48:32 +00:00
Dmitry Gorbachev
aec5ef496c Taskmgr patch from Heis Spiter (bug #2085).
svn path=/trunk/; revision=26375
2007-04-17 15:53:59 +00:00
Dmitry Gorbachev
c47c4021ba Update French translations (bug #2120).
svn path=/trunk/; revision=26374
2007-04-17 15:45:00 +00:00
Dmitry Gorbachev
dbaad8acc7 Update Norwegian translation (bug #1756).
svn path=/trunk/; revision=26373
2007-04-17 15:13:46 +00:00
Christoph von Wittich
aa3af33258 fix "FIXME"-text
svn path=/trunk/; revision=26372
2007-04-17 13:59:54 +00:00
Christoph von Wittich
2a7a36c6bf add cryptui.dll (stubbed) needed by SmartFTP
svn path=/trunk/; revision=26371
2007-04-17 13:02:53 +00:00
Christoph von Wittich
0c39bba15b implemented DrawCaptionTempA/W
(NtUserDrawCaptionTemp is still missing)

svn path=/trunk/; revision=26370
2007-04-17 11:27:42 +00:00
Eric Kohl
64a7ff0759 - Replace the listview control on the pointer page by an ownerdrawn listbox and add necessary code changes.
- Add missing "Horizontal Resize" string resource.
- Make the cursor preview work for the system cursors.

svn path=/trunk/; revision=26368
2007-04-17 10:41:07 +00:00
Christoph von Wittich
5012d502e3 display the icons again - but something is still wrong
svn path=/trunk/; revision=26367
2007-04-17 01:15:24 +00:00
Dmitry Gorbachev
6784ecd342 Detect i8042 IRQs by edge. This should fix endless loop in i8042 driver on
machines with VIA and ALI chipsets. (See bug report #2159.) Thanks Peter K. 
and other testers for help.

svn path=/trunk/; revision=26366
2007-04-16 23:03:41 +00:00
Dmitry Gorbachev
cd86e748b8 Do not change reserved ELCR bits.
svn path=/trunk/; revision=26365
2007-04-16 23:02:54 +00:00
Magnus Olsen
0606c5e1f9 Wrote two new header this morning compatible with dxsdk 2004 dec release.
svn path=/trunk/; revision=26363
2007-04-16 06:46:25 +00:00
Magnus Olsen
dba1a7a382 Find some older works, dxsdk header compatible with dxsdk 2004 dec release. I will clean up sdk so dx thuse dx header belong to dxsdk will be here. later.
In this folder will contain all header that is compatible with dxsdk 2004 dec. later I will upgrade this folder file to more resent dxsdk headers. 

svn path=/trunk/; revision=26362
2007-04-15 17:29:40 +00:00
Magnus Olsen
db1bac44f0 Find some older works, dxsdk header compatible with dxsdk 2004 dec release. I will clean up sdk so dx thuse dx header belong to dxsdk will be here. later.
In this folder will contain all header that is compatible with dxsdk 2004 dec. later I will upgrade this folder file to more resent dxsdk headers. 

svn path=/trunk/; revision=26361
2007-04-15 15:28:57 +00:00
Magnus Olsen
ca8c6fb877 Find some older works, dxsdk header compatible with dxsdk 2004 dec release. I will clean up sdk so dx thuse dx header belong to dxsdk will be here. later.
In this folder will contain all header that is compatible with dxsdk 2004 dec. later I will upgrade this folder file to more resent dxsdk headers. 

svn path=/trunk/; revision=26360
2007-04-15 14:39:23 +00:00
Magnus Olsen
b3bd2cb8be Find some older works, dxsdk header compatible with dxsdk 2004 dec release. I will clean up sdk so dx thuse dx header belong to dxsdk will be here. later.
In this folder will contain all header that is compatible with dxsdk 2004 dec. later I will upgrade this folder file to more resent dxsdk headers. 

svn path=/trunk/; revision=26359
2007-04-15 14:08:04 +00:00
Magnus Olsen
ab23b32e3d Find some older works, dxsdk header compatible with dxsdk 2004 dec release. I will clean up sdk so dx thuse dx header belong to dxsdk will be here. later.
In this folder will contain all header that is compatible with dxsdk 2004 dec. later I will upgrade this folder file to more resent dxsdk headers. 

svn path=/trunk/; revision=26358
2007-04-15 13:49:34 +00:00
Magnus Olsen
cbbad16d0f Find some older works, dxsdk header compatible with dxsdk 2004 dec release. I will clean up sdk so dx thuse dx header belong to dxsdk will be here. later.
In this folder will contain all header that is compatible with dxsdk 2004 dec. later I will upgrade this folder file to more resent dxsdk headers. 

svn path=/trunk/; revision=26357
2007-04-15 13:14:42 +00:00
Magnus Olsen
b665d86cf0 Find some older works, dxsdk header compatible with dxsdk 2004 dec release. I will clean up sdk so dx thuse dx header belong to dxsdk will be here. later.
In this folder will contain all header that is compatible with dxsdk 2004 dec. later I will upgrade this folder file to more resent dxsdk headers. 

svn path=/trunk/; revision=26356
2007-04-15 12:37:11 +00:00
Eric Kohl
f9dd8597e1 Change pointer shadow setting on-the-fly.
svn path=/trunk/; revision=26355
2007-04-15 10:56:51 +00:00
Magnus Olsen
82fec2b2ca Find some older works, dxsdk header compatible with dxsdk 2004 dec release. I will clean up sdk so dx thuse dx header belong to dxsdk will be here. later.
In this folder will contain all header that is compatible with dxsdk 2004 dec. later I will upgrade this folder file to more resent dxsdk headers. 

svn path=/trunk/; revision=26354
2007-04-15 10:17:27 +00:00
Magnus Olsen
00da39c2a7 Find some older works, dxsdk header compatible with dxsdk 2004 dec release. I will clean up sdk so dx thuse dx header belong to dxsdk will be here. later.
In this folder will contain all header that is compatible with dxsdk 2004 dec. later I will upgrade this folder file to more resent dxsdk headers. 

svn path=/trunk/; revision=26353
2007-04-15 09:31:28 +00:00
Magnus Olsen
cccfc14618 Find some older works, dxsdk header compatible with dxsdk 2004 dec release. I will clean up sdk so dx thuse dx header belong to dxsdk will be here. later.
In this folder will contain all header that is compatible with dxsdk 2004 dec. later I will upgrade this folder file to more resent dxsdk headers. 

svn path=/trunk/; revision=26352
2007-04-15 09:08:13 +00:00
Magnus Olsen
66f57054d0 Copied remotely, this header is compatible with ms dxsdk 2004 dec
svn path=/trunk/; revision=26351
2007-04-14 22:32:01 +00:00
Magnus Olsen
809f75e1e2 Copied remotely, compatible with dxsdk 2004 dec
svn path=/trunk/; revision=26350
2007-04-14 21:45:40 +00:00
Magnus Olsen
828716e496 Find some older works, dxsdk header compatible with dxsdk 2004 dec release. I will clean up sdk so dx thuse dx header belong to dxsdk will be here. later.
In this folder will contain all header that is compatible with dxsdk 2004 dec. later I will upgrade this folder file to more resent dxsdk headers. 

svn path=/trunk/; revision=26349
2007-04-14 21:36:02 +00:00
Magnus Olsen
6204e0ae00 Find some older works, dxsdk header compatible with dxsdk 2004 dec release. I will clean up sdk so dx thuse dx header belong to dxsdk will be here. later.
In this folder will contain all header that is compatible with dxsdk 2004 dec. later I will upgrade this folder file to more resent dxsdk headers. 

svn path=/trunk/; revision=26348
2007-04-14 20:36:46 +00:00
Magnus Olsen
0a8246f280 Find some older works, dxsdk header compatible with dxsdk 2004 dec release. I will clean up sdk so dx thuse dx header belong to dxsdk will be here. later.
In this folder will contain all header that is compatible with dxsdk 2004 dec. later I will upgrade this folder file to more resent dxsdk headers. 

svn path=/trunk/; revision=26347
2007-04-14 20:07:28 +00:00
Eric Kohl
7984ff409c - Set mouse speed an mouse trail on-the-fly.
- Get rid of more global variables.

svn path=/trunk/; revision=26346
2007-04-14 20:07:16 +00:00
Magnus Olsen
c037b35615 Find some older works, dxsdk header compatible with dxsdk 2004 dec release. I will clean up sdk so dx thuse dx header belong to dxsdk will be here. later.
In this folder will contain all header that is compatible with dxsdk 2004 dec. later I will upgrade this folder file to more resent dxsdk headers. 

svn path=/trunk/; revision=26345
2007-04-14 19:08:13 +00:00
Magnus Olsen
83bf07aef3 Find some older works, dxsdk header compatible with dxsdk 2004 dec release. I will clean up sdk so dx thuse dx header belong to dxsdk will be here. later.
In this folder will contain all header that is compatible with dxsdk 2004 dec. later I will upgrade this folder file to more resent dxsdk headers. 

svn path=/trunk/; revision=26344
2007-04-14 18:54:57 +00:00
Magnus Olsen
d5f02da15d Find some older works, dxsdk header compatible with dxsdk 2004 dec release. I will clean up sdk so dx thuse dx header belong to dxsdk will be here. later.
In this folder will contain all header that is compatible with dxsdk 2004 dec. later I will upgrade this folder file to more resent dxsdk headers. 

svn path=/trunk/; revision=26343
2007-04-14 18:18:31 +00:00
Dmitry Gorbachev
5f8f828416 Fix a bug.
svn path=/trunk/; revision=26342
2007-04-14 18:07:08 +00:00
Eric Kohl
82bb46d16d - Fix the mouse wheel page.
- Get rid of global variables.

svn path=/trunk/; revision=26341
2007-04-14 16:12:26 +00:00
Sylvain Petreolle
f4a15a31a1 fix swap file caption size
svn path=/trunk/; revision=26340
2007-04-14 15:12:22 +00:00
Eric Kohl
267358185b Ooops! Forgot to add the icons!
svn path=/trunk/; revision=26339
2007-04-14 14:37:27 +00:00
Eric Kohl
8b3e3dd6c0 - Swap mouse buttons on-the-fly.
- Add mouse button preview icons.
- Change double click speed on-the-fly.
- Add double click test icons.
- Fix double click speed calculation.
- Get rid of rsrc.rc.

svn path=/trunk/; revision=26338
2007-04-14 14:26:46 +00:00
Ged Murphy
d9f8bb326a - don't put items to the start menu if they aren't in the OS. this applies to the apps we moved out for trunk builds
- remove ibrowser and winefile completely
- add devmgmt

svn path=/trunk/; revision=26337
2007-04-14 01:09:38 +00:00
Timo Kreuzer
2693be107f NtUserBuildHwndList:
- non-recursive implementation, which saves stack space and should be about twice as fast.
- use SEH instead of MmCopyToCaller

svn path=/trunk/; revision=26336
2007-04-14 00:06:21 +00:00
Ged Murphy
595f645cca delete cplsample, we have no reason to have a cpl applet shell in our tree
svn path=/trunk/; revision=26335
2007-04-13 23:44:07 +00:00
Ged Murphy
c81e33705b delete vc6 files
svn path=/trunk/; revision=26334
2007-04-13 23:43:53 +00:00
Dmitry Gorbachev
1a4bfcb4ce Allow installation to / booting from a disk with several partitions (hack).
svn path=/trunk/; revision=26333
2007-04-13 22:04:39 +00:00
Sylvain Petreolle
58d132c3c6 translate other parts of desk into french
svn path=/trunk/; revision=26332
2007-04-13 20:50:37 +00:00
Ged Murphy
9eb397f1d9 update French resource file.
Thanks to HeisSpiter

svn path=/trunk/; revision=26331
2007-04-13 18:27:12 +00:00
Dmitry Gorbachev
c6079e7909 Fix previous fix.
svn path=/trunk/; revision=26330
2007-04-13 14:57:36 +00:00
Dmitry Gorbachev
abe25cf75b Fix a bug. (Thanks to Ged).
svn path=/trunk/; revision=26329
2007-04-13 14:47:55 +00:00
Dmitry Gorbachev
7f235d3886 Thai translation by Sumath Aowsakulsutthi.
svn path=/trunk/; revision=26328
2007-04-13 14:29:01 +00:00
Dmitry Gorbachev
533c3d2c65 Thai translation by Sumath Aowsakulsutthi
svn path=/trunk/; revision=26327
2007-04-13 14:28:22 +00:00
Dmitry Gorbachev
f940277069 Fix Italian translation (Carlo Bramini).
svn path=/trunk/; revision=26326
2007-04-13 11:00:38 +00:00
Ged Murphy
acba6c80ef Rewrite screensaver cpl applet, key changes are:
- redesigned to look like XP's
- Add the screensaver preview on the dialog
- implement saving of screensaver settings
- preview and config buttons now work
Translators required.

svn path=/trunk/; revision=26325
2007-04-13 04:23:35 +00:00
Alex Ionescu
4337531281 - Send IRP_MN_FILTER_RESOURCE_REQUIREMENTS to devices before IRP_MN_START_DEVICE. Allows the Windows Input Stack to load better, but we still have a load order bug. Patch by hpoussin.
svn path=/trunk/; revision=26324
2007-04-12 23:48:31 +00:00
James Tabor
8eb6d672a1 Fix signedness error.
svn path=/trunk/; revision=26323
2007-04-12 05:14:24 +00:00
Alex Ionescu
cde8c95d91 - Fix several pushlock bugs (thanks in part to hto). Should fix bug 2063.
svn path=/trunk/; revision=26322
2007-04-11 20:00:53 +00:00
Dmitry Gorbachev
2a83478e2a Fix some bugs.
svn path=/trunk/; revision=26321
2007-04-11 08:43:34 +00:00
Magnus Olsen
51c632e281 DO not waring if no keyboard layout does not exists or loading, I change the msg from DPRINT1 to DRPINT
svn path=/trunk/; revision=26320
2007-04-11 07:01:44 +00:00
Dmitry Gorbachev
7d0a0bacc0 Norvegian translation by LMH1 (bug reports 1737 and 1738).
svn path=/trunk/; revision=26317
2007-04-10 23:06:01 +00:00
Christoph von Wittich
75361b6928 get GreatLord's hack at least to work
svn path=/trunk/; revision=26316
2007-04-10 22:57:57 +00:00
Magnus Olsen
e43e673325 1. small hack to getting a new checked treed being build.
2. This bug does not show if you doing make clean and Build only affect a new frech tree
3. please fix the makefile more right this is a small hack until some fix it. 


svn path=/trunk/; revision=26315
2007-04-10 22:47:12 +00:00
Timo Kreuzer
3f379161d6 NtGdiMoveToEx: copy old cursor pos back to caller instead of copying from caller.
svn path=/trunk/; revision=26314
2007-04-10 21:58:15 +00:00
Magnus Olsen
92c14d1f5f update the copyright year in the rc file
svn path=/trunk/; revision=26312
2007-04-10 20:49:41 +00:00
Magnus Olsen
8206f926b7 update freetype to 2.3.4
svn path=/trunk/; revision=26311
2007-04-10 20:41:41 +00:00
Magnus Olsen
361475b0a6 This fix the hiniting issue we have seen crop ypqg before u did not see it was drawing.
This commit cause a smaller glitch in cmd. Please some help me figout how to fix this glitch in cmd
other wise I will be force revert this commit. 

svn path=/trunk/; revision=26306
2007-04-10 18:52:24 +00:00
Magnus Olsen
c1e9fc6f75 darn rember me close all file before a commit, I did by mistake break the build fixed with this commit
svn path=/trunk/; revision=26305
2007-04-10 17:06:59 +00:00
Magnus Olsen
c9fb4f777b Long live Dejavu font, Long live Dejavu font
This commit fixed the charwidth calculation that was wrong for unicode font. That mean we can last using dejavu font in cmd. 
Now anyone whant we can delete the bitstream font from reactos please test see if it any apps still using bitstream font. 
I can not found any apps in reactos using it anylonger. I give the pleasuer delete the bitstream font for anyone whant 
doing that. 


svn path=/trunk/; revision=26304
2007-04-10 17:05:23 +00:00
Dmitry Gorbachev
7848c88917 Fix debug message.
svn path=/trunk/; revision=26303
2007-04-10 10:07:15 +00:00
Hervé Poussineau
4e939dcc2c Replace freeldr DEBUG define, by the global DBG define
svn path=/trunk/; revision=26302
2007-04-10 09:31:51 +00:00
Timo Kreuzer
39b3562b65 tabs->spaces reformat, no code change.
svn path=/trunk/; revision=26301
2007-04-09 19:52:32 +00:00
Aleksey Bragin
6b2c34484c - Reverting 26299: Please fix an actual bug (wherever it is), and don't commit your temporary personal workarounds.
svn path=/trunk/; revision=26300
2007-04-09 18:05:27 +00:00
Magnus Olsen
f410bbe117 comment out vga drv, we only need one of thuse two driver start on livecd. and that is vbe driver not both driver.
svn path=/trunk/; revision=26299
2007-04-09 16:09:22 +00:00
Sylvain Petreolle
406ee892b1 make french accents display correctly,
patch by Pierre Schweitzer
see issue #1919

svn path=/trunk/; revision=26298
2007-04-09 14:32:53 +00:00
Eric Kohl
655f34cb87 Change keyboard settings on-the-fly to make the preview work properly.
svn path=/trunk/; revision=26295
2007-04-09 13:26:55 +00:00
Alex Ionescu
52041c5b65 - Call IRP_MN_START_DEVICE in a critical region, since NT drivers depend on this implementation detail (on NT, an ERESOURCE+CriticalRegion is always held when parsing a new device node, so all related IRP_MNs are actually received under a critical region. For now, I only made IRP_MN_START_DEVICE behave as such. i8042prt from the DDK depends on this behavior.
- Cleaned up Fast Mutex Implementation.
- Disabled a hard-coded bugcheck and instead disabled soem code.

svn path=/trunk/; revision=26294
2007-04-09 13:00:38 +00:00
Magnus Olsen
aa7e29c22e NtGdiDdCanCreateSurface
1. fixed the input of DDSURFACEDESC2 so it been convert to DDSURFACEDESC.
2. fixed varius bsod in ros 0.3.1 
3. fixed some return code. 

svn path=/trunk/; revision=26293
2007-04-09 11:45:25 +00:00
Sylvain Petreolle
2c7409ef06 fix netid fr-FR.rc codepage
svn path=/trunk/; revision=26292
2007-04-09 11:23:10 +00:00
Sylvain Petreolle
c35a93cdf1 add french translation,
sublang fixes

svn path=/trunk/; revision=26291
2007-04-09 10:06:38 +00:00
Sylvain Petreolle
6f8ab055b0 update appwiz.cpl french translation
svn path=/trunk/; revision=26290
2007-04-09 09:40:07 +00:00
Dmitry Gorbachev
f57e0717e2 Use separate directory for language-specific files.
svn path=/trunk/; revision=26289
2007-04-08 21:55:16 +00:00
Dmitry Gorbachev
871e05ab78 Use separate directory for language-specific files.
svn path=/trunk/; revision=26288
2007-04-08 21:54:46 +00:00
Dmitry Gorbachev
b594d9eacb Use new naming convention.
svn path=/trunk/; revision=26287
2007-04-08 21:53:24 +00:00
Dmitry Gorbachev
319fb9f4a4 Use new naming convention.
svn path=/trunk/; revision=26286
2007-04-08 19:04:00 +00:00
Magnus Olsen
fc7ad40506 revert 21677 this change are not need, I comfrim vmware own graphice driver do not release the dx interface in windows xp/2003 or higher.
I remove so vmware drv getting dx interfae, this enabler windows xp graphice drv again. sorry no dx hardware acclations from vmware any longer. 

svn path=/trunk/; revision=26285
2007-04-08 17:43:51 +00:00
Eric Kohl
c74fbaf787 Add cursor blink time preview and change blink time on the fly.
svn path=/trunk/; revision=26284
2007-04-08 16:46:35 +00:00
Dmitry Gorbachev
29cb375d5a Fix "registry error" bug (see bugzilla report #1998).
svn path=/trunk/; revision=26283
2007-04-08 14:57:34 +00:00
Magnus Olsen
ce8c107dbc fixing smaller bugs in NtGdiDdWaitForVerticalBlank now it is compatible with windows 2000 in all my test case.
svn path=/trunk/; revision=26282
2007-04-08 12:05:22 +00:00
Eric Kohl
923523688f Add caret blink time setting.
svn path=/trunk/; revision=26281
2007-04-08 10:18:24 +00:00
Eric Kohl
a580611fe7 - Add missing keyboard speed dialog resources.
- Implement keyboard repeat delay and repeat rate settings.

svn path=/trunk/; revision=26280
2007-04-07 23:10:58 +00:00
Ged Murphy
d3bc04a87c - add hh.exe
- not added to build as it useless until we get hhctrl.ocx done.

svn path=/trunk/; revision=26279
2007-04-07 15:24:45 +00:00
Magnus Olsen
9da28b4efd tested NtGdiDdGetScanLine not suppored by vmware drv did use another 3d party driver for the test.
fixed some werid loop of pseh, all code are tested in 0.3.1 for I do not have a working vmware drv 
for the driver. NtGdiDdGetScanLine is working same as windows 2000 now. 


svn path=/trunk/; revision=26278
2007-04-07 15:10:01 +00:00
Ged Murphy
2ee0f4dca0 start to redo tracert
svn path=/trunk/; revision=26277
2007-04-07 15:09:57 +00:00
Aleksey Bragin
78117fc10d Please use TABs inside .rbuild files, not spaces.
svn path=/trunk/; revision=26276
2007-04-07 15:09:48 +00:00
Magnus Olsen
734706acab clean up NtGdiDdQueryDirectDrawObject and NtGdiDdCreateDirectDrawObject They are now working to 100% simulare to windows 2000 in all case. if you do not count the undoc bevhoir of NtGdiDdCreateDirectDrawObject when pvmlist and heapnum got a vaild pointer and heapnum=0
svn path=/trunk/; revision=26275
2007-04-07 09:30:52 +00:00
Alex Ionescu
2d88738681 - NDK updates and compatibility fixes for Vista/WDK/User-Mode/Individual per-file NDK Usage.
- Update targets to pentium to take advantage of cmpxhg8b when possible. (ROS won't run on 386/486 anyway).
- Fix some compiler problems when building with -O3.

svn path=/trunk/; revision=26274
2007-04-07 05:33:30 +00:00
Timo Kreuzer
dd4ede8870 load metrics fonts and colors from registry on userinit.
svn path=/trunk/; revision=26273
2007-04-07 00:32:34 +00:00
Timo Kreuzer
69ef89a5e9 IntSetSysColors: update SysColorBrushes and Pens and broadcast WM_SYCOLORCHANGE message. Now you can change colors with desk.cpl
svn path=/trunk/; revision=26272
2007-04-06 22:50:19 +00:00
Magnus Olsen
937e866fb2 remove a wrong behvoir in DdQueryDirectDrawObject aka GdiEntry2
svn path=/trunk/; revision=26271
2007-04-06 20:54:21 +00:00
Magnus Olsen
a6bda507b9 Remove a windwos 95/98/Me behvoir in NtGdiDdQueryDirectDrawObject, also tested in windows 2000 see if this bevhoir really exitsed or not.
puvmList and puNumHeaps should be ignore by Windows NT when they are pass down, it is not true if both getting a vaild pointer I am getting back data in windows it is not a vmList, what I get back I do not known. Add a comment I did forget setup the copy of puD3dTextureFormats from kmode to umode pointer will be fixed later. After I fix the last part this api is 99.9% compatible with Windows 2000 and higher.

svn path=/trunk/; revision=26270
2007-04-06 20:43:11 +00:00
Timo Kreuzer
5f5b06dc4b fix warnings on gcc 4.1.2
svn path=/trunk/; revision=26269
2007-04-06 14:24:59 +00:00
Aleksey Bragin
96924455c4 - Make class2 and disk completely warning-free.
svn path=/trunk/; revision=26268
2007-04-05 17:36:39 +00:00
Magnus Olsen
43b354a3d4 Update Dejavu from 2.14 to 2.16
It add allot of new charaters to all dejavu font.

svn path=/trunk/; revision=26267
2007-04-05 12:20:19 +00:00
Alex Ionescu
dd73f432c2 - Refactored some parts of the FS Recognizer Driver.
- Added support for some more advanced storage stack support.
- Added locking and states.
- Added the ability for a file system to span across different device types (such as UDFS which is both for disks and optical media)
- Updated NTFS, UDFS validation to use new functions. CDFS validation was removed (NT doesn't do it).
- Improved some parts of FAT validation and relaxed others to match NT's.

svn path=/trunk/; revision=26266
2007-04-05 00:11:35 +00:00
Dmitry Gorbachev
fe6c48c65b - Fix the damn thing.
svn path=/trunk/; revision=26265
2007-04-04 20:12:23 +00:00
Johannes Anderwald
965b2d9d39 - allow backspace in edit / hex mode
- patch by Kamil Hornicek (tykef@atlas.cz)

See issue #2129 for more details.

svn path=/trunk/; revision=26264
2007-04-04 19:43:27 +00:00
Johannes Anderwald
9d6dcfb24e - move implementation of dialogs to appropiate file (odbccp32.dll)
- odbccp32.cpl is therefore complete YUHU
- rbuild needs to be hacked that odbccp32.cpl is outputed in the right destination folder (currently it writes into destination of odbccp32.dll)

svn path=/trunk/; revision=26263
2007-04-04 18:43:24 +00:00
Johannes Anderwald
c3ebb7990e - beginning of ODBC control panel applet
svn path=/trunk/; revision=26262
2007-04-04 16:26:16 +00:00
Aleksey Bragin
260dc41818 - Fix freeing of an unallocated memory bug (RtlInitUnicodeString() never allocates anything, it just initializes necessary fields, and noone asks us to free the string the function gets as a parameter).
svn path=/trunk/; revision=26261
2007-04-04 16:04:41 +00:00
Aleksey Bragin
ed06eba9e3 ... and pciide/pciidex.
svn path=/trunk/; revision=26260
2007-04-04 15:22:03 +00:00
Aleksey Bragin
2682573ee6 - Fix up npfs/msfs drivers paths.
svn path=/trunk/; revision=26259
2007-04-04 15:15:43 +00:00
Alex Ionescu
f623df7b11 - Refactor device attachment into a private routine.
- We shouldn't allow attaching to a device that's still initlizaing, but ROS currently does because of some device that tries to do this, in the PnP manager or early boot-phase drivers (it has an auto-generated name). Please fix this!

svn path=/trunk/; revision=26258
2007-04-04 03:19:27 +00:00
Alex Ionescu
6a5123b065 - Implement IopAttachDeviceToDeviceStackSafe for future use.
- Use OBJ_KERNEL_HANDLE for various internal Device Object handles.
- Fix bug in IopStartNextPacketByKeyEx which didn't actually read the flags to see if the I/O was cancelleable or not.
- Fail DO creation if the VPB couldn't be created.
- Fix completely wrong implementation of IoGetDeviceAttachmentBaseRef. It was getting the attached device instead of the base device, and wasn't even referencing it!.
- 

svn path=/trunk/; revision=26257
2007-04-04 02:49:41 +00:00
Alex Ionescu
0c5f9a2ec6 - Remove "zero-stream" from null, NT doesn't support this.
- Implement Fast I/O Dispatch entrypoints for null.
- Support query file information and lock IRPs, just like NT.
- Remove query volume information IRP, not supported by NT.
- Page the entire driver.

svn path=/trunk/; revision=26256
2007-04-03 16:22:44 +00:00
Alex Ionescu
ca95775748 - Don't load NT4 audio drivers by default anymore.
- Don't load beep.sys in non-setup mode.
- Improve beep driver by making it use device queues instead of instantly completing beep requests, and make it cancel-safe, unloadable, and thread-safe in regards to timers. Also reduce memory footprint by making the entire driver pageable and dynamically locking/unlocking the image section by keeping a reference count of opens.

svn path=/trunk/; revision=26254
2007-04-03 16:01:58 +00:00
Aleksey Bragin
295322ab9b - Remove unneeded DPRINT1().
svn path=/trunk/; revision=26253
2007-04-03 15:18:05 +00:00
Alex Ionescu
4b795a9e2d - Add "fs" to npfs and msfs.
- Put blue in drivers\setup.
- Re-organize Audio stack in /wdm and /ksfilter directories.

svn path=/trunk/; revision=26252
2007-04-03 14:55:54 +00:00
Alex Ionescu
baf845546d - Add missing .rbuild files from last commit.
- Move serial stack to /serial.
- Move parallel stack to /parallel and make room for parport/parclass (NT5+ Parallel stack).

svn path=/trunk/; revision=26251
2007-04-03 14:22:00 +00:00
Alex Ionescu
d03eaaa66d - Cleanup /storage directory and prepare for NT5+ Storage Stack and Floppy Port/Class drop.
svn path=/trunk/; revision=26250
2007-04-03 14:14:25 +00:00
Aleksey Bragin
3340addefa - Remove old unused code for sending sense requests.
- Bugfix new sense request code (it was saving a pointer to the wrong SRB).
- Implement requests, which bypass frozen queue. CdRom should now work properly.
- Some very small code reformating.

svn path=/trunk/; revision=26249
2007-04-02 20:24:54 +00:00
Alex Ionescu
05d2982786 - Revert 26244, 26245, 26246, 26247.
- Stop committing on crack.
- Read IRC logs and use your head.
- GCC 3.4.5 is buggy, don't use. Don't break good code to hide compiler bugs.

svn path=/trunk/; revision=26248
2007-04-02 15:08:54 +00:00
Magnus Olsen
3fd4c41408 some gcc 3.4.5 fixed; but not all we need
svn path=/trunk/; revision=26247
2007-04-02 10:32:21 +00:00
Magnus Olsen
ceac8e2667 fixing the build for gcc 3.4.5
svn path=/trunk/; revision=26246
2007-04-02 09:48:51 +00:00
Magnus Olsen
fbfe1712be fixing the build for gcc 3.4.5
svn path=/trunk/; revision=26245
2007-04-02 09:01:15 +00:00
Magnus Olsen
550b42f6d2 fixing the build for gcc 3.4.5
svn path=/trunk/; revision=26244
2007-04-02 08:58:34 +00:00
Aleksey Bragin
cfb33d951a - Revert double spinlock releasing introduced by 26242 (but thanks for fixing DPRINT :) ).
svn path=/trunk/; revision=26243
2007-04-02 08:00:31 +00:00
Dmitry Gorbachev
982ab11661 Do not assume ReleaseSpinLock == LowerIrql.
svn path=/trunk/; revision=26242
2007-04-01 22:04:26 +00:00
Hervé Poussineau
4b824a0114 Take care of ROS_AUTOMAKE variable in rbuild
svn path=/trunk/; revision=26241
2007-04-01 20:47:00 +00:00
Aleksey Bragin
f32c6a7cd9 - Add more compile-time checks for KPRCB C vs. asm fields match.
svn path=/trunk/; revision=26240
2007-04-01 19:35:05 +00:00
Aleksey Bragin
d860e7b5eb - Rename scsiport-new to scsiport (couldn't do that in the previous commit).
svn path=/trunk/; revision=26239
2007-04-01 19:27:59 +00:00
Aleksey Bragin
4e7b22b216 - Commit "new" storage stack drivers support based on NT4 DDK's sample drivers (with some modifications and a couple of hacks - they are marked with "HACK" keyword in the source code).
- ReactOS boots/works (faster/stabler), VMWare bug is gone.
- Delete the old scsiport, switching to the new scsiport instead.
NOTE(!): Before commenting this commit read license.txt files. If you still want to comment, read license.txt again, it should help.
- Warnings fixes, improvements, etc to the code will come later.

svn path=/trunk/; revision=26238
2007-04-01 19:25:38 +00:00
Magnus Olsen
934ee21b1f this file is auotgenreate sorry, thx alex
svn path=/trunk/; revision=26237
2007-04-01 19:00:29 +00:00
Magnus Olsen
1c0e162f29 some have delete the napi.h I do not known how did that. it break the win32k complete it is a private header file
svn path=/trunk/; revision=26236
2007-04-01 18:48:25 +00:00
Saveliy Tretiakov
f18384ae4f Implement UserUnloadKeyboardLayout()
svn path=/trunk/; revision=26234
2007-04-01 17:34:00 +00:00
Saveliy Tretiakov
9e8d69fa5d Implement NtUserUnloadKeyboardLayout()
svn path=/trunk/; revision=26233
2007-04-01 17:30:44 +00:00
Saveliy Tretiakov
36af38d7dd Add missing check
svn path=/trunk/; revision=26232
2007-04-01 17:27:59 +00:00
Saveliy Tretiakov
9a92415ba4 Implement EngUnloadImage
svn path=/trunk/; revision=26231
2007-04-01 17:20:50 +00:00
Saveliy Tretiakov
d1004e8c13 Implement EngUnloadImage()
svn path=/trunk/; revision=26230
2007-04-01 17:15:58 +00:00
Saveliy Tretiakov
eecef5a1de Implement SystemUnloadGdiDriverInformation
svn path=/trunk/; revision=26229
2007-04-01 17:15:08 +00:00
Saveliy Tretiakov
0048eddd14 Fix build
svn path=/trunk/; revision=26228
2007-04-01 17:14:24 +00:00
Aleksey Bragin
b684c23b8e - Remove audit brake / svn:needs-lock property, since these drivers are going to become svn history soon.
svn path=/trunk/; revision=26227
2007-04-01 16:29:16 +00:00
Aleksey Bragin
1d3fb59485 - Move handlers of SRB_FUNCTION_ATTACH and RELEASE to a standalone function, and don't do reference/dereference of the DeviceObject
- Implement RELEASE_QUEUE and FLUSH_QUEUE srb functions
- Turn off DPRINTs, since scsiport seems to finally work (without advanced features, but enough to install and boot using ATAPI and DISK drivers)!

svn path=/trunk/; revision=26226
2007-04-01 12:13:55 +00:00
Aleksey Bragin
01da330bc2 - More DPRINTs added to ease debugging
- Bugfixes: IOCTL_SCSI_GET_CAPABILITIES fixed, setting inquiry operation in CDB fixed, storing information about bus scanning fixed

svn path=/trunk/; revision=26225
2007-04-01 11:17:48 +00:00
KJK::Hyperion
643b171651 !!! ATTENTION EVERYONE - do a make clean after getting this revision !!!
!!! ATTENTION PSEH USERS - new features & a change in rules !!!

modified   include/reactos/libs/pseh/framebased.h
modified   include/reactos/libs/pseh/framebased/internal.h
deleted    include/reactos/libs/pseh/setjmp.h
modified   lib/pseh/framebased.c
deleted    lib/pseh/i386/setjmp.asm
modified   lib/pseh/pseh.rbuild
   Big PSEH revamp. If God is kind and merciful, this might be the last revision to PSEH ever
   !!! RULE CHANGE !!! Obsoleted _SEH_NO_NATIVE_NLG, do NOT use it anymore, it will now cause fatal compile-time errors
   !!! RULE CHANGE !!! As a side effect to the fix for a bug where a _SEH_TRY nested in a _SEH_HANDLE would lead to stack corruption, using "return" or "goto" from anywhere inside a PSEH block is now FORBIDDEN; all code that already did has been fixed in this revision
   !!! NEW FEATURE !!! To leave a PSEH block from anywhere inside it, use the new _SEH_YIELD(<statement>) macro; examples: _SEH_YIELD(return value), _SEH_YIELD(goto label), _SEH_YIELD(returnvalue = value; goto label); ALWAYS ensure a _SEH_YIELD() leads outside the top-level _SEH_TRY block - do NOT goto into an ancestor _SEH_TRY block!!! Also note that _SEH_YIELD() disables SEH protection for the enclosed statement, so do NOT perform operations that might throw exceptions inside a _SEH_YIELD(); finally, ensure the enclosed statement does NOT allow execution to continue, or _SEH_YIELD() will get in an infinite loop; bear with me, for I have done the impossible, so don't expect miracles
   Don't use a fake setjmp/longjmp *ever*, too dangerous; removed _SEHLongJmp & _SEHSetJmp, obsoleted _SEH_NO_NATIVE_NLG
   On GCC, use __builtin_setjmp/__builtin_longjmp instead of setjmp/longjmp; they produce efficient code that plays well with optimizations, require no external library and are designed specifically for exception handling; should result in faster code and no hidden bugs
   Use inline code to enter/leave trylevels; yields much better binary code
   Inline handlers inside _SEH_PortableFrame_t instead of pointing to them; yields better code for the most common usages
   Turn all top-level statements generated by macros from bare scopes into for loops, to ensure they are used correctly as stand-alone statements
   Removed bitrotten old syntax, because it wasn't being used nor maintained

modified   dll/3rdparty/freetype/freetype.rbuild
modified   dll/win32/kernel32/kernel32.rbuild
modified   drivers/network/tcpip/tcpip.rbuild
modified   lib/drivers/ip/ip.rbuild
modified   lib/rtl/rtl.rbuild
modified   ntoskrnl/ntoskrnl.rbuild
modified   subsystems/win32/win32k/win32k.rbuild
   Removed obsolete _SEH_NO_NATIVE_NLG define

modified   drivers/network/afd/afd/lock.c
modified   drivers/network/afd/afd/tdi.c
modified   subsystems/csr/csrsrv/api.c
modified   subsystems/win32/win32k/ntuser/clipboard.c
modified   subsystems/win32/win32k/ntuser/window.c
   Use the new _SEH_YIELD macro to return/goto from SEH blocks

modified   tools/rbuild/backend/mingw/modulehandler.cpp
modified   tools/rbuild/backend/mingw/modulehandler.h
modified   tools/rbuild/module.cpp
modified   tools/rbuild/project.dtd
modified   tools/rbuild/rbuild.h
   Don't use the obsolete _SEH_NO_NATIVE_NLG flag anymore
   Only add underscores to imported symbols when module is marked underscoresymbols="true"; fixes debugsup and, indirectly, PSEH tracing

modified   lib/3rdparty/mingw/mingw.rbuild
   Build with underscoresymbols="true"

svn path=/trunk/; revision=26224
2007-04-01 00:07:25 +00:00
Dmitry Gorbachev
9ce1b28fc1 Fix the bug introduced in r26219.
svn path=/trunk/; revision=26223
2007-03-31 22:18:16 +00:00
Aleksey Bragin
ebf23937a3 - Fix a few obvious bugs (incorrect DeviceExtension pointer arithmetic, non-initialized field usage).
- Packets are sequentially numbered.

Now all devices are perfectly enumerated (SpBuildDeviceMap() may still need work, but later), and problem occurs later when servicing IOCTLs.

svn path=/trunk/; revision=26222
2007-03-31 20:47:42 +00:00
Aleksey Bragin
fd27183f35 - Implement timeouts / retrying after timeout.
svn path=/trunk/; revision=26221
2007-03-31 20:03:07 +00:00
Aleksey Bragin
fc3d38d1cb - Finish ScsiPortInitialize() refactoring / improving. Only DMA stuff and 2-interrupts case are missing now.
svn path=/trunk/; revision=26220
2007-03-31 18:37:07 +00:00
Dmitry Gorbachev
c08f45390a Do not wait for explorer startup. Hack.
svn path=/trunk/; revision=26219
2007-03-31 11:52:24 +00:00
Magnus Olsen
151cc9133b more compatible fix betwin reactos ddk and ms DDK version 3790.1830
svn path=/trunk/; revision=26218
2007-03-30 22:58:02 +00:00
Magnus Olsen
898210e00d more compatible fix betwin reactos ddk and ms DDK version 3790.1830
svn path=/trunk/; revision=26217
2007-03-30 21:17:33 +00:00
Dmitry Gorbachev
fda50948f1 Fix a bug.
svn path=/trunk/; revision=26216
2007-03-30 21:08:23 +00:00
Magnus Olsen
1ca4f18dc7 more compatible fix betwin reactos ddk and ms DDK version 3790.1830
svn path=/trunk/; revision=26215
2007-03-30 21:08:09 +00:00
Magnus Olsen
043a16c1dc more compatible fix betwin reactos ddk and ms DDK version 3790.1830
svn path=/trunk/; revision=26214
2007-03-30 20:49:26 +00:00
Magnus Olsen
a6246fbb17 more compatible fix betwin reactos ddk and ms DDK version 3790.1830
svn path=/trunk/; revision=26213
2007-03-30 20:04:05 +00:00
Aleksey Bragin
7ea1266acd - Fix ScsiPortGetDeviceBase() / ScsiPortSetDeviceBase().
svn path=/trunk/; revision=26212
2007-03-30 19:24:11 +00:00
Aleksey Bragin
c891e7315a - Further work on ScsiPortInitialize(): old PortConfig section is deleted.
- SpiGetPciData() code improved, part of the code is transferred into a new function.

Right now a crash is introduced in ScsiPortFreeDeviceBase(), because of the changes in ScsiPortInitialize(): will be fixed by the next commit.

svn path=/trunk/; revision=26211
2007-03-30 19:10:29 +00:00
Aleksey Bragin
1f9a18b920 - Revert useless commit:
* No need to copy stuff from DDK, it's prohibited (#define _INC_NEWDEV)
 * #pragma was put there especially, and no reason to remove it was said
 * pushpack / poppack does not do anything if there are no structs definitions

svn path=/trunk/; revision=26210
2007-03-30 15:39:27 +00:00
Magnus Olsen
dedbc24d60 more compatible fix betwin reactos ddk and ms DDK version 3790.1830
svn path=/trunk/; revision=26209
2007-03-30 15:32:34 +00:00
Magnus Olsen
7b9e24ee13 moref compatible fix betwin reactos ddk and ms DDK version 3790.1830
svn path=/trunk/; revision=26208
2007-03-30 15:24:03 +00:00
Magnus Olsen
07ec644063 moref compatible fix betwin reactos ddk and ms DDK version 3790.1830
svn path=/trunk/; revision=26207
2007-03-30 15:13:14 +00:00
Magnus Olsen
d255db35bf fixing usb.h compatible with DDK version 3790.1830
adding usb200.h compatible with DDK version 3790.1830

svn path=/trunk/; revision=26206
2007-03-30 14:50:01 +00:00
Aleksey Bragin
b33dcd50d9 - Start ScsiPortInitialize() refactoring: moving code to separate functions, adding support for various registry-defined options / tweaks (like DisableTaggedQueuing).
- Fixed a bug with using wrong spinlock (IrpLock instead of SpinLock).
- Doesn't fix anything yet, just makes work with the ScsiPortInitialize() more comfortable and initializing needed fields correctly. Also the "PortConfig" filling inside ScsiPortInitialize() will go away once it works fine in the standalone function.

svn path=/trunk/; revision=26205
2007-03-30 13:17:06 +00:00
Magnus Olsen
e3701e4987 remove VidMemFree and HeapVidMemAllocAligned
they are protoypes belong to dmemmgr.h

ddrawi.h need be rewiten it is from wine so I add some hacks for now getting it works simluare to ms ddk version. 
This fix gdi32.dll break in the build

svn path=/trunk/; revision=26204
2007-03-30 09:53:34 +00:00
Magnus Olsen
b18be77063 fixing newdev.h compatible with DDK version 3790.1830
it did not have #include <pshpack1.h>  and #include <poppack.h>

svn path=/trunk/; revision=26203
2007-03-30 08:47:54 +00:00
Magnus Olsen
0772fa79b5 adding ieverp.h compatible with DDK version 3790.1830
svn path=/trunk/; revision=26202
2007-03-30 08:41:21 +00:00
Magnus Olsen
94bc12cc65 fixing ddrawint.h compatible with DDK version 3790.1830
adding polarity.h compatible with DDK version 3790.1830

svn path=/trunk/; revision=26201
2007-03-30 08:34:20 +00:00
Aleksey Bragin
fe868c7d45 - Implement a simple error handling branch, however it gets hit due to an error somewhere else.
svn path=/trunk/; revision=26200
2007-03-29 21:18:28 +00:00
Aleksey Bragin
3ff7da19ca - Massive changes due to a rewrite of the core logic related to ISR, DPC, IRP completion and commands delivery. Fixes a lot of race conditions which existed in hbirr-scsiport.
- Add some helper functions, and fields inside device extension structures.
- Reorganize flags a little, dividing them into flags for scsi port device extension and logical unit device extension. (however some of the flags are still messed up)
- This gets us further, but still not enough / bugs may exist.

svn path=/trunk/; revision=26199
2007-03-29 21:05:41 +00:00
Aleksey Bragin
3d4fc31db6 - Change unclear flag name to a better one.
- Set needed flags in a few places (which I forgot to set) - this fixes the hang introduced by the previous commit.
- Further code prettification.

svn path=/trunk/; revision=26198
2007-03-28 19:26:41 +00:00
Hervé Poussineau
e2ab9cb060 Don't use ntoskrnl.RtlDuplicateUnicodeString, as it is not exported on MS Windows
svn path=/trunk/; revision=26197
2007-03-28 18:47:35 +00:00
Aleksey Bragin
d8175ef0a6 - Rearrange code inside ScsiPortStartIo() routine (some code for dma-support added, but currently disabled), also change time when spinlock is being held.
- Respective changes in ScsiPortStartPacket(), also some code is missing for rare kind of requests.
- Add flags check into ScsiPortIsr(), so that we skip unwanted interrupts (and change to usage of the new interrupt flags structure instead of a strange and unclear "IrpFlags" field).

svn path=/trunk/; revision=26196
2007-03-28 18:29:15 +00:00
Johannes Anderwald
d7f6674119 - fix memory leak
svn path=/trunk/; revision=26195
2007-03-28 17:43:44 +00:00
Hervé Poussineau
71bef156c4 Fix interrupt resources (related to r21188 fix)
svn path=/trunk/; revision=26194
2007-03-28 17:40:57 +00:00
Aleksey Bragin
93f480d223 Fix HalGetInterruptVector() calls. Should enable input devices after 26188 fix.
svn path=/trunk/; revision=26193
2007-03-28 17:14:16 +00:00
Aleksey Bragin
ce0e0958b4 - Start putting all data, needed for ISR into a dedicated structure.
- Use DEVICE_QUEUEs.
- Add a function to retrieve SRB information help structure (is a shared code between Notify(), and in future - ScsiPortGetSrb()).
- Rework RequestComplete part of ScsiPortNotification().
- Rework ScsiPortDispatchScsi() a bit - shutdown/flush can share the same code as execute_scsi/ioctl requests, also added a few more DPRINTs in error conditions to help debugging.

svn path=/trunk/; revision=26192
2007-03-28 10:41:03 +00:00
Aleksey Bragin
24387402f3 - Fix a few simple mistakes / typos.
- Enumerating buses almost works.

svn path=/trunk/; revision=26191
2007-03-28 09:44:37 +00:00
Magnus Olsen
95c38a9cf1 change ObpDosDevicesShortName match the ob.h header prototype
svn path=/trunk/; revision=26190
2007-03-27 21:21:32 +00:00
Aleksey Bragin
dfd6a60128 - Rewrite bus scanning / inquiry handling (was BSODing).
- Change a way LUN extensions are stored inside DeviceExtension.

svn path=/trunk/; revision=26189
2007-03-27 21:15:09 +00:00
Aleksey Bragin
f5af63ddda - Fix HalGetInterruptVector()'s usage of level vs. vector. At least Windows seems to use Level parameter.
- No need in special hacks (e.g. in scsiport), as a result.

svn path=/trunk/; revision=26188
2007-03-27 12:55:57 +00:00
Aleksey Bragin
379a566aa8 Change code, fix warnings, so it finally builds.
svn path=/trunk/; revision=26187
2007-03-27 11:07:12 +00:00
Aleksey Bragin
285adfefbe - Remove old crap files
- Put new .def, add .rbuild

svn path=/trunk/; revision=26186
2007-03-27 10:12:59 +00:00
Aleksey Bragin
86476d7a1b Branch scsiport from the "before hbirr rewrite" state (rev. 8950).
svn path=/trunk/; revision=26185
2007-03-27 10:07:57 +00:00
Timo Kreuzer
9c00af1b5f fix a tiny mem leak
svn path=/trunk/; revision=26184
2007-03-27 02:52:42 +00:00
Hervé Poussineau
76f7f2d03a Include nci.mak later, as it needs $(ARCH) variable
Fix a typo in ncitool

svn path=/trunk/; revision=26183
2007-03-26 23:43:07 +00:00
Hervé Poussineau
cd21248e88 Add missing file
svn path=/trunk/; revision=26182
2007-03-26 23:00:58 +00:00
Hervé Poussineau
0e5cca2a4e - Move NCI generated files to arch-specific directories
- Replace ncitool by the one from powerpc branch, which supports code generation for multiple architectures

svn path=/trunk/; revision=26181
2007-03-26 22:56:22 +00:00
Hervé Poussineau
acad1159c3 Cleanup code for easier porting to other architectures
svn path=/trunk/; revision=26180
2007-03-26 20:28:13 +00:00
Aleksey Bragin
87d76d8d95 Commit to test SVN 1.4.3 upgrade...
svn path=/trunk/; revision=26179
2007-03-26 18:56:35 +00:00
Magnus Olsen
24f90dc0c9 we now resive DrvGetDirectDrawInfo DD_HALINFO from the driver to win32k from win32k to gdi32.dll or d3dthk.dll or direcly syscall. it take care of allot bugs in my test case. tested with vmware driver
svn path=/trunk/; revision=26178
2007-03-26 07:49:05 +00:00
Magnus Olsen
8362925634 ReactOS win32k are using windows 2000 driver and it seam if we want using ms dx interface for graphics driver we must report it is plan NT5 driver we want not higher or lower, this show from vmware own display driver, now we get req for pvmList before we doing second call to DrvGetDirectDrawInfo, it show good sign we got that request from vmware driver.
svn path=/trunk/; revision=26177
2007-03-26 03:46:11 +00:00
Hervé Poussineau
e9f5948d58 Allocate enough memory to copy string
See issue #2107 for more details.

svn path=/trunk/; revision=26176
2007-03-25 22:42:37 +00:00
Hervé Poussineau
b58b255ebf Fix warnings by Pierre Schweitzer
Add svn:eol-style property
See issue #2096 for more details.

svn path=/trunk/; revision=26175
2007-03-25 21:25:11 +00:00
Hervé Poussineau
06c88018fb Updated French translation by Pierre Schweitzer
See issue #2001 for more details.

svn path=/trunk/; revision=26174
2007-03-25 21:20:32 +00:00
Hervé Poussineau
50e595a2db Add French translation by Stéphane BARTHES
Update German translation by Colin Finck
See issue #2101 for more details.

svn path=/trunk/; revision=26173
2007-03-25 20:59:55 +00:00
Hervé Poussineau
d94852e52a French translation by Stéphane BARTHES
See issue #2101 for more details.

svn path=/trunk/; revision=26172
2007-03-25 20:55:06 +00:00
Hervé Poussineau
54ddef051a French translation by Stéphane BARTHES
See issue #2109 for more details.

svn path=/trunk/; revision=26171
2007-03-25 20:49:00 +00:00
Aleksey Bragin
fff4893bbc - Change ScsiPort prototype to match DDK.
svn path=/trunk/; revision=26170
2007-03-25 18:21:12 +00:00
Aleksey Bragin
87967349f8 - Add a few more IOCTLs needed for storage stack
- Add a couple of structs from DDK
- Change ScsiPort prototype to match DDK

svn path=/trunk/; revision=26169
2007-03-25 18:18:51 +00:00
Aleksey Bragin
e0fff4a12f rbuild uses TABs for indentation.
svn path=/trunk/; revision=26168
2007-03-25 17:24:52 +00:00
Alex Ionescu
c28da2e61a - Fixup some kernel module debugging flags/settings from leftovers.
- Enable debugging during text-mode setup.
- Optimize KeSynhronizeExecution into assembly so we can avoid using EBP and have the fastest possible routine, since it is performance critical.
- 

svn path=/trunk/; revision=26167
2007-03-25 14:33:54 +00:00
Aleksey Bragin
ea6edc618d More 26160-style fixes (mandatory addressing of PCR via FS register).
Alex & Dmitry - please check this, just in case.

svn path=/trunk/; revision=26166
2007-03-25 14:31:03 +00:00
Aleksey Bragin
51147f6c84 - Fix (and optimize) KeRemoveByKeyDeviceQueue() routine.
- Add DPRINTs for easier testing/debugging.

svn path=/trunk/; revision=26165
2007-03-25 13:23:30 +00:00
Magnus Olsen
34713168d4 Fixing smaller bugs in dx after some analyzing how vmware drv works.
1. vmware drv do not implement DrvGetDirectDrawInfo
   that show windows 2000/XP/2003 that mean u are not force to implement this api in the drv, only INDEX_DrvEnableDirectDraw and INDEX_DrvDisableDirectDraw are req to be implement in the driver. 

svn path=/trunk/; revision=26164
2007-03-25 10:53:05 +00:00
Ged Murphy
3907b65ae1 rearrange servman language files before sbs goes crazy ...
svn path=/trunk/; revision=26163
2007-03-24 14:55:57 +00:00
Ged Murphy
aee5aaff2e ensure correct linkage. fixes build
svn path=/trunk/; revision=26162
2007-03-24 11:36:36 +00:00
Ged Murphy
00b0578558 make entry points unicode compliant
thanks to Colin Finck for noticing

svn path=/trunk/; revision=26161
2007-03-24 10:38:15 +00:00
Dmitry Gorbachev
6afc128ac7 Fix a bug.
svn path=/trunk/; revision=26160
2007-03-24 08:31:23 +00:00
Magnus Olsen
8d9781fe92 rewrite old NtGdiDdBlt I wrote so it match with the new caching of Dx pointers. Fixing varius problem in NtGdiDdCreateSurface. But some who the color are not being draw right with DdBlt work in Progress to figout why. But it works now partly yes dx start working. at kmode or syscall for real apps. or if they are using gdi32.dll or d3d8thk.dll
svn path=/trunk/; revision=26159
2007-03-23 17:07:49 +00:00
Thomas Bluemel
2ac1a08519 Fix bugs in GetBinaryType reported by songlei@qihoo.net
svn path=/trunk/; revision=26158
2007-03-23 15:34:34 +00:00
Magnus Olsen
b54c8f6b9b Thank CodeMercenary (CodeMercenary at hotmail dot com) that provide ms ddk example driver code is wrong for how to write a graphice driver with dx support. he gave me input and provide the ddk example code is wrong.
Now I change the desgin after correct infomations
so it lead to even less overhead of code. 
 
 

svn path=/trunk/; revision=26157
2007-03-23 12:47:19 +00:00
Timo Kreuzer
b7763201df fix build
svn path=/trunk/; revision=26156
2007-03-23 01:52:24 +00:00
Aleksey Bragin
eebea09420 When initial setup is running it asks to press enter to format the drive, then
it displays the exact same message again before finally formatting the drive.

Thanks Colin_Finck.

See issue #1964 for more details.

svn path=/trunk/; revision=26155
2007-03-22 18:38:48 +00:00
Ged Murphy
f279772add fix icon
svn path=/trunk/; revision=26154
2007-03-22 18:37:23 +00:00
Hervé Poussineau
cc526db47b Send service name to pnproot driver (not used yet)
svn path=/trunk/; revision=26153
2007-03-22 17:13:14 +00:00
Aleksey Bragin
fed3766e68 - Clear DPC request when delivering DPCs from the idle loop
(by Alex Ionescu).

svn path=/trunk/; revision=26152
2007-03-21 21:28:58 +00:00
Hervé Poussineau
b3f670a641 Add svn:eol-style property
svn path=/trunk/; revision=26151
2007-03-21 20:32:38 +00:00
Hervé Poussineau
3b3c9641e4 Clear DO_DEVICE_INITIALIZING flag when device is initialized.
See issue #1790 for more details.

svn path=/trunk/; revision=26150
2007-03-21 18:13:32 +00:00
Johannes Anderwald
f8cf12b484 - revert 26147
svn path=/trunk/; revision=26149
2007-03-21 17:16:26 +00:00
Aleksey Bragin
6276a365f6 - KiRosFrldrLpbToNtLpb(): Round up to the correct size in pages (I don't see a reason to provide a "cropped" size of modules).
- Change "FreeLDR BIAS hack" to a better one: measure sizes of all 3 codepages, and place them contiguously. Is this still required at all? On my system I didn't see a case when these tables are placed not contiguously by freeldr.
- This fixes early bugcheck in ExpInitNls().

svn path=/trunk/; revision=26148
2007-03-21 14:31:57 +00:00
Johannes Anderwald
f24347940e - fix makefiles to depend on TOOLS_OUT_ value than directly hardcoding it to $(OUTPUT)
svn path=/trunk/; revision=26147
2007-03-20 20:12:10 +00:00
Aleksey Bragin
1f06d767be Fix MSVC compilation with NT4 ddk.
svn path=/trunk/; revision=26146
2007-03-20 19:09:55 +00:00
Dmitry Gorbachev
1f7253af8d Italian translation by Paolo Devoti.
svn path=/trunk/; revision=26145
2007-03-20 16:03:32 +00:00
Dmitry Gorbachev
7c4c2ff00b Italian translation by Paolo Devoti.
svn path=/trunk/; revision=26144
2007-03-20 16:02:01 +00:00
Dmitry Gorbachev
bb0f048c4c Italian translation by Paolo Devoti (see bug #2027)
svn path=/trunk/; revision=26143
2007-03-20 16:01:19 +00:00
Alex Ionescu
6de9ae607d - Fix an important bug which was causing us to incorrectly set the DPC Stack in the Processor Region Control Block.
- Enable usage of the DPC Stack during DPCs.
- Enable usage of the DPC Stack during Fast System Calls and put back the correct push/pop code in FASTCALL_PROLOG.

svn path=/trunk/; revision=26142
2007-03-19 21:53:38 +00:00
Alex Ionescu
5037bca4df - Don't use the stack in FASTCALL_PROLOG. It messes up NPX checks (this is a bug, it shouldn't happen... related to DPC stack bug.)
- Zero out the trap/npx frame for new user-mode threads.
- Use KeI386FxsrPresent and not KEI386XMMIPresent when setting up the context for a new thread.

svn path=/trunk/; revision=26141
2007-03-19 19:43:50 +00:00
Alex Ionescu
71e781df12 - Fix NPX check in context switcher.
- Fix ObLogSecurityDescriptor.
- Fix some missing features in SeAccessCheck.

svn path=/trunk/; revision=26140
2007-03-19 19:05:39 +00:00
Alex Ionescu
1d2fd8ac1f - Change FASTCALL_PROLOG to use the stack to update FS, since we run in the DPC stack.
- Implement KeDisableInterrupts to disable interrupts and return whether or not they were enabled.
- Implement KiCheckTimerTable, in DBG mode, to validate the timer tables.
- Implement DPC Timeout detection, in DBG mode.
- Fix a bug in KiQuantumEnd which would've affected real-time threads.
- Fix some bugs in KiRetireDpcList to avoid issues should the DPC Queue Depth drop below 0, and solve some possible races.
- Fix KeRemoveQueueDpc only to enable interrupts if it was called with interrupts enabled.

svn path=/trunk/; revision=26139
2007-03-19 17:55:38 +00:00
Alex Ionescu
755994a386 - Change the way DR_TRAP_FIXUP and V86_TRAP_FIXUP work so that they can be combined into TRAP_FIXUPS, which will also handle ABIOS Fixups later.
- Modified the way TRAP_FIXUPS and XXX_PROLOGS work, so that the fixup code doesn't depend on numerical values anymore, but instead on unique labels for each function (kitd thus becomes kitd_a and kitd_t, for entry and exit).
- Now we can put the TRAP_FIXUPS for the Interrupt Template as part of the code, and at the end.
- Enable Dr Save/Restore in lots of places where it was previously disable.
- Implement Dr Save/Restore in V86 traps.

svn path=/trunk/; revision=26138
2007-03-19 05:56:27 +00:00
Alex Ionescu
32ca724933 - New ISR Timeout detection code.
- New Interrupt Storm detection code.
- Use PCR everywhere instead of fs:[ or [fs:. Significant improvements on UP builds because we use ds:[KPCRADDRESSS] for them.
- Ongoing work.

svn path=/trunk/; revision=26137
2007-03-19 03:29:29 +00:00
Eric Kohl
42c0ac532c Fix some dialog issues:
- Use AUTOCHECKBOXes instead of CHECKBOXes.
- Set the height of CHECKBOXes and PUSHBUTTONs to 14.
- Get rid of overlapping controls.
- Remove DS_FIXEDSYS dialog style.
- Move language-independent resources to the main .rc file.

svn path=/trunk/; revision=26136
2007-03-18 21:56:25 +00:00
Aleksey Bragin
0b926dc709 It's better to zero-initialize these variables before calling RtlQueryRegistryValues().
svn path=/trunk/; revision=26135
2007-03-18 21:55:21 +00:00
Sylvain Petreolle
1d40e5858d add KsInitializeDriver
svn path=/trunk/; revision=26134
2007-03-18 17:12:18 +00:00
Sylvain Petreolle
08dcc6be8a reenable mpu401_ks,
it builds since andrew added the needed includes

svn path=/trunk/; revision=26133
2007-03-18 15:51:37 +00:00
Sylvain Petreolle
8c680affb1 various fixes
sb16_ks now builds, but cannot be built

svn path=/trunk/; revision=26132
2007-03-18 15:38:04 +00:00
Hervé Poussineau
87bde6d032 Add a variable to change the name of the ReactOS directory on bootcd.
If a non default name is chosen, the cdrom is created, but it is unusable as freeldr doesn't find txtsetup.inf

svn path=/trunk/; revision=26131
2007-03-18 14:33:17 +00:00
Hervé Poussineau
b0385e2a41 Fix SeAccessCheck to perform correct checks.
When returning STATUS_ACCESS_DENIED when required (currently disabled), ReactOS boots up to login screen on 3rd boot.
Now, we just need to fix callers.

svn path=/trunk/; revision=26130
2007-03-18 12:47:27 +00:00
Sylvain Petreolle
567f8a2469 add missing parenthesis
svn path=/trunk/; revision=26129
2007-03-18 11:39:27 +00:00
Hervé Poussineau
0423e310b2 Fix warnings
svn path=/trunk/; revision=26128
2007-03-18 00:27:02 +00:00
Hervé Poussineau
2d8e002457 Fix some warnings
svn path=/trunk/; revision=26127
2007-03-17 23:21:23 +00:00
Hervé Poussineau
889d81aa97 Disable PS/2 auxiliary port detection, which is too unreliable.
svn path=/trunk/; revision=26126
2007-03-17 21:25:00 +00:00
Hervé Poussineau
958ed9973b Add some missing definitions
svn path=/trunk/; revision=26125
2007-03-17 21:14:11 +00:00
Hervé Poussineau
4670093f37 Fix default data sent to RtlQueryRegistryValues
svn path=/trunk/; revision=26124
2007-03-17 20:53:05 +00:00
Magnus Olsen
f06ffd93b8 fixing a gcc4 warring. why does gcc4 warning a uninsiated value but the value are being iniste in seh
svn path=/trunk/; revision=26123
2007-03-17 18:32:32 +00:00
Magnus Olsen
287d86906b Now we can call to the driver createsurface, but we fail create a surface. maybe I miss fill in some value ??
svn path=/trunk/; revision=26122
2007-03-17 15:15:27 +00:00
Andrew Greenwood
d157ccaa15 Should compile now...
svn path=/trunk/; revision=26121
2007-03-17 13:27:50 +00:00
Andrew Greenwood
f8ed50f1f4 A few header files I forgot to commit last time. Sorry!
svn path=/trunk/; revision=26120
2007-03-17 13:21:33 +00:00
Dmitry Gorbachev
f4f6d1b7e2 Fix my bad fix.
svn path=/trunk/; revision=26119
2007-03-17 08:30:26 +00:00
Magnus Olsen
566a0ec7e9 small typo in DdCreateSurface
svn path=/trunk/; revision=26118
2007-03-16 17:04:53 +00:00
Dmitry Gorbachev
93a03949bf Fix bugs #2049 and #2084 (thanks to Peter Krawies)
svn path=/trunk/; revision=26117
2007-03-16 16:54:34 +00:00
Dmitry Gorbachev
6f562dec4a Fix a bug (#2054, translation by Heis Spiter)
svn path=/trunk/; revision=26116
2007-03-16 16:53:01 +00:00
Dmitry Gorbachev
6c337b4d51 Commit a patch (attachment #1135)
svn path=/trunk/; revision=26115
2007-03-16 16:52:36 +00:00
Magnus Olsen
3c950f2259 start fixing NtGdiDdCreateSurface, This code are not complete and does not work for NtGdiDdCreateSurface yet. But I do not whant start 10 time write it again.
svn path=/trunk/; revision=26114
2007-03-16 15:28:48 +00:00
Aleksey Bragin
83ba5bc979 - Fix a few simple errors in ks/portcls.h
- Exclude it from the build process since important header files are missing (Hint to Andrew: commit stdunk.h & co)

svn path=/trunk/; revision=26113
2007-03-16 12:49:47 +00:00
Aleksey Bragin
a647cfde4b Put ntdll dependency back.
svn path=/trunk/; revision=26112
2007-03-16 11:45:52 +00:00
Magnus Olsen
c837850451 fixing smaller bugs in NtGdiDdQueryDirectDrawObject,
like some return value are right

svn path=/trunk/; revision=26111
2007-03-16 09:01:40 +00:00
Art Yerkes
2a58de26de Stragglers plus warning fixen.
svn path=/branches/powerpc/; revision=26110
2007-03-16 07:16:45 +00:00
Hervé Poussineau
df2510eefd Fix compilation of drivers ks, mpu401_ks and sb16_nt4
svn path=/trunk/; revision=26109
2007-03-15 19:00:34 +00:00
Hervé Poussineau
294005ab57 Add missing #endif
svn path=/trunk/; revision=26108
2007-03-15 16:32:56 +00:00
Hervé Poussineau
0d0de63b1b Split intrin.h file into architecture specific files
svn path=/trunk/; revision=26107
2007-03-15 15:42:11 +00:00
Hervé Poussineau
17dd2f5904 Add some missing files. Trunk is still not buildable
svn path=/trunk/; revision=26106
2007-03-15 10:58:19 +00:00
Aleksey Bragin
b51c90e8d2 - "Fix" RtlQueryRegistryValues() usage (inspired by 26072)
- Typo fix
- DPRINT added for showing RegistryPath

svn path=/trunk/; revision=26105
2007-03-15 10:37:58 +00:00
Hervé Poussineau
a1d5a61f87 Fix crt compilation
svn path=/trunk/; revision=26104
2007-03-15 09:14:59 +00:00
Andrew Greenwood
30bfd875a8 Yet more files I've been meaning to commit...
(and again they're mostly incomplete)


svn path=/trunk/; revision=26103
2007-03-14 21:31:31 +00:00
Andrew Greenwood
b4da8c5ab8 Basic beginnings of an MPU401 driver (forgot to commit with last files)
svn path=/trunk/; revision=26102
2007-03-14 20:50:42 +00:00
Alex Ionescu
6092d2b4b8 - Move libcntpr to /sdk. Couldn't do rename+move atomically.
svn path=/trunk/; revision=26101
2007-03-14 20:34:10 +00:00
Alex Ionescu
c46a354547 - Rename libcntptr->libcntpr. I don't know what the f*ck happened but it was named _correctly_ on my system, then got committed with the wrong name, while svn still matched it locally.
svn path=/trunk/; revision=26100
2007-03-14 20:33:22 +00:00
Alex Ionescu
7b13eab23c - Actually add libcntpr. Yup, I messed this up badly.
svn path=/trunk/; revision=26099
2007-03-14 20:30:32 +00:00
Alex Ionescu
1d6bb4a345 - Add missing file.
svn path=/trunk/; revision=26098
2007-03-14 20:30:00 +00:00
Alex Ionescu
5ba01b7bbb - Remove leftovers.
svn path=/trunk/; revision=26097
2007-03-14 20:29:24 +00:00
Alex Ionescu
f96362240e - Remove leftovers.
svn path=/trunk/; revision=26096
2007-03-14 20:28:28 +00:00
Alex Ionescu
85985d712e - Cleanup the /lib directory, by putting more 3rd-party libs in /3rdparty, and by creating a new directory called /sdk where libraries which emulate the ones in the WDK are present (Such as uuid, nt, crt, etc).
- Removed lib/interlck and lib/string.
- Removed math routines from lib/rtl.
- Created a new library called libcntpr which is what NT/WDK use when compiling the kernel/system libraries. This is an "NT-Private" version of the CRT which is supposed to contain what we had in lib/string and lib/rtl.

svn path=/trunk/; revision=26095
2007-03-14 20:24:57 +00:00
Andrew Greenwood
e4cfaf284e Mostly minor updates to the source tree for portcls.
Still much work to be done!


svn path=/trunk/; revision=26094
2007-03-14 19:50:47 +00:00
Magnus Olsen
3738b97003 Bug fix DdCreateSurface, it can now create one surface, the code are tested in windows, in my syscall demo for win32k. We do not support create more that one surface. mulit surface create will be add later. But code path to implement it, exist
svn path=/trunk/; revision=26093
2007-03-14 16:33:36 +00:00
The Wine Synchronizer
de50154dfe Autosyncing with Wine HEAD
svn path=/trunk/; revision=26092
2007-03-14 14:55:42 +00:00
The Wine Synchronizer
59ff37d40e Autosyncing with Wine HEAD
svn path=/trunk/; revision=26091
2007-03-14 14:54:22 +00:00
The Wine Synchronizer
15fc32b041 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26090
2007-03-14 14:52:10 +00:00
The Wine Synchronizer
7a7a27ca44 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26089
2007-03-14 14:50:28 +00:00
The Wine Synchronizer
f64ae53f31 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26088
2007-03-14 14:46:50 +00:00
The Wine Synchronizer
0b3750172e Autosyncing with Wine HEAD
svn path=/trunk/; revision=26087
2007-03-14 14:44:22 +00:00
The Wine Synchronizer
5962dcf2b9 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26086
2007-03-14 14:43:17 +00:00
The Wine Synchronizer
39708f92fe Autosyncing with Wine HEAD
svn path=/trunk/; revision=26085
2007-03-14 14:39:18 +00:00
The Wine Synchronizer
efbe7b0e2c Autosyncing with Wine HEAD
svn path=/trunk/; revision=26084
2007-03-14 14:38:17 +00:00
The Wine Synchronizer
aaf129ba9b Autosyncing with Wine HEAD
svn path=/trunk/; revision=26083
2007-03-14 14:34:47 +00:00
The Wine Synchronizer
958f8ca669 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26082
2007-03-14 14:33:33 +00:00
The Wine Synchronizer
9da480a6c6 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26081
2007-03-14 14:29:38 +00:00
The Wine Synchronizer
688da06757 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26080
2007-03-14 14:20:42 +00:00
The Wine Synchronizer
5988132317 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26079
2007-03-14 14:13:17 +00:00
Hervé Poussineau
25c32b4c9b Add missing file for autosync of cabinet.dll
svn path=/trunk/; revision=26078
2007-03-14 13:05:40 +00:00
The Wine Synchronizer
8392d2f122 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26077
2007-03-14 12:55:03 +00:00
The Wine Synchronizer
428fdc04d7 Autosyncing with Wine HEAD
svn path=/trunk/; revision=26076
2007-03-14 12:48:32 +00:00
Hervé Poussineau
217ef4cd9f Prepare import of Wine library odbccp32 (sorry, this revision won't build)
svn path=/trunk/; revision=26075
2007-03-14 12:44:54 +00:00
Hervé Poussineau
29f298cd86 Add stubs for SetupDiGetClassInstallParamsA/W
Support SetupDiSetClassInstallParams(DIF_ADDPROPERTYPAGE_ADVANCED)

svn path=/trunk/; revision=26074
2007-03-14 12:29:18 +00:00
Hervé Poussineau
62be77605d No need to ask for more rights than needed
svn path=/trunk/; revision=26073
2007-03-14 12:23:21 +00:00
Alex Ionescu
cd1198b3d6 - Rewrite RtlQueryRegistryValues and implement all the features it requires. This is one of the most important kernel-mode API for driver support.
- Fix code in the kernel which was incorrectly calling it.

svn path=/trunk/; revision=26072
2007-03-14 01:44:38 +00:00
Dmitry Gorbachev
1fbd004ffe Fix bug #1872
svn path=/trunk/; revision=26071
2007-03-13 16:08:49 +00:00
Hervé Poussineau
c306ff4785 Prevents a freeze when running the bootcd. Still needs to investigate to find the real reason.
svn path=/trunk/; revision=26070
2007-03-13 15:57:50 +00:00
Andrew Munger
4062336483 Typo fixes, patch by our friend Coviti.
svn path=/trunk/; revision=26068
2007-03-13 11:28:18 +00:00
Alex Ionescu
a97f262ed8 - Fix some bugs in the kernel related to driver loading, which were hindering FreeLDR 2.5 support.
- Make FreeLDR relocate and process the import tables of drivers as well. This is almost FreeLDR 2.5 but is still missing some minor functionality before being completely done.

svn path=/trunk/; revision=26067
2007-03-12 17:30:57 +00:00
Dmitry Gorbachev
8d8e5ea06e Fix BSS bugs (#2068, #2072)
svn path=/trunk/; revision=26066
2007-03-12 00:29:56 +00:00
Magnus Olsen
4485db1f76 NtGdiDdWaitForVerticalBlank
copy user mode pointer to kmode memory
and copy back some data to user mode pointer
using seh

NtGdiDdCanCreateSurface, NtGdiDdGetScanLine
fixing a stupied bug do not crash if look
fail of hDD handler. but this should never 
happen. either way

 

svn path=/trunk/; revision=26065
2007-03-11 16:28:22 +00:00
Magnus Olsen
4a26adf7ff fixing smaller bug in NtGdiDdCanCreateSurface
and NtGdiDdGetScanLine

svn path=/trunk/; revision=26064
2007-03-11 15:47:49 +00:00
Magnus Olsen
537190e037 fixing smaller bug in NtGdiDdCanCreateSurface
svn path=/trunk/; revision=26063
2007-03-11 15:18:12 +00:00
Magnus Olsen
b860835afa forget clear a value in gdientry2
svn path=/trunk/; revision=26062
2007-03-11 14:01:22 +00:00
Alex Ionescu
6b126a39a9 - Release dispatcher lock if gate is already signaled.
See issue #2083 for more details.

svn path=/trunk/; revision=26061
2007-03-11 00:42:18 +00:00
Eric Kohl
7ac91cf037 Show custom colors in the preview window.
svn path=/trunk/; revision=26060
2007-03-10 21:25:03 +00:00
Dmitry Gorbachev
d400691f1c Fix Bugzilla bug 2051 (French translation by Heis Spiter)
svn path=/trunk/; revision=26059
2007-03-10 19:07:20 +00:00
Dmitry Gorbachev
b2b8e513c8 Norwegian translation by LMH1 (bugs 1699, 1739, 1740)
svn path=/trunk/; revision=26058
2007-03-10 18:54:12 +00:00
Eric Kohl
a4135506bb Get rid of the ugly dialogs. User the current shell font instead.
svn path=/trunk/; revision=26057
2007-03-10 14:32:49 +00:00
Dmitry Gorbachev
d8304d7df3 Do not install them two times.
svn path=/trunk/; revision=26056
2007-03-10 12:47:04 +00:00
Dmitry Gorbachev
88c1378112 Disable incorrect optimization
svn path=/trunk/; revision=26055
2007-03-10 11:06:02 +00:00
Saveliy Tretiakov
136be81331 Disable debug (second attempt
svn path=/trunk/; revision=26054
2007-03-10 10:40:11 +00:00
Eric Kohl
47199f7b6b - Let the user close dialogs by clicking the close (X) button.
svn path=/trunk/; revision=26053
2007-03-10 09:29:50 +00:00
KJK::Hyperion
b788577769 Set _SEH_ENABLE_TRACE for debug builds
svn path=/trunk/; revision=26052
2007-03-10 06:42:05 +00:00
KJK::Hyperion
f5891f221e added lib/debugsup
added      lib/debugsup/debugsup-ntos.def
added      lib/debugsup/debugsup.rbuild
modified   lib/lib.rbuild
   New import-only library. Links modules that need low-level debugging functions (DbgBreakPoint, DbgBreakPointWithStatus, DbgPrint, DbgPrompt, DbgPrintEx, RtlAssert, RtlUnwind) to the correct low-level library (ntdll for user mode and ntoskrnl for kernel mode). This ensures debugging macros will always work, everywhere, and it doesn't force all modules with debugging information to link to ntdll/ntoskrnl. TODO: link RtlUnwind to kernel32 for Win32 modules

modified   tools/rbuild/backend/mingw/modulehandler.cpp
modified   tools/rbuild/backend/mingw/modulehandler.h
   Add debugsup_ntdll/debugsup_ntoskrnl as an implicit library for all executable modules (minus the kernel)


svn path=/trunk/; revision=26051
2007-03-10 03:51:27 +00:00
Dmitry Gorbachev
2ce0a2f2ed Update Russian translation.
svn path=/trunk/; revision=26050
2007-03-09 22:27:04 +00:00
Saveliy Tretiakov
c6f7e2ff23 Disable debug
svn path=/trunk/; revision=26049
2007-03-09 21:36:35 +00:00
Saveliy Tretiakov
a039eb5807 Fix bug 2080
svn path=/trunk/; revision=26048
2007-03-09 21:35:14 +00:00
Hervé Poussineau
2ce91bd022 Remove IopCreateDriverObject, which was buggy and duplicating IoCreateDriver functionality.
Add IopCreateDriver to contain common code, called by IoCreateDriver and ex-callers of IopCreateDriverObject.

svn path=/trunk/; revision=26047
2007-03-09 18:14:34 +00:00
Alex Ionescu
d2aecb2da4 - Fix building the BootCD.
svn path=/trunk/; revision=26046
2007-03-09 08:31:05 +00:00
Hervé Poussineau
d0b5dbfa63 Do not access to not initialized variable
svn path=/trunk/; revision=26045
2007-03-08 22:50:48 +00:00
Aleksey Bragin
90a1a6d858 Add bitmap version of the Lake wallpaper and directory.rbuild.
trunk/wallpaper is to be checked out into the "modules" directory! (so it can be optional)

svn path=/trunk/; revision=26043
2007-03-08 21:45:10 +00:00
Magnus Olsen
348c174ef2 wallpaper from harteex
svn path=/trunk/; revision=26042
2007-03-08 21:02:53 +00:00
Magnus Olsen
f41eda3c31 Created folder wallpaper remotely
for adding diffrent offical wallpaper

svn path=/trunk/; revision=26041
2007-03-08 20:27:14 +00:00
Saveliy Tretiakov
dd635fa115 ReEnable assert (as Alex suggested)
svn path=/trunk/; revision=26040
2007-03-08 20:09:50 +00:00
Saveliy Tretiakov
22b62d2461 Forget to enter critical region
svn path=/trunk/; revision=26039
2007-03-08 19:45:32 +00:00
Saveliy Tretiakov
d71c81868e Fix build:
- Add missing function protype.
- Move IntSetupClipboard to winsta.c


svn path=/trunk/; revision=26038
2007-03-08 19:44:36 +00:00
Magnus Olsen
619c975c6a fixing minior bugs in DdQueryDirectDrawObject
some data was not fill in

svn path=/trunk/; revision=26035
2007-03-08 19:18:06 +00:00
Aleksey Bragin
038309c488 Remove clipboard merge leftover.
YES encoded, yes.

svn path=/trunk/; revision=26034
2007-03-08 19:11:09 +00:00
Alex Ionescu
1e3d5d70e9 - Tree cleanups proposed on the mailing list. Move all non-Core OS modules to rosapps. Tests were already moved by Fireball to rostests.
svn path=/trunk/; revision=26033
2007-03-08 19:00:15 +00:00
Alex Ionescu
ad07a1e58f - Tree cleanups proposed on the mailing list. Move all non-Core OS modules to rosapps. Tests were already moved by Fireball to rostests.
svn path=/trunk/; revision=26032
2007-03-08 18:59:45 +00:00
Thomas Bluemel
a90321860f Add the very beginnings of a mmc.exe implementation (not yet included in the build)
svn path=/trunk/; revision=26031
2007-03-08 17:44:10 +00:00
Saveliy Tretiakov
59736af42b Merge clipboard branch to trunk
svn path=/trunk/; revision=26029
2007-03-08 13:31:33 +00:00
Saveliy Tretiakov
52913c361c change dprint1 to dprint
svn path=/trunk/; revision=26028
2007-03-08 12:57:19 +00:00
Saveliy Tretiakov
2d04abb37e Fix make livecd
svn path=/trunk/; revision=26027
2007-03-08 12:31:24 +00:00
Aleksey Bragin
3937a712b0 - Fix bootcd (taking in account rostests module too)
- Add mscutils to the build process

svn path=/trunk/; revision=26026
2007-03-07 22:10:37 +00:00
Aleksey Bragin
420b5b108e - Uncomment a couple of implemented Ob functions
svn path=/trunk/; revision=26025
2007-03-07 12:32:02 +00:00
Aleksey Bragin
1c0cf74086 - Fix a typo in the function header
svn path=/trunk/; revision=26024
2007-03-07 12:30:07 +00:00
Aleksey Bragin
5323c74126 Revert 25953.
"[14:22] <hackbunny> Fireball: FUCK
 [14:22] <hackbunny> he actually COMMITTED that code?"

svn path=/trunk/; revision=26022
2007-03-07 11:28:51 +00:00
Hervé Poussineau
9e66340100 Remove useless file
svn path=/trunk/; revision=26021
2007-03-07 09:33:53 +00:00
Aleksey Bragin
8bfa37adbe Move what's left in trunk here (2/2).
Now it should compile even without rostests module.

svn path=/trunk/; revision=26020
2007-03-06 21:48:14 +00:00
Aleksey Bragin
6761d24ea4 Move what's left in trunk here (1/2)
svn path=/trunk/; revision=26019
2007-03-06 21:44:58 +00:00
Aleksey Bragin
a6f9762e88 - Delete testsets
- Move dvmgmt and servman into mscutils directory (suggested by Alex Ionescu)

svn path=/trunk/; revision=26017
2007-03-06 12:43:19 +00:00
Aleksey Bragin
0a5bac4ba6 Remove regtests from /reactos since it's not needed anymore.
svn path=/trunk/; revision=26016
2007-03-06 12:14:33 +00:00
Aleksey Bragin
ac0a89b785 Move and reshuffle reactos/regtetsts into rostests. 2/2
svn path=/trunk/; revision=26015
2007-03-06 12:00:03 +00:00
Aleksey Bragin
33c6673cfb Move and reshuffle reactos/regtetsts into rostests. 1/2
svn path=/trunk/; revision=26014
2007-03-06 11:59:18 +00:00
Aleksey Bragin
d5b244c7cc Add proper header
svn path=/trunk/; revision=26013
2007-03-06 11:40:03 +00:00
Aleksey Bragin
1423048911 Move testsets from reactos to rostests (into a "win32" directory for now). 2/2
svn path=/trunk/; revision=26012
2007-03-06 11:34:03 +00:00
Aleksey Bragin
102ccaa64d Move testsets from reactos to rostests (into a "win32" directory for now). 1/2
svn path=/trunk/; revision=26011
2007-03-06 11:33:50 +00:00
Aleksey Bragin
2199ae9003 Move tests from rosapps to rostests
svn path=/trunk/; revision=26010
2007-03-06 11:10:43 +00:00
Aleksey Bragin
3e98dbd825 Adding rostests as part of the tree restructure
svn path=/trunk/; revision=26009
2007-03-06 11:01:08 +00:00
Alex Ionescu
2742ba22e8 - Implement KdpQueryMemory (KdQueryMemoryApi).
- Setting and clearing breakpoints now works! (At least the simple ones with F9/bp/bc). And they actually get hit properly.

svn path=/trunk/; revision=26007
2007-03-05 20:10:26 +00:00
Alex Ionescu
4b3c677fe7 - Fixed up KdComPortInUse so that we don't crash when using TinyKRNL/Windows kdcom.dll anymore (due to serial.sys). WinDBG should work a lot better now.
- Implemented hack so that NT-style sprintf can work.
- Implement MiCacheImageSymbols and upgrade MmLoadSystemImage to load symbols for drivers/images which have a debug section.
- Implemented a case in MiResolveImageReferences which was getting hit.
- Don't leak a section object reference each time we load a driver.
- Set the LoadedImports pointer in the loader entry, and set the proper flags after loading a driver.
- Do image notifications after loading a driver, if they're enabled.

svn path=/trunk/; revision=26006
2007-03-05 19:24:54 +00:00
James Tabor
47dae7de28 Fix RosBE build
svn path=/trunk/; revision=26005
2007-03-05 17:35:37 +00:00
Alex Ionescu
5e0491122d - Implement simple breakpoints (KdWriteBreakPointApi, KdpWriteBreakpoint, KdpAddBreakpoint).
- Stepping out with WinDBG now works, but not adding breakpoints (that's KdWriteBreakpointExApi, coming up soon).
- This was supposed to be 26000 but oh well, back porting features to a locked branch seems to have won out :)

svn path=/trunk/; revision=26004
2007-03-05 17:09:44 +00:00
Magnus Olsen
c8cf34eb84 fixed dprint1 to dprint
svn path=/trunk/; revision=26001
2007-03-05 15:17:53 +00:00
Magnus Olsen
dbd1166859 tempary fix for CreateDC("DISPLAY","DISPLAY",....) until I figout some thing better
svn path=/trunk/; revision=25998
2007-03-05 15:10:26 +00:00
Alex Ionescu
5e5311f4ae - Fix KdpSetCommonSTate to clear breakpoints.
- Allow KdpReadVirtualMemory to read SharedUserData since it's now readable.
- Allow it to read user-mode pointers as well, just not null-pointers.
- Fix KdpReportExceptionStateChange by implementing DumpTraceData. Now the crash in ndis.sys gets caught.
- Next up: implement breakpoints so that stepping out works.

svn path=/trunk/; revision=25997
2007-03-05 03:23:58 +00:00
Alex Ionescu
e707b70756 - Add proper bootcd/install freeldr.ini flags to allow KD debugging to work.
- Fix KdPollBreakIn.
- Add initial debug breakpoint code to ExpInitializeExecutive.
- WinDBG now breaks at the initial breakpoint and you can continue execution from there.
- There's still a lot of weird hangs when using WinDBG, it's far from usable.

svn path=/trunk/; revision=25996
2007-03-05 02:29:46 +00:00
Alex Ionescu
05f82784bd - Stub NtSystemDebugControl.
- Fully support _WINKD_. Change this to 1, and get kdcom.dll from Windows 2003 or TinyKRNL and you'll be able to connect to WinDBG if using the right debug settings. You can now boot to desktop with WinDBG connected and see debug messages, but not much else is supported.
- Fix bugs in KeGetBugMessageText.
- Implement KeEnterKernelDebugger.

svn path=/trunk/; revision=25994
2007-03-05 01:35:43 +00:00
Alex Ionescu
aafc3a967a - Detect if reparsing is being used during IRP completion and complain.
- Free MDLs in a safer way by not actually using the Irp->MdlAddress as we're looping through them.
- Don't leak an event for each Asynchronous API anymore.
- Handle IRP_OB_QUERY_NAME completion properly.
- handle IRP_CREATE_OPERATION with a file object present.
- Use deferred delete for File Object dereferences, to speed up I/O completion.
- Clear the I/O Stack Location when parsing completion stacks.
- Support SL_ERROR_RETURNED during completion routines.

svn path=/trunk/; revision=25993
2007-03-05 00:47:19 +00:00
Hervé Poussineau
030a4abe86 Convert text to multibyte before displaying it
svn path=/trunk/; revision=25992
2007-03-04 23:26:30 +00:00
Hervé Poussineau
abfa7fb417 Some reformatting, no code change
svn path=/trunk/; revision=25991
2007-03-04 23:18:28 +00:00
Aleksey Bragin
55a11ded1b Fix compiling in proper npfs mode.
svn path=/trunk/; revision=25989
2007-03-04 21:14:58 +00:00
Alex Ionescu
1e35f772f8 - Enable _WINKD_ in config.rbuild. Currently set to 0 and don't set it to 1 yet because it won't build yet.
- Support _WINKD_ in ntoskrnl.rbuild to build KD64 instead of KDBG/KD if it's enabled.
- Remove some incorrect kernel exports.

svn path=/trunk/; revision=25988
2007-03-04 20:52:54 +00:00
Alex Ionescu
be2645ad8a - Wrap some KDBG-specific initialization in _WINKD_ guard.
- Remove KdpDetectConflicts since our serial driver correctly uses KdComPortInUse for this (and kdcom fills it out).

svn path=/trunk/; revision=25987
2007-03-04 20:28:18 +00:00
Alex Ionescu
bf3d075381 - Add kd64.h header from branch and format it nicely.
- Add support for _WINKD_ definition to use kd64.h instead of kd.h, as well as disable usage of rossym.h
- Add KdSystemDebugControl, NtSet/QueryDebugFilterState to kdapi.c for the KD64 code.

svn path=/trunk/; revision=25986
2007-03-04 19:54:39 +00:00
Alex Ionescu
f7577eaeb7 - Enable stubs in kdcom to actually be exported (to simplfiy compatibility with KD Branch, which won't be needed soon thanks to a build flag).
- Enable call to KdDebuggerInitialize1 even in trunk, since it doesn't do anything.
- Make i8042prt stop using a reactos-only kernel export hack (KdpServiceDispatcher),and use KdSystemDebugControl instead, which is the NT version and fully-exported.
- Implement a stub KdSystemDebugControl and export it.

svn path=/trunk/; revision=25985
2007-03-04 19:20:03 +00:00
Alex Ionescu
12e7593f24 - Fix a bug in KeQueryPerformanceCounter which was reading the flags in ESI instead of ECX.
- Fix a bug in KeQueryPerformanceCounter which wasn't handling the possibility of an invalid counter value.
- Don't disable/enable interrupts in HalpInitializeClock and HalCalibratePerformanceCounter. Instead, save the flags, disable, and then restore flags, so that if interrupts were disabled initially, they'll remain that way.
- Make KeUpdateRunTime and KeUpdateSystemTime support KPRCB->SkipTick.
- Atomically check for DPC routine active by referencing fs. Also update Debug DPC time.
- Add support for detecting break-in during KeUpdateSystemTime.
- DPC Routine active is a BOOLEAN, not a ULONG. Fix the check in KeUpdateRunTime since this might've messed up a lot of things.
- Temporarily disable DbgBreakPoint during DbgPrint.
- Hang in KeQueryPerformanceCounter while WinDBG is connected is now fixed, as well as DbgPrint support. WinDBG can now remain connected and show all the DebugPrints! (But GUI doesn't boot -- yet).

svn path=/trunk/; revision=25984
2007-03-04 19:06:34 +00:00
Eric Kohl
3e6fa8fd31 Translate german resources.
svn path=/trunk/; revision=25983
2007-03-04 18:47:12 +00:00
Eric Kohl
2f8a2c2ac1 - Show disables and selected menu items.
- User the caption font to display the window text.

svn path=/trunk/; revision=25982
2007-03-04 18:41:47 +00:00
Magnus Olsen
78674981d1 split up all testcase to own file. the size are growning
svn path=/trunk/; revision=25981
2007-03-04 11:57:44 +00:00
Magnus Olsen
5b73c362ba adding so dump can decoding pCallBackFlags[0] so we do not need calc out what hardware acclations DD_CALLBACKS support.
svn path=/trunk/; revision=25980
2007-03-04 11:45:29 +00:00
Eric Kohl
9039b97b9f Users can now set bold or italic fonts.
svn path=/trunk/; revision=25978
2007-03-03 21:03:22 +00:00
Magnus Olsen
2c81a2df18 partly implement NtGdiDdReenableDirectDrawObject
this give us bit more closer getting hardware accalertions working. 

svn path=/trunk/; revision=25977
2007-03-03 20:19:56 +00:00
Alex Ionescu
c44e8d2c89 - Fix another typo in CommonDispatchException (with yet another critical flaw as a result). Sometimes, exceptions would incorrectly be detected as coming from user-mode even though CS was kernel mode. When creating the KTRAP_FRAME, the kernel would then add the Ring 3 RPL_MASK (3) (because it believed we're in usermode) to the kernel-mode CS, creating the invalid CS of 0xB, which would lead into a GPF during the iretd.
- Re-enable DebugPrint since this now works.

svn path=/trunk/; revision=25976
2007-03-03 19:49:36 +00:00
Alex Ionescu
a195100319 - Fix critical bugs in DR_TRAP_FIXUP, TRAP_PROLOG and TRAP_EPILOG which would either cause infinite loops during exceptions or corruption of the correct code path when dealing with debug registers.
- Fix a bug in KiRecordDr7 setting the new DR7 mask.
- Make KiEspToTrapFrame thread-safe by raising to APC_LEVEL to make sure a thread/set context doesn't corrupt the state.
- Fix thread-safe IRQL Code in KeContexToTrapFrame/KeTrapFrameToContext.
- Fix KiDispatchException to properly handle KI_EXCEPTION_ACCESS_VIOLATION and convert it back to STATUS_ACCESS_VIOLATION which is what the system expects.
- Also fix the way we do bugchecks so the the trapframe gets properly put as a parameter.
- Make KiDebugService call into KiTrap3 to share code (merge from kd-branch).
- Changes to the KdpEnterDebuggerException hack we have to handle this change.
- Temporarily disable DebugPrint functionality (sorry, I'm onto a big bug here!)

svn path=/trunk/; revision=25975
2007-03-03 17:24:58 +00:00
Magnus Olsen
037363f05d NtGdiDdQueryDirectDrawObject
1. fixed some return code it get right. 

svn path=/trunk/; revision=25973
2007-03-03 16:31:28 +00:00
Eric Kohl
7368a5b0d4 - Let the user edit the font size directly.
- Remove the useless "NOT CBS_SIMPLE" window style from the font size combobox.

svn path=/trunk/; revision=25970
2007-03-03 12:44:09 +00:00
Sylvain Petreolle
827a4b1699 downloader fixes:
remove downloader.xml from bootcd
fix paths in .rbuild

svn path=/trunk/; revision=25969
2007-03-03 11:41:28 +00:00
Alex Ionescu
27065dc629 - Remove DbgPrint committed in FreeLDR by accident.
- Fix a hack in DbgLoadImageSymbols.

svn path=/trunk/; revision=25967
2007-03-03 05:44:58 +00:00
Alex Ionescu
523822a169 - Copy the entire drivers in memory, not just their mappable sections, since WinDBG (and probably other things) use "SizeOfImage" in the header to figure out when the image ends, but we map considerably less, creating overlaps.
svn path=/trunk/; revision=25966
2007-03-03 05:41:14 +00:00
Alex Ionescu
af68f5e42d - Remove KD APIs from stub HAL, they've been in kdcom for a while (merge from kd-branch).
- DebugPrint/DebugPrompt should have an int3 after the int2d, and the int2d handler should ++ the trap frame's EIP to compensate (merge from kd-branch).
- Remove KDB symbol hooks (merge from kd-branch).
- Make PSEH compialble in MSVC again after Greatlord's break.
- Fix KiSaveProcessorControlState/KiRestoreProcessorControlState (merge from kd-branch).
- Disable GDB hook/hacks (merge from kd-branch).
- Add KD64 directory from kd-branch with SharedUserData access enabled (no other code changed). It's not currently compiled though, just putting it here.

svn path=/trunk/; revision=25965
2007-03-03 04:39:25 +00:00
Sylvain Petreolle
61ea6949b7 fix build
svn path=/trunk/; revision=25964
2007-03-02 22:04:21 +00:00
Aleksey Bragin
545cea09f9 Don't spam debug log with that message, it seems it's normal.
svn path=/trunk/; revision=25961
2007-03-02 21:11:16 +00:00
Christoph von Wittich
913d1938ee some configuration changes for debug builds
svn path=/trunk/; revision=25960
2007-03-02 21:04:41 +00:00
Christoph von Wittich
e3a80a5990 fix the msvc backend on linux hosts
svn path=/trunk/; revision=25959
2007-03-02 20:53:41 +00:00
Alex Ionescu
f5751896c4 -Fix build
svn path=/trunk/; revision=25958
2007-03-02 20:40:48 +00:00
Christoph von Wittich
46921a9a8f fix a crash in the msvc8 backend
svn path=/trunk/; revision=25957
2007-03-02 20:30:12 +00:00
Alex Ionescu
ae80dd6422 - Fix various ntoskrnl/wdk compilation issues in rossym, cmlib, kdcom, rtl.
- Rename one more duplicated file in the kernel which wasn't caught previously.
- pseh, rossym, cmlib, kdcom, bootvid, rtl compile & link, and ntoskrnl is now down to only 23 linker errors.

svn path=/trunk/; revision=25956
2007-03-02 19:52:29 +00:00
Alex Ionescu
7815967299 - Do massive renames in the ntoskrnl tree to make sure we don't have multiple files with the same name (this makes msvc very, very, sad).
- Add _IN_KERNEL_ define for WDK compatibility when using resstr.h
- The entire kernel can now be compiled with MSVC (read this sentence carefully before throwing out the champagne).

svn path=/trunk/; revision=25954
2007-03-02 18:25:23 +00:00
Magnus Olsen
e48040833f adding a small debugprint to detect if pseh going into a endless loop, if we see same msg from it repate it self whole time, we known then pseh have gone into endless loop.
svn path=/trunk/; revision=25953
2007-03-02 17:49:47 +00:00
Maarten Bosma
6a00d9d64a Lester Kortenhoeven (lester(at)kortenhoeven(dot)de): Implement scripting.
svn path=/trunk/; revision=25952
2007-03-02 17:27:39 +00:00
Alex Ionescu
794a97e498 - More MSVC fixes.
svn path=/trunk/; revision=25948
2007-03-02 16:28:34 +00:00
Alex Ionescu
9efff39376 - Fix multiple WDK compatibilities issues.
- Fix MSVC warnings and incompatibilities.

svn path=/trunk/; revision=25947
2007-03-02 16:26:45 +00:00
Christoph von Wittich
7270b49222 fix mkhive on x86_64 hosts
svn path=/trunk/; revision=25946
2007-03-02 15:57:34 +00:00
Alex Ionescu
b15fa5308e - Rewrite a dirty, reverse-engineered function written by dwelch (David Welch) 7.1 years ago in revision 965. We must agressively continue to hunt down such reversed code by previously tainted ReactOS developers who have thankfully left/been kicked out since then.
svn path=/trunk/; revision=25945
2007-03-02 07:37:45 +00:00
Alex Ionescu
5ba38d0494 - Don't depend on LD variables anymore for Mm.
- Update KrnlFun.c
- Make pushlock.c compile with msvc/wdk.
- Fix definition of HIGH_LEVEL_ENTRIES which was way too small (and thus always 0) which caused frees/allocates in the 3rd-level table not to work properly. MSVC statically detected this, it's unlikely we were hitting this in ROS at the moment but it would've been a bad bug to catch later, yay msvc.

svn path=/trunk/; revision=25944
2007-03-02 07:23:19 +00:00
Alex Ionescu
ba689f332a - Fix some rtl warnings on /W3.
svn path=/trunk/; revision=25943
2007-03-02 07:21:33 +00:00
Alex Ionescu
a0a19e46ae - Merge from KD-branch:
- Remove double implementation of DebugPrint with a single correct implementation which calls DebugService, and moved DebugPrint to rtl since it can now be shared properly.

svn path=/trunk/; revision=25942
2007-03-02 06:11:27 +00:00
Alex Ionescu
2e20ca1f14 - Create PDE/PTE entries for KUSER_SHARED_DATA in FreeLDR, so that MmInit1 isn't needed to access it.
- This allows us to access SharedUserData much earlier in the kernel, as well as in kdcom, which means the Windows/TinyKRNL version should now work without modification.

svn path=/trunk/; revision=25941
2007-03-02 06:01:07 +00:00
Alex Ionescu
d89145a431 - Fix a bug in HalEnableSystemInterrupt which was causing us to read invalid port data instead of the PCI edge/level registers.
- Fix an offset bug which was causing us to read/write to DR7 in a completely random location (somewhere in side the _CONTEXT record).
- Fix a bug in DR save/restore which was making us save dr0,1,2 isntead of dr3,6,7.
- All bugs reported by Aleksey Bragin.

svn path=/trunk/; revision=25938
2007-03-01 20:27:33 +00:00
Alex Ionescu
5928240766 - Fix KiDispatchException to unmask KI_EXCEPTION_INTERNAL when setting the exception code, so that usermode/SEH filters get proper exception codes again.
- Fixes and compatible merges from KD Branch:
 - Add stubs for KdSave, KdRestore, KdDebuggerInitialize0, KdSendPacket, KdReceivePacket to kdcom.dll
 - Implement and export KeTryToAcquireSpinLockAtDpcLevel.
 - Add EXCEPTION_RECORD64 and LIST_ENTRY64, KeTryToAcquireSpinLockAtDpcLevel, BREAKPOINT_COMMAND_STRING, Ke386SetCr2, Ke386SetDr3, Ke386SetDr6.
 - Remove non-kernel routines from kdfuncs.h and remove deprecated routines from ke.h.
 - Implement KiRestoreProcessorControlState, KeFreezeExecution, KeThawExecution, ExAcquireTimeRefreshLock, ExReleaseTimeRefreshLock.
 - Rename ModuleLoadList to PsLoadedModuleList. Add PsNtosImageBase and set value in it.
 - Add skeleton wdbgexts.h with what's needed until now, this is a PSDK header.
 - Add kddll.h for KDCOM/1394/USB2.DLL prototypes.
 - Add windbgkd.h with KD protocol definitions. Used to be an NT5 DDK header, but was removed, so this goes into include\reactos.
 - Fix KiDebugService to load EDX from KTRAP_FRAME_EDX, not KTRAP_FRAME_EAX!.
 - Fix CommonDispatchException to check for the argument count in ECX, not EAX. Previously we were ignoring parameter counts and never filling out exception records!
 - Add KdDebuggerInitialize1 and enable call to it.
 - Fix KD_SYMBOLS_INFO definition and DbgLoadImageSymbols prototype.
 - Implement DbgUnLoadImageSymbols.
 - Fix some small bugs in KeBugCheckWithTf and add various debugger calls/checks where needed.
 - Fix bugcheck recursion code which was incorrect.
 - Only save/restore CR4 if KeFeatureBits indicates CR4 support exists.
 - Export KdDebuggerNotPresent since KDCOM needs it.
 - Add KCONTINUE_STATUS.
 - Add DBGKD_ANY_CONTROL_SET and X86/IA64/AMD64 control sets.
 - Add DBGKD_MANIPULATE_STATE64 and all sub-structures (READ_MEMORY, WRITE_MEMORY, etc).
 - Create GCC_ULONG64 type to hack around a bug in GCC which is incapable of creating entries for externals at compile-time for 64-bit pointers.
 - Rename NameSpaceRoot to ObpRootDirectoryObject, IopLogListHead to IopErrorLogListHead, BugcheckCallbackListHead to KeBugcheckCallbackListHead, BugcheckReasonCallbackListHead to KeBugcheckReasonCallbackListHead, ObTypeObjectType to ObpTypeObjectType.
 - Create ntverp.h and common.ver files. These are the standard files used by the NT/DDK build systems and we should try to support them as well instead of re-defining everything our own way (especially if we want to build ddk-compatible drivers later on).
 - Made init.c use version data from ntverp.h instead of hard-coding.
 - Defined NT 5.2.3790.1830 as the version we report.
 - Fixed up .rc file to be correct and match DDK-sytnax/style.
 - For now only the kernel uses this new versionning scheme, but we should change the build system later to use this for every component.
 - Fix KiSaveProcessorControlState and KiRestoreProcessorControlSate. The latter doesn't freeze the CPU anymore so it's enabled, and the former doesn't cause WinDBG to panic anymore and display weird data.
 - KPROCESSOR_STATE is not 4-byte aligned.
 - Use DR_MASK and DR7_OVERRIDE_V in KiUpdateDr7, KiRecordDr7 instead of DR_ACTIVE_MASK.
 - Add ExceptionRecord32To64.
 - Fix generation of driver name for symbol load.

svn path=/trunk/; revision=25937
2007-03-01 19:51:20 +00:00
Magnus Olsen
94297234b4 NtGdiGetObject
1. fixed one BSD it does show bluescreen when the buffer are too small
2. fixed some bugs in calculation of different GdiObject sized

svn path=/trunk/; revision=25935
2007-03-01 19:13:29 +00:00
Ged Murphy
eb28b183e5 - call undocumented functions directly when building with MSVC and the MS PSDK
- fixes building with MSVC

note, this can be removed when bulding ROS with MSVC isn't reliant on the MS PSDK

svn path=/trunk/; revision=25932
2007-02-28 23:43:12 +00:00
Eric Kohl
c04b7173b2 Add code to support font size changes.
svn path=/trunk/; revision=25931
2007-02-28 22:49:34 +00:00
Eric Kohl
c296041163 Use wsprintf() to convert an integer to a string instead of abusing a hidden edit control.
svn path=/trunk/; revision=25930
2007-02-28 20:44:47 +00:00
Alex Ionescu
045e38927e - Make usetup ""work"" on systems with ~28MB+ RAM. Due to an unknown bug (in usetup or Mm, file copies during setup don't get flushed until memory reaches about 42-47% remaining. At this point, if enough memory is available, no more memory will be allocated, even though more files are being copied. On systems with < 48MB, the system will not usually flush pages fast enough to keep the memory at ~42-47%. We ""fix"" this by adding a delay to each file copy as long as free memory is below 40%.
- Also added 3 progress bars during memory transfers to show the status of the memory.

svn path=/trunk/; revision=25929
2007-02-28 20:43:13 +00:00
Alex Ionescu
a1ad43c2ee - More refactoring of FreeLDR/SetupLDR PE Loader Code to remove some hacks.
- Don't double-free some entries when failing to load a boot driver. This would cause a crash when pciide couldn't load (since we don't yet import drivers in FreeLDR, and pciide needs pciidex). Thanks to encoded for reporting it.
- We now free boot driver memory again since it's safe to do so again. This should reduce memory requirements even more.

svn path=/trunk/; revision=25928
2007-02-28 19:04:27 +00:00
Alex Ionescu
864da6c412 - Properly load drivers using new method describred previously (read from disk into temporary allocated buffer, then map into allocated memory, then free disk buffer).
- FreeLDR doesn't relocate nor map imports for drivers yet..still needs testing/fixes.

svn path=/trunk/; revision=25927
2007-02-28 17:48:44 +00:00
Sylvain Petreolle
257f23bf3b forget to add 2 files
svn path=/trunk/; revision=25926
2007-02-28 14:24:17 +00:00
Sylvain Petreolle
ec2c82b6d5 french translations updates
svn path=/trunk/; revision=25925
2007-02-28 14:15:31 +00:00
Saveliy Tretiakov
93f907207b Update testapp
svn path=/trunk/; revision=25924
2007-02-28 13:25:50 +00:00
Saveliy Tretiakov
9eea1f6b20 WM_INPUTLANGCHANGE is sent not posted.
svn path=/trunk/; revision=25923
2007-02-28 13:23:51 +00:00
Saveliy Tretiakov
05d4dee367 Make ntuser locks use eresource instead of mutex.
Fix corresponding FIXME in class.c


svn path=/trunk/; revision=25922
2007-02-28 13:21:48 +00:00
Timo Kreuzer
4481a26504 EnumChildWindows:
- if hWndParent == NULL: call EnumWindows
- else use bChildren = TRUE

svn path=/trunk/; revision=25921
2007-02-28 13:21:09 +00:00
Timo Kreuzer
9cb8365d3f NtUserBuildHwndList:
- handle bChildren
- remove some code duplication

svn path=/trunk/; revision=25920
2007-02-28 13:19:00 +00:00
Saveliy Tretiakov
a9d354b237 Andrey Janzen (virus126):
echo %date% on windows >=XP return '24.02.2007', not 'Sut 24.02.2007'
fix & implement dynamic buffer


svn path=/trunk/; revision=25919
2007-02-28 13:17:34 +00:00
Dominique Cote
4072d1c2a7 Added test functions for fsrtl lib
svn path=/trunk/; revision=25918
2007-02-28 04:09:16 +00:00
KJK::Hyperion
f007c58ba9 modified include/reactos/libs/pseh/framebased.h
modified   lib/pseh/framebased.c
 - _SEH_ENABLE_TRACE now obsolete; _SEH_ENABLE_TRACE_LIB renamed to _SEH_ENABLE_TRACE now that the name is available again. Yay open source development model and yay me

svn path=/trunk/; revision=25917
2007-02-28 00:22:08 +00:00
KJK::Hyperion
d04dfa5357 modified framebased.h
- don't enable a random tracing level when the library is built for tracing but an application is not. Fastest bugfix ever

svn path=/trunk/; revision=25916
2007-02-28 00:16:38 +00:00
KJK::Hyperion
53d575c73e modified include/reactos/libs/pseh/framebased.h
- final reformatting/cleanup fixes
 - fixed regression introduced in 25908

modified   include/reactos/libs/pseh/framebased.h
modified   include/reactos/libs/pseh/framebased/internal.h
modified   lib/pseh/framebased.c
 - per-frame tracing support for PSEH. Prints detailed debugging traces with DbgPrint when enabled. New defines _SEH_ENABLE_TRACE, _SEH_ENABLE_TRACE_LIB and _SEH_DO_DEFAULT_TRACING, new macros _SEH_EnableTracing() and _SEH_DisableTracing(), new constants _SEH_DO_TRACE_XXX. Please test it
See issue #2069 for more details.

svn path=/trunk/; revision=25915
2007-02-28 00:04:36 +00:00
Dmitry Gorbachev
86294c4aeb Undo 25911
svn path=/trunk/; revision=25913
2007-02-27 18:17:26 +00:00
Dmitry Gorbachev
2e29a8dbd8 Update Russian translations.
svn path=/trunk/; revision=25912
2007-02-27 16:51:19 +00:00
Dmitry Gorbachev
9713a955bb Indonesian translation by Zaenal Mutaqin
svn path=/trunk/; revision=25911
2007-02-27 00:04:43 +00:00
Dominique Cote
982855b6e3 Added:
FsRtlPrepareMdlWriteDev()
FsRtlMdlWriteCompleteDev()
FsRtlPrepareMdlWrite()
FsRtlMdlWriteComplete()

svn path=/trunk/; revision=25910
2007-02-26 20:22:55 +00:00
KJK::Hyperion
35f897c768 Reformatted, for real
svn path=/trunk/; revision=25909
2007-02-26 15:55:43 +00:00
KJK::Hyperion
97f61ad508 modified include/reactos/libs/pseh/framebased.h
Removed some bad optimization ideas that never worked anyway. If you want optimization, use the uglier _SEHX macros. If you enjoy several huge, non-optimizable nested loops in all of your functions, just keep using the _SEH form

deleted    include/reactos/libs/pseh/native.h
deleted    include/reactos/libs/pseh/prettybased.h
   Deleted some really bad ideas that nobody used or maintained anyway

All and all else
   Reformatted. Goodbye one-space indentation, hello tabs

svn path=/trunk/; revision=25908
2007-02-26 15:32:19 +00:00
Dmitry Gorbachev
65792010fe Indonesian translation (Zaenal Mutaqin)
svn path=/trunk/; revision=25907
2007-02-26 14:37:09 +00:00
Dmitry Gorbachev
5aa7f19d62 Indonesian translation (Zaenal Mutaqin)
svn path=/trunk/; revision=25906
2007-02-25 22:45:32 +00:00
Eric Kohl
9f48caa207 - Sort font names alphabetically.
- Enable the user to choose fonts.

svn path=/trunk/; revision=25905
2007-02-25 21:58:20 +00:00
Saveliy Tretiakov
3a94758ff5 Fix installname
svn path=/trunk/; revision=25902
2007-02-24 18:16:50 +00:00
Magnus Olsen
fbf5933eb6 adding -dump as param to dumping out all struct and data
svn path=/trunk/; revision=25901
2007-02-24 13:58:25 +00:00
Magnus Olsen
da00b2ed98 adding more testcase for NtGdiDdQueryDirectDrawObject
svn path=/trunk/; revision=25900
2007-02-24 13:32:09 +00:00
Magnus Olsen
a640e4e2d6 adding more testcase for NtGdiDdQueryDirectDrawObject
svn path=/trunk/; revision=25899
2007-02-24 12:24:31 +00:00
Saveliy Tretiakov
54c6bf6cfa kbdse.dll -> kbdsw.dll
svn path=/trunk/; revision=25898
2007-02-24 12:00:43 +00:00
Saveliy Tretiakov
54cf74f087 Andrey Janzen (virus126):
- Fix warning when using FEATURE_UNIX_FILENAME_COMPLETION.
- Make unix-style completion work correctly.
- Make %time% return milliseconds/10.


svn path=/trunk/; revision=25896
2007-02-23 20:05:39 +00:00
Saveliy Tretiakov
658c2a1911 Andrey Janzen (virus126):
Replace numbers by constants in all translations.
Fixes bug 2065.


svn path=/trunk/; revision=25895
2007-02-23 19:52:00 +00:00
Alex Ionescu
9969d07b68 - Update FreeLDR PE Loading to actually use its Mm routines to allocate a buffer to read an image file into, then to allocate the actual load base and use the same code as in sysldr.c right now to PE-load the image into memory, then free the original read buffer. Not yet enabled for drivers!
- This means that:
  - 1) FreeLDR now keeps memory accounting information for the image files it loads, instead of us randomly writing to memory.
  - 2) We now skip sections marked as NO_LOAD. The kernel already re-mapped drivers doing this, but it didn't remap the kernel/hal, plus we still had to map the drivers once in FreeLDR, so we're saving a meg+ of kernel memory.

svn path=/trunk/; revision=25894
2007-02-23 19:48:25 +00:00
Saveliy Tretiakov
8ccd7405b6 Update keyboard layout names. Add "Layout Id" key for Us-Dvorak. Rename kbdse.dll to kbdsw.dll
svn path=/trunk/; revision=25893
2007-02-23 18:41:48 +00:00
Alex Ionescu
7c1178da04 - Load the driver image file with OBJ_KERNEL_HANDLE, and don't use FILE_SYNCHRONOUSIO_NONALERT, since we can use async access since the data is now being mapped instead of read.
svn path=/trunk/; revision=25892
2007-02-23 15:35:14 +00:00
Alex Ionescu
4f9ab3b9a5 - Add a new member to MM_IMAGE_SECTION_OBJECT to hold the size of the mapped image file.
- Finally load driver images like human beings, as actual image section objects instead of random memory that we allocate and manually "load" using unsafe and crappy PE memory copies. We now use KJK's integer-safe and properly documented/implemented loader for image sections that is already used for processes and other user-mode images.
- Implement MiLoadImageSection for the task above and remove all the deprecated code that did the previous hackloading.

svn path=/trunk/; revision=25891
2007-02-23 15:31:45 +00:00
Saveliy Tretiakov
0446badad8 Move primary language selection from Input Locale page to General page.
svn path=/trunk/; revision=25890
2007-02-23 09:35:32 +00:00
Saveliy Tretiakov
82acba718f Update testapp
svn path=/trunk/; revision=25889
2007-02-23 08:56:32 +00:00
Saveliy Tretiakov
e67ae3715b Add KLF_SHIFTLOCK and KLF_RESET
svn path=/trunk/; revision=25888
2007-02-23 08:21:29 +00:00
Saveliy Tretiakov
8daaec74a8 Fix warnings.
svn path=/trunk/; revision=25887
2007-02-23 08:20:33 +00:00
Alex Ionescu
8648ea02e1 - Get rid of LdrGetModuleObject, since MmLoadSystemImage will now return the existing module object in case it has already been loaded, get rid of LdrGetProcedureAddress, it doesn't belong in the kernel. Move MmGetSystemRoutineAddress from mm.c to sysldr.c and rewrite it to use MiFindExportedRoutineByName instead.
- Remove /ldr ntoskrnl directory, since this module is finally gone.
- Make PsInit code search for ntdll lookups using LookupEntryPoint internal function, instead of LdrGetProcedureAddress. Same code but done with recursion instead, and internal to this module (remove ANSI_STRINGs since we don't need them anymore).

svn path=/trunk/; revision=25886
2007-02-23 07:56:01 +00:00
Alex Ionescu
86c4790af3 - Merge DbgUnLoadImageSymbols from KD branch.
- Rename LdrUnloadModule to MmUnloadSystemImage and:
  - Use MmSystemLoadLock.
  - Take into consideration the import list.
  - Honour load count.
  - Unload symbols if really unloading the image.
  - Dereference and clear imports.
  - Do proper LdrEntry cleanup.
- Stub MiDereferenceImports and MmCallDllInitialize.
- Implement MiLocateExportName and MiClearImports.
- We don't yet fully support reference counting imports...this is still TBD.

svn path=/trunk/; revision=25885
2007-02-23 07:13:19 +00:00
Alex Ionescu
bae0317c7c - Fix build.
svn path=/trunk/; revision=25884
2007-02-23 06:59:10 +00:00
Alex Ionescu
3111dda705 - Fix MmCreateImageSection to use previous mode instead of hardcoding UserMode.
- Implement MiProcessLoaderEntry for adding/removing entries on the PsLoadedModuleList.
- Move MmLoadSystemImage from loader.c to sysldr.c
- Update MmLoadSystemImage:
  - Use MmSystemLoadLock.
  - Support returning the entry for an already-loaded image, instead of loading it twice.
  - Use Section APIs to map the image... we're still doing a dirty ZwReadFile hack, but at least now we can depend on the PE code to validate the image (so removed the hardcoded validation).
  - Add more generic cleanup got so we can just jump to it.
  - Add more stub code and detection code for upcoming features.

svn path=/trunk/; revision=25883
2007-02-23 05:39:42 +00:00
Dmitry Gorbachev
736a4de31f Indonesian translation by Zaenal Mutaqin (ade999 at gmail dot com)
svn path=/trunk/; revision=25882
2007-02-23 01:42:52 +00:00
Alex Ionescu
e81f8006bb - Move some Mm routines from pe.c to sysldr.c where they belong.
- Create and initialize Mm Loader lock.
- Re-arrange some code in MmLoadSystemImage, no code changes yet.
- Add new LDRP_ flags for LDR_DATA_TABLE_ENTRY to the NDK.

svn path=/trunk/; revision=25881
2007-02-22 20:55:02 +00:00
Saveliy Tretiakov
50b11bc313 Handle WM_INPUTLANGCHANGE and WM_INPUTLANGCHANGEREQUEST in DefWindowProc.
svn path=/trunk/; revision=25880
2007-02-22 19:43:27 +00:00
Saveliy Tretiakov
da13fb5a41 NtUserLoadKeyboardLayoutEx: Support KLF_REORDER and KLF_ACTIVATE.
NtUserActivateKeyboardLayout: Support HKL_NEXT, HKL_PREV, KLF_REORDER.


svn path=/trunk/; revision=25879
2007-02-22 19:41:10 +00:00
Magnus Olsen
06b4e06c8a win32k dx test are now compatible with all Windows and ReactOS that got a d3d8thk.dll file
rember that file are diffent for Windows 2000 and Windows XP/2003 ReactOS d38thk.dll are Windows XP/2003 compatible. 

svn path=/trunk/; revision=25878
2007-02-22 19:21:10 +00:00
Magnus Olsen
92213f75ef Move d3d8thk.h for it being use for apps that need todo win32k syscall for directx graphice part
svn path=/trunk/; revision=25877
2007-02-22 19:10:40 +00:00
Sylvain Petreolle
717a91df43 fix build
svn path=/trunk/; revision=25876
2007-02-22 18:48:01 +00:00
Alex Ionescu
f141767094 - Rename LdrLoadModule to MmLoadSystemImage and change prototype. No code change except update callers and return ImageBaseAddress parameter when requested.
svn path=/trunk/; revision=25875
2007-02-22 18:30:50 +00:00
Alex Ionescu
31446c8a3b - Improve LdrGetModuleObject (in FreeLDR) to handle partial names too, so NTOSKRNL will still match NTOSKRNL.EXE. This is needed for forwarder support.
- Implement LdrPEFixupForward in FreeLDR and update LdrPEGetExportByName to use it, so that FreeLDR can now parse import tables with forwarders.
- Add call to MmInitSystem for Phase 0 in ExpInitializeExecutive.
- Completely redesign the way boot drivers are handled. They're now re-mapped during Phase 0 MmInit (part of the re-mapping is a hack until FreeLDR 2.5 is ready) and the IoMgr only does I/O stuff, not PE loading anymore (this is only half-true, we still process imports until FreeLDR 2.5 is done).
- Also re-design the way the module list head is initialized and used. LdrInit1 is now gone, Phase 0 MmInit now handles initializing it and copying boot loader data to it.
- Some code is still missing and functions still need to be improved.
- When FreeLDR 2.5 is ready some of the hacks will go away, they're #ifed for now to make it easy to switch.

svn path=/trunk/; revision=25874
2007-02-22 18:02:53 +00:00
Hervé Poussineau
5f18dde527 Fix build with gcc 4.1.2
svn path=/branches/alex-kd-branch/; revision=25873
2007-02-22 00:14:20 +00:00
Alex Ionescu
40e1082e3d - Rename ModuleListHead to PsLoadedModulesList.
- Start implementing some routines of the Mm SysLdr. Implemented MiSnapThunk and most of MiResolveImageReferences. The SysLdr has a lot of restrictions that the typical Ldr in user-mode doesn't, as well as manages imports and reference counts them, so the code can't be shared with ntdll's Ldr (this is also why real NT doesn't have an Ldr component, and this is in Mm).
- Fix some PE Header types that were wrong in our PSDK.

svn path=/trunk/; revision=25872
2007-02-22 00:01:52 +00:00
Magnus Olsen
6751f1721e adding a helper intEnableDriver it will be use for enable the dx driver for the graphice card.
rewrote NtGdiDdQueryDirectDrawObject so it only copy the cache data only. This will speed up allot. we only need call on NtGdiDdCreateDirectDrawObject yo setup the whole cache and enable the drv with the helper functions. the NtGdiDdQueryDirectDrawObject will be faster like this. using RtlCopyMemory insted for RtlMemMove  and allot other change in it. adding _SEH to NtGdiDdQueryDirectDrawObject so user can not crash it any longer. 

svn path=/trunk/; revision=25870
2007-02-21 22:19:31 +00:00
Timo Kreuzer
b43aa6554f Silence some warnings
svn path=/trunk/; revision=25869
2007-02-21 22:04:59 +00:00
Alex Ionescu
012009365d - Implement ExpQueryModuleInformation to handle SystemModuleInformation, instead of LdrpQueryModleInformation. This version properly fills out all the data required and also supports (but doesn't yet handle) user-mode modules.
- Start work on supporting NT-compatible System Loader that properly fills out LDR_DATA_TABLE_ENTRY and handles imports correctly. Modified LdpPEProcessModule to properly build the data table entry and create the base name and directory name.
- Add stub for MiResolveImageRefernces.

svn path=/trunk/; revision=25868
2007-02-21 18:43:57 +00:00
Dmitry Gorbachev
af1995f6f1 Thai translation (Sumath Aowsakulsutthi)
svn path=/trunk/; revision=25867
2007-02-21 18:23:59 +00:00
Dmitry Gorbachev
8f0b7ce68c Thai translation (Sumath Aowsakulsutthi)
svn path=/trunk/; revision=25866
2007-02-21 18:22:30 +00:00
Dmitry Gorbachev
4d0c6f3b50 Thai translation by Sumath Aowsakulsutthi (punth1 at gmail dot com)
svn path=/trunk/; revision=25865
2007-02-21 18:22:11 +00:00
Dmitry Gorbachev
d6122e01fa Fix Italian resource file
svn path=/trunk/; revision=25863
2007-02-21 11:41:17 +00:00
Alex Ionescu
828eda9888 - Properly implement SystemLoadGdiDriverInformation.
- Properly implement SystemExtendServiceTableInformation, except that the SE_LOAD_DRIVER_PRIVILEGE check is currently disabled since our smss doesn't acquire it (and we should therefore ban it from loading win32k.sys...).
- Delete LdrpLoadImage, LdrpUnlaodImage, LdrpLoadAndCallImage.

svn path=/trunk/; revision=25862
2007-02-21 02:46:30 +00:00
Alex Ionescu
effa3a52ef - Cleanup loader.c and comment some public routines (no code change).
- Temporarily remove routines to set per-page protection (this doesn't really break anything, just makes the OS less secure).

svn path=/trunk/; revision=25861
2007-02-21 01:57:02 +00:00
Alex Ionescu
226a94773d - Get rid of a bunch of multiboot crap FreeLDR was still doing for ReactOS.
- Remove some of the sixtuplicated routines to load a PE file. We're now down to a single function which takes an ImageType parameter for DLL/EXE/SYS, but even this is still temporary as the parameter will soon go away.
- We now load drivers in the same nice way that we load the kernel and DLLs, but we don't yet process their imports and relocate them in FreeLDR, because FreeLDR doesn't handle forwarders yet.
- We don't need a large hack in KiRosPrepareForSystemStartup anymore since the driver base addresses are now proper.
- Don't free boot-drivers anymore, since we'll load them in place soon.
- Don't load bootvid twice.
- Remove PAE stuff in FreeLDR since we don't support PAE anyway in the kernel and when we do, might as well implement it cleanly instead of relying on the broken FreeLDR stuff.

svn path=/trunk/; revision=25860
2007-02-20 20:02:52 +00:00
Alex Ionescu
8bac7fc287 - Don't load .SYM in freeldr anymore.
- Fix generation of driver name for symbol load.

svn path=/branches/alex-kd-branch/; revision=25859
2007-02-20 16:39:31 +00:00
Alex Ionescu
d4d61262dc - Fix loading of boot symbols.
- Fix bug in KdpLoadSymbolsStateChange, we were never actually copying the pathname.
- Output of lm:
kd> lm
start    end        module name
80000000 80283000   nt         (export symbols)       ntoskrnl.exe
80283000 8029d000   hal        (export symbols)       halup.dll

svn path=/branches/alex-kd-branch/; revision=25858
2007-02-20 06:51:16 +00:00
Alex Ionescu
b4c37fe1c4 - Add ExceptionRecord32To64.
- Implement KdpReportExceptionStateChange and fully support KdpReport.
- We now properly break inside HAL (with /BREAK) and WinDBG shows a nice stack trace, and disassembly, and I can step through the HAL initialization code!

svn path=/branches/alex-kd-branch/; revision=25857
2007-02-20 06:25:58 +00:00
Alex Ionescu
08b99faedd - Properly sign-extend a couple more pointers. WinDBG is still complaining about two of them though.
svn path=/branches/alex-kd-branch/; revision=25856
2007-02-20 05:02:52 +00:00
Alex Ionescu
86bcfc31af - Implement KdpGetStateChange.
- Implement DbgKdContinueApi and DbgKdContinueApi2 cases.
- Remove several while (TRUE);s which started being hit since our code is working fine.
- WinDBG gets notifications for all the drivers/symbols being loaded and ROS now boots to bootvid logo, but we don't yet break-in.

svn path=/branches/alex-kd-branch/; revision=25855
2007-02-20 04:57:43 +00:00
Alex Ionescu
69a6af0124 - Implement KdpWriteControlSpace.
- Fix a bug in KdpSetContext.
- Use DR_MASK and DR7_OVERRIDE_V in KiUpdateDr7, KiRecordDr7 instead of DR_ACTIVE_MASK.
- We now get DbgKdContinueApi2 from WinDBG meaning that the first phase of KD communication is almost over!

svn path=/branches/alex-kd-branch/; revision=25854
2007-02-20 04:38:01 +00:00
Alex Ionescu
bf616180df - Implement KdpSetContext.
- Fix KdpReport, it was totally out of whack.

svn path=/branches/alex-kd-branch/; revision=25853
2007-02-20 03:45:11 +00:00
Alex Ionescu
3006d54080 - KPROCESSOR_STATE is not 4-byte aligned.
- Fail physical memory reads for now.
- Use the right kernel load address.
- Generate image name when loading boot symbols. Now WinDBG sees "ntoskrnl.exe".
- Fix KiSaveProcessorControlState and KiRestoreProcessorControlSate. The latter doesn't freeze the CPU anymore so it's enabled, and the former doesn't cause WinDBG to panic anymore and display weird data.

svn path=/branches/alex-kd-branch/; revision=25852
2007-02-20 03:22:30 +00:00
Alex Ionescu
b9b5323515 - Implement DbgKdClearAllInternalBreakpointsApi
- Implement KdpGetContext for DbgKdGetContextApi.
- WinDBG now goes to Phase 2 connection and prints out:
Windows Server 2003 Kernel Version 3790 UP Checked x86 compatible
Built by: 20070215-r25797
Kernel base = 0x80100000 PsLoadedModuleList = 0x80112230

svn path=/branches/alex-kd-branch/; revision=25851
2007-02-20 02:12:39 +00:00
Alex Ionescu
f3488993eb - Add kdbreak.c with the following APIs: KdpLowWriteContent, KdpLowRestoreBreakpoint, KdpDeleteBreakpoint, KdpDeleteBreakpointRange, KdpRestoreAllBreakpoints. Adding breakpoints not yet supported.
- Enable kdinit.c call to KdpRestoreAllBreakpoints.
- Add breakpoint table and data.
- Support DbgKdRestoreBreakpointApi. Now we get DbgKdClearAllInternalBreakpointsApi.

svn path=/branches/alex-kd-branch/; revision=25850
2007-02-20 02:00:01 +00:00
Alex Ionescu
24f9e136e6 - Add a bunch of hacks to KdpReadVirtualMemory to make it work for now.
- Fix bugs in KdpGetVersion, KdpReadVirtualMemory.
- Implement KdpReadControlSpace.
- Fix setting kernel range address instead of kernel image load address.
- WinDBG is slowly trying to talk with us. Now it wants to restore breakpoints since it thinks this is the same machine I was debugging last night.

svn path=/branches/alex-kd-branch/; revision=25849
2007-02-20 01:13:22 +00:00
Ged Murphy
b4f7cf3523 add chars to the edit box when either double clicked or the select button is hit
svn path=/trunk/; revision=25848
2007-02-19 23:56:16 +00:00
Alex Ionescu
f42e752565 - Create ntverp.h and common.ver files. These are the standard files used by the NT/DDK build systems and we should try to support them as well instead of re-defining everything our own way (especially if we want to build ddk-compatible drivers later on).
- Made init.c use version data from ntverp.h instead of hard-coding.
- Defined NT 5.2.3790.1830 as the version we report.
- Fixed up .rc file to be correct and match DDK-sytnax/style.
- For now only the kernel uses this new versionning scheme, but we should change the build system later to use this for every component.

svn path=/branches/alex-kd-branch/; revision=25847
2007-02-19 22:28:50 +00:00
Alex Ionescu
1654674e55 - Implement KdpSysGetVersion, KdpGetVersion, KdpReadVirtualMemory.
- Fix bugs in KdInitSystem; some 64-bit pointers must be sign-extneded, not zero-extended (thanks Myria!)
- Properly read kernel base instead of kernel stack.
- Fix compile issue due to incorrect KiBugCheckData definition.
- WinDBG reports: "Connected to Windows Vista 16199 x86 compatible target, ptr64 FALSE. Kernel Debugger connection established.  (Initial Breakpoint requested)"

svn path=/branches/alex-kd-branch/; revision=25846
2007-02-19 21:30:26 +00:00
Alex Ionescu
b9cd3f2d9d - Create GCC_ULONG64 type to hack around a bug in GCC which is incapable of creating entries for externals at compile-time for 64-bit pointers.
- Rename NameSpaceRoot to ObpRootDirectoryObject, IopLogListHead to IopErrorLogListHead, BugcheckCallbackListHead to KeBugcheckCallbackListHead, BugcheckReasonCallbackListHead to KeBugcheckReasonCallbackListHead, ObTypeObjectType to ObpTypeObjectType.
- Fill out KdDebuggerDataBlock with the variables that ROS currently supports. Most Mm variables we don't have yet -- it's unknown how much this will hurt WinDBG compatibility/functionality.
- Add KdPrint circular buffer and buffer location/data variables.

svn path=/branches/alex-kd-branch/; revision=25845
2007-02-19 18:52:23 +00:00
Eric Kohl
d8e1e7bba4 Enable the user to set the size of captions, caption buttons, menu bars and croll bars.
svn path=/trunk/; revision=25844
2007-02-19 16:12:38 +00:00
Alex Ionescu
f1f1afaa74 - We now tell WinDBG to load kernel symbols and WinDBG replies (!) with DbgKdGetVersionApi to find out who we are (he's in for a surprise ;)):
- Implement KdpSetCommonState (except code to clear breakpoints).
  - Implement KdpSetContextState (for x86).
  - Implement KdpReportLoadSymbolsStateChange.
  - Implement skeleton of KdpSendWaitContinue, the main KD API Loop.
  - Add KCONTINUE_STATUS.
  - Redefine KdReceivePacket's return value to KDSTATUS and define possibile values.
  - Add DBGKD_ANY_CONTROL_SET and X86/IA64/AMD64 control sets.
  - Add DBGKD_MANIPULATE_STATE64 and all sub-structures (READ_MEMORY, WRITE_MEMORY, etc).
  - Fix definition of KdpSymbol.

svn path=/branches/alex-kd-branch/; revision=25843
2007-02-19 15:02:39 +00:00
Dmitry Gorbachev
f49c3528f3 Fix a bug
svn path=/trunk/; revision=25842
2007-02-19 13:20:09 +00:00
Thomas Bluemel
5c7f9d04ce Minor fixes, thanks Ged
svn path=/trunk/; revision=25841
2007-02-19 13:15:28 +00:00
Alex Ionescu
53c4c13732 - Dummy commit for documentation purposes:
"The KD64 6.0 implementation is based on information from the VSJ article located at: http://www.vsj.co.uk/articles/display.asp?id=265 by Albert Alameida. Although Windows 2000 shipped with KD64 5.0, much of the implementation details have not changed. Additionally, the Windows 2000 DDK (accidentally?) shipped with a file called windbgkd.h which contains internal KD64 information and documentation. WinDBG's SDK ships with wdbgexts.h which contains more internal information on some portable structures. Other information was gathered through people such as Skywing."

svn path=/branches/alex-kd-branch/; revision=25840
2007-02-18 22:46:01 +00:00
Alex Ionescu
75497d0898 - KdDebuggerNotPresent should be FALSE by default.
- KdpTimeSlipPending should be 1 by defalt.
- Enable KdInitSystem; don't touch SharedUserData yet because our loader doesn't map it properly until we hit MmInit1, so disable this code for now.
- Implement KdpPollBreakInWithPortLock.
- Add calls to KdpPrint, KdpSymbol since KdpTrap now gets activated. Implement KdpPrint and KdpPrintString, but not KdLogDbgPrint (so debug messages before WinDBG connects are currently lost).
- Implement KdpSymbol but not essential call to KdpReportLoadSymbolsStateChange.
- Only save/restore CR4 if KeFeatureBits indicates CR4 support exists.
- Export KdDebuggerNotPresent since KDCOM needs it.

svn path=/branches/alex-kd-branch/; revision=25839
2007-02-18 22:32:32 +00:00
Alex Ionescu
929844ef2a - Add kd64 folder for KD64 6.0 implementation.
- Implement KdEnterDebugger, KdExitDebugger, KdEnableDebuggerWithLock, KdEnableDebugger.
- Add KD Version Block, KD Component Masks, and KD Configuration Options.
- Implement KdInitSystem and KdRegisterDebuggerDataBlock.
- Implement KdPollBreakIn, KdpLockPort, KdpUnlockPort.
- Implement KdpStub and KdpReport. Implement logic of KdpTrap but not helper calls (KdpTrap is only enabled after KD connects).
- Implement KD Time Slip support, KdpSwitchProcessor, KdpQueryPerformanceCounter.

svn path=/branches/alex-kd-branch/; revision=25838
2007-02-18 20:51:30 +00:00
Alex Ionescu
e126eb3077 - Add KdDebuggerInitialize1 and enable call to it.
- Fix KD_SYMBOLS_INFO definition and DbgLoadImageSymbols prototype.
- Implement DbgUnLoadImageSymbols.
- Fix some small bugs in KeBugCheckWithTf and add various debugger calls/checks where needed.
- Fix bugcheck recursion code which was incorrect.

svn path=/branches/alex-kd-branch/; revision=25837
2007-02-18 20:47:04 +00:00
Alex Ionescu
ee1892a1a9 - Fix KiDebugService to load EDX from KTRAP_FRAME_EDX, not KTRAP_FRAME_EAX!.
- Fix CommonDispatchException to check for the argument count in ECX, not EAX. Previously we were ignoring parameter counts and never filling out exception records!
- Fix DebugPrint to be the same in user-mode and kernel-mode by using DebugService. This now works because the bugs above were fixed.

svn path=/branches/alex-kd-branch/; revision=25836
2007-02-18 19:30:33 +00:00
Alex Ionescu
ff6bd309f3 - Add stubs for KdSave, KdRestore, KdDebuggerInitialize0, KdSendPacket, KdReceivePacket to kdcom.dll
- Implement and export KeTryToAcquireSpinLockAtDpcLevel.

svn path=/branches/alex-kd-branch/; revision=25835
2007-02-18 16:50:37 +00:00
Saveliy Tretiakov
148aa8601e Patch from Preston:
fix bug 1918 "Keyboard config unavailable".


svn path=/trunk/; revision=25834
2007-02-18 16:35:09 +00:00
Alex Ionescu
59caa79d63 - Add EXCEPTION_RECORD64 and LIST_ENTRY64, KeTryToAcquireSpinLockAtDpcLevel, BREAKPOINT_COMMAND_STRING, Ke386SetCr2, Ke386SetDr3, Ke386SetDr6.
- Remove non-kernel routines from kdfuncs.h and remove deprecated routines from ke.h.
- Implement KiRestoreProcessorControlState, KeFreezeExecution, KeThawExecution, ExAcquireTimeRefreshLock, ExReleaseTimeRefreshLock.
- Rename ModuleLoadList to PsLoadedModuleList. Add PsNtosImageBase and set value in it.
- Add skeleton wdbgexts.h with what's needed until now, this is a PSDK header.
- Add kddll.h for KDCOM/1394/USB2.DLL prototypes.
- Add windbgkd.h with KD protocol definitions. Used to be an NT5 DDK header, but was removed, so this goes into include\reactos.

svn path=/branches/alex-kd-branch/; revision=25833
2007-02-18 07:21:03 +00:00
Eric Kohl
b6dc9d8a3d Reenable the preview control notification. The user can now select the GUI item clicking it in the preview control.
svn path=/trunk/; revision=25832
2007-02-17 21:40:39 +00:00
Saveliy Tretiakov
abf9c6e638 Patch by Alexey Zavyalov (Generex).
Implement SetLocaleInfoA, SetLocaleInfoW.


svn path=/trunk/; revision=25831
2007-02-17 15:46:25 +00:00
Saveliy Tretiakov
4ea3e26092 Patch by Andrey Janzen (virus126).
Fix copy\paste bug in calc.


svn path=/trunk/; revision=25830
2007-02-17 15:33:57 +00:00
Magnus Olsen
e565b89550 adding file dump.c it contain printf stuff to dump some struct to the screen it can make debuging more easy. but if u build reactos with DBG=0 you will not see the dump of the stuct I mabe will add a option to it when u start this tools so it dump data when u use the options.
svn path=/trunk/; revision=25829
2007-02-17 15:01:01 +00:00
Thomas Bluemel
316942e612 - Move around definitions to make the code a bit more modular
- Use an about menu instead of an button

svn path=/trunk/; revision=25828
2007-02-17 09:32:33 +00:00
Ged Murphy
15b0d2660f add to bootcd to highlight the paint issue
svn path=/trunk/; revision=25827
2007-02-17 00:23:53 +00:00
Ged Murphy
aed1c8ece5 add to build
svn path=/trunk/; revision=25826
2007-02-17 00:22:21 +00:00
Ged Murphy
8cc6eff6ae - halfplement charmap.exe
- tested in ROS, by no means perfect but we cant least see the various glyphs within a font
- this app highlights an issue with our paint code (not yet investigated)

svn path=/trunk/; revision=25825
2007-02-17 00:13:35 +00:00
Magnus Olsen
77c7470539 adding more test case for test_NtGdiDdQueryDirectDrawObject not complete yet
svn path=/trunk/; revision=25824
2007-02-16 20:14:24 +00:00
Alex Ionescu
c9a0a6228b - Delete KD/KDBG directories.
svn path=/branches/alex-kd-branch/; revision=25823
2007-02-16 18:44:32 +00:00
Alex Ionescu
55c1c01e88 - Disable i8042prt debugger hack.
- Remove HAL kd routines.
- Do INT3 in DebugService calls since the KiDebugService increases EIP by one.
- Stub NtQuery/SetDebugFilterState.
- Remove all KDBG symbol/process/thread callouts. Remove GDB hacks.
- Stub out KdInitSystem and KdPollBreakI.
- Stub KdpEnterDebuggerException.
- Disable DebugPrint.
- Optimize KiDebugService by having it jump into the INT3 trap handler.

svn path=/branches/alex-kd-branch/; revision=25822
2007-02-16 18:43:16 +00:00
Alex Ionescu
e9a91dd3fa - Create KD branch. All debugging support is removed in this branch (no symbols, kd, kdbg, dbg) in hopes of cleanly implementing some of the low-level exception facilities, to remove potential sources of bugs, and to properly implement KD64 so that WinDBG can be used to debug ReactOS.
svn path=/branches/alex-kd-branch/; revision=25821
2007-02-16 18:37:34 +00:00
Alex Ionescu
3bb4d7e63f - KD Branch
svn path=/branches/alex-kd-branch/; revision=25820
2007-02-16 18:37:15 +00:00
Alex Ionescu
8bb09e57fd - KD Branch
svn path=/branches/alex-kd-branch/; revision=25819
2007-02-16 18:36:17 +00:00
Alex Ionescu
6f6f2fec56 - KD Branch
svn path=/branches/alex-kd-branch/; revision=25818
2007-02-16 18:35:38 +00:00
Sylvain Petreolle
0273f0c479 fix include file case
svn path=/trunk/; revision=25817
2007-02-16 16:57:09 +00:00
Magnus Olsen
a20e414f6a fixed all dam warings before some start nag on me
svn path=/trunk/; revision=25816
2007-02-16 16:48:54 +00:00
Magnus Olsen
11e0777755 adding a NULL test for NtGdiDdQueryDirectDrawObject
svn path=/trunk/; revision=25815
2007-02-16 16:43:27 +00:00
Magnus Olsen
9e44309042 -- Rewrite how we should do syscall now we define the syscall number in a include files. if we getting syscall table for another windows version and sp we can simple adding it to a another include file and use that file to run other that windows. rember the syscall table is diffent in all version of windows and reactos. if u compile this version in vs u will only be avail run it in windows 2000 sp4 and not under any windows version.
-- add one more testcase (NtGdiDdDeleteDirectDrawObject)
-- start adding thrid testcase (NtGdiDdQueryDirectDrawObject), this one will take bit longer to completed but I add a stub for it for now. 

svn path=/trunk/; revision=25814
2007-02-16 16:27:46 +00:00
Maarten Bosma
eab0f7c139 Lester Kortenhoeven (lester(at)kortenhoeven(dot)de):
* CP_ACP changed into CP_UTF8
* removed unnecessary code in xml.c
* fix memory leak
* add more programs

svn path=/trunk/; revision=25812
2007-02-16 11:07:28 +00:00
Hervé Poussineau
0470f1582d Set correct value for Characteristics (tested by Colin_Finck on IRC)
svn path=/trunk/; revision=25810
2007-02-15 20:39:33 +00:00
Eric Kohl
4101f39dc4 - Declare local functions static and get rid of prototypes by moving functions around.
- Clean up the code. No changes to the functionality.

svn path=/trunk/; revision=25809
2007-02-15 20:24:38 +00:00
Alex Ionescu
c731ec2a5a - Small placeholder change for future Cm code:
- Added newcm.c which will contain some new Cm code part of the Cm Rewrite but not in the rewrite branch (used solely for supporting CmGetSystemControlValues).
  - Added System Control Vector which supports all the registry flags that Windows 2003 SP1 supports as well.
- The most important part of this support, at least for us, is to get boot-time time zone support working properly. We can worry about the other options later.
- Update KrnlFun for previous DPC/HAL fixes.

svn path=/trunk/; revision=25806
2007-02-15 17:44:04 +00:00
Hervé Poussineau
973093ca7b Add missing 'Characterists' registry key for netcards. Fixes part of bug 2034
svn path=/trunk/; revision=25805
2007-02-15 17:34:26 +00:00
Eric Kohl
9d58eb743e - Enable/disable the size updown control when another window item is selected.
- Remove the text when the size edit control gets disabled.
- Disable the secondary color for the window item.

svn path=/trunk/; revision=25804
2007-02-15 14:12:36 +00:00
Dmitry Gorbachev
9645a00e53 - fix "keyboard does not respond" bug on Biostar board (thanks to Peter Krawies)
- fix printf()

svn path=/trunk/; revision=25803
2007-02-15 10:57:38 +00:00
Alex Ionescu
eaa061328d - You all s^H^H^H^H^H^H^H^H^H Fix build error.
svn path=/trunk/; revision=25802
2007-02-14 20:50:46 +00:00
Alex Ionescu
48d44183ec - Linux sucks
svn path=/trunk/; revision=25801
2007-02-14 20:47:43 +00:00
Alex Ionescu
d006bab906 - Fixup and enable my new HAL IRQL implementation from a couple of months ago, and remove the temporary Mm hacks from Dmitry Gorbachev, since DPCs don't interrupt DISPATCH_LEVEL Code anymore.
- This fixes a critical system malfunction and architectural bug, as well as speeds up ReactOS incredibly -- setup takes seconds again, and boot is almost instantenous (except the Explorer loading bug).
- Proper fix for bootvid regression that Aleksey "Fixed". Video mode is now properly setup wether in setup or non-setup mode, so bootvid works again.
- Enable bootvid in freeldr.ini, currently using only /SOS mode since full-screen logo isn't implemented yet.

svn path=/trunk/; revision=25800
2007-02-14 20:30:33 +00:00
Alex Ionescu
e542b2c634 Object Manager fixes based on bug reports from Aleksey Bragin:
- ObpReferenceProcessObjectByHandle:
  - Remove PAGED_CODE
  - Use InterlockedIncrement instead of InterlockedExchangeAdd.
- ObpInsertHandleCount: Fix calculation of the handle database size, fixing potential pool corruption/overwrite situations.
- ObpChargeQuotaForObject: Write proper code for charging the quota.
- ObpDecrementHandleCount:
  - Get ObjectType from caller instead of doing the extra operation.
  - If there's no handle database, then don't setup a handle entry.
- ObpIncrementHandleCount is PAGED_CODE.
- ObpCloseHandle: Do proper logic for determining if we should raise an exception, fail, or bugcheck the system when an invalid handle is being closed.
- ObpSetHandleAttributes:
  - Not PAGED_CODE.
  - Allow operations on kernel objects.
  - Use the Access Protect Close Bit in the GrantedAccess instead of an OBJ_PROTECT flag in the ObAttributes.
- ObpCloseHandleCallback: Sweep/Enumerate Routines are BOOLEAN, not VOID.
- ObDuplicateObject:
  - Clear the audit mask if auditing isn't set.
  - Always duplicate OBJ_AUDIT_OBJECT_CLOSE if it's set.
  - Clear the handle entry before writing it.
  - Always propagate ACCESS_SYSTEM_SECURITY as a desired access.
- ObFindHandleForObject: Use ObReferenceProcessHandleTable instead of directly accessing the pointer.
- ObInsertObject: Dereference symbolic links when they collide during an insert, since a reference was already added.
- NtDuplicateObject: Clear out the TargetHandle to assume failure.
- ObpCaptureObjectName: Use RtlCopyMemory which is faster.
- ObpAllocateObject: Fix check for quota usage.
- ObCreateObjectType:
  - Make sure that the object type name is wchar-aligned.
  - Add support for LPC Waitable Ports.
  - Initialize Object Locks.

svn path=/trunk/; revision=25799
2007-02-14 17:51:48 +00:00
Saveliy Tretiakov
1102b7a6e9 Post WM_INPUTLANGCHANGE to thread's focus windows when keyboard layout is changed.
svn path=/trunk/; revision=25798
2007-02-14 13:00:38 +00:00
Saveliy Tretiakov
4db9f2ba75 - Make NtUserLoadKeyboardLayoutEx accept 6 params
- Always get default locale from ntoskrnl
- Fix some small bugs


svn path=/trunk/; revision=25797
2007-02-13 19:50:06 +00:00
Magnus Olsen
26b059ca40 small prepare for rished20 sync for wine. so the sync goes allot easy
update richedit.h 
adding tom.h  <- from wine cvs 11/2-2007 the tom.idl does not exists in windows ?

svn path=/trunk/; revision=25796
2007-02-12 21:23:32 +00:00
Magnus Olsen
d6866b6242 patch from Physicus, implement TOOLTIPS_NotifyFormat, it now retrurn the type of the string if it unicode or ansi.
before it did not return any type at all. it did a heap crash from downloader mangers when it try figout what type
of sting the toolstips use. it is tested in 0.3.1 and not whole implemnent is tested yet. it should be right for all
case.

svn path=/trunk/; revision=25794
2007-02-12 18:37:05 +00:00
Timo Kreuzer
9cead0e330 -check wich control send the WM_NOTIFY
-don't include ProcessID 0 two times

svn path=/trunk/; revision=25792
2007-02-12 04:42:53 +00:00
Timo Kreuzer
9ae5b19fde - Implement appearance page of desk.cpl
- update and cleanup resources
See issue #1732 for more details.

svn path=/trunk/; revision=25791
2007-02-12 03:32:40 +00:00
Magnus Olsen
d10a481476 Implement test for NtGdiDdCreateDirectDrawObject works in windows 2000 sp4, only if u remove __REACTOS__ or using the vs project file. have not tested in reactos yet. but it should work.
svn path=/trunk/; revision=25790
2007-02-11 16:57:31 +00:00
Johannes Anderwald
519d3fe7fc - fix warning
svn path=/trunk/; revision=25789
2007-02-11 16:27:08 +00:00
Johannes Anderwald
e7889591ae - Fix a bug in NtUserOpenDesktop and simply the code
- Fix bug in NtUserEnumDisplayDevices

svn path=/trunk/; revision=25788
2007-02-11 15:32:54 +00:00
Johannes Anderwald
55ffc321dc - Fix a few warnings
svn path=/trunk/; revision=25787
2007-02-11 15:23:48 +00:00
Magnus Olsen
70f870bb70 adding some comment after review how it works in windows. I doing my own syscall in windows 2000 to see how it act and base my knowledges of that to correct some part of win32k dx handling.
svn path=/trunk/; revision=25786
2007-02-11 15:19:22 +00:00
Johannes Anderwald
31ba4573a4 fix svn properties
svn path=/trunk/; revision=25785
2007-02-11 15:14:04 +00:00
Johannes Anderwald
743b9588a7 - remove stdcall decoration
svn path=/trunk/; revision=25784
2007-02-11 15:12:49 +00:00
Aleksey Bragin
16572ed8bb Right now, it's not enough to just set the bios video mode to 0x12, other stuff like choosing correct font is needed.
Fixes "no text output in 1st stage setup" bug (and it still sets the videomode to 0x12, so it's not a hack).

svn path=/trunk/; revision=25783
2007-02-11 13:37:39 +00:00
Aleksey Bragin
e1e4c0d0ca 25763 was an example of how to NEVER do in ReactOS repository.
Besides reverting a good implementation, it also introduced unwanted hidden changes into cmd/console.c and videoprt.h.

Don't forget to make win32k_clean / user32_clean / videoprt_clean

svn path=/trunk/; revision=25782
2007-02-11 13:05:50 +00:00
Sylvain Petreolle
3fa9b4f5fb move from branch
svn path=/trunk/; revision=25781
2007-02-11 11:21:14 +00:00
Sylvain Petreolle
03332d70a1 delete empty dir
svn path=/trunk/; revision=25780
2007-02-11 11:17:27 +00:00
Magnus Olsen
b93110af03 adding winetest from the vendor drop for usp10.dll
svn path=/branches/ros-branch-0_3_1/; revision=25779
2007-02-11 10:44:31 +00:00
Magnus Olsen
497f28112f adding winetest from the vendor drop for usp10.dll
svn path=/trunk/; revision=25779
2007-02-11 10:44:31 +00:00
Magnus Olsen
9325914af4 sorry I forget the rbuild for the usp10 it self :(
svn path=/trunk/; revision=25778
2007-02-11 10:37:59 +00:00
Magnus Olsen
42c37a20ce adding usp10 to the building system. and small diff file as well. thuse change should not have been need it, maybe some whant take a look at them in the diff file and found 100% proper fix.
svn path=/trunk/; revision=25777
2007-02-11 10:35:19 +00:00
Magnus Olsen
9fbc2ee0f8 Copied remotely
svn path=/trunk/; revision=25776
2007-02-11 10:22:39 +00:00
Magnus Olsen
44e336e351 perpare import of usp10 from wine,
import wine usp10.h (from wine cvs 11/02-2007 rev  1.8)
from wine log
Revision 1.8 
Hans Leidekker <hans@it.vu.nl>
usp10: Implement ScriptString_pSize.
--------------------------------------------------------------------------------
Revision 1.7
Francois Gouget <fgouget@free.fr>
include/usp10.h: Add missing include directives.
--------------------------------------------------------------------------------
Revision 1.6
Jonathan Ernst <jonathan@ernstfamily.ch>
Update the address of the Free Software Foundation.
--------------------------------------------------------------------------------
Revision 1.5
Vijay Kiran Kamuju <infyquest@gmail.com>
Added some missing definitions in usp10.h.
--------------------------------------------------------------------------------
Revision 1.4
Marcus Meissner <meissner@suse.de>
extern "C" wrappers for usp10.h.
--------------------------------------------------------------------------------
Revision 1.3
Raphael Junqueira <fenix@club-internet.fr>
Add stubs around ScriptStringAnalyse to avoid PAF crash.
--------------------------------------------------------------------------------
Revision 1.2
Oliver Stieber <oliver_stieber@yahoo.co.uk>
Added stubbed support for ScriptGetFontProperties.
--------------------------------------------------------------------------------
Revision 1.1
Steven Edwards <steven@codeweavers.com>
Add stub implementation of the Uniscribe Script Processor.

svn path=/trunk/; revision=25771
2007-02-11 10:06:35 +00:00
Magnus Olsen
44c2b6bf63 update my private doc
svn path=/branches/ros-branch-0_3_1/; revision=25770
2007-02-10 22:32:06 +00:00
Magnus Olsen
4c34438a9a merge 25768 from trunk to 0.3.1 : fixed
Property sheet:
- Set focus to defpushbutton or to first WC_EDIT child window if present, like it works on windows.
- update wine diff
This fixes the regression in 2nd stage setup when no keyboard focus was present.

svn path=/branches/ros-branch-0_3_1/; revision=25769
2007-02-10 22:26:45 +00:00
Timo Kreuzer
3a80060bfe Property sheet:
- Set focus to defpushbutton or to first WC_EDIT child window if present, like it works on windows.
- update wine diff
This fixes the regression in 2nd stage setup when no keyboard focus was present.

svn path=/trunk/; revision=25768
2007-02-10 22:02:45 +00:00
Maarten Bosma
4cef94f636 New try: Lester Kortenhoeven (lester(at)kortenhoeven(dot)de):
* Implement uninstall feature. Does not work under reactos yet, because it does not seem to store the installer information under the registry path windows stores them. 
* Show Version in the description.

svn path=/trunk/; revision=25767
2007-02-10 21:48:44 +00:00
Maarten Bosma
40790c54c7 sorry 25765 was ment to go to trunk
svn path=/branches/ros-branch-0_3_1/; revision=25766
2007-02-10 21:46:37 +00:00
Maarten Bosma
d06c2356fb Lester Kortenhoeven (lester(at)kortenhoeven(dot)de):
* Implement uninstall feature. Does not work under reactos yet, because it does not seem to store the installer information under the registry path windows stores them. 
* Show Version in the description.

svn path=/branches/ros-branch-0_3_1/; revision=25765
2007-02-10 21:41:28 +00:00
Aleksey Bragin
e356b22952 Fix user32, gdi32 and dnsapi's base addresses so that no relocations occur during system bootup.
Please note that their base addresses do not correspond anymore to the base addresses those DLLs have in Windows.

svn path=/trunk/; revision=25764
2007-02-10 15:49:50 +00:00
Magnus Olsen
1bbe7c2674 reverting 25758 : for follow reason
1. it cause regress of loading keyboard layout from the regsiter when reatcos booting. 
2. it does not follow windows implement 
3. it does not using ntoskrnl for it is ntoskrnl that handling the keyboard not the win32k.
4. it does not using right protoype for some syscall
5. some syscall does not working like windows. it mess it up instead. 
6. Do not implement own design on public api and syscall

svn path=/trunk/; revision=25763
2007-02-10 14:52:46 +00:00
Saveliy Tretiakov
516fc1cc74 Add missing return
svn path=/trunk/; revision=25762
2007-02-10 13:11:02 +00:00
Magnus Olsen
39f8130921 stub shall be in stub. file not in other files.
svn path=/trunk/; revision=25761
2007-02-10 09:15:04 +00:00
Saveliy Tretiakov
0675bc2424 Fix a bug.
svn path=/trunk/; revision=25760
2007-02-10 08:09:04 +00:00
Saveliy Tretiakov
011bca506e Add braces to if.
svn path=/trunk/; revision=25759
2007-02-10 07:28:25 +00:00
Saveliy Tretiakov
c1145464aa Add multiple keyboard layout support. Implemented NtUserLoadKeyboardLayoutEx, NtUserActivateKeyboardLayout, NtUserGetKeyboardLayoutList, NtUserGetKeyboardLayoutName.
svn path=/trunk/; revision=25758
2007-02-09 20:48:37 +00:00
Aleksey Bragin
f88b54561d 30 seconds screensaver timeout is just simply wrong. Developers should have test-settings inside *their* working copies, not trunk/release branches.
Set it to 10 minutes (default value in WinXP, iirc).

svn path=/branches/ros-branch-0_3_1/; revision=25757
2007-02-09 10:46:13 +00:00
Aleksey Bragin
cd679a1f7e 30 seconds screensaver timeout is just simply wrong. Developers should have test-settings inside *their* working copies, not trunk/release branches.
Set it to 10 minutes (default value in WinXP, iirc).

svn path=/trunk/; revision=25756
2007-02-09 10:45:54 +00:00
Timo Kreuzer
8c6bd0b95a A gdi handle viewer.
There's currently a hack, to make it work on ROS, OpenProcess() crashes ROS, so currently you will not see the processes names.

svn path=/trunk/; revision=25755
2007-02-08 23:29:24 +00:00
Sylvain Petreolle
f5dd45afa8 add msacm32.drv to bootcd
svn path=/trunk/; revision=25754
2007-02-08 17:06:48 +00:00
Sylvain Petreolle
4e8ef10889 try to load actual names
for midimap.dll and msacm32.drv

svn path=/trunk/; revision=25753
2007-02-08 17:05:15 +00:00
Alex Ionescu
867471f6cc - Fix build.
- Initialize some SharedUserData settings in MmInitSystem.

svn path=/trunk/; revision=25752
2007-02-08 01:22:04 +00:00
Alex Ionescu
1b3e649577 - Update boot graphics with new, RLE-compressed and palette-blacked versions from mf.
- Re-enable FreeLDR's "prepare for ros video" routine, but change it to match the new BootVid, which uses Mode 0x12. This is roughly what HalDisplayReset does, which isn't yet implemented (except the latter needs to setup a BIOS call trampoline).
- Fix up some bugs in bootvid and inbv.
- Implement SOS case of DisplayBootBitmap, and implement FinalizeBootLogo. Now bootvid starts to show its colors, but one .bmp is still buggy.

svn path=/trunk/; revision=25751
2007-02-08 00:50:23 +00:00
Alex Ionescu
f58c57410c - Add bootvid-compatible bitmaps for ReactOS, made by mf.
svn path=/trunk/; revision=25750
2007-02-07 22:08:13 +00:00
Hervé Poussineau
8afd1c5854 Specify which winuser.h we want to include, instead of relying on some magic to find the right one
svn path=/trunk/; revision=25749
2007-02-07 21:40:46 +00:00
Aleksey Bragin
f56e85deb7 Merge fixes for LiveCD (25746, 25747 plus corresponding changes in ex/init.c).
LiveCD now works.

svn path=/branches/ros-branch-0_3_1/; revision=25748
2007-02-07 20:56:12 +00:00
Alex Ionescu
e5a4c24966 - Better fix for LiveCD issue; now it should work no matter what.
svn path=/trunk/; revision=25747
2007-02-07 16:31:24 +00:00
Alex Ionescu
0883e06a43 - Fix IopApplyReactOSCdRomHack to handle LiveCD case properly. LiveCD should now boot*.
- Fix invalid inbv called during shutdown.
- Don't call HalResetDisplay during VidReset since it's not yet implemented and this will crash the system.
- Temporarily disable bootvid in LiveCD until it works, and enable debugging output so LiveCDs can output some debugging information in case of bugs.
* LiveCD won't actually work because for some time now, ReactOS needs to be "installed" because of missing PnP entries. LiveCD Boot will cause a message box saying "EnableUserModePnPManager" failed. hpoussin?

svn path=/trunk/; revision=25746
2007-02-07 06:08:24 +00:00
Dmitry Gorbachev
a840459c37 Fix "keyboard does not respond" bug. Thanks to Peter Krawies (breakoutbox /AT/ web /DOT/ de)
svn path=/trunk/; revision=25745
2007-02-07 00:29:50 +00:00
Dmitry Gorbachev
e6a2b315ca bootvid.sys -> bootvid.dll
svn path=/trunk/; revision=25744
2007-02-06 17:48:21 +00:00
Magnus Olsen
aaba4e8b8c update my private doc about mmx
svn path=/branches/ros-branch-0_3_1/; revision=25743
2007-02-06 16:46:33 +00:00
Magnus Olsen
10321d87a1 mmx works so activate mmx optimze for mesa32
svn path=/branches/ros-branch-0_3_1/; revision=25742
2007-02-06 16:44:44 +00:00
Magnus Olsen
47fe8ffea2 update my private regress doc.
svn path=/branches/ros-branch-0_3_1/; revision=25741
2007-02-06 16:11:20 +00:00
Magnus Olsen
7399c608e5 tempary fix for OpenGL. until ntoskrnl got sse implement. this fix are only for 0.3.1 branch
svn path=/branches/ros-branch-0_3_1/; revision=25740
2007-02-06 16:10:45 +00:00
Magnus Olsen
8b263ce49e Doc what I known is left todo.
please update it. what have been regress and which regress have been fixed. 

svn path=/branches/ros-branch-0_3_1/; revision=25739
2007-02-06 15:27:24 +00:00
Magnus Olsen
c66a34663b fixed ReactOS.xml to ReactOS.rbuild.
some one forget change some place to ReactOS.rbuild and update the doc

svn path=/trunk/; revision=25738
2007-02-06 13:34:47 +00:00
Hervé Poussineau
9c1b205b00 Correctly fix the hack introduced in r25667.
svn path=/trunk/; revision=25734
2007-02-05 23:58:06 +00:00
Timo Kreuzer
e6eab028de No code change! Just a way to try to contact Eric.
Eric, I tried to contact you without success, I have code for the appearance page to add the needed functionality. I would talk with you about this, as you are also working on that. Please contact me, if you read this.

svn path=/trunk/; revision=25733
2007-02-05 23:31:17 +00:00
Aleksey Bragin
0556ab785e Merge 25725, 25726, 25728.
svn path=/branches/ros-branch-0_3_1/; revision=25732
2007-02-05 20:59:18 +00:00
Aleksey Bragin
1a84ae85d4 Update ex/timer.c up to 25610.
svn path=/branches/ros-branch-0_3_1/; revision=25731
2007-02-05 20:41:00 +00:00
Aleksey Bragin
0a0fa78d34 Merge 25584, 25588.
svn path=/branches/ros-branch-0_3_1/; revision=25730
2007-02-05 20:14:59 +00:00
Magnus Olsen
bc9d01a54d fixed 5.01 can be type in calc it did remove the zero so the result was 5.1
See issue #2019 for more details.

svn path=/trunk/; revision=25729
2007-02-05 16:34:29 +00:00
Timo Kreuzer
5e7eb24549 FreeResource is deprecated. Not needed to free any mem.
svn path=/trunk/; revision=25728
2007-02-05 13:37:16 +00:00
Aleksey Bragin
9d941c2836 Those Wmi*() are not kernel APIs.
svn path=/trunk/; revision=25727
2007-02-05 10:47:27 +00:00
Timo Kreuzer
8444d4afb3 Make LoadCursorIconImage() find shared icons, even if they don't have the desired width/height. Now explorer doesn't leak icons / bitmaps anymore.
fixes bug 1554
See issue #1554 for more details.

svn path=/trunk/; revision=25726
2007-02-05 00:59:59 +00:00
Timo Kreuzer
cde527ab70 MSDN sais: "The CreateIconFromResource function calls CreateIconFromResourceEx passing LR_DEFAULTSIZE|LR_SHARED as flags."
(not supported yet in CreateIconFromResourceEx())

svn path=/trunk/; revision=25725
2007-02-05 00:21:38 +00:00
Sylvain Petreolle
1db729aaed fix build
svn path=/trunk/; revision=25724
2007-02-04 22:35:09 +00:00
Magnus Olsen
4f1dce8b1e Good news after all bugfix in cmd it seam pipe works with unicode.
only bug left 
1. we need found where we miss translate some part from unicode -> ansi and use current codepage. 
This change are not for 0.3.1 it is target for next release. 


svn path=/trunk/; revision=25723
2007-02-04 21:48:07 +00:00
Sylvain Petreolle
165da8e9da fix bootvid build
svn path=/trunk/; revision=25722
2007-02-04 19:19:18 +00:00
Alex Ionescu
925751080d - Fix call to VidInitialize.
- Disable call to HalDisplayReset to avoid bugcheck. [Lock held]
- Don't unload bootvid after Phase 3 I/O Init since we still need to call it.
- Implement HalpTranslateResourceAddress since bootvid (and other windows boot drivers, potentially) needs it.

svn path=/trunk/; revision=25721
2007-02-04 19:15:04 +00:00
Magnus Olsen
7f1390f3c4 patch from : Paolo Devoti <devotip at gmail.com>
fix issue  : fix it.rc typo
see bug 1983 as well
See issue #2017 for more details.

svn path=/trunk/; revision=25720
2007-02-04 18:25:47 +00:00
Magnus Olsen
ca4c9d46fc fixed a problem possible overwrite memory in cmd. base on knowlges from bug 2017. the patch are incorrect to fix it.
we simple do not allown overwrite the memory. both on trunk and 0.3.1

  
See issue #2017 for more details.

svn path=/trunk/; revision=25719
2007-02-04 18:19:34 +00:00
Magnus Olsen
b27a0418ec fixed a problem possible overwrite memory in cmd. base on knowlges from bug 2017. the patch are incorrect to fix it.
we simple do not allown overwrite the memory.
  
See issue #2017 for more details.

svn path=/branches/ros-branch-0_3_1/; revision=25718
2007-02-04 18:17:34 +00:00
Aleksey Bragin
2dcc044532 Lock bootvid's code.
svn path=/trunk/; revision=25717
2007-02-04 16:35:00 +00:00
Thomas Bluemel
4b72595190 There's no such function VidDisplayString, comment out code
svn path=/trunk/; revision=25716
2007-02-04 16:32:13 +00:00
Thomas Bluemel
9481fbbae6 Fix compilation
svn path=/trunk/; revision=25715
2007-02-04 16:22:19 +00:00
Aleksey Bragin
fab5494340 A stub driver for wmilib.sys. Since we don't implement WMI anyway, this stub is just enough for now.
svn path=/trunk/; revision=25714
2007-02-04 16:21:27 +00:00
Thomas Bluemel
c1bd35020a Remove code that was commented out some time ago
svn path=/trunk/; revision=25713
2007-02-04 16:07:02 +00:00
Thomas Bluemel
6bbca5c035 Fix the code to read the SystemDrive environment variable
svn path=/trunk/; revision=25712
2007-02-04 16:06:08 +00:00
Magnus Olsen
02d9b451a6 merge down 25710 change from trunk : implement NtUserGetKeyboardLayoutName tested in 0.3.1 and works fine, it is one step closer to fix ibrowers typing bug
svn path=/branches/ros-branch-0_3_1/; revision=25711
2007-02-04 16:01:25 +00:00
Magnus Olsen
352fb74648 implement NtUserGetKeyboardLayoutName tested in 0.3.1 and works fine
svn path=/trunk/; revision=25710
2007-02-04 15:54:14 +00:00
Sylvain Petreolle
6a92e6db5f changed wrong line in previous commit,
thanks to jjkola

svn path=/trunk/; revision=25709
2007-02-04 14:50:47 +00:00
Alex Ionescu
e1ed22b77f - Temporarily disable referencing and dereferencing the LPC mapping process since the dereference never seems to happen, thus causing processes never to die. Now they die again when killed/closing.
svn path=/trunk/; revision=25708
2007-02-03 21:10:08 +00:00
Alex Ionescu
c5cebc9965 - Update kernel fun.
svn path=/trunk/; revision=25707
2007-02-03 20:35:37 +00:00
Alex Ionescu
ffe900f573 - Replace broken bootvid by a new bootvid based on TinyKRNL's version. It is a .DLL instead of a .SYS and takes advantage of my patch to FreeLDR which allows us to load DLLs that drivers/the kernel load.
- This new version is also binary compatible, so Windows's bootvid can be dropped instead and our kernel can talk to it. It has been tested under Windows/TinyKRNL.
- Write 90% of the Inbv component in the kernel. Displaying the boot bitmap hasn't yet been coded.
- The HAL is missing required routines for bootvid.dll, so it doesn't work yet.
- .BMP resources haven't yet been added to the kernel. I will add them soon.

svn path=/trunk/; revision=25706
2007-02-03 20:30:32 +00:00
Alex Ionescu
f0d898c481 - Disgusting* hack by hto to temporarily work around Mm/DPC Interrupt bug in trunk after applying new scheduler. We both tested it and it makes trunk not crash anymore (but I do see a noticeable slowdown during bootup). Reminder: explorer will take 30-60 seconds to startup after GUI boot. Be patient.
* This doesn't refer to hto's programming skills or code, but to the hackyness of the patch itself, which is a temporary solution.

svn path=/trunk/; revision=25705
2007-02-03 20:28:24 +00:00
Magnus Olsen
b2abf6b504 patch from : Paolo Devoti <devotip at gmail.com>
fix issue  : (Clean up patch)
             Removed variables formerly in use to handle pagination.
             Pagination belongs to ConOutPrintfPaging.
             Removed already commented out code of old pagination

See issue #2016 for more details.

svn path=/trunk/; revision=25704
2007-02-03 17:38:20 +00:00
Magnus Olsen
0b971d5007 patch from : Paolo Devoti <devotip at gmail.com>
fix issue  : The fix does a WriteFile per line insted of one per char.
See issue #2015 for more details.

svn path=/trunk/; revision=25703
2007-02-03 16:03:37 +00:00
Sylvain Petreolle
d8540d8289 translate hardcoded strings into 'edit variable' box
svn path=/trunk/; revision=25702
2007-02-03 14:07:03 +00:00
Sylvain Petreolle
a24bc8782c update french translation
svn path=/trunk/; revision=25701
2007-02-03 13:53:13 +00:00
Sylvain Petreolle
c0e8ed0771 avoid crash
svn path=/trunk/; revision=25700
2007-02-03 13:50:47 +00:00
Magnus Olsen
bb10cf55cf fix buliding with optimze -O3 forget add <compilerflag>-Wno-strict-aliasing</compilerflag> to all level of optimze
svn path=/trunk/; revision=25699
2007-02-02 13:56:33 +00:00
Magnus Olsen
ef4d0daf3b part 2/2 adding a new value OPTIMIZE, easy way to enable diffent optimze level do not chamge it if u do not known what u doing
svn path=/trunk/; revision=25698
2007-02-02 13:02:17 +00:00
Magnus Olsen
7ba2de8293 part 1/2 adding a new value OPTIMIZE, easy way to enable diffent optimze level do not chamge it if u do not known what u doing
svn path=/trunk/; revision=25697
2007-02-02 13:01:43 +00:00
Johannes Anderwald
1943dc7533 - ukrainian translation by Artem Reznikov temarez {AT} yandex (DOT) [RU]- fixes bug 1723
See issue #1723 for more details.

svn path=/trunk/; revision=25696
2007-02-02 10:41:50 +00:00
Johannes Anderwald
d6513bce85 - ukrainian translation by Artem Reznikov temarez {AT} yandex (DOT) [RU]
See issue #1723 for more details.

svn path=/trunk/; revision=25695
2007-02-02 10:38:53 +00:00
Johannes Anderwald
2910614bb4 - diff2wine
svn path=/trunk/; revision=25694
2007-02-02 10:38:04 +00:00
Sylvain Petreolle
97d64de5af fix make install for Marlett.ttf
svn path=/trunk/; revision=25693
2007-02-02 10:35:56 +00:00
Johannes Anderwald
edf66a1789 - ukrainian translation by Artem Reznikov temarez {AT} yandex (DOT) [RU]
See issue #1723 for more details.

svn path=/trunk/; revision=25692
2007-02-02 10:35:36 +00:00
Johannes Anderwald
a396359914 - diff2wine
svn path=/trunk/; revision=25691
2007-02-02 10:29:56 +00:00
Johannes Anderwald
a329ecbe4c - ukrainian translation by Artem Reznikov temarez {AT} yandex (DOT) [RU]
See issue #1723 for more details.

svn path=/trunk/; revision=25690
2007-02-02 10:24:12 +00:00
Johannes Anderwald
3c38469d6a - diff2wine
svn path=/trunk/; revision=25689
2007-02-02 10:22:59 +00:00
Magnus Olsen
c7e4bc835a merges comit r25685 -> fixed oarch being use. some have remove oarch flags when ros being compile. now we add it back. for mingw
svn path=/branches/ros-branch-0_3_1/; revision=25688
2007-02-02 10:17:47 +00:00
Johannes Anderwald
3b72d01949 - ukrainian translation by Artem Reznikov temarez {AT} yandex (DOT) [RU]
See issue #1723 for more details.

svn path=/trunk/; revision=25687
2007-02-02 10:17:14 +00:00
Johannes Anderwald
e415a5308e - ukrainian translation by Artem Reznikov temarez {AT} yandex (DOT) [RU]
- Someone plz update avifil32_ros.diff
See issue #1723 for more details.

svn path=/trunk/; revision=25686
2007-02-02 10:15:50 +00:00
Magnus Olsen
9c745033ff fixed oarch being use. some have remove oarch flags when ros being compile. now we add it back. for mingw
svn path=/trunk/; revision=25685
2007-02-02 09:31:22 +00:00
Johannes Anderwald
c0bd47734e - Fix include path
- Make code c compatible
- Fix bug in parsing routine


svn path=/trunk/; revision=25684
2007-02-02 09:17:45 +00:00
Johannes Anderwald
c6b29c7d8f - Fix warning(s)
- Void functions dont return values
- Include intrin.h for _enable / _disable intrinsics

svn path=/trunk/; revision=25683
2007-02-02 08:41:30 +00:00
Ged Murphy
fd8a0765c1 let get the name correct this time
svn path=/trunk/; revision=25682
2007-02-02 00:08:53 +00:00
Ged Murphy
38c3252004 add renamed font
svn path=/trunk/; revision=25681
2007-02-02 00:04:56 +00:00
Ged Murphy
de15da76a1 - Many improvements to the Marlett font now making it a complete replacement for the Windows variant.
- Rename font to Marlett as the 'TG' parts have been redone.
- Thanks to wierd_w for his help on this.

svn path=/trunk/; revision=25680
2007-02-02 00:03:30 +00:00
Johannes Anderwald
b5a6a666e7 - Remove stdcall decoration
svn path=/trunk/; revision=25679
2007-02-01 23:14:54 +00:00
Johannes Anderwald
d75711a725 - Use ntdefs constants over limits.h constants
svn path=/trunk/; revision=25678
2007-02-01 23:13:02 +00:00
Johannes Anderwald
9955ff8027 - remove stdcall declaration
svn path=/trunk/; revision=25677
2007-02-01 23:06:40 +00:00
Johannes Anderwald
63da9a0fc7 - ULONG is always >= 0
- Include limits.h to use ULONG_MAX instead of doing a cast

svn path=/trunk/; revision=25676
2007-02-01 23:05:32 +00:00
Johannes Anderwald
a75eaa8433 - Fix prototype HalAllocateCrashDumpRegisters
- Include intrin.h for _enable / _disable

svn path=/trunk/; revision=25675
2007-02-01 23:03:38 +00:00
Johannes Anderwald
527d2c961a - Fix function pointer definition
svn path=/trunk/; revision=25674
2007-02-01 22:36:04 +00:00
Johannes Anderwald
a05e3af0b9 - NTDLL no longer needs intrlck library
svn path=/trunk/; revision=25673
2007-02-01 22:11:40 +00:00
Johannes Anderwald
a886de7e77 - Use compiler intrinsics instead of hidden dependency of intrlck
svn path=/trunk/; revision=25672
2007-02-01 22:10:21 +00:00
Johannes Anderwald
fa5cd6e23c - Compile csrss with intrinsics
- Remove the intrlck dependency

svn path=/trunk/; revision=25671
2007-02-01 21:44:23 +00:00
Johannes Anderwald
ae8e954d79 - Fix typo in Italian translation by Daniele Forsi (dforsi at gmail dot com)
- Fixes bug 2006
See issue #2006 for more details.

svn path=/trunk/; revision=25670
2007-02-01 20:04:32 +00:00
Alex Ionescu
875b73611c - Fix a bug in NtSetInformationThread which was causing 2nd-stage setup to freeze/crash. Fixes regression from 25631.
svn path=/trunk/; revision=25669
2007-02-01 19:25:04 +00:00
Dmitry Gorbachev
28bb8d08f5 Commit attachment #1151
svn path=/trunk/; revision=25668
2007-02-01 08:04:23 +00:00
Aleksey Bragin
c2f58cd197 - Comment out clearing of KeLoaderBlock (introduced by 25629), because it looks like someone is still calling IopLoadServiceModule() even after that point. 2nd stage boots with this change.
svn path=/trunk/; revision=25667
2007-01-31 22:30:59 +00:00
Magnus Olsen
176b0cdbe8 merge trunk rev : 25663 and 25664 to 0.3.1 branch - update freetype, take care of a segment fualt I getting in vmware
svn path=/branches/ros-branch-0_3_1/; revision=25666
2007-01-31 17:07:19 +00:00
Magnus Olsen
5e2f2fafad merge trunk rev : 25656 to 0.3.1 branch - fixing my rmap problem in vmware
svn path=/branches/ros-branch-0_3_1/; revision=25665
2007-01-31 17:04:49 +00:00
Johannes Anderwald
7d26f5efb9 remove doc directory
svn path=/trunk/; revision=25664
2007-01-31 08:38:39 +00:00
Magnus Olsen
f88646c249 update freetype from 2.1.9 to 2.3.0
allot of changes see freetype change log,
Bigest news 
1. Fixing segment fualt with some of ttf font 
2. Fixed memory leak. 
3. Getting cjk rending working allot better. 
and more

svn path=/trunk/; revision=25663
2007-01-31 06:11:48 +00:00
Aleksey Bragin
ee9beb65c6 - Fix intlck compile.
svn path=/trunk/; revision=25662
2007-01-30 19:50:34 +00:00
Eric Kohl
fe7ce99eb1 Change the size of caption and scrollbar in the preview window.
svn path=/trunk/; revision=25661
2007-01-29 23:35:31 +00:00
Alex Ionescu
d330ef46ec - Add the stuff I deleted from winnt.h to ntifs.h where it belongs, I was naively hoping we'd have it in ntifs and didn't catch this until a kernel compile.
svn path=/trunk/; revision=25660
2007-01-29 05:16:00 +00:00
Alex Ionescu
06283000a1 - Turns out MSVC wasn't compiling one file because it had the same name as another. Renamed it and fixed the resulting errors.
- The structures for vista symlink support are not in winnt.h, they are only in the ntifs.h. Removed them from our winnt.h, and temporarily added them to the .c file itself.
- Implemented intrinsic interlocked functions instead of using the depcreated interlck lib.
- Fixed a bug in the MemoryBarrier intrinsic.
- Included intrin.h by default when using the NDK now, since native apps need Interlocked() functions and ntdll doesn't provide them, and they can't link to kernel32, and libintrlck is deprecated/sucks.
- Fixed stub of BaseCheckAppcompatCache.

svn path=/trunk/; revision=25659
2007-01-29 05:13:13 +00:00
Magnus Olsen
70ab8ffa3c start implement detections of export functions name. not finish does not working yet. Only fix pe loader so it works
svn path=/trunk/; revision=25658
2007-01-28 19:52:02 +00:00
Dmitry Gorbachev
61bb2998be Prototype of Italian keyboard support (see bug #1963)
svn path=/trunk/; revision=25657
2007-01-28 19:06:29 +00:00
Alex Ionescu
0d65391a4f - Merge Arty's Mm Page Referencing patch. I was able to complete first-stage setup (albeit only on the second try) and booting to second stage (after three tries). There are still freelist.c bugchecks but this patch is defintely a step in the right direction.
svn path=/trunk/; revision=25656
2007-01-28 16:23:52 +00:00
Dominique Cote
4d0c1a2de3 Added tests for FsRtlGetFileSize() and FsRtlReadMdl()
svn path=/trunk/; revision=25655
2007-01-28 04:15:39 +00:00
Martin Fuchs
81557f635c update XMLStorage:
- optional CDATA embedding by set_content()
- fix for handling in XML parser

svn path=/trunk/; revision=25652
2007-01-27 20:55:22 +00:00
Johannes Anderwald
281da1dd05 - diff2wine
svn path=/trunk/; revision=25651
2007-01-27 18:21:10 +00:00
Johannes Anderwald
9e0537881f - move wine includes to precomp.h
- this enables compiling nearly all (printdlg has some issues) of comdlg32 with msvc (first include all standard headers and then include the wine compability headers)

svn path=/trunk/; revision=25650
2007-01-27 17:52:03 +00:00
Eric Kohl
da3a838762 set properties
svn path=/trunk/; revision=25649
2007-01-27 14:53:18 +00:00
Thomas Bluemel
d0e23d4854 Make RtlEqualPrefixSid portable
svn path=/trunk/; revision=25648
2007-01-27 14:06:01 +00:00
Magnus Olsen
4fa1eded47 fixing comping error adding a new line to cacls.c
svn path=/branches/ros-branch-0_3_1/; revision=25647
2007-01-27 12:34:15 +00:00
Dominique Cote
16112941ac Added function FsRtlGetFileSize()
Added function FsRtlMdlRead() (mostly Alex's reviewed)

svn path=/trunk/; revision=25646
2007-01-27 05:26:30 +00:00
Johannes Anderwald
b6fe08489d - wrap include_next in macro (msvc doesnot understand this)
svn path=/trunk/; revision=25644
2007-01-26 23:17:02 +00:00
Sylvain Petreolle
31bba229dc merge 25562
svn path=/branches/ros-branch-0_3_1/; revision=25643
2007-01-26 22:31:55 +00:00
James Tabor
2dc167ecee Fix warning.
svn path=/trunk/; revision=25642
2007-01-26 22:28:47 +00:00
Sylvain Petreolle
eb33cecb2c merge 25640
svn path=/branches/ros-branch-0_3_1/; revision=25641
2007-01-26 22:17:44 +00:00
Sylvain Petreolle
c8d34de940 uninitialized variable fix
svn path=/trunk/; revision=25640
2007-01-26 22:00:03 +00:00
Alex Ionescu
594d924eaa - Enable NT Scheduler.
- The good:
  - Fixes hangs/freezes in trunk
  - No matter how sluggish the system got, I was able to move the mouse and other apps were still responsive even though one app was hogging the CPU.
  - Balancer thread activates and does its job of preventing deadlocks.
  - The code was heavily tested and some of it is based off direct pseudo-code from NT's very own kernel (legally obtained from Windows Internals II slides) as well as Windows Internals 4th.
The bad:
  - Explorer takes 30 seconds to load, after that all is fine though.
  - First-stage installer asserts at 18% in Mm instead of lagging like previously.
  - Various other Mm crashes related to the above ^^.
- Please help out to fix/figure out the Mm crashes! It would be much appreciated, otherwise, in a week, we will revert this patch as well as the patch that caused the hangs/freezes.

svn path=/trunk/; revision=25639
2007-01-26 20:54:30 +00:00
Johannes Anderwald
528e8fe9ec - fix some warnings
- define _ACLUI_

svn path=/trunk/; revision=25638
2007-01-26 19:44:42 +00:00
Johannes Anderwald
96401084ac - remove stdcall convention
svn path=/trunk/; revision=25637
2007-01-26 18:45:29 +00:00
Johannes Anderwald
120ffca3ec - winsock2.h needs to be included before windows.h (msvc)
svn path=/trunk/; revision=25636
2007-01-26 18:43:14 +00:00
Johannes Anderwald
756a324443 - update ukrainian translation by Artem Reznikov temarez {AT} yandex (DOT) [RU]
See issue #1723 for more details.

svn path=/trunk/; revision=25635
2007-01-26 18:42:05 +00:00
Aleksey Bragin
d1beb35b7d Fix compile (debug information is removed from Spare[2], but noone uses it).
svn path=/trunk/; revision=25634
2007-01-26 10:07:26 +00:00
Alex Ionescu
35c5b063fd - Fix definition of RTL_CRITICAL_SECTION_DEBUG.
- Fix all MSVC warnings in kernel32.
- Re-enable PCH.
- Disable Rtl*CondVar calls, since we can't target Vista *AND* 2003 due to linker problems. We'll need a way to create multiple DLL versions if we're going to attempt this.
- Make ASSERTs always valid in kernel32 as long as DBG is set.
- Fix Windows-loading hack, it seems there's only two levels of SEH. Eitherways, I think I've found a cleaner way to make it load nicely, so this hack will go away soon.

svn path=/trunk/; revision=25633
2007-01-26 07:22:19 +00:00
Alex Ionescu
32a29de195 - Multiple fixes to ERESOURCE implementation.
svn path=/trunk/; revision=25632
2007-01-25 23:48:48 +00:00
Alex Ionescu
c4f9542125 - Clean up kernel32\thread.c and fix some bugs.
- Implement KeSetDisableBoostThread.
- Temporarily disable SEH/validation in NtQuery/SetProcess/ThreadInformation routines since it was making all calls fail.
- Fix bugs when using ThreadPriority, ThreadBasePriority, ThreadAffinityMask. Parameters are now validated properly, and affinity masked with the process.
- Implement ThreadSetIdealProcessor and ThreadPriorityBoost case.
- Implement ThreadZeroTlsCell case. TLS should now work properly.
- Make kernel32_winetest for threads usable.
- Update Kernel Fun.

svn path=/trunk/; revision=25631
2007-01-25 22:39:32 +00:00
Alex Ionescu
91d26f3e23 - Implement the balance set manager. Doesn't do much for now except start up the thread queue scanner.
- Implement the thread queue scanner, but disable most of it for now, since we're not using the new scheduler.

svn path=/trunk/; revision=25630
2007-01-25 18:48:56 +00:00
Alex Ionescu
819a0ed90a - Use WinXP style /SOS output when enabled. (TODO: Display banner/memory/cpu).
- Make more init functions return TRUE/FALSE and bugcheck the system if they failed.
- Add more progress bar update calls.
- Merge MmInit2 and MmInit3 into MmInitSystem with different phase calls.
- Clear KeLoaderBlock after drivers have been loaded.
- Update kernel fun.
- Update symbolic names of certain strings in ntoskrnl.mc. Use WINDOWS_NT... instead of REACTOS because these names are documented and should be kept for cross-code compatibility.

svn path=/trunk/; revision=25629
2007-01-25 17:51:45 +00:00
Sylvain Petreolle
bbf7047df5 compile intl_new using its includes, not intl's ones
svn path=/trunk/; revision=25628
2007-01-25 15:06:10 +00:00
Magnus Olsen
267904be80 revers r25623
Acdring to Sylvain Petreolle, spetreolle at yahoo.fr this is copy paste from windows xp cpl, it is not allown todo a copy paste of sentence from windows xp, he did compare it. 

svn path=/trunk/; revision=25627
2007-01-25 10:15:19 +00:00
Alex Ionescu
92208d72a8 - Implement KeUpdateSystemTime properly, it now saves and returns the old time, supports HAL time, as well as loops the timer list to fixup relative timers and expired timers after the time has changed.
- Replace mm failure detection code by dprint + while loop to avoid bugchecks which might make the error worse to see.
- Remove some deprecated code/functions and cleanup clock.c entirely.

svn path=/trunk/; revision=25626
2007-01-25 05:14:55 +00:00
Alex Ionescu
2691e0994a - Implement ObQueryTypeInfo and link it to NtQueryObject.
- Fix a bug in ObQueryNameInfo.
See issue #1993 for more details.

svn path=/trunk/; revision=25625
2007-01-25 01:50:40 +00:00
Alex Ionescu
bdc7f65b2d - Rename KiSetSystemTime to KeSetSystemTime and enhance prototype for later use.
- Create Phase 1 initialization for the SRM (SeInitSystem). Right now it inserts the system boot token into object manager, which is something we forgot to do before.
- Renamed ExPhase2Init to Phase1Initialization, since it's not Phase 2.
- Updated Phase 1 PS Initialization to get the KeLoaderBlock pointer and use it as a context parameter when calling Phase1Initialization.
- Split off Phase1Initialization into Phase1InitializationDiscard, which is the bulk of the phase 1 code (99% of it) and can be put in an .INIT section to be freed after boot.
- Modify parts of the Inbv setup code. Also implement support for /SOS, and try to mimic its behaviour on NT (not fully achieved). You will need /SOS to see boot messages on the screen! FreeLDR now adds this by default to the "Debug "configuration.
- Temporarily disable ReactOS Banner during boot. We will get this data from the .mc/.res file in a later patch instead of hard-coding it.
- Optimize calling and usage of ExpLoadInitialProcess.
- Add support for Y2K bug fix documented for Windows NT (/YEAR).
- Add support to detect WinPE/MiniNT/ReactOS Live CD.
- Add temporary debugging code to MmInit2 and some Mm functions to detect if these functions are being used too early, which could result in catastrophic to subtle bugs.
- Add more bugchecks when failures occur, and enhance others. Also add more codes to ntoskrnl.mc.
- Disable calls to ObfDereferenceDeviceMap since it's not yet implemented.

svn path=/trunk/; revision=25624
2007-01-25 01:13:09 +00:00
Johannes Anderwald
3f65c90a12 - set svn eol-properties
- update translation by Heis Spiter heis underscore spiter at hotmail dot c o m
See issue #2000 for more details.

svn path=/trunk/; revision=25623
2007-01-24 20:27:50 +00:00
Alex Ionescu
ddcd40d53c - Fix a bug, fix breakage from previous revision.
svn path=/trunk/; revision=25622
2007-01-24 19:54:51 +00:00
Alex Ionescu
c307d73c12 - Fix ExInitPoolLookasidePointers and ExpInitailizeLookasideLists.
- Implement DbgLoadImageSymbols, Implement DebugService, and ExpLoadBootSymbols during phase 0 executive init to make KD load the symbols for all the boot drivers, and optionally breakpoint. Not yet useful since we don't have KD.
- Detect /BURNMEM and /PERFMEM and go all the way to determining the pages required, but warn the user that we don't support these flags yet.
- Detect FLG_KERNEL_STACK_TRACE_DB and FLG_ENABLE_EXCEPTION_LOGGING and warn that we don't support these yet.
- Add call to Cm to setup system variables, but disable until cm rewrite.
- Add PnP Manager initialization call and implement PnP Manager Phase 0 initialization (PiInitPhase0, PpInitializeDeviceReferenceTable), but this isn't used for now.
- Move MmInit2 to Phase 1 initialization, and initailize bootvid there as well.
- Add/Fix missing definitions, prototypes to NDK/NTIFS.

svn path=/trunk/; revision=25621
2007-01-24 19:48:34 +00:00
KJK::Hyperion
0e1ec5f828 * __cpuid, __rdtsc, __readmsr, __readpmc, __writemsr, __wbinvd, __readcr0, __readcr2, __readcr3, __readcr4: show me a fan of the extended inline asm syntax and I'll show you a SPARKLING FIST OF BURNING RAGE. Sprinkled __volatile__ liberally because there is no way to say "has side effects" OR "delete if outputs are ignored", only BOTH or NEITHER. This breaks Visual C++ compatibility ever so subtly. Tread carefully. THANK YOU GCC TEAM for keeping things interesting!
* __writemsr: pass 64-bit value with "A" constraint
 * __writecr0, __writecr3, __writecr4: "memory" clobber becase Visual C++ does, too

svn path=/trunk/; revision=25620
2007-01-24 19:07:19 +00:00
KJK::Hyperion
d9a9b8a705 * __ll_lshift, __ll_rshift, __ull_rshift: fixed handling of 64-bit arguments and return values by forcing them to be passed as EDX:EAX. Finally generates decent code
* updated comments to reflect current state of the code

svn path=/trunk/; revision=25619
2007-01-24 18:01:34 +00:00
Sylvain Petreolle
2bf5cb7c4f add french resources
fix typos

svn path=/trunk/; revision=25618
2007-01-24 17:45:26 +00:00
KJK::Hyperion
9c1f53ca78 * _ReadBarrier, _WriteBarrier: defined as aliases for _ReadWriteBarrier. Alas
* __emul, __emulu: fixed to specify instruction length suffix
 * __rdtsc: removed "__volatile__" attribute from the inline asm. Hyperion recommends you fix your goddamn code instead
 * __emul, __emulu, __rdtsc, __readmsr, __readpmc: return 64-bit values with the "=A" constraint instead of horrible kludge

svn path=/trunk/; revision=25617
2007-01-24 16:53:44 +00:00
Ged Murphy
f9d9392872 merge r25600
svn path=/branches/ros-branch-0_3_1/; revision=25616
2007-01-24 15:26:51 +00:00
Ged Murphy
2ec1b8df07 merge new icon/cursor selection code, cursors and radio button drawing code from head
svn path=/branches/ros-branch-0_3_1/; revision=25615
2007-01-24 15:25:43 +00:00
Aleksey Bragin
a3ad85c5a5 - Merge 25572 (except the NTLPC related part), this fixes VMWare detection.
- Merge a small part of 25501 ("Fix the KiMask32Array").

svn path=/branches/ros-branch-0_3_1/; revision=25614
2007-01-24 12:14:04 +00:00
Aleksey Bragin
1425102068 Merge 25473.
svn path=/branches/ros-branch-0_3_1/; revision=25613
2007-01-24 11:50:03 +00:00
Aleksey Bragin
a910887fdf - Merge a couple of small bugfixes from 25461 (smss and csrss related)
- Merge 25472

svn path=/branches/ros-branch-0_3_1/; revision=25612
2007-01-24 10:52:55 +00:00
Alex Ionescu
f1e71db26d - Rewrite kernel timer implementation to use Windows 2003's hash-based table timer model. Extremely scalable, since each timer list has its own lock, and optimized for speed since timers are hashed with the tick count at each update (timer.c).
- Implement a new timer expiration function which takes advantage of the fact that timers are now hashed with the system tickcount, and thus only parses the "hot" lists (dpc.c).
- Detect timer expiration during KeUpdateSystemTime and edit the KPRCB to notify of timer expiration. This will be picked up by the timer expiration DPC (clock.s).
- Add support for new timer code in dispatcher (wait.c, queue.c, ke_x.h).
- Change system startup to support the new timer DPC/list (krnlinit.c, clock.c).
- Remove corresponding entry from kernel fun, and update the guidance plan with recent successes and setbacks. This patch is likely the last big architectural change in the kernel except for enabling the new scheduler at a later time.

svn path=/trunk/; revision=25611
2007-01-24 06:50:28 +00:00
Alex Ionescu
991fe7200a - Fix a bug in NtSetTimer which was causing us to completely disregard the due time.
- kmtest now reports 0 failures for the extimer regression test.

svn path=/trunk/; revision=25610
2007-01-24 04:46:31 +00:00
Dominique Cote
dd98a989eb Added test calls for function FsRtlMdlReadDev() and FsRtlMdlReadCompleteDev()
svn path=/trunk/; revision=25609
2007-01-23 23:12:32 +00:00
Alex Ionescu
2ef08cc69b - Fix reference count bugs in executive timer implementation.
- Don't modify status when failing due to an access fault (NT doesn't!).
- Do parameter checks before bothering with expensive SEHing.

svn path=/trunk/; revision=25608
2007-01-23 23:10:13 +00:00
Alex Ionescu
36433ba5ec - Fix some warnings.
- Rearrange some code.
- Remove useless/deprecated code.

svn path=/trunk/; revision=25607
2007-01-23 22:46:38 +00:00
Christoph von Wittich
4fc7465a8f replace _sleep with Sleep to fix the gcc 4.x build
svn path=/trunk/; revision=25606
2007-01-23 21:48:31 +00:00
Alex Ionescu
5c2e4f088a - Convert KxDelayThreadWait, KxSingleThreadWait, KxMultiThreadWait into macros.
- Add KxQueueThreadWait macro based on previous ones.
- Add KxSetTimerForThreadWait to initialize the timer during the macros above. Wait timer setup is now done in two phases, which will be required with the new timer code anyway.
- Remove IRQL hack from idle loop when delivering DPCs.
- Make the wait code use the new macros and make it scale better.
- Add some missing definitions to asm.h

svn path=/trunk/; revision=25605
2007-01-23 18:39:47 +00:00
KJK::Hyperion
85ffdc2193 Fixed:
- _ReadWriteBarrier
 - _InterlockedCompareExchange8
 - _InterlockedCompareExchange16
 - _InterlockedCompareExchange
 - _InterlockedCompareExchange64
 - _InterlockedCompareExchangePointer
 - _InterlockedExchange
 - _InterlockedExchangePointer
 - _InterlockedExchangeAdd
 - _interlockedbittestandset
 - _interlockedbittestandreset

This commit dedicated to Alex (sup Alex!)

svn path=/trunk/; revision=25604
2007-01-23 18:26:51 +00:00
Aleksey Bragin
12e90157e6 Alexey Zavyalov: Add functionally Numbers, Currency, Time, Date tabs. Fix some bugs.
See issue #1988 for more details.

svn path=/trunk/; revision=25603
2007-01-23 17:59:36 +00:00
Alex Ionescu
89056c2f7a - Fix MSVC breakage caused by recent modifications of cctypes.h.
- Remove structures from ntifs.h that shouldn't be there.
- Add support for optimized detection of a DOS device path \?? or \??\ and implement it into ObpLookupObjectName.
- Add support for proper re-parsing up to a maximum of 30 times to avoid reparse DOS attacks on the kernel.
- Set WIN32_WINNT version to Windows 2003 SP1.

svn path=/trunk/; revision=25602
2007-01-22 22:16:13 +00:00
Ged Murphy
b5edfb619c - Fix the display of the radio buttons by using the Marlett font to draw the radio buttons instead of using Pie and Ellipse as Wine does. (ReactOS NtGdiPie and NtGdiEllipse need work anyway)
- The font is a bit messy at the moment, so it would be appreciated if any font designers out there could fix it.

svn path=/trunk/; revision=25601
2007-01-22 20:14:59 +00:00
Ged Murphy
182f879324 Don't substitute Marlett as TGMarlett is the file name, not the typeface name.
svn path=/trunk/; revision=25600
2007-01-22 19:42:16 +00:00
Christoph von Wittich
5d4a1b41e0 named pipes support for linux builds
svn path=/trunk/; revision=25599
2007-01-22 19:34:53 +00:00
Ged Murphy
87553c6cdd A temporary set of white cursors containing 1 bit and 32 bit variations.
I have some much better ones than these, but they are 32bit only. Making 1 bit versions of these (all ROS can handle at the moment) looked ugly. 32bit cursor support should be ready within the coming weeks.

svn path=/trunk/; revision=25598
2007-01-22 18:11:21 +00:00
Thomas Bluemel
4b97b271b9 Silence a warning
svn path=/trunk/; revision=25597
2007-01-22 17:52:47 +00:00
Saveliy Tretiakov
f603122931 Fix bugs in IntLoadKeyboardLayout and make it work.
svn path=/trunk/; revision=25596
2007-01-22 17:08:34 +00:00
Johannes Anderwald
a00e6038e9 - remove obsolete file
svn path=/trunk/; revision=25595
2007-01-22 10:43:18 +00:00
Sylvain Petreolle
85ff81ad42 fix warnings
svn path=/trunk/; revision=25594
2007-01-22 10:35:52 +00:00
Alex Ionescu
b440bf6fae - Implement ExEnumHandleTable. Had to add a small hack due to some memory freeing/init problem that requires more investigation.
- Implement ObpEnumFindHandleProcedure.

svn path=/trunk/; revision=25593
2007-01-22 09:57:10 +00:00
Hervé Poussineau
50d8fb4688 Fix warnings and indentation
svn path=/trunk/; revision=25592
2007-01-22 09:48:26 +00:00
Hervé Poussineau
e51baab788 Fix indentation
svn path=/trunk/; revision=25591
2007-01-22 09:46:01 +00:00
Sylvain Petreolle
17291b0214 fix case (2nd try)
svn path=/trunk/; revision=25590
2007-01-22 09:33:42 +00:00
Sylvain Petreolle
7b65b5fdf8 fix case
svn path=/trunk/; revision=25589
2007-01-22 09:24:42 +00:00
Johannes Anderwald
5e50203d9d - Italian translation by Daniele Forsi (dforsi at gmail dot com)
- fixes bug 1990
See issue #1990 for more details.

svn path=/trunk/; revision=25588
2007-01-22 09:14:32 +00:00
Alex Ionescu
19085f7dfd - Proper fix for the bug that 25558 attempted to fix. Kernel-mode registry handles now work (they didn't before 25558).
- Also the system now boots again since this fix is correct.

svn path=/trunk/; revision=25587
2007-01-22 08:46:56 +00:00
Alex Ionescu
3e42c58603 - Implement new ExHandle* implementation using pushlocks and the Windows 2003 HANDLE_TABLE structure and semantics. Only the currently used base APIs were implemented; support for audit masks still disabled, debug/tracing calls disabled.
- Remove manual overrides of NTDDI_VERSION all over the thread and set it once globally, since ExHandle* was the only non-updated package. The entire kernel now builds with Windows 2003 SP1 as a target.
- Remove this entry from kernel fun.

svn path=/trunk/; revision=25586
2007-01-22 08:15:17 +00:00
Alex Ionescu
d1c966119b - Fix HANDLE_TABLE definition.
- Fix LPC bugcheck during 2nd stage setup and/or bootup (double-free):
- LpcReplyMessage and LpcWaitingOnPort are a union inside ETHREAD, and they can actually be both accessed in the same time! (Unlike other unions which are self-exclusive). Therefore, we need a way to:
  1) Mark a message vs a port.
  2) Retrieve the correct object.
 This has now been implemented with some helper inline functions.

svn path=/trunk/; revision=25585
2007-01-22 08:07:24 +00:00
Alex Ionescu
a0d7a72c1a - Implement a cute little hack called DEFINE_WAIT_BLOCK which makes pushlocks work on GCC 3.4.5 as well as 4.1.2+ (with no perf-hit on the latter).
- Implement ExWaitForUnblockPushLock (just a wrapper around ExTimedWaitForUnblockPushLock).
- Simplfy ExBlockPushLock and fix some bugs.
- Fix a bug in ExfReleasePushLockExclusive when we have to wake the lock.
- Fix a bug in ExfUnblockPushLock which was touching the wrong pointer.
- Fix ExWaitOnPushLock to verify that the pushlock is actually locked.

svn path=/trunk/; revision=25584
2007-01-22 06:47:44 +00:00
Christoph von Wittich
2f75cefc88 some more warnings fixes (gcc 4.2)
svn path=/trunk/; revision=25583
2007-01-22 03:00:02 +00:00
Thomas Bluemel
4410a2013e This is the last fix for GCC4.2. Now everything can be built with -O3
svn path=/trunk/; revision=25582
2007-01-21 23:54:59 +00:00
Johannes Anderwald
3b4ec883fa - define msvc compabitble debug macro
- fix error in debug print

svn path=/trunk/; revision=25581
2007-01-21 23:29:12 +00:00
Thomas Bluemel
80513cb036 Fix compilation with GCC4.2. Please check changes in CreateProcessInternalW for correctness!
svn path=/trunk/; revision=25580
2007-01-21 23:29:10 +00:00
Johannes Anderwald
b4b32d74ee msvc only knows _snprintf ...
svn path=/trunk/; revision=25579
2007-01-21 23:23:24 +00:00
Johannes Anderwald
8d3d576d40 required cast because unsigned value ranges are always >= 0
svn path=/trunk/; revision=25578
2007-01-21 23:21:55 +00:00
Johannes Anderwald
c353557eea remove stdcall declaration
svn path=/trunk/; revision=25577
2007-01-21 23:19:35 +00:00
Johannes Anderwald
6ebc412a03 - fix small bug
svn path=/trunk/; revision=25576
2007-01-21 23:13:02 +00:00
Johannes Anderwald
986c2d5d7d - add include guards
svn path=/trunk/; revision=25575
2007-01-21 22:59:01 +00:00
Johannes Anderwald
8e502ebf41 as stated in file dir:
the file is obsolescent, please use io.h

svn path=/trunk/; revision=25574
2007-01-21 22:54:54 +00:00
Thomas Bluemel
243a44d2c0 Yet another fix for GCC4.2
svn path=/trunk/; revision=25573
2007-01-21 22:47:22 +00:00
Alex Ionescu
05e22f2f64 - Fix IN/OUT privileged instruction fault (we don't yet handle HLT/CLI/STI other prefixes but the framework is there).
- Enable back proper VMWARE detection.
- Fix namepointer setup in DbgkCreateThread.
- Skip the first entry when doing fake module load messages.
- Fix which handle count is read in DbgkCloseObject.
- Set the right flags for the debug event thread instead of random flags inside the debug event itself when parsing in DbgkpSetProcessDebugPort.
- Add debug event in the temporary list to be woken, if rundown couldn't be acquired.
- Properly validate continue statues allowed in NtDebugContinue.
- Properly support timeout in NtWaitForDebugEvent.
- Properly do backout in NtWaitForDebugEvent.
- Disable LPC debug messages accidentally enabled, and add a small hack to better find the cause of the LPC shutdown bug.

svn path=/trunk/; revision=25572
2007-01-21 22:43:32 +00:00
Thomas Bluemel
285cc65a82 - Allow warnings in the expat library
- More fixes for GCC4.2

svn path=/trunk/; revision=25571
2007-01-21 22:42:44 +00:00
Dominique Cote
27c812af6e ===================================================================
ntoskrnl/fsrtl/fastio.c
===================================================================
Fixed @implemented/@unimplemented tags

===================================================================
Index: ntoskrnl/cc/mdl.c
===================================================================
Fixed a comment.

svn path=/trunk/; revision=25570
2007-01-21 21:01:57 +00:00
Christoph von Wittich
316f362656 fix win32csr (gcc 4.2)
svn path=/trunk/; revision=25569
2007-01-21 20:38:29 +00:00
Christoph von Wittich
38dd475bcf revert this change (it broke the build)
svn path=/trunk/; revision=25568
2007-01-21 20:25:27 +00:00
Christoph von Wittich
745785f093 fix some more warnings (gcc 4.2)
svn path=/trunk/; revision=25567
2007-01-21 20:10:17 +00:00
Thomas Bluemel
e32b29f0a0 Fix the NdisQueryBufferOffset and the ARGUMENTS_PRESENT macro
svn path=/trunk/; revision=25566
2007-01-21 19:44:42 +00:00
Magnus Olsen
662d573b8d Allot of change in dejavu 2.14 I have not review what really good news for us
what I can see allot of misc char are supported now. 

Changes from 2.13 to 2.14
- added Philippine peso glyph U+20B1 (by Clayborne Arevalo)
- made U+2012 have the same width as digits, according to Unicode 5.0, 
  page 206 (by Roozbeh Pournader)
- made all of the "above" combining characters remove the dot of "i", 
  "j", etc (Soft_Dotted characters), according to Unicode 5.0, 
  page 228 (by Roozbeh Pournader)
- made U+012F, U+03F3, U+0456, U+0458, U+1E2D, and U+1ECB (all fonts 
  except Mono), U+0249, U+2148, and U+2149 (Sans and Sans Condensed), 
  U+0268 (Sans ExtraLight, Serif and Serif Condensed), and U+029D (Serif 
  and Serif Condensed) respect the Soft_Dotted property (by Roozbeh 
  Pournader)
- added U+223E, U+223F, U+2240, U+22C2, U+22C3 to Sans (by Rémy Oudompheng)
- added U+203D to Serif (by Gee Fung Sit)
- added zero-width glyphs for U+2061-U+2063 to Sans and Serif (by Gee 
  Fung Sit)
- changed isolated forms of Arabic waw (U+0648, U+0624 and U+06C6) (bug #9432) 
  (by Ben Laenen)
- added Lao consonants U+0E81, U+0E82, U+0E84, U+0E87, U+0E88, U+0E8A, 
  U+0E8D, U+0E94-0E97, U+0E99-0E9F, U+0EA1-0EA3, U+0EA5, U+0EA7, U+0EAA, 
  U+0EAB, U+0EAD-0EAF to Sans Mono (by Rémy Oudompheng)
- added U+0200-U+0217, U+0226-U+0229, U+02F3, U+1E00-U+1E07, 
  U+1E0A-U+1E0B, U+1E18-U+1E1F, U+1E22-U+1E23, U+1E28-U+1E2D, 
  U+1E3A-U+1E3B, U+1E40, U+1E48-U+1E49, U+1E56, U+1E58-U+1E59, 
  U+1E5E-U+1E5F, U+1E60, U+1E68-U+1E6B, U+1E6E-U+1E6F, U+1E72-U+1E77, 
  U+1E86-U+1E8B, U+1E92-U+1E96, U+1EA0-U+1EA1, U+1EF4-U+1EF5 to Mono 
  (by Ben Laenen)
- renamed uppercase variants of diacritics (macron, breve, double grave, 
  double acute, inverted breve, dot above) to "uni03XX.case" in Mono 
  (by Ben Laenen)
- moved uppercase variants of diacritics up in Mono so they properly 
  vertically align on capitals (by Ben Laenen)
- precomposed glyphs with macron, breve, double grave, double acute, 
  inverted breve, dot above, macron below, breve below, inverted breve 
  below, dot below, cedilla, caron below, circumflex below, diaeresis 
  below, tilde below now reference to combining diacritics instead of 
  space modifiers in Mono (by Ben Laenen)
- made ring below (U+0325), and half rings below (U+031C and U+0339) 
  smaller in Mono (by Ben Laenen)
- added U+205F to all fonts (by Roozbeh Pournader)
- added U+035E-U+035F to Sans (by Roozbeh Pournader)
- added empty glyphs for U+034F, U+202A-U+202E, U+2060, U+206A-206F, 
  U+FE00-U+FE0F to non-Mono fonts (by Roozbeh Pournader)
- added U+2101, U+2107-U+2108, U+210B, U+210C, U+2110, U+2112, U+211B, 
  U+211F, U+2123, U+2125, U+2128-U+2129, U+212C-U+212D, U+212F, 
  U+2130-U+2131, U+2133, U+2136-U+213A, U+2141-U+2144, U+2B00-U+2B11, 
  U+2B20-U+2B23 to Sans (by John Karp)
- reshaped omega (U+03C9) in Mono (by Ben Laenen)
- added U+2205, U+22C6, U+2300-U+2301, U+2303-U+2306, U+230C-U+230F, 
  U+2312-U+2315, U+231C-U+231F, U+2335, U+2337-U+233E, U+2341-U+2344, 
  U+2347-U+2348, U+234B-U+234D, U+2349-U+2350, U+2352-U+2354, 
  U+2357-U+2359, U+235A-U+235C, U+235E-U+2360, U+2363-U+2365, 
  U+2368-U+2369, U+236B-U+2370, U+2373-U+237A, U+2380-U+2383, 
  U+2388-U+238B, U+2395 in Mono (by Ben Laenen)

svn path=/trunk/; revision=25565
2007-01-21 19:27:35 +00:00
Johannes Anderwald
a02b98af72 - small fix
svn path=/trunk/; revision=25564
2007-01-21 19:12:46 +00:00
Thomas Bluemel
a8897783d7 Convert NdisQueryPacket to an inline function (The DDK also defines it as an inline function). Should fix some warnings with GCC4.2
svn path=/trunk/; revision=25563
2007-01-21 18:49:10 +00:00
Christoph von Wittich
603823ffb8 fix some warnings (gcc 4.2)
svn path=/trunk/; revision=25562
2007-01-21 18:25:47 +00:00
Christoph von Wittich
88803f3676 set the correct limits for the GDT Entry in KiInitializeTSS2
svn path=/trunk/; revision=25561
2007-01-21 18:20:06 +00:00
Christoph von Wittich
b598d64920 fix KeFlushCurrentTb
svn path=/trunk/; revision=25560
2007-01-21 17:53:16 +00:00
Christoph von Wittich
3863f61aaf -fix a call to ExGetPreviousMode()
-initialize CurKey in CmiScanKeyList

svn path=/trunk/; revision=25559
2007-01-21 17:32:11 +00:00
Christoph von Wittich
29043050ac fix some warnings (gcc 4.2) thanks to w3seek
svn path=/trunk/; revision=25558
2007-01-21 17:23:23 +00:00
Alex Ionescu
28df784f1a - Fix multiple LPC race conditions.
- Improve LpcpFreeToPortZone calls for optimizing lock release.
- Use RtlCopyMemory instead of RtlMoveMemory to optimize data transfer speed.
- Always hold a reference to the connection port associated to the LPC port and properly handle this reference in all the LPC code.
- Hold a reference to the process that mapped a server/client view, and use this field when freeing memory in case we're called out-of-process.
- Fix a lot of list parsing loops and code to handle the case when the list is now empty.
- Validate more fields and data in the code.
- There are still some LPC bugs at system shutdown.

svn path=/trunk/; revision=25557
2007-01-21 17:21:42 +00:00
Christoph von Wittich
b4483383d1 fix some warnings (gcc 4.2)
svn path=/trunk/; revision=25556
2007-01-21 16:04:17 +00:00
Maarten Bosma
41e6dfed9c More applications by EmuandCo.
svn path=/trunk/; revision=25555
2007-01-21 15:12:03 +00:00
Maarten Bosma
88b9f31e3a Merge xml changes to 0.3.1 branch.
svn path=/branches/ros-branch-0_3_1/; revision=25554
2007-01-21 15:12:00 +00:00
Magnus Olsen
2bdeda8d07 fixing a small disambler bug for mr
svn path=/trunk/; revision=25553
2007-01-21 15:06:57 +00:00
Aleksey Bragin
b467c3a28e [AUDIT]
(thanks to "Ventron" for help in checking this file)

Result: clean, reasons:
1) Alex cites legal sources for his magic numbers
2) The callers to the Hal don't know what they want to ask the Hal for (they pass NULLs)
3) It looks a bit incomplete in general

svn path=/trunk/; revision=25552
2007-01-21 11:38:05 +00:00
Magnus Olsen
9a661e9b1c comment out packmgr for it can not be build at moment. some should take a look at it.
svn path=/trunk/; revision=25551
2007-01-21 11:32:28 +00:00
Dominique Cote
3658aa350d ===================================================================
cctypes.h
ntoskrnl/cc/copy.c
===================================================================
Added CcFastMdlReadNotPossible
 
 
===================================================================
fastio.c
===================================================================
Added #ifdef to allow the file to compile "as is" in my windows 
framework. This doesnt affect RosBE

Brought back Alex's code for 

 FsRtlMdlReadCompleteDev
 FsRtlMdlReadDev
 FsRtlMdlReadComplete 

after having code reviewed it.

===================================================================
ntoskrnl/include/internal/cc.h
ntoskrnl/cc/mdl.c
===================================================================
Change the name of CcMdlReadCompleteDev to CcMdlReadComplete2


svn path=/trunk/; revision=25550
2007-01-21 04:46:38 +00:00
Dominique Cote
9b89b48609 Initial commit for the fsrtl lib test driver. This does not compile under ROS. You need some glue to compile and use it under windows.
svn path=/trunk/; revision=25549
2007-01-20 18:06:23 +00:00
Dominique Cote
bdc2486c5a * Adding FsRtlCopyRead(), FsRtlCopyWrite()
* Added #ifdef _NTIFS_INCLUDED_
	typedef struct _SHARED_CACHE_MAP {
  definition to cctypes.h header file.

svn path=/trunk/; revision=25548
2007-01-20 17:43:46 +00:00
Aleksey Bragin
7f1c973339 Merge 25454, 25455, 25457, 25458.
svn path=/branches/ros-branch-0_3_1/; revision=25547
2007-01-20 15:29:52 +00:00
Aleksey Bragin
60f76ba979 Merge 25429:25431, 25437, 25441:25443.
svn path=/branches/ros-branch-0_3_1/; revision=25546
2007-01-20 15:15:54 +00:00
Johannes Anderwald
a434a6256b - add italian translation by Paolo Devoti, devotip at tiscali dot xit
See issue #1949 for more details.

svn path=/trunk/; revision=25545
2007-01-20 14:12:12 +00:00
Magnus Olsen
b760238f4d sorry ia32 should be own folder
svn path=/trunk/; revision=25544
2007-01-20 13:39:01 +00:00
Magnus Olsen
fb71b542de start add mr op code causeome new bug for ppc
svn path=/trunk/; revision=25543
2007-01-20 13:33:42 +00:00
Magnus Olsen
5b7bc2d57e forgot thuse file
svn path=/trunk/; revision=25542
2007-01-20 13:32:26 +00:00
Magnus Olsen
a07e330040 forgot this file
svn path=/trunk/; revision=25541
2007-01-20 13:30:04 +00:00
Hervé Poussineau
961f68c118 Fix some warnings
svn path=/trunk/; revision=25540
2007-01-20 13:29:04 +00:00
Johannes Anderwald
4dec84dc2a msvc compilation fix & identify
svn path=/trunk/; revision=25539
2007-01-20 13:25:28 +00:00
Thomas Bluemel
f1f13fff16 Enable shell extensions to add pages to the control panel. The "Remote" page in XP however disappears when being clicked on. Is someone interested in taking a look at it?
svn path=/trunk/; revision=25536
2007-01-19 18:34:50 +00:00
Thomas Bluemel
e4a01dbd1c Merge patch from wine-head: Fixes function prototypes of SHAddFromPropSheetExtArray, SHCreatePropSheetExtArray, SHReplaceFromPropSheetExtArray and SHDestroyPropSheetExtArray
svn path=/trunk/; revision=25535
2007-01-19 18:30:53 +00:00
Thomas Bluemel
e7f892ab74 Merged recent w32api changes
svn path=/trunk/; revision=25534
2007-01-19 16:46:36 +00:00
Sylvain Petreolle
7c323b32c0 fix typo
svn path=/trunk/; revision=25533
2007-01-19 15:45:44 +00:00
Thomas Bluemel
f4947f0064 Fix compilation
svn path=/trunk/; revision=25532
2007-01-19 15:37:51 +00:00
Magnus Olsen
4faf77f9ca adding beepmidi to build
svn path=/trunk/; revision=25530
2007-01-19 10:37:52 +00:00
Christoph von Wittich
7f361aca5b fix some gcc 4.2 warnings
svn path=/trunk/; revision=25529
2007-01-19 10:14:29 +00:00
Christoph von Wittich
a356a76c21 fix some gcc 4.2 compilation problems and warnings
svn path=/trunk/; revision=25528
2007-01-19 09:26:20 +00:00
Magnus Olsen
fa8f26e7c6 Fixing the src and dst of register so they are being read right (PPC brain)
Adding stw for dissembler and converting (PPC and IA32)
Fixing a counter bug in ConvertBitToByte, ConvertBitToByte32, GetMaskByte, GetMaskByte32
we did miss one bit calculation when we count the mask the bit 0 

svn path=/trunk/; revision=25527
2007-01-19 08:20:42 +00:00
Thomas Bluemel
4f8fd087f7 Fix compilation (second attempt, too many local changes to keep track of)
svn path=/trunk/; revision=25526
2007-01-19 01:06:25 +00:00
Thomas Bluemel
f0b7c5e2d6 Fix compilation
svn path=/trunk/; revision=25525
2007-01-19 01:05:44 +00:00
Christoph von Wittich
d5a1f83701 fix some warnings (gcc 4.2 on Linux x64)
svn path=/trunk/; revision=25524
2007-01-19 01:00:06 +00:00
Thomas Bluemel
ff8132912c Fix freeing memory
svn path=/trunk/; revision=25523
2007-01-19 00:23:48 +00:00
Thomas Bluemel
0c3e4dc99b Move the "Computer Name" page to netid.dll
svn path=/trunk/; revision=25522
2007-01-19 00:09:21 +00:00
Thomas Bluemel
717f760ac7 set eol-style to native
svn path=/trunk/; revision=25521
2007-01-18 23:42:21 +00:00
Andrew Greenwood
8a64d7ef61 PC speaker MIDI driver (see README.TXT for info)
Tested on Windows XP but should be compatible with ReactOS


svn path=/trunk/; revision=25520
2007-01-18 23:26:30 +00:00
Johannes Anderwald
f8edfc8d99 - forgot these changes in my local svn
- generating dependency map works
- results can be viewed with XSL capable browser

svn path=/trunk/; revision=25519
2007-01-18 22:37:10 +00:00
Magnus Olsen
0cb4e210e1 Fixing another bug in converting
PPC 
stwu r1,-32(r1) 

equal with intel
mov [esp-32],esp; 
mov esp, esp - 32; 

svn path=/trunk/; revision=25518
2007-01-18 22:09:08 +00:00
Magnus Olsen
a286bd796f Adding stwu to converting to ia32
fixing some smaller bug when it was disabmler
fixing dymatic translations of abi for ppc and ia32


svn path=/trunk/; revision=25517
2007-01-18 21:35:48 +00:00
Thomas Bluemel
9ea6afafc7 Merge 3 STATICs together
svn path=/trunk/; revision=25516
2007-01-18 21:09:56 +00:00
Johannes Anderwald
62b03bfff8 - dutch translation by Eric Janssen (janssuhhh@gmail.com)
See issue #1989 for more details.

svn path=/trunk/; revision=25515
2007-01-18 20:22:56 +00:00
Magnus Olsen
36a8eccf27 Implement disambler for stwu, left todo add it to the Converter
svn path=/trunk/; revision=25514
2007-01-18 19:33:48 +00:00
Christoph von Wittich
4e16032857 fix some warnings
svn path=/trunk/; revision=25513
2007-01-18 17:12:49 +00:00
Thomas Bluemel
bdce0f47d1 Use comctl32's syslink control, no need to reinvent the wheel
svn path=/trunk/; revision=25512
2007-01-18 16:37:30 +00:00
Magnus Olsen
e6cfb666ca Fixing some ppc disambler bugs. Li are not 100% test it can contain some fault.
Fixing Li bug the register for dest was wrong calctions see file OpCodePPC.txt.
fixing some meaing in ReadMe.txt


svn path=/trunk/; revision=25511
2007-01-18 15:40:37 +00:00
James Tabor
fd1467e3a2 Add Arc.c to win32k. See gdi32 painting.c for more info.
svn path=/trunk/; revision=25508
2007-01-18 13:56:58 +00:00
Magnus Olsen
48cd2b3e75 Expain how the bit order works and how get the opcode. The IBM and freescale manual for ppc cpu are not good expain it.
now I got less headic, and got understainf how to decoding the manual and how the opcode are store. 
  

svn path=/trunk/; revision=25507
2007-01-18 13:43:17 +00:00
Magnus Olsen
4da115c6b5 Adding a opcode list, which opcode we are supportin convert from
svn path=/trunk/; revision=25506
2007-01-18 12:04:24 +00:00
Sylvain Petreolle
d245564623 fix gcc4 build
svn path=/trunk/; revision=25505
2007-01-18 11:13:43 +00:00
Alex Ionescu
9522e0a02b [25 bug fixes]:
- Implement KeReadStateThread.
- Fix PspTerminateProcess to handle case where there's no threads in the process.
- Fix check in PspTerminateProcess. ObClearProcessHandleTable gets called if there's a debug port, not if there's an object table.
- Simplfy PspReapRoutine.
- Fix PspExitThread to wait for all other threads before continuing to kill the last thread. Should fix lots of race/wait conditions.
- PspExitThread should check for !DeadThread and not !Terminated before determining if it should free the TEB. Also, the DbgK handle should only be closed if the thread isn't already dead.
- Fixup formatting of some code to warn less on MSVC.
- Fail various APIs if acquiring rundown protection failed.
- Fix Process Quantum/Priority settings.
- Grant PROCESS_TERMINATE by default.
- Add PROCESS_SET_INFORMATION, STANDARD_RIGHTS_ALL and PROCESS_SET_QUOTA to the default process granted access mask.
- Initialize process/thread/image notification callbacks durin phase 0 Ps initialization.
- The Audit Name belongs to the system process, not the idle process.
- Detect more failures in phase 0 startup.
- Fix various race conditions/incorrect checks in ps/security.c related to impersonation information. Also allow PspAssignPrimaryToken to be called directly with the token pointer and not only the handle.
- Wrap system thread startup stub in SEH and write a SEH filter function to print out debug information when a system thread dies unexpectedly.

svn path=/trunk/; revision=25504
2007-01-18 09:44:49 +00:00
Alex Ionescu
ccee43a360 - Fix __rdtsc so it's considered volatile by GCC instead of caching it.
- Add NtInitialUserProcessBuffer settings and validate/user them when launching smss.
- Use SePublicDefaultUnrestrictedSd for the root system link.
- Make enough space for the smss process parameters, there's 6 strings, not 4.
- Fix incorrect length of NtSystemRoot string.
- Disable SYSENTER on CPUs that don't support it.
- Detect and enable NX feature bit.
- Detect and enable DTS support.
- Implement Ki386EnableXMMIExceptions (the XMMI handler still needs to be done, however).
- Implement KiI386PentiumLockErrataFixup to work around the F00F bug.
- Implement KiIsNpxErrataPresent to detect the FDIV bug.
- Implement CPU Speed detection.
- Only setup Initial FX State if the CPU supports FXSR.
- Setup some more PCR fields during init.
- Use NX_SUPPORT_POLICY flags documented in ntddk.h
- Don't boot if CMPXCHG8B is not supported by the CPU. This is the same requirement as Windows.
- Don't overwrite all the PRCB locks in KiInitSpinlocks due to a stupid bug in the timer spinlock initialization.

svn path=/trunk/; revision=25503
2007-01-18 06:23:14 +00:00
Alex Ionescu
8be76ffcb3 - Remove hack from KiSetPriorityThread. Now it doesn't dispatch threads anymore, but this cleans up the IRQL/Dispatcher hack (it will still insert the higher priority thread in the right queue though, so there's not much visible change, just that priorities suck a bit more -- but this is temporary).
- Guard some more code with #ifdef NEW_SCHEDULER.
- Fix bugs in KiDispatchInterrupt.
- Use PRCB fields instead of PriorityListHead/PriorityListMask to reduces number of code changes between NEW_SCHEDULER and old.
- Fully implement KiDeferredReadyThread, but only for Uni-Processor systems. Supports unwait boosts as well as lock boosts. Not yet used.
- Implement NEW_SCHEDULER version of KiSwapThread and NtYieldExecution.

svn path=/trunk/; revision=25502
2007-01-17 21:53:45 +00:00
Alex Ionescu
a04cac242c [10 bug fixes]:
- Simplify KiSelectReadyThread.
- Use ASSERT_IRQL_EQUAL instead of ASSERT_IRQL, because ASSERT_IRQL is braindead and doesn't actually do what the name proposes. This caused us to miss many critical bugs.
- Don't lower IRQL to PASSIVE_LEVEL after KeInsertQueueApc. This caused a call to KiExitDispatcher at PASSIVE, which is completely fucked. Also do the same fix in KeFreezeAllThreads and KeThawAllThreads.
- Implement code in KiDispatchInterrupt to switch to a new thread, but don't enable for now.
- Fix the KiMask32Array. One of the values was totally off and screwed up priority/affinity masks.
- Exit the dispatcher in KiAdjustQuantumThread. This wasn't done, thus causing a weird system state.
- Fix a bug in KiSetPriorityThread which wasn't properly checking the ProcessReadyQueue member and thus not applying priority changes.
- Fixup lock release and dispatcher exit in wait functions in the NoWait case. It was inverted and messed up, leading to system inconsistency.

svn path=/trunk/; revision=25501
2007-01-17 20:44:37 +00:00
Magnus Olsen
22033f60ea fixing dymatic abi for ppc, and implement a dymatic abi even for ia32 converter
svn path=/trunk/; revision=25500
2007-01-17 20:25:46 +00:00
Magnus Olsen
3f44d73a4b fixing count how many reg we are using. so we can setup a frame pointer
svn path=/trunk/; revision=25499
2007-01-17 18:47:08 +00:00
Magnus Olsen
d1aa0d32ae Adding m68k,arm,ia32,ppc to ppc convert.
Remove the old disambler list from ppc to ppc 
implement new ppc to ppc disambler that are allot better at end. 

svn path=/trunk/; revision=25498
2007-01-17 17:35:18 +00:00
Magnus Olsen
65747168ef fixing a bug did write end code for frame pointer that we do not have
tempary fix, we can not optimize code so good yet. so if it more that 4 register same time we are using own frame, ebx is working as our ebp for we already resvert  the ebp 

svn path=/trunk/; revision=25497
2007-01-17 16:23:39 +00:00
Magnus Olsen
af42a0cc24 fixing the ppc to ia32 break, use ebx as ebp if we got to many register.
svn path=/trunk/; revision=25496
2007-01-17 15:31:47 +00:00
Magnus Olsen
69999a5ad4 This break the ppc disambler support and convert to ia32, temporary
I change the desgin lite to preopare the ia32 to ppc 

svn path=/trunk/; revision=25495
2007-01-17 15:02:43 +00:00
Aleksey Bragin
60fc740a7d Delete 100 files which are completely unneeded in order to statically compile expat library (full source code is located in the vendor branch).
svn path=/trunk/; revision=25494
2007-01-17 12:42:43 +00:00
Alex Ionescu
c696d66532 - Simplify KiSelectReadyThread.
- Disable KiSetAffinityThread to do nothing else but change affinity instead of doing re-scheduling (temporary change).
- Cleanup KiQuantumEnd to prepare for new scheduler.
- Fix up a large bug in KeInsertQueueDpc which was making every DPC become a Threaded DPC due to a bad assignment-instead-of-compare.
- Copy KiSelectNextThread for new scheduler branch, without SMT support.
- Fix a bug in KiAdjustQuantumThread under new scheduler.
- Re-implement KiSetPriorityThread under new scheduler, leave hacks for current scheduler support.
- Remove old testing assert from KiExitDispatcher.

svn path=/trunk/; revision=25491
2007-01-17 01:56:15 +00:00
Alex Ionescu
c15d054bad [22 bug fixes]:
- Make KiComputeNewPriority accept various priority adjuments instead of always assuming an increase of 1 priority level.
- Fix ASSERT in KeSetEventBoostPriority: API is valid *only* for Synchronization events, not notification ones.
- Use proper KiComputeNewPriority call in KeSetEventBoostPriority, since we're not adjusting by 1.
- Make sure the FreezeCount is also 0 in KeAlertResumeThread, before signalling the suspend semaphore.
- Simply alert-mode check in KeAlertThread.
- Don't exit the critical region in KeFreezeAllThreads, it needs to be held.
- Don't enter a critical region in KeThawAllThreads, it should already have been entered; release it after thawing is complete.
- Also change the list loop in these functions to always start with the first thread.
- Copy over boost-disable flag in KeStartThread.
- Don't acquire the dispatcher lock in KeTestAlertThread.
- Set the KernelStackResident flag to TRUE in KeInitThread.
- Fix KeSetIdealProcessorThread to check the CPU is valid on the system, not valid across all valid CPU numbers. Also fix it to compare affinity, not processor.
- Fix KeSetBasePriorityThread to properly call KiComputeNewPriority with an adjustment of 0, and then properly manually adjust with the delta between the new base priority and the old base priority.
- Also normalize the new priority if it's too low.
- Always set the priority decrement back to 0 when KeSetPriorityThread is called.
- Normalize the priority in KeSetPriorityThread if it falls too low.
- Fix process stack count check in KeTerminateThread.
- Acquire thread and PRCB lock in KiAdjustQuantumThread.
- Use KiComputeNewPriority in KiAdjustQuantumThread.
- Dispatch a new thread in KiAdjustQuantumThread to take into account the new scheduler settings.
- Thread priorities should make more sense now...

svn path=/trunk/; revision=25490
2007-01-16 20:49:40 +00:00
Thomas Bluemel
dde6333e88 Fix difference in signedness warnings
svn path=/trunk/; revision=25489
2007-01-16 18:55:06 +00:00
Ged Murphy
6c5af8a927 improve cursor loading code
svn path=/trunk/; revision=25488
2007-01-16 18:30:54 +00:00
Aleksey Bragin
a645a0af1f - Sync desk.cpl with trunk
svn path=/branches/ros-branch-0_3_1/; revision=25487
2007-01-16 17:46:06 +00:00
Alex Ionescu
14060f6c04 - Reimplement Process/Thread/Image notification callbacks by using the new executive lightweight callback implementation.
- Remove corresponding entry from kernel fun.

svn path=/trunk/; revision=25486
2007-01-16 15:09:53 +00:00
Alex Ionescu
b7e3f88937 - Implement ExCompareExchangeCallBack. The CallBack implementation is now ready for testing.
svn path=/trunk/; revision=25485
2007-01-16 14:20:19 +00:00
Alex Ionescu
1ef7c86725 - Implement ExReferenceCallBackBlock and ExDereferenceCallBackBlock.
- Code is very similar to Ob* Fast Referencing, and the use of macros to encapsulate generic referencing should be done later. Essentially, Ob sticks ObRefs around FastRefs, while ExCallbacks sticks ExRundown around FastRefs.

svn path=/trunk/; revision=25484
2007-01-16 07:20:16 +00:00
Alex Ionescu
9416d6ffa4 - Start partial implementation of Executive Lightweight Callbacks: ExAllocateCallBack, ExInitializeCallBack, ExFreeCallBack, ExWaitForCallBacks, ExGetCallBackBlockRoutine, ExGetcallBackBlockContext, ExDoCallBack.
- Stub ExReferenceCallBackBlock and ExDereferenceCallBackBlock until I get the locking right.
- These callbacks are used by Cm as well as Ps inside Windows NT and combine the power of PushLocks, Rundown Protection and Fast Referencing to ensure callbacks only get called once and thread safely. Not yet used in ROS.

svn path=/trunk/; revision=25483
2007-01-16 05:31:05 +00:00
Alex Ionescu
b51d473275 - Large cleanup of exported callback implementation. It was my first code to ReactOS and quite messy.
- Make code use standard NT structures.
- Fix object type initialization.
- Fix calls to ExCreatecallback during system initalization which were randomly overwriting memory.
- Fix ExREgisterCallback which was allocating only a pointer inside of the entire structure, also over-writing system memory.

svn path=/trunk/; revision=25482
2007-01-16 04:16:31 +00:00
Alex Ionescu
532a28a03c - Fix major bugs in the definition of _KTHREAD inside the NDK. I made some stupid assumptions when reading the .pdb dump data. _KTHREAD should now be the right size and structure as Win 2003. (the reason this bug wasn't more evident was because we were using 1-byte packing and a "padding" field. this has now been removed).
svn path=/trunk/; revision=25481
2007-01-16 02:40:41 +00:00
Alex Ionescu
73d8fac4c0 - Simplify KiWaitTest.
- Add _ADJUST_REASON
- Reformat some ke_x.h wait macros to use simpler/shorter variable names.

svn path=/trunk/; revision=25480
2007-01-16 02:24:19 +00:00
Alex Ionescu
ce501f07c6 - Fix insertion of special APC into APC delivery list.
- Re-identize some APC code (just formatting change).
- Detect APC during GateWait. Previous check scanned for DeferredReady, which is incorrect.
- Simplfy KeremovequeueApc to take advantage of the fact RemoveEntryList now returns whether the list is empty or not.

svn path=/trunk/; revision=25479
2007-01-16 01:27:36 +00:00
Ged Murphy
5b7abf2e8a don't leak a bitmap object if we fail to allocate memory
svn path=/trunk/; revision=25478
2007-01-16 00:08:41 +00:00
Ged Murphy
138ba142b5 use IC instead of DC
svn path=/trunk/; revision=25477
2007-01-15 23:37:44 +00:00
Ged Murphy
01ee458c11 revert r25474
svn path=/trunk/; revision=25476
2007-01-15 23:33:01 +00:00
Ged Murphy
1e1efd9791 - implement correct alpha blending of icons
- pixel bits must be pre-multiplied with the alpha channel
- along with the previous LookupIconIdFromDirectoryEx, basic alpha blending is working. some bugfixing is still required.

svn path=/trunk/; revision=25475
2007-01-15 23:25:35 +00:00
Ged Murphy
743b67a342 silence debug message
svn path=/trunk/; revision=25474
2007-01-15 23:23:29 +00:00
Alex Ionescu
4f9b8acb4d - Fix locking bugs in guarded mutex implementation. In race conditions some operations were not re-attempted.
- Fix some other logic bugs, including a serious bug in KeTrytoAcquireGuardedMutex which inversed the result.

svn path=/trunk/; revision=25473
2007-01-15 21:34:36 +00:00
Alex Ionescu
2e03cf0bb5 - Fix several bugs in the rundown protection implementation, mostly related to incorrect loop restarting in case of a race condition.
- The rundown event is a sync event, not a notification event.
- Only take slow path when waiting for release if the value changed *and* is still not active, not if only one of the two is true.

svn path=/trunk/; revision=25472
2007-01-15 21:12:32 +00:00
Alex Ionescu
6b4b2a47a3 - Add KeAreAllApcsDisabled to DDK.
[4 bug fixes]:
- Setup default GrantedAccess for system init thread/process in ObInit.
- Fix a small bug in ObpReapObject.
- Set object header flag is deletion was done deferred.
- Simplify ObpDeferObjectDeletion.
- Use KeAreAllApcsDisabled instead of only checking IRQL to determine if we should do defered deletion.

svn path=/trunk/; revision=25471
2007-01-15 20:54:40 +00:00
Aleksey Bragin
da557c1562 - Merge 25404-25406, very small part of 25407, 25409, 25410, 25412+25414, 25422-25426.
svn path=/branches/ros-branch-0_3_1/; revision=25470
2007-01-15 20:33:07 +00:00
Alex Ionescu
d591f751c7 [12 bug fixes]:
- Isolate FuckedUpCm version of ObpLookupDirectoryObject into CmpLookupDirectoryObject to avoid name info leak.
- Rename ObpIncrementQueryReference to ObpAcquireNameInformation and ObpDecrementQueryReference to ObpReleaseNameInformation and make some changes to make calling a lot easier.
- Fixup reference increment loop in above function.
- Fix incorrect check for defer delete flag instead of query references flag.
- Only clear the directory/directory lock flag in ObpCleanupDirectoryLookup if the directory was actually locked.
- Fix lock logic in ObpLookupDirectoryEntry.
- Properly handle the case when lookup occurs after an existing object, avoid name information leak and reference leak.
- Hold shared lock inside NtQuerydirectoryObject.
- Properly initiailize the directory object in NtCreateDirectoryObject.
- Clear create info before creating the unnamed handle in ObInsertObject.
- Only dereference the target process if we actually have one in NtDuplicateObject.
- Don't double-reference the name information in ObpDeleteNameCheck, thus avoiding another leak.
- Fix object case sensitivity check in ObpLookupObjectName.

svn path=/trunk/; revision=25469
2007-01-15 20:24:40 +00:00
Aleksey Bragin
958d720408 - Merge two small fixes from 25400
- Merge 25401 and 25402

svn path=/branches/ros-branch-0_3_1/; revision=25468
2007-01-15 19:41:14 +00:00
Alex Ionescu
4e9c7cf7e4 [22 bugfixes]:
- ObpReferenceProcessObjectByHandle is always called with HandleInformation, remove this check.
- ObpReferenceProcessObjectByHandle already gets a process parameter, don't query the current one.
- ObpReferenceProcessObjectByHandle already gets a handle table, don't query the current one.
- ObpDecrementHandleCount shouldn't remove the object from the creator info.
- ObpDecrementHandleCount should clear the exclusive process if this is the last handle.
- Killing a protected handle should raise an exception if a debug port is connected, not an exception port.
- ObpIncrementHandleCount should support OBJ_FORCE_ACCESS_CHECK.
- ObpIncrementHandleCount needs to support ObDuplicateHandle.
- ObpIncrementHandleCount needs to support being called without an AccessState.
- Fix interlocked handle count accounting.
- Allow user-mode to create kernel-mode handles.
- Fix the way Additional reference bias is de-referenced during failures.
- Complete rundown in ObKillProcess.
- Send SourceProcess in ObDuplicateHandle.
- Assume initial failure and clear handle in ObDuplicateHandle.
- Don't leak object table references when failing in ObDuplicateHandle.
- Assume failure in ObOpenObjectByName.
- Don't leak buffer during failure in ObOpenObjectByName.
- Don't leak object reference durning failure in ObOpenObjecByName.
- Validate handle attributes in ObOpenObjectByPointer.
- Use RtlCopyMemory when possible to speed up.

svn path=/trunk/; revision=25467
2007-01-15 18:37:53 +00:00
Ged Murphy
3bd87918a1 fix icon loading code to load the correct icon for the current display bpp settings
svn path=/trunk/; revision=25466
2007-01-15 18:08:37 +00:00
Art Yerkes
66ccb79bbf Updated linker script.
svn path=/branches/powerpc/; revision=25465
2007-01-15 10:20:00 +00:00
Art Yerkes
c668a23039 Corresponding checkpoint for HAL.
Some hacks are still in here.
Not much is implemented yet.
Just getting the basics going.

svn path=/branches/powerpc/; revision=25464
2007-01-15 10:00:47 +00:00
Art Yerkes
674fbb117a Checkpoint. HalDisplayString is working and hooked up to DbgPrint.
We've now got reciprocal imports from hal working.
I've added a small hack, that being to relocate modules to 64k boundaries.  This works around ABI issues for
now.
Some warning suppression re: uninitialized values.
KdInit: make it possible to use a subset of the x86 debug targets.

svn path=/branches/powerpc/; revision=25463
2007-01-15 09:54:16 +00:00
Art Yerkes
e4aa183ac9 Remove some spam and add options to make ntoskrnl a bit smaller and easier to process.
svn path=/branches/powerpc/; revision=25462
2007-01-15 09:43:12 +00:00
Alex Ionescu
d673aa2616 - Fix handle close bug. The ExDestroyHandleEntry API was only killing entries unless the table wasn't being destoyed, which it actually is during process termination, and through failing, was actually not closing the handle at all. This means any killed process leaked all its handles and they were never closed. These handles are now closed, reducing memory load/leaks and opening the door for new bugs :)
- Fix LPC process closing bug.
- Rewrite executive timer support to make it thread-safe and use proper locking order and semantics as well as safe referencing. Also implement Windows 2003 feature of flushing DPCs when a timer is deleted, to avoid the timer from being fired after deletion.

svn path=/trunk/; revision=25461
2007-01-15 07:33:42 +00:00
Aleksey Bragin
1a17bce83b - Merge 25373
- Merge 25396 (only the part related to semgr.c file)
- Merge 25399

svn path=/branches/ros-branch-0_3_1/; revision=25460
2007-01-14 22:36:14 +00:00
Aleksey Bragin
b8f9ed5ea8 Add config.rbuild and change version to 0.3.1
svn path=/branches/ros-branch-0_3_1/; revision=25459
2007-01-14 20:49:18 +00:00
Johannes Anderwald
8eb1ea4802 - add a primitive XSL for displaying the ReactOS dependency map
svn path=/trunk/; revision=25458
2007-01-14 20:41:01 +00:00
Johannes Anderwald
6a1a30f13b - comment out using xsl style sheet until its ready
svn path=/trunk/; revision=25457
2007-01-14 19:49:27 +00:00
Johannes Anderwald
e112816fe2 - implement dependency map checking
svn path=/trunk/; revision=25455
2007-01-14 19:28:07 +00:00
Johannes Anderwald
21f599291b - the parameter flags is of type unsigned. Therefore you dont need an additional check if Flags < 0
svn path=/trunk/; revision=25454
2007-01-14 18:07:56 +00:00
Magnus Olsen
363cf7f261 the public frist version that can convert arty testms.exe that are commited to powerpc branch in the alink folder.
the program doing main() ( return 0 )
fixing minior bugs as well

svn path=/trunk/; revision=25453
2007-01-14 18:01:56 +00:00
Magnus Olsen
bb89b8709c delete ImageLoaer.c until I time rewrite it
svn path=/trunk/; revision=25451
2007-01-14 17:16:38 +00:00
Sylvain Petreolle
93c3b784de fix warnings
svn path=/trunk/; revision=25450
2007-01-14 15:21:35 +00:00
Magnus Olsen
f74e30f8ca Adding stub for AnyalsingProcess and ConvertToIntelProcess
svn path=/trunk/; revision=25449
2007-01-14 13:54:19 +00:00
Magnus Olsen
7c96cb069a adding blr opcode (can not found it in the ibm or motorala doc, the primary opcode refens to addi).
now we can disambler two opcode the li and blr, add blr to my own asm langues. 

svn path=/trunk/; revision=25448
2007-01-14 12:10:53 +00:00
Magnus Olsen
0764ca19ac Fixing a bug in ppc opcode Li
Fixing the memory leak bug
Full implement of the Li 
Convert Li to my own asm langues, opcode move reg,imm
Left todo is add the anyalying process and converting process, after that we can translate our frist public pe file for ppc to intel
with one opcode, it must be Li 



svn path=/trunk/; revision=25447
2007-01-14 10:57:18 +00:00
Art Yerkes
ea981c38bb Some additions for relocatable ppc dlls.
svn path=/branches/powerpc/; revision=25446
2007-01-14 03:02:43 +00:00
Magnus Olsen
c96114a82c start on adding the own langues, this version create a memory leak if u try run this tool in translate mode. but not in
disambler mode. (only true for ppc brain about memory leak)

svn path=/trunk/; revision=25445
2007-01-13 23:26:32 +00:00
Magnus Olsen
95c8fa90a8 1. fixing a layout bug
2. frist disambler output for public, the public version can now disambler ppc li rA,imm that all at moment

svn path=/trunk/; revision=25444
2007-01-13 22:09:11 +00:00
Eric Kohl
088891d47e Add hit-testing for caption buttons.
svn path=/trunk/; revision=25443
2007-01-13 19:15:12 +00:00
Johannes Anderwald
1b7e5efafd - add italian translation by Paolo Devoti, devotip@tiscali.it
- fixes some issues with the patch (missing \ or \n or ")
See issue #1983 for more details.

svn path=/trunk/; revision=25442
2007-01-13 18:39:38 +00:00
Johannes Anderwald
bbf29dfdf8 - add italian translation by Paolo Devoti, devotip@tiscali.it
- fixes bug 1974, 1975, 1976

svn path=/trunk/; revision=25441
2007-01-13 18:20:53 +00:00
Magnus Olsen
350c6a32c2 adding GetData32Be, GetData32Le for getting 4bytes from big or lite endian
start implment Ld for ppc.

svn path=/trunk/; revision=25440
2007-01-13 17:27:14 +00:00
Magnus Olsen
ad3d7fea36 adding print out the type of asm file in the asm file
svn path=/trunk/; revision=25439
2007-01-13 14:34:50 +00:00
Magnus Olsen
9b4a7b1fc5 adding option for disambler mode, disambler mode does not translate a binary file. it doing a disambler of the file
svn path=/trunk/; revision=25438
2007-01-13 12:23:25 +00:00
Johannes Anderwald
b339ec7ea9 - make sysreg compilable under Linux
- sysreg is now able to start the emulator but it cannot get any debug data yet. But this might be due that i tested sysreg in linux under vmware which then ran qemu....

svn path=/trunk/; revision=25437
2007-01-13 12:19:56 +00:00
Magnus Olsen
4ffa785260 1. last move is done arm to From folder
2. remove some include in CpuToIntel.c file they are not longer need it. 


svn path=/trunk/; revision=25436
2007-01-13 10:39:12 +00:00
Magnus Olsen
40bbafca90 Create a folder call From and start move in all cpu we will in futer translate from
svn path=/trunk/; revision=25435
2007-01-13 10:27:17 +00:00
Magnus Olsen
40628588f8 1. finish the peloader, left todo add decoder for each sectionheader, add the base address when u call a brain, and some other minior fix
2. fix some comment that was wrong. 
 

svn path=/trunk/; revision=25434
2007-01-13 09:56:05 +00:00
Magnus Olsen
2aab0c74eb backport the start of a pe loader,
backport allot of bug fix. like open file, reading file.
My working copy have allot of hacks and is a big mess. This stuff is cleanup from it.  

svn path=/trunk/; revision=25433
2007-01-12 21:11:44 +00:00
Dmitry Gorbachev
a8dce67086 Thai language support: keyboard layout
svn path=/trunk/; revision=25431
2007-01-11 22:44:26 +00:00
Christoph von Wittich
c4d9ae3316 added target depmap to makefile
svn path=/trunk/; revision=25430
2007-01-11 20:33:04 +00:00
Christoph von Wittich
44592e4e76 added a dependencymap backend (it doesn't do anything yet)
svn path=/trunk/; revision=25429
2007-01-11 20:32:20 +00:00
Peter Ward
c093c9b6b5 - Fix a couple of typos, patch by GreyGhost.
svn path=/trunk/; revision=25426
2007-01-11 15:22:04 +00:00
Peter Ward
98a086245c - Applied patch for "Invalid Sync after loading BLUE.SYS (bootCD-dbg)".
- See issue http://www.reactos.org/bugzilla/show_bug.cgi?id=1953
- Patch by Dmitry G. Gorbachev (hto at mail cnt dot ru).

svn path=/trunk/; revision=25425
2007-01-11 14:47:50 +00:00
Art Yerkes
58bde26065 Zero other BSS type sections where applicable.
svn path=/branches/powerpc/; revision=25424
2007-01-11 09:00:30 +00:00
Timo Kreuzer
dc8aa9ffd7 - Make IntSystemParametersInfo send a WM_SETTINGCHANGE message when needed.
- Some code cleanup

svn path=/trunk/; revision=25423
2007-01-10 23:55:53 +00:00
Timo Kreuzer
b2c4c0e76e Don't remove keyboard focus from any other window than the one that was disabled.
svn path=/trunk/; revision=25422
2007-01-10 23:48:02 +00:00
Thomas Bluemel
11f6279e11 Fix warnings
svn path=/trunk/; revision=25421
2007-01-10 22:52:07 +00:00
Hervé Poussineau
f1f9bb147e Don't rely on stdio.h to define EOF, as native stdio.h can conflict with ROS headers
svn path=/trunk/; revision=25419
2007-01-10 20:02:41 +00:00
Hervé Poussineau
d9466bc852 Move up wpp include, as it is needed by widl
svn path=/trunk/; revision=25418
2007-01-10 19:57:52 +00:00
Hervé Poussineau
e6f6ed291d Disable some boot options on non-x86 platforms.
You can enable them again for specific platforms if needed.

svn path=/trunk/; revision=25417
2007-01-10 19:48:35 +00:00
Hervé Poussineau
263d5e238b Allow use of ROS_PREFIX on MS Windows platforms (needed for cross-compiling)
svn path=/trunk/; revision=25416
2007-01-10 19:39:52 +00:00
Hervé Poussineau
35f20cc413 Move x86 specific part to i386/ directory.
Fix a few warnings

svn path=/trunk/; revision=25415
2007-01-10 19:39:01 +00:00
Timo Kreuzer
de1bca6b2c sorry, forgot to remove that line
svn path=/trunk/; revision=25414
2007-01-10 18:31:33 +00:00
Alex Ionescu
b432f6d20f - Fix build.
svn path=/trunk/; revision=25413
2007-01-10 06:09:57 +00:00
Timo Kreuzer
b824f04492 remove focus from window, when it gets diabled
- fixes bug 843
See issue #843 for more details.

svn path=/trunk/; revision=25412
2007-01-10 04:51:27 +00:00
Alex Ionescu
6af685313a - Commit NTLPC and remove old implementation.
- Yeah, this adds another regression on top of the new Ob stuff, but in the end it's for the better, as it removes more race conditions and buggy code.
- This whole week I've fixed about 45 bugs and removed a dozen race conditions, sorry for the 2-3 regressions, they will be fixed ASAP. 
- DELETE MAKEFILE.AUTO BEFORE BUILDING THIS BUILD.

svn path=/trunk/; revision=25411
2007-01-10 04:27:40 +00:00
Timo Kreuzer
d8160f0676 Make NtUserSetFocus accept NULL window.
svn path=/trunk/; revision=25410
2007-01-10 04:23:33 +00:00
James Tabor
78749a977a Should be 7 zeros not 6.
svn path=/trunk/; revision=25409
2007-01-10 03:42:10 +00:00
Alex Ionescu
70d1578a28 - Implement ObReferenceProcessHandleTable and ObDereferenceProcessHandleTable and use them where appropriate to avoid race issues if the process is being killed meanwhile.
- Implement ObpReferenceProcessObjectByHandle and simplfy ObDuplicateObject.
- Disable hard errors while closing handles, and protect against races. Also print our error message since it seems handles aren't being closed now (message displays leak count).
- Honour DUPLICATE_CLOSE_SOURCE during failure paths in ObDuplicateObject, and catch race conditions.
- Add some more sanity checks and speed up some internal referencing.

svn path=/trunk/; revision=25408
2007-01-10 03:35:59 +00:00
Alex Ionescu
6e3ccb6ffd - Fix a bug in ExfWakePushLock.
- Implement object directory locking to avoid race conditions in Ob and enable most of the query referencing code.

svn path=/trunk/; revision=25407
2007-01-10 01:00:46 +00:00
Eric Kohl
8fb22da8e5 - Add currency page controls.
- Display currency format information.

svn path=/trunk/; revision=25406
2007-01-09 23:00:21 +00:00
James Tabor
208da846ac Implement new keyboard driver and layout structures to help Saveliy Tretiakovs LoadKeyboardLayout implementation.
svn path=/trunk/; revision=25405
2007-01-09 22:55:40 +00:00
Johannes Anderwald
cf06d4975f Updated French translation by Pierre Schweitzer 2007 (heis_spiter AT hotmail DOT com)
See issue #1969 for more details.

svn path=/trunk/; revision=25404
2007-01-09 22:02:17 +00:00
Alex Ionescu
f9c3ffa9d1 - Heavy cleanup of locking and lookup macros in ob_x.h.
- Add calls to ObpInitializeDirectoryLookup where required.
- Fixup calls to ObpAcquireDirectoryLockExclusive, but still keep them stubbed out for now.

svn path=/trunk/; revision=25403
2007-01-09 21:48:26 +00:00
Johannes Anderwald
9b6f258861 - czech translation by Kamil Hornicek, hornik1@fel.cvut.cz
See issue #1959 for more details.

svn path=/trunk/; revision=25402
2007-01-09 21:21:52 +00:00
Johannes Anderwald
87b814835f - i prefer tabs
svn path=/trunk/; revision=25401
2007-01-09 20:41:14 +00:00
Alex Ionescu
43075eb308 - Fix Port and Section Object Type creation by specifying a valid ValidAccessMask when creating the types.
- NTLPC "Branch": Ports need to maintain a Type List.
- Use proper access mode in parse callbacks.
- Properly validate the access mask given to ObpCreate(Unnamed)Handle and only grant valid bits according to ValidAccessMask.
- Use InterlockedExchangeAdd for reference count bias instead of looping on a single increment.
- Only return the object if the caller did any bias to it.
- Detach from the process much later, since exclusive process support and handle table database needs to be in the same context as the owner.
- Add audit calls to ObpCreateHandle.
- Add stubbed out calls to ObpCleanupDirectoryLookup in ObpCreateHandle.

svn path=/trunk/; revision=25400
2007-01-09 17:18:22 +00:00
Christoph von Wittich
d12b251a36 don't include the Iso targets in the workspace
svn path=/trunk/; revision=25399
2007-01-09 12:28:30 +00:00
Magnus Olsen
022849644c minor changes, for be use later, adding some new data types
svn path=/trunk/; revision=25398
2007-01-09 10:53:19 +00:00
Alex Ionescu
3a79b7cfd8 - Hold reference to the current directory and to the current parent directory during lookups.
- Add more stubbed out cleanup code.

svn path=/trunk/; revision=25397
2007-01-09 09:37:36 +00:00
Alex Ionescu
5676292f72 - Complete the hack that's already in SeAccessCheck to also return STATUS_SUCCESS if we return TRUE always. Otherwise, code might weirdly fail.
- Save parent directory during lookups and check if the caller has the right to traverse it, if we ever need to.
- Optimize the configuration of the lookup context so that it's only done when necessary, add stub calls to lock the directory.

svn path=/trunk/; revision=25396
2007-01-09 09:30:43 +00:00
Alex Ionescu
96b09e8f09 - Add missing code to ObpLookupDirectoryEntry.
- Add calls to ObpInitailizeDirectoryLookup.
- Add calls to ObpCleanupDirectoryLookup but disable them for now.
- Add calls to ObpAcquireDirectoryLock but disable them for now.

svn path=/trunk/; revision=25395
2007-01-09 09:07:36 +00:00
Alex Ionescu
fe1190c599 - Enable sanity check in ObInsertObject to catch assholes that were calling it incorrectly (without a Handle output parameter, which is only allowed in a specific scenario). Changes:
- Registry code which was calling ObInsertObject for no reason at all. Now an ugly hack has been added to Cm code to perform the only operation the insert did -> to free the create info.
   - SeSubProcessToken was broken and calling it incorrectly, fixed.
   - \Device\PhysicalMemory was being inserted incorrectly, fixed.
   - Boot-time driver objects were being inserted for no reason, call removed.
- Support the only case of ObInsertObject where it is OK to call it without an output handle. This codepath will only charge quota instead of creating the full-blown handle.

svn path=/trunk/; revision=25394
2007-01-09 08:38:07 +00:00
Alex Ionescu
612a4059a4 - Merge some local changes from my version of ObpLookupObjectName:
- Fixup the way we allocate object names: use paged pool instead of non-paged pool, detect insufficient memory case, detect failure to insert entry into the object directory, use name length, not maximum length when copying, use RtlCopy, not RtlMove.
   - Support forcing of case-insensitivity and OBJ_FORCE_ACCESS_CHECK.
   - Call ObCheckCreateObjectAccess and fail if access isn't granted.
   - Call ObpCheckTraverseAccess if traversing a directory fomr user-mode and fail lookup if access wasn't granted.
   - Fixup return of proper error code if we reparsed.
   - Add FIXME note for SeCreateGlobalPrivilege check which is missing.
   - Add callout IRQL checks around parse callouts.
   - Rename some variables for clearer meaning.
   - Add an extra reference when calling the parse routine in the reparse case.

svn path=/trunk/; revision=25393
2007-01-09 07:54:19 +00:00
Alex Ionescu
6829abde13 - Add internal macros for acquiring the object directory pushlock during lookup (not yet used).
- Add internal macros for incrementing/decrementing query references, and use them where appropriate. Do not yet support the path for an object which is currently being defer deleted.
- Add internal macros for cleaning up a directory lookup (not yet used and needs renaming/cleanup), initializing a directory lookup (not yet used).
- Don't call security callback in ObpDeleteNameCheck. Make sure permanent flag is still cleared after acquiring type lock. Add special call for symboilc links. Add commented out calls to lock the object directory.

svn path=/trunk/; revision=25392
2007-01-09 07:28:40 +00:00
Timo Kreuzer
0202185efa implement SPI_SETNONCLIENTMETRICS in SystemParametersInfoA
svn path=/trunk/; revision=25391
2007-01-09 01:19:52 +00:00
Christoph von Wittich
5b83954756 -don't create project files for the ISO targets
-use the new extended_obj_names to prevent C::B from linking the wrong libs
-change project file version to 1.6
-compile spec, S, asm and idl files
-delete the temp rc files after building

svn path=/trunk/; revision=25390
2007-01-09 00:17:23 +00:00
Alex Ionescu
9de4aee541 - Make ObpReleaseCapturedName an actual function and rename it to ObpFreeObjectNameBuffer. Fix a bug in this function which was causing it to attempt freeing the UNICODE_STRING structure instead of the actual buffer.
- Implement ObpAllocateObjectNameBuffer instead of inlined code in ObpCaptureObjectAttributes. Enable usage of the Name Buffer Lookaside List since the bug in ObpFreeObjectNameBuffer has now been fixed. This should result in significant speedup and less fragmentation of pool memory.
- Allocate object names in the paged pool instead of non-paged pool, if we can't use the lookaside list.

svn path=/trunk/; revision=25389
2007-01-08 21:02:22 +00:00
Eric Kohl
00207351ec - Add hit-testing to the preview control (almost complete).
- Add selected item combobox.
- Select item in the combobox upon clicking on an item in the preview window.

svn path=/trunk/; revision=25388
2007-01-08 20:55:47 +00:00
Alex Ionescu
27fda62288 - "No files where added or changed, there is nothing to see here" <= Yeah, thanks a lot Tortoise.
svn path=/trunk/; revision=25387
2007-01-08 20:52:45 +00:00
Timo Kreuzer
adf72c70d0 Clean up tabs / spaces mix (no code change)
svn path=/trunk/; revision=25386
2007-01-08 20:01:04 +00:00
Alex Ionescu
8c9205dfd5 - Implement ObpCreateSymbolicLinkName and enable call to the function. It shouldn't do any work currently because we don't have DOS Device Maps.
- Also stub ObpDeleteSymbolicLinkName since it'll probably be needed later.

svn path=/trunk/; revision=25385
2007-01-08 19:52:49 +00:00
Alex Ionescu
76de33fe36 - Implement ObFindHandleForObject and add it to the NDK. However, it depends on ExEnumHandleTable which is still unimplemented.
- Fix up prototype of the function (it returns TRUE/FALSE, not NTSTATUS) and fix callers to use it properly.
- Also add ExEnumHandleTable to NDK.

svn path=/trunk/; revision=25384
2007-01-08 19:40:10 +00:00
Alex Ionescu
30bc8d330f - Fix some NDK dependency problems.
svn path=/trunk/; revision=25383
2007-01-08 18:11:24 +00:00
Alex Ionescu
a9b16dfb0e - Fix kmtest's inclusion of the NDK.
- Implement support for the Handle Count Database.
- Don't do anything in IopCloseFile if this isn't the last handle for the process.
- Fix definition of OBJECT_HANDLE_COUNT_DATABASE.

svn path=/trunk/; revision=25382
2007-01-08 17:56:56 +00:00
Alex Ionescu
a9e4074bd0 - Fix build. Sorry, forgot that the last commit also included changes to FsrtlAreNamesEqual to raise an exception if upcasing the strings failed.
svn path=/trunk/; revision=25381
2007-01-08 17:49:44 +00:00
Alex Ionescu
a22a4040cc - Add authors' names.
svn path=/trunk/; revision=25380
2007-01-08 17:22:15 +00:00
Alex Ionescu
cbd8c78730 - Delete /fs directory.
- Add /fsrtl directory with new file structure and remove all the code except for some smaller "known-working" functions.
- Reason for this is that FsRtl now has a new owner (Dominique Coté) and he will be implementing and testing proper versions of the routines.

svn path=/trunk/; revision=25379
2007-01-08 16:51:06 +00:00
Art Yerkes
483d900bfb Update address of hal before performing imports, add page.c
svn path=/branches/powerpc/; revision=25377
2007-01-08 10:12:22 +00:00
Art Yerkes
e9873af4fc HAL display implementation based on openfirmware framebuffer.
svn path=/branches/powerpc/; revision=25376
2007-01-08 09:30:17 +00:00
Art Yerkes
fbaf823a61 Start of an implementation of page.c
svn path=/branches/powerpc/; revision=25375
2007-01-08 09:28:39 +00:00
Art Yerkes
c6f96d6493 Add needed reloc types.
svn path=/branches/powerpc/; revision=25374
2007-01-08 09:27:30 +00:00
Peter Ward
7ce1744f9a - Fix some annoying warnings in wrc.
- Fixed a warning in winebuild.

svn path=/trunk/; revision=25373
2007-01-08 08:48:28 +00:00
Alex Ionescu
74332efe63 - Fix ObReferenceObjectByName to do proper name validation checks.
- Fix ObReferenceObjectByName to call ObpCheckObjectReference before allowing the caller to obtain the reference.
- Rename ObFindObject to ObpLookupObjectName and shuffle parameters around and add some placeholder code that resets the object pointer of the lookup context.
- Modify ObpChargeQuotaForObject to also return if this is a new object.
- Modify ObpDecrementHandleCount to detect when objects with a handle database are being used. Also protect close callout with checks. Protect ObpCloseHAndleTableEntry's callouts with checks as well.
- Update logic of ObpIncrementHandleCount and ObpIncrementUnnamedHandleCount to handle currently exclusive objects as well as new handles with OBJ_EXCLUSIVE. Also detect objects that require handle databases and protect callouts.
- Support CreatorInfo and the TypeList in ObpIncrementHandleCount. Also update the TotalNumberOfHandles in the object type properly.
- Fixup object type lock usage in these routines.
- Do proper invalid attributes check in ObOpenObjectByName, and also use a buffer from the pool instead of the stack.
- Make ObInsertObject detect invalid object insertions and change some parameter names and checks.
- Add stub code to validate the access mask in ObInsertObject. Proper initailize some lookup variables before starting lookup.
- Add detection for symbolic link inserts which require some handling code later on.
- Free the create information at the right moment isntead of too late.
- Add some missing Ob functions, flags and types to the NDK. Fix OBJECT_DIRECTORY structure to use EX_PUSH_LOCK for locks, not ERESOURCE.

svn path=/trunk/; revision=25372
2007-01-08 08:03:47 +00:00
Alex Ionescu
956ae8b6f1 - Changes to lookup context set-up as place-holder and compatibility for future patch. Only configure the lookup context once, outside the initial loop, instead of configuring it with the same settings at each iteration.
svn path=/trunk/; revision=25371
2007-01-08 07:54:57 +00:00
Alex Ionescu
569e9458d6 - Validate lookup context in ObpInsertEntryDirectory.
- Read actual ObpLUIDDeviceMapsEnable variable do determine if shadow-searching is enabled in ObpLookupEntryDirectory.
- Currently disable all directory locking code (it was never used anyways) in ObpLookupEntryDirectory.
- Update ObpLookupEntryDirectory with placeholder code/branches for future patch implementing directory locks.

svn path=/trunk/; revision=25370
2007-01-08 07:53:50 +00:00
Alex Ionescu
d107f7d0f4 - Set an invalid pointer as the object header's type when freeing it, to detect invalid usage.
- Optimize type mutex acquisition in ObpDeleteObject. Also optimize freeing of the unicode_String containing the name. Also add callout checks/protection during the security and delete procedure callouts.
- Acquire object type mutex during modification of the OB_FLAG_PERMANENT flag in ObpSetPermanentObject.
- Initialize default QueryReferences field to 1 during object allocation.
- Support undocumented 0x10000 object attribute flag used in Windows 2003 SP1 and higher to protect objects from user-mode access (such as PhysicalMemory).
- Use InterlockedIncrements for ObjectType accounting outside the type lock.
- Clear the lookup context's object pointer for future use.

svn path=/trunk/; revision=25369
2007-01-08 07:51:07 +00:00
Alex Ionescu
5626181735 - Implement ObCheckCreateObjectAccess, ObpCheckTraverseAccess, ObpCheckObjectReference. These APIs are not used yet but are all very similar to ObCheckObjectAccess. There are used at different places by Ob to make sure that the current token and access rights permits some privileged operations such as directory traversal, object referencing and object creation.
svn path=/trunk/; revision=25368
2007-01-08 07:46:17 +00:00
Alex Ionescu
ee811ba102 - Add ObDereferenceObjectDeferDelete to NDK.
svn path=/trunk/; revision=25367
2007-01-08 07:44:22 +00:00
Alex Ionescu
50de0ce133 - Fix a bug in ExReleasePushLock which broken contention checking.
svn path=/trunk/; revision=25366
2007-01-08 07:43:49 +00:00
Alex Ionescu
a46e532da9 - Fix ntdll and usetup not to use OBJ_OPENLINK on symbolic links. This attribute is for registry keys, not symlinks.
svn path=/trunk/; revision=25365
2007-01-08 07:43:18 +00:00
Alex Ionescu
1c15cd5161 - Fix _PsProcessType for MSVC compilation.
svn path=/trunk/; revision=25364
2007-01-08 07:42:38 +00:00
Christoph von Wittich
013562e393 fixed most of the memory leaks
svn path=/trunk/; revision=25363
2007-01-08 02:40:38 +00:00
Christoph von Wittich
091af4eeea added defines for GetClassLongPtrA/W
svn path=/trunk/; revision=25362
2007-01-08 02:29:32 +00:00
Timo Kreuzer
29e164cf19 - implement SPI_GETMINIMIZEDMETRICS and SPI_SETMINIMIZEDMETRICS in IntSystemParametersInfo and UserSystemParametersInfo
- add both to SystemParametersInfoA
See issue #1668 for more details.

svn path=/trunk/; revision=25361
2007-01-08 02:18:58 +00:00
Timo Kreuzer
15b82d28e7 implement SPI_SETNONCLIENTMETRICS in IntSystemParametersInfo and UserSystemParametersInfo
svn path=/trunk/; revision=25360
2007-01-08 00:23:15 +00:00
Hervé Poussineau
dafa988988 Fix compilation
svn path=/trunk/; revision=25359
2007-01-07 23:55:50 +00:00
Timo Kreuzer
a423de55e0 Add German resource for wordpad.
svn path=/trunk/; revision=25358
2007-01-07 23:13:41 +00:00
Maarten Bosma
3080176283 - Confused left and right, please fix in the translations.
- Misspelled Environment 

svn path=/trunk/; revision=25356
2007-01-07 22:06:25 +00:00
Hervé Poussineau
c69a51c0a4 Add french tranlation by Heis Spiter
See issue #1913 for more details.

svn path=/trunk/; revision=25355
2007-01-07 22:00:01 +00:00
Hervé Poussineau
5ed56a4f48 Fix svn properties
Use SUBLANG_ENGLISH_US in LANG_ENGLISH resource file

svn path=/trunk/; revision=25354
2007-01-07 21:59:10 +00:00
Hervé Poussineau
f716669f6f Updated french translation (by Heis Spiter)
See issue #1916 for more details.

svn path=/trunk/; revision=25353
2007-01-07 21:43:24 +00:00
Timo Kreuzer
c582ada859 My first commit!
NtGdiExtTextOut:
- Unlock dc if failed
- Copy string from usermode using MmCopyFromCaller

svn path=/trunk/; revision=25352
2007-01-07 21:18:34 +00:00
Aleksey Bragin
c6aab9a0e3 Cleanup of libxml2 library - removing all stuff which is not needed for building the library.
Whole version of this version of libxml2 is stored in vendor/libxml2/current, and future updates will be done only via proper vendor imports.

svn path=/trunk/; revision=25351
2007-01-07 19:46:10 +00:00
Aleksey Bragin
8749551813 Cleanup of zlib library - removing all stuff which is not needed for building the library (~280 files/160 folders -> 40 files/no folders).
Whole version of this version of zlib is stored in vendor/zlib/current, and future updates will be done only via proper vendor imports.

svn path=/trunk/; revision=25348
2007-01-07 19:10:09 +00:00
Magnus Olsen
82c171d4c7 update from zlib 1.1.4 to 1.2.3
ChangeLog file for zlib
Changes in 1.2.3 (18 July 2005)
- Apply security vulnerability fixes to contrib/infback9 as well
- Clean up some text files (carriage returns, trailing space)
- Update testzlib, vstudio, masmx64, and masmx86 in contrib [Vollant]

Changes in 1.2.2.4 (11 July 2005)
- Add inflatePrime() function for starting inflation at bit boundary
- Avoid some Visual C warnings in deflate.c
- Avoid more silly Visual C warnings in inflate.c and inftrees.c for 64-bit
  compile
- Fix some spelling errors in comments [Betts]
- Correct inflateInit2() error return documentation in zlib.h
- Added zran.c example of compressed data random access to examples
  directory, shows use of inflatePrime()
- Fix cast for assignments to strm->state in inflate.c and infback.c
- Fix zlibCompileFlags() in zutil.c to use 1L for long shifts [Oberhumer]
- Move declarations of gf2 functions to right place in crc32.c [Oberhumer]
- Add cast in trees.c t avoid a warning [Oberhumer]
- Avoid some warnings in fitblk.c, gun.c, gzjoin.c in examples [Oberhumer]
- Update make_vms.com [Zinser]
- Initialize state->write in inflateReset() since copied in inflate_fast()
- Be more strict on incomplete code sets in inflate_table() and increase
  ENOUGH and MAXD -- this repairs a possible security vulnerability for
  invalid inflate input.  Thanks to Tavis Ormandy and Markus Oberhumer for
  discovering the vulnerability and providing test cases.
- Add ia64 support to configure for HP-UX [Smith]
- Add error return to gzread() for format or i/o error [Levin]
- Use malloc.h for OS/2 [Necasek]

Changes in 1.2.2.3 (27 May 2005)
- Replace 1U constants in inflate.c and inftrees.c for 64-bit compile
- Typecast fread() return values in gzio.c [Vollant]
- Remove trailing space in minigzip.c outmode (VC++ can't deal with it)
- Fix crc check bug in gzread() after gzungetc() [Heiner]
- Add the deflateTune() function to adjust internal compression parameters
- Add a fast gzip decompressor, gun.c, to examples (use of inflateBack)
- Remove an incorrect assertion in examples/zpipe.c
- Add C++ wrapper in infback9.h [Donais]
- Fix bug in inflateCopy() when decoding fixed codes
- Note in zlib.h how much deflateSetDictionary() actually uses
- Remove USE_DICT_HEAD in deflate.c (would mess up inflate if used)
- Add _WIN32_WCE to define WIN32 in zconf.in.h [Spencer]
- Don't include stderr.h or errno.h for _WIN32_WCE in zutil.h [Spencer]
- Add gzdirect() function to indicate transparent reads
- Update contrib/minizip [Vollant]
- Fix compilation of deflate.c when both ASMV and FASTEST [Oberhumer]
- Add casts in crc32.c to avoid warnings [Oberhumer]
- Add contrib/masmx64 [Vollant]
- Update contrib/asm586, asm686, masmx86, testzlib, vstudio [Vollant]

Changes in 1.2.2.2 (30 December 2004)
- Replace structure assignments in deflate.c and inflate.c with zmemcpy to
  avoid implicit memcpy calls (portability for no-library compilation)
- Increase sprintf() buffer size in gzdopen() to allow for large numbers
- Add INFLATE_STRICT to check distances against zlib header
- Improve WinCE errno handling and comments [Chang]
- Remove comment about no gzip header processing in FAQ
- Add Z_FIXED strategy option to deflateInit2() to force fixed trees
- Add updated make_vms.com [Coghlan], update README
- Create a new "examples" directory, move gzappend.c there, add zpipe.c,
  fitblk.c, gzlog.[ch], gzjoin.c, and zlib_how.html.
- Add FAQ entry and comments in deflate.c on uninitialized memory access
- Add Solaris 9 make options in configure [Gilbert]
- Allow strerror() usage in gzio.c for STDC
- Fix DecompressBuf in contrib/delphi/ZLib.pas [ManChesTer]
- Update contrib/masmx86/inffas32.asm and gvmat32.asm [Vollant]
- Use z_off_t for adler32_combine() and crc32_combine() lengths
- Make adler32() much faster for small len
- Use OS_CODE in deflate() default gzip header

Changes in 1.2.2.1 (31 October 2004)
- Allow inflateSetDictionary() call for raw inflate
- Fix inflate header crc check bug for file names and comments
- Add deflateSetHeader() and gz_header structure for custom gzip headers
- Add inflateGetheader() to retrieve gzip headers
- Add crc32_combine() and adler32_combine() functions
- Add alloc_func, free_func, in_func, out_func to Z_PREFIX list
- Use zstreamp consistently in zlib.h (inflate_back functions)
- Remove GUNZIP condition from definition of inflate_mode in inflate.h
  and in contrib/inflate86/inffast.S [Truta, Anderson]
- Add support for AMD64 in contrib/inflate86/inffas86.c [Anderson]
- Update projects/README.projects and projects/visualc6 [Truta]
- Update win32/DLL_FAQ.txt [Truta]
- Avoid warning under NO_GZCOMPRESS in gzio.c; fix typo [Truta]
- Deprecate Z_ASCII; use Z_TEXT instead [Truta]
- Use a new algorithm for setting strm->data_type in trees.c [Truta]
- Do not define an exit() prototype in zutil.c unless DEBUG defined
- Remove prototype of exit() from zutil.c, example.c, minigzip.c [Truta]
- Add comment in zlib.h for Z_NO_FLUSH parameter to deflate()
- Fix Darwin build version identification [Peterson]

Changes in 1.2.2 (3 October 2004)
- Update zlib.h comments on gzip in-memory processing
- Set adler to 1 in inflateReset() to support Java test suite [Walles]
- Add contrib/dotzlib [Ravn]
- Update win32/DLL_FAQ.txt [Truta]
- Update contrib/minizip [Vollant]
- Move contrib/visual-basic.txt to old/ [Truta]
- Fix assembler builds in projects/visualc6/ [Truta]

Changes in 1.2.1.2 (9 September 2004)
- Update INDEX file
- Fix trees.c to update strm->data_type (no one ever noticed!)
- Fix bug in error case in inflate.c, infback.c, and infback9.c [Brown]
- Add "volatile" to crc table flag declaration (for DYNAMIC_CRC_TABLE)
- Add limited multitasking protection to DYNAMIC_CRC_TABLE
- Add NO_vsnprintf for VMS in zutil.h [Mozilla]
- Don't declare strerror() under VMS [Mozilla]
- Add comment to DYNAMIC_CRC_TABLE to use get_crc_table() to initialize
- Update contrib/ada [Anisimkov]
- Update contrib/minizip [Vollant]
- Fix configure to not hardcode directories for Darwin [Peterson]
- Fix gzio.c to not return error on empty files [Brown]
- Fix indentation; update version in contrib/delphi/ZLib.pas and
  contrib/pascal/zlibpas.pas [Truta]
- Update mkasm.bat in contrib/masmx86 [Truta]
- Update contrib/untgz [Truta]
- Add projects/README.projects [Truta]
- Add project for MS Visual C++ 6.0 in projects/visualc6 [Cadieux, Truta]
- Update win32/DLL_FAQ.txt [Truta]
- Update list of Z_PREFIX symbols in zconf.h [Randers-Pehrson, Truta]
- Remove an unnecessary assignment to curr in inftrees.c [Truta]
- Add OS/2 to exe builds in configure [Poltorak]
- Remove err dummy parameter in zlib.h [Kientzle]

Changes in 1.2.1.1 (9 January 2004)
- Update email address in README
- Several FAQ updates
- Fix a big fat bug in inftrees.c that prevented decoding valid
  dynamic blocks with only literals and no distance codes --
  Thanks to "Hot Emu" for the bug report and sample file
- Add a note to puff.c on no distance codes case.

Changes in 1.2.1 (17 November 2003)
- Remove a tab in contrib/gzappend/gzappend.c
- Update some interfaces in contrib for new zlib functions
- Update zlib version number in some contrib entries
- Add Windows CE definition for ptrdiff_t in zutil.h [Mai, Truta]
- Support shared libraries on Hurd and KFreeBSD [Brown]
- Fix error in NO_DIVIDE option of adler32.c

Changes in 1.2.0.8 (4 November 2003)
- Update version in contrib/delphi/ZLib.pas and contrib/pascal/zlibpas.pas
- Add experimental NO_DIVIDE #define in adler32.c
    - Possibly faster on some processors (let me know if it is)
- Correct Z_BLOCK to not return on first inflate call if no wrap
- Fix strm->data_type on inflate() return to correctly indicate EOB
- Add deflatePrime() function for appending in the middle of a byte
- Add contrib/gzappend for an example of appending to a stream
- Update win32/DLL_FAQ.txt [Truta]
- Delete Turbo C comment in README [Truta]
- Improve some indentation in zconf.h [Truta]
- Fix infinite loop on bad input in configure script [Church]
- Fix gzeof() for concatenated gzip files [Johnson]
- Add example to contrib/visual-basic.txt [Michael B.]
- Add -p to mkdir's in Makefile.in [vda]
- Fix configure to properly detect presence or lack of printf functions
- Add AS400 support [Monnerat]
- Add a little Cygwin support [Wilson]

Changes in 1.2.0.7 (21 September 2003)
- Correct some debug formats in contrib/infback9
- Cast a type in a debug statement in trees.c
- Change search and replace delimiter in configure from % to # [Beebe]
- Update contrib/untgz to 0.2 with various fixes [Truta]
- Add build support for Amiga [Nikl]
- Remove some directories in old that have been updated to 1.2
- Add dylib building for Mac OS X in configure and Makefile.in
- Remove old distribution stuff from Makefile
- Update README to point to DLL_FAQ.txt, and add comment on Mac OS X
- Update links in README

Changes in 1.2.0.6 (13 September 2003)
- Minor FAQ updates
- Update contrib/minizip to 1.00 [Vollant]
- Remove test of gz functions in example.c when GZ_COMPRESS defined [Truta]
- Update POSTINC comment for 68060 [Nikl]
- Add contrib/infback9 with deflate64 decoding (unsupported)
- For MVS define NO_vsnprintf and undefine FAR [van Burik]
- Add pragma for fdopen on MVS [van Burik]

Changes in 1.2.0.5 (8 September 2003)
- Add OF to inflateBackEnd() declaration in zlib.h
- Remember start when using gzdopen in the middle of a file
- Use internal off_t counters in gz* functions to properly handle seeks
- Perform more rigorous check for distance-too-far in inffast.c
- Add Z_BLOCK flush option to return from inflate at block boundary
- Set strm->data_type on return from inflate
    - Indicate bits unused, if at block boundary, and if in last block
- Replace size_t with ptrdiff_t in crc32.c, and check for correct size
- Add condition so old NO_DEFLATE define still works for compatibility
- FAQ update regarding the Windows DLL [Truta]
- INDEX update: add qnx entry, remove aix entry [Truta]
- Install zlib.3 into mandir [Wilson]
- Move contrib/zlib_dll_FAQ.txt to win32/DLL_FAQ.txt; update [Truta]
- Adapt the zlib interface to the new DLL convention guidelines [Truta]
- Introduce ZLIB_WINAPI macro to allow the export of functions using
  the WINAPI calling convention, for Visual Basic [Vollant, Truta]
- Update msdos and win32 scripts and makefiles [Truta]
- Export symbols by name, not by ordinal, in win32/zlib.def [Truta]
- Add contrib/ada [Anisimkov]
- Move asm files from contrib/vstudio/vc70_32 to contrib/asm386 [Truta]
- Rename contrib/asm386 to contrib/masmx86 [Truta, Vollant]
- Add contrib/masm686 [Truta]
- Fix offsets in contrib/inflate86 and contrib/masmx86/inffas32.asm
  [Truta, Vollant]
- Update contrib/delphi; rename to contrib/pascal; add example [Truta]
- Remove contrib/delphi2; add a new contrib/delphi [Truta]
- Avoid inclusion of the nonstandard <memory.h> in contrib/iostream,
  and fix some method prototypes [Truta]
- Fix the ZCR_SEED2 constant to avoid warnings in contrib/minizip
  [Truta]
- Avoid the use of backslash (\) in contrib/minizip [Vollant]
- Fix file time handling in contrib/untgz; update makefiles [Truta]
- Update contrib/vstudio/vc70_32 to comply with the new DLL guidelines
  [Vollant]
- Remove contrib/vstudio/vc15_16 [Vollant]
- Rename contrib/vstudio/vc70_32 to contrib/vstudio/vc7 [Truta]
- Update README.contrib [Truta]
- Invert the assignment order of match_head and s->prev[...] in
  INSERT_STRING [Truta]
- Compare TOO_FAR with 32767 instead of 32768, to avoid 16-bit warnings
  [Truta]
- Compare function pointers with 0, not with NULL or Z_NULL [Truta]
- Fix prototype of syncsearch in inflate.c [Truta]
- Introduce ASMINF macro to be enabled when using an ASM implementation
  of inflate_fast [Truta]
- Change NO_DEFLATE to NO_GZCOMPRESS [Truta]
- Modify test_gzio in example.c to take a single file name as a
  parameter [Truta]
- Exit the example.c program if gzopen fails [Truta]
- Add type casts around strlen in example.c [Truta]
- Remove casting to sizeof in minigzip.c; give a proper type
  to the variable compared with SUFFIX_LEN [Truta]
- Update definitions of STDC and STDC99 in zconf.h [Truta]
- Synchronize zconf.h with the new Windows DLL interface [Truta]
- Use SYS16BIT instead of __32BIT__ to distinguish between
  16- and 32-bit platforms [Truta]
- Use far memory allocators in small 16-bit memory models for
  Turbo C [Truta]
- Add info about the use of ASMV, ASMINF and ZLIB_WINAPI in
  zlibCompileFlags [Truta]
- Cygwin has vsnprintf [Wilson]
- In Windows16, OS_CODE is 0, as in MSDOS [Truta]
- In Cygwin, OS_CODE is 3 (Unix), not 11 (Windows32) [Wilson]

Changes in 1.2.0.4 (10 August 2003)
- Minor FAQ updates
- Be more strict when checking inflateInit2's windowBits parameter
- Change NO_GUNZIP compile option to NO_GZIP to cover deflate as well
- Add gzip wrapper option to deflateInit2 using windowBits
- Add updated QNX rule in configure and qnx directory [Bonnefoy]
- Make inflate distance-too-far checks more rigorous
- Clean up FAR usage in inflate
- Add casting to sizeof() in gzio.c and minigzip.c

Changes in 1.2.0.3 (19 July 2003)
- Fix silly error in gzungetc() implementation [Vollant]
- Update contrib/minizip and contrib/vstudio [Vollant]
- Fix printf format in example.c
- Correct cdecl support in zconf.in.h [Anisimkov]
- Minor FAQ updates

Changes in 1.2.0.2 (13 July 2003)
- Add ZLIB_VERNUM in zlib.h for numerical preprocessor comparisons
- Attempt to avoid warnings in crc32.c for pointer-int conversion
- Add AIX to configure, remove aix directory [Bakker]
- Add some casts to minigzip.c
- Improve checking after insecure sprintf() or vsprintf() calls
- Remove #elif's from crc32.c
- Change leave label to inf_leave in inflate.c and infback.c to avoid
  library conflicts
- Remove inflate gzip decoding by default--only enable gzip decoding by
  special request for stricter backward compatibility
- Add zlibCompileFlags() function to return compilation information
- More typecasting in deflate.c to avoid warnings
- Remove leading underscore from _Capital #defines [Truta]
- Fix configure to link shared library when testing
- Add some Windows CE target adjustments [Mai]
- Remove #define ZLIB_DLL in zconf.h [Vollant]
- Add zlib.3 [Rodgers]
- Update RFC URL in deflate.c and algorithm.txt [Mai]
- Add zlib_dll_FAQ.txt to contrib [Truta]
- Add UL to some constants [Truta]
- Update minizip and vstudio [Vollant]
- Remove vestigial NEED_DUMMY_RETURN from zconf.in.h
- Expand use of NO_DUMMY_DECL to avoid all dummy structures
- Added iostream3 to contrib [Schwardt]
- Replace rewind() with fseek() for WinCE [Truta]
- Improve setting of zlib format compression level flags
    - Report 0 for huffman and rle strategies and for level == 0 or 1
    - Report 2 only for level == 6
- Only deal with 64K limit when necessary at compile time [Truta]
- Allow TOO_FAR check to be turned off at compile time [Truta]
- Add gzclearerr() function [Souza]
- Add gzungetc() function

Changes in 1.2.0.1 (17 March 2003)
- Add Z_RLE strategy for run-length encoding [Truta]
    - When Z_RLE requested, restrict matches to distance one
    - Update zlib.h, minigzip.c, gzopen(), gzdopen() for Z_RLE
- Correct FASTEST compilation to allow level == 0
- Clean up what gets compiled for FASTEST
- Incorporate changes to zconf.in.h [Vollant]
    - Refine detection of Turbo C need for dummy returns
    - Refine ZLIB_DLL compilation
    - Include additional header file on VMS for off_t typedef
- Try to use _vsnprintf where it supplants vsprintf [Vollant]
- Add some casts in inffast.c
- Enchance comments in zlib.h on what happens if gzprintf() tries to
  write more than 4095 bytes before compression
- Remove unused state from inflateBackEnd()
- Remove exit(0) from minigzip.c, example.c
- Get rid of all those darn tabs
- Add "check" target to Makefile.in that does the same thing as "test"
- Add "mostlyclean" and "maintainer-clean" targets to Makefile.in
- Update contrib/inflate86 [Anderson]
- Update contrib/testzlib, contrib/vstudio, contrib/minizip [Vollant]
- Add msdos and win32 directories with makefiles [Truta]
- More additions and improvements to the FAQ

Changes in 1.2.0 (9 March 2003)
- New and improved inflate code
    - About 20% faster
    - Does not allocate 32K window unless and until needed
    - Automatically detects and decompresses gzip streams
    - Raw inflate no longer needs an extra dummy byte at end
    - Added inflateBack functions using a callback interface--even faster
      than inflate, useful for file utilities (gzip, zip)
    - Added inflateCopy() function to record state for random access on
      externally generated deflate streams (e.g. in gzip files)
    - More readable code (I hope)
- New and improved crc32()
    - About 50% faster, thanks to suggestions from Rodney Brown
- Add deflateBound() and compressBound() functions
- Fix memory leak in deflateInit2()
- Permit setting dictionary for raw deflate (for parallel deflate)
- Fix const declaration for gzwrite()
- Check for some malloc() failures in gzio.c
- Fix bug in gzopen() on single-byte file 0x1f
- Fix bug in gzread() on concatenated file with 0x1f at end of buffer
  and next buffer doesn't start with 0x8b
- Fix uncompress() to return Z_DATA_ERROR on truncated input
- Free memory at end of example.c
- Remove MAX #define in trees.c (conflicted with some libraries)
- Fix static const's in deflate.c, gzio.c, and zutil.[ch]
- Declare malloc() and free() in gzio.c if STDC not defined
- Use malloc() instead of calloc() in zutil.c if int big enough
- Define STDC for AIX
- Add aix/ with approach for compiling shared library on AIX
- Add HP-UX support for shared libraries in configure
- Add OpenUNIX support for shared libraries in configure
- Use $cc instead of gcc to build shared library
- Make prefix directory if needed when installing
- Correct Macintosh avoidance of typedef Byte in zconf.h
- Correct Turbo C memory allocation when under Linux
- Use libz.a instead of -lz in Makefile (assure use of compiled library)
- Update configure to check for snprintf or vsnprintf functions and their
  return value, warn during make if using an insecure function
- Fix configure problem with compile-time knowledge of HAVE_UNISTD_H that
  is lost when library is used--resolution is to build new zconf.h
- Documentation improvements (in zlib.h):
    - Document raw deflate and inflate
    - Update RFCs URL
    - Point out that zlib and gzip formats are different
    - Note that Z_BUF_ERROR is not fatal
    - Document string limit for gzprintf() and possible buffer overflow
    - Note requirement on avail_out when flushing
    - Note permitted values of flush parameter of inflate()
- Add some FAQs (and even answers) to the FAQ
- Add contrib/inflate86/ for x86 faster inflate
- Add contrib/blast/ for PKWare Data Compression Library decompression
- Add contrib/puff/ simple inflate for deflate format description

svn path=/trunk/; revision=25342
2007-01-07 15:56:49 +00:00
Magnus Olsen
3280f62148 prepare for sync of zlib
add malloc to usetup. it only will be use by zlib 1.2.3 when the sync is finish

svn path=/trunk/; revision=25339
2007-01-07 15:11:57 +00:00
Johannes Anderwald
e91d8b9c37 fix paths
svn path=/trunk/; revision=25338
2007-01-07 12:37:27 +00:00
Alex Ionescu
a50637c13a - Smallish changes to HalpReboot to make flags clearer and fixup one of them.
svn path=/trunk/; revision=25337
2007-01-07 06:49:00 +00:00
Alex Ionescu
8fe3cfc983 - Fix multiple bugs in HalpCalculateChsValues.
- Fix lots of typecast warnings.
- Fix potentially uninitialized variables.
- This should fix the partitioning problems/regression. Thanks to hto for finding out the source of the bug.

svn path=/trunk/; revision=25336
2007-01-07 00:50:41 +00:00
Art Yerkes
9e8cec3b58 Hal stubs. Build halppc.
svn path=/branches/powerpc/; revision=25335
2007-01-06 22:31:50 +00:00
Saveliy Tretiakov
99e8c9a7c7 Add DisableVmwInst option to unattend setup to disable vmware driver setup wizard
svn path=/trunk/; revision=25334
2007-01-06 21:18:36 +00:00
Art Yerkes
40d233d877 Make this allow POWERPC as well.
svn path=/branches/powerpc/; revision=25333
2007-01-06 20:01:20 +00:00
Aleksey Bragin
a227f30dac Dmitry G. Gorbachev (hto at mail cnt dot ru):
NtOpenKey() calls ObpCaptureObjectAttributes() which can return null
ObjectName.

Then null pointer used in
 if (ObjectName.Buffer[(ObjectName.Length / sizeof(WCHAR)) - 1] == '\\')
which leads to a crash.

svn path=/trunk/; revision=25332
2007-01-06 19:14:41 +00:00
Eric Kohl
01ff2d0170 - Don't use hardcoded colors.
- Calculate the menu bar rectangle.
- Add preview menu and remove the menu item strings.
- Draw the menu bar using DrawMenuBarTemp.

svn path=/trunk/; revision=25331
2007-01-06 16:53:07 +00:00
Christoph von Wittich
66ae45808d copyrights of all files are changed to 1998-2007 (patch by Colin Finck)
See issue #1942 for more details.

svn path=/trunk/; revision=25330
2007-01-06 13:12:53 +00:00
Eric Kohl
f3b40cead4 Add DrawMenuBarTemp prototype.
svn path=/trunk/; revision=25329
2007-01-06 12:23:48 +00:00
Maarten Bosma
34386521e2 Two more formating and debug output changes from cc branch.
svn path=/trunk/; revision=25326
2007-01-06 02:50:53 +00:00
Art Yerkes
0c8a94de76 Allow PowerPC too.
svn path=/branches/powerpc/; revision=25325
2007-01-06 02:44:40 +00:00
Maarten Bosma
0456489590 Some formating and debug output changes based on cc branch.
svn path=/trunk/; revision=25324
2007-01-06 02:34:58 +00:00
Maarten Bosma
a384da8a87 DbgPrint => DPRINT1
svn path=/trunk/; revision=25323
2007-01-06 00:24:51 +00:00
Ged Murphy
75a5ab0577 forgot to clean up my mess
svn path=/trunk/; revision=25321
2007-01-05 22:59:33 +00:00
Ged Murphy
057b027ea2 fix a menu resource leak
svn path=/trunk/; revision=25320
2007-01-05 22:55:49 +00:00
Christoph von Wittich
f0ae8b4726 fix a warning
svn path=/trunk/; revision=25319
2007-01-05 21:02:15 +00:00
Eric Kohl
ddd07cb10c - Draw the Scrollbar.
- Draw the Titlebar using DrawCaptionTemp.
- Clean up the code structure.

svn path=/trunk/; revision=25318
2007-01-05 20:58:24 +00:00
Christoph von Wittich
d5de43d13e * fixed some warnings
svn path=/trunk/; revision=25316
2007-01-05 20:22:44 +00:00
Christoph von Wittich
d2e64780de * fixed a bug in AddPartitionToList (value must be of type FORMATSTATE instead of MEDIA_TYPE
* fixed some warnings

svn path=/trunk/; revision=25315
2007-01-05 20:19:21 +00:00
Christoph von Wittich
aafd5a63ad * handle REG_EXPAND_SZ in GetAutostartEntriesFromRegistry
* changed license to LGPL

svn path=/trunk/; revision=25314
2007-01-05 20:15:07 +00:00
Aleksey Bragin
a8637ee73e Don't call ReadCacheSegmentChain() twice (thanks Maarten).
svn path=/trunk/; revision=25313
2007-01-05 19:41:19 +00:00
Ged Murphy
09ce11f2a5 fix build
svn path=/trunk/; revision=25312
2007-01-05 18:41:48 +00:00
Eric Kohl
ca20e276b2 Add DrawCaptionTempA/W prototypes.
svn path=/trunk/; revision=25311
2007-01-05 18:28:32 +00:00
Ged Murphy
7de51b4bdd comment out monitor blits until I (or someone else) gets around to writing a custom control to take changes of dialog units into account.
svn path=/trunk/; revision=25310
2007-01-05 18:16:32 +00:00
Ged Murphy
66e877331a - Add a bit of a hack to paint over the NULL text values in the caption bar. At least they look pretty now until a better fix is found
- load resource strings onto heap to avoid overfows from translations

svn path=/trunk/; revision=25309
2007-01-05 17:51:05 +00:00
Saveliy Tretiakov
3f8e525b58 Fix bsod when executing IntLoadKeyboardLayout. (NtOpenKey() tryes to modify readonly memory and it causes crash)
svn path=/trunk/; revision=25308
2007-01-05 17:12:10 +00:00
Johannes Anderwald
d77a0d5e2e - add italian translations from bugzilla
- fixes bugs from 1921-1935

svn path=/trunk/; revision=25306
2007-01-05 11:38:25 +00:00
Johannes Anderwald
eaaccf0016 - ignore default libraries when msvcrt.lib is used.
Using msvcrt.lib causes duplicate symbols linking errors for projects

svn path=/trunk/; revision=25305
2007-01-05 08:21:54 +00:00
Art Yerkes
49cba5d4e3 Pre-transformed, modified headers suitable for use with -isystem when building
reactos-ppc code.

svn path=/branches/powerpc/; revision=25304
2007-01-05 06:02:56 +00:00
Art Yerkes
81a8d71a9d Compiler driver wrapper for building pe-powerpcle executables. Expects access
to a powerpc gcc and ld, as well as alink.  The scripts in here are transformed
by sed ala GNU configure.

fork_win32 and fork_unix provide a uniform way of calling an external program
and reading stderr.

dlltool.cpp is a minimalist what-if about replacing binutils' dlltool.  It's
not used by might be instructive.

svn path=/branches/powerpc/; revision=25303
2007-01-05 05:56:26 +00:00
Art Yerkes
fb9f4b89c9 A test to see if things are mostly working. You can build it and then load
them on a prep box.  You'll see output on the serial port if they linked
and bound properly.  I have a patch for gxemul that can load pecoff and bind
imports, that can be used for this purpose.

svn path=/branches/powerpc/; revision=25302
2007-01-05 05:50:55 +00:00
Art Yerkes
036f2c1f6c ldscript used to link reactos ppc executables.
svn path=/branches/powerpc/; revision=25301
2007-01-05 05:45:52 +00:00
Art Yerkes
3bae2c0ecd This is the modified version of alink used to produce pe-coff powerpc
executables.  I received permission from Anthony Williams to distribute
a modified version for use in ReactOS.

Thanks to him, we're able to use better-supported elf tools for most of
the things we do.

svn path=/branches/powerpc/; revision=25300
2007-01-05 05:42:00 +00:00
Ged Murphy
565b2f4f9e It's strange that I always notice my own errors in ros-diffs and not before the commit.
svn path=/trunk/; revision=25299
2007-01-04 23:39:26 +00:00
Christoph von Wittich
6b47dbcdc8 activate openfile dialog (doesn't load files yet)
svn path=/trunk/; revision=25298
2007-01-04 23:19:11 +00:00
Ged Murphy
9b2c97c827 Eric's cute control made me smile, so I've added some text to the windows.
Note, as we can't use SetWindowText for these caption, the text must be drawn on manually (which makes for some icky code). This 'should' mean we can remove DC_TEXT in DrawCaption to get rid of those squares. However, removing these removes the gradient.
Eric, any ideas other than painting over the white squares?

svn path=/trunk/; revision=25297
2007-01-04 23:03:38 +00:00
Christoph von Wittich
a0320a1bf7 change extensions in commdlg filter to rtf
svn path=/trunk/; revision=25296
2007-01-04 22:35:34 +00:00
Johannes Anderwald
15c3d63c0f - improve error checking
svn path=/trunk/; revision=25295
2007-01-04 16:22:06 +00:00
Johannes Anderwald
6e368b2fff - remove line
svn path=/trunk/; revision=25294
2007-01-04 16:04:05 +00:00
Johannes Anderwald
d214a58cf9 - order all tools in alphabetically order
- add rgenstat to tools.mak

svn path=/trunk/; revision=25293
2007-01-04 15:57:47 +00:00
Magnus Olsen
7d473e742a do not build hello as GUI apps it is CUI apps. printf is redirect in GUI apps and does not output to console. Now we change to CUI, printf are redirect to console when it build as CUI.
svn path=/trunk/; revision=25292
2007-01-04 14:46:20 +00:00
Maarten Bosma
08c66925aa Add Miranda 0.5.1 (0.6 does not work)
svn path=/trunk/; revision=25291
2007-01-04 14:19:19 +00:00
Maarten Bosma
acc3b65d41 Make Downloader perform better under ReactOS:
- Use other font.
- Redraw buttons at resize.

svn path=/trunk/; revision=25290
2007-01-04 12:16:18 +00:00
Alex Ionescu
e7f7023167 - Fix a bug in KeLeaveCriticalRegion which was delivering APCs even if Special APCs were disabled. The check is now fixed. Thanks to Dominique Cote for the bug report.
svn path=/trunk/; revision=25289
2007-01-04 01:55:27 +00:00
Ged Murphy
70f0e9dbce update text to 2007
svn path=/trunk/; revision=25288
2007-01-03 23:12:19 +00:00
Maarten Bosma
5d34a990dc Boot sector for regression tests: Do always boot hdd if there is a MDR, otherwise always start the installation.
svn path=/trunk/; revision=25287
2007-01-03 21:46:46 +00:00
Ged Murphy
863cdcf393 Add 24bpp formats. This will clean up the look of interface until I get time to finish the alpha code changes
svn path=/trunk/; revision=25286
2007-01-03 20:58:37 +00:00
Ged Murphy
edb6261c52 Add 24bpp formats. This will clean up the look of interface until I get time to finish the alpha changes
svn path=/trunk/; revision=25285
2007-01-03 20:57:09 +00:00
Ged Murphy
3acea05096 These should have 24bpp versions.
svn path=/trunk/; revision=25284
2007-01-03 19:14:58 +00:00
Maarten Bosma
9d06a14bae Do not show "Press any key to boot from CD"-Message if there is no MBR on the hard drive.
svn path=/trunk/; revision=25283
2007-01-03 14:33:41 +00:00
Saveliy Tretiakov
f7e1cf715a Test application for loading and switching keyboard layouts
svn path=/trunk/; revision=25281
2007-01-03 11:16:47 +00:00
Art Yerkes
9c3817045b - Reserve and map a page for Pcr
- Some stubs (KeInitExceptions, KeInitInterrupts, ...)
- Normalize segments and bats

svn path=/branches/powerpc/; revision=25280
2007-01-03 09:31:26 +00:00
Eric Kohl
f3908f6d83 Add the appearance preview control. Right now it doesn't do much but sitting there and looking great. ;-)
svn path=/trunk/; revision=25279
2007-01-02 21:53:26 +00:00
Magnus Olsen
88784c27ec remove #define IMAGE_FILE_MACHINE_* from elf32.c it hack for we did miss them in the winnt.h header before, now seen few rev back we got them in right place.
svn path=/trunk/; revision=25278
2007-01-02 17:01:21 +00:00
Maarten Bosma
30c9c68789 Comment out definition of IMAGE_FILE_MACHINE_ARM to fix compilation - please fix properly.
svn path=/trunk/; revision=25277
2007-01-02 11:43:12 +00:00
Peter Ward
f17d99c983 - Add the rtltypes.h change from r25264 back and add the define for HEAP_CREATE_ENABLE_EXECUTE to winnt.h, this, I believe, is the proper fix.
svn path=/trunk/; revision=25276
2007-01-02 10:25:51 +00:00
Aleksey Bragin
b977a28611 Revert rtltypes.h change from r25264 until a proper fix is found.
svn path=/trunk/; revision=25275
2007-01-02 09:53:01 +00:00
Art Yerkes
87541c1edb Removed tracking.
svn path=/branches/powerpc/; revision=25274
2007-01-02 08:32:52 +00:00
Art Yerkes
2d0a9e6ffa Removed now unneeded-tracing, added hal address. We can see hal from here.
svn path=/branches/powerpc/; revision=25273
2007-01-02 08:31:10 +00:00
Magnus Olsen
fe4dcf7a00 1. starting adding pe loader to cputointel to misc.c
2. move the loadimage stuff to own functions to misc.c
3. rewrite so loader call to brain* after it load the image.
4. setup main using the loader
5. add few more input param to main -in, -inexe, -in try autodetect type of file, -inexe try convert a PE file. 

svn path=/trunk/; revision=25272
2007-01-02 02:21:58 +00:00
Hervé Poussineau
d9e5c48061 Fix HalXbox build
svn path=/trunk/; revision=25271
2007-01-01 23:55:40 +00:00
Maarten Bosma
8e087e40db Set explicitly set default icon when adding item to the applications tree view. Workaround for reactos bug.
svn path=/trunk/; revision=25270
2007-01-01 21:46:29 +00:00
Hervé Poussineau
c5f27e3581 Move -enable-stdcall-fixup definition to .rbuild file. Other platforms may not need it.
svn path=/trunk/; revision=25269
2007-01-01 21:42:27 +00:00
Magnus Olsen
d333f341a6 adding more define of IMAGE_SUBSYSTEM that we are missing
svn path=/trunk/; revision=25268
2007-01-01 21:32:21 +00:00
Maarten Bosma
ca95529086 Add Samba TNG
svn path=/trunk/; revision=25267
2007-01-01 20:42:15 +00:00
Magnus Olsen
9f258befad adding allot IMAGE_FILE_MACHINE to winnt that we where missing
svn path=/trunk/; revision=25266
2007-01-01 20:21:43 +00:00
Johannes Anderwald
d0297efd80 - msvc compability fix...
svn path=/trunk/; revision=25265
2007-01-01 14:59:05 +00:00
Hervé Poussineau
f9b6e910f9 Better support for non X86 systems
svn path=/trunk/; revision=25264
2007-01-01 14:50:16 +00:00
Maarten Bosma
4afb3f0181 apps.xml => downloader.xml
svn path=/trunk/; revision=25263
2007-01-01 14:30:40 +00:00
Maarten Bosma
4e8d28cf9f - rename apps.xml to downloader.xml
- look first for the xml file in system32 then in current dir.

svn path=/trunk/; revision=25262
2007-01-01 14:29:26 +00:00
Magnus Olsen
3aa0dd271b Adding stubed arm4 for my CpuToIntel tool.
Now we got tree diffent arch we can port over to intel x86 asm. But this tool are experment tool

svn path=/trunk/; revision=25261
2007-01-01 13:37:24 +00:00
Maarten Bosma
718618b8a1 Remove flickering reducing trick, because it does not work under windows, and the problem does not exist under reactos anyway.
svn path=/trunk/; revision=25260
2007-01-01 12:59:11 +00:00
Art Yerkes
aeea011c59 - most of the churn here is from code and headers imported from trunk.
- there are several improvements to freeldr for which ion and fireball are responsible.
- also here is filip's cmlib.
- my changes to freeldr mostly centered around managing the kernel slab and transitioning to the kernel memory
  map.  the new map is built in a new area and installed once we have every page set up.  this is a bit safer
  than the old method.
- the video planes are handed off to ntoskrnl, and some trace macros using the frame buffer are available.
- some hacks are removed.
- current status: LdrInitModuleManagement tries to get the header from hal.dll but fails for some reason.  i
  need to look into it.
- this is a checkpoint, since there's been some interest in seeing how things are progressing.
- you can put any pe-coff powerpc exe (based at 0x80000000) in place of ntoskrnl to test various aspects of 
  the boot handoff.  this will be useful for testing our trap handlers and such.
- the toolchain didn't produce correct executables in all cases before, and didn't differentiate rva32 and
  rel32, causing some things to be linked wrong.  so far, the current toolchain (20061231) links correctly,
  using R_PPC_UADDR32 as a surrogate for rva32, since it's never produced by gcc.
- some earlyboot video tracing is in ntoskrnl so i can peek around a bit.

svn path=/branches/powerpc/; revision=25259
2007-01-01 11:32:44 +00:00
Magnus Olsen
791dced4bb adding a stubed ppc brain, to my cputointel tool
svn path=/trunk/; revision=25258
2007-01-01 00:30:58 +00:00
Magnus Olsen
00095b75ef 1. setup input param to main
2. implement cpu type flag in dummy and m68k 
3. Adding more opcode for m68k, but they are stubed 
Time to test the code and start implement m68k in next commit

svn path=/trunk/; revision=25257
2006-12-31 18:45:35 +00:00
Maarten Bosma
eae92c1b5f include the xml of the downloader.
svn path=/trunk/; revision=25256
2006-12-31 17:40:39 +00:00
Maarten Bosma
bd3f56c61d Recommit changes from cc branch, without the hackish changes to create.c.
svn path=/trunk/; revision=25255
2006-12-31 16:43:40 +00:00
Magnus Olsen
6da9503d34 1. Adding a dummycpu showing how you can write you own cpu brain.
2. Did make some cleanup work for m68k 

svn path=/trunk/; revision=25254
2006-12-31 16:03:07 +00:00
Hervé Poussineau
adcf186642 ... also check the return of IoCreateSymbolicLink
svn path=/trunk/; revision=25253
2006-12-31 15:37:36 +00:00
Johannes Anderwald
e415b04c90 - check if IoCreateDevice succeeded...
svn path=/trunk/; revision=25252
2006-12-31 15:28:20 +00:00
Magnus Olsen
39436f3008 initate work of a CPUtranslator, example M68k to Intel. it is writen so not only M68k can be added. it does not work at all. it is a ground layout how I should code it.
svn path=/trunk/; revision=25251
2006-12-31 14:59:07 +00:00
Saveliy Tretiakov
1282be6796 Fix a typo
svn path=/trunk/; revision=25250
2006-12-30 21:40:32 +00:00
Saveliy Tretiakov
34444545a2 Implement NtGdiPolyDraw (based on wine).
svn path=/trunk/; revision=25249
2006-12-30 20:46:05 +00:00
Aleksey Bragin
0651dba483 Comment out a call to GdiReleaseDC() since it spams debug log with unimplemented messages. I put up a FIXME so it gets uncommented once GdiReleaseDC() is implemented.
svn path=/trunk/; revision=25248
2006-12-30 11:04:20 +00:00
Maarten Bosma
6ef81ff9e1 Different folders for translations and other resources.
svn path=/trunk/; revision=25247
2006-12-30 10:11:58 +00:00
Magnus Olsen
f67f7ee675 do not use hacked vfat drv revers the 25243
the hacked do not delete pendling or incomplte data 
and so on, 

svn path=/trunk/; revision=25246
2006-12-30 01:11:14 +00:00
Maarten Bosma
f01a075e09 Add changes from cc rewrite brunch. The driver still works under the old cc because it makes use of the USE_ROS_CC_AND_FS define.
svn path=/trunk/; revision=25243
2006-12-30 00:37:52 +00:00
Maarten Bosma
8bf9208764 Add downloader to start menu.
svn path=/trunk/; revision=25242
2006-12-30 00:18:00 +00:00
Aleksey Bragin
4dfd67905c - Comment out the performance counting ("hits: xxx misses: yyy") part for the freetype lib.
svn path=/trunk/; revision=25241
2006-12-29 22:24:43 +00:00
Alex Ionescu
8f2eb74d99 - Fix OB_SECURITY_METHOD prototype, callers, and implementors.
- Add call to SeOpenObjectAuditAlarm in ObCheckObjectAccess.
- Start adding Ob Callout validation on checked builds. For now only done around security functions.
- Set *MemoryAllocated to FALSE in ObGetObjectSecurity early on to avoid inconcistent state if the callback failed.
- Implement new XP function ObSetSecurityObjectByPointer and simplify NtSetSecurityObject by making it use it.
- More Win 2003 SecurityDescriptor Cache functions to sdcache instead of obsecure.c.

svn path=/trunk/; revision=25240
2006-12-29 22:17:29 +00:00
Alex Ionescu
635dda87ec - Fix some subtle bugs in NtWaitForMultipleObjects/NtWaitForSingleObject:
- Fail if memory allocation failed.
  - Don't overwrite original captured handle value when decoding to kernel handle.
  - Use PAGED_CODE.
  - Check timeout validity first before probing the entire handle array.
- Fix a critical bug in NtSignalAndWaitForObject which was using the wrong object type (waitable object instead of signalled objecT).

svn path=/trunk/; revision=25239
2006-12-29 20:52:33 +00:00
Alex Ionescu
c0a3750d26 - Fix critical bugs in exception handling: Unwinding was completely broken, using the wrong SEH protector to detect collided unwinding. The correct protector itself also had a broken check.
- Fix architectural bug in the entire TrapFrame<->Context conversion system and Ring Privilege Transitions (Inter-ring and intra-ring) which was lacking proper sanitation and validation of segments, flags and debug registers. Among other things, IOPL is now respected, CS is not KGDT_R0_CODE | RPL_MASK anymore, and the GPF code is now properly being called. This completely fixes exception handling being totally broken and crashing firefox installer, mirc, and other applications.
- Rewrite the page fault handler base code in assembly instead of relying on a broken C routine. Detect VDM, V8086, detecting expected/normal fault in ExpInterlockedPopEntrySList and faults in the system handler code. Rewrite MmAccessFault to be the main function that calls out to other sub-fault functions, and use the same prototype as NT.
- Fix the KGDT boot table to have proper granularity and big flags, and extend it to 256 entries.
- Create proper thread context in RtlInitializeContext and cleanup Rtl Thread routines.
- Remove all int3 and breakpoints from trap handlers, and replace them with a much better "UNHANDLED_PATH" macro which freezes the system, beeps, and displays a message with the line of code that's unhandled. This is to clearly tell the user that something is unhandled, instead of nesting infinite exceptions due to the int3.
- Fix a bug in INT_PROLOG.
- Sanitize EFLAGS and Code Segments in KeContextToTrapFrame and KeTrapFrameToContext.
- Implement KiUpdateDr7 and KiRecordDr7 as well as DR_MASK and other DR-validation macros and functions to protect against DR-vulnerabilites as well as to properly account for each active hardware breakpoint in a per-thread fashion by using the dispatcher header.
- Allow CR0_EM when running in a VDM.
- Fix FPU/NPX Register handling in KeContextToTrapFrame and KeTrapFrameToContext, and also speed it up by manual copying instead of a memory move.
- Properly give IOPL 3 to user-mode threads if they requested it.
- Detect GPF during GPF.
- Detect pagefault with a trap-frame spread over two or more pages and nested.
- Properly sanitize and set correct trap frame in KiInitailizeUserApc.
- Return STATUS_ACCESS_VIOLATION during page faults instead of STATUS_UNSUCESSFUL. 
- Fix assert in VdmSwapContext, as well as Code Selector check which was broken.
- Fix delayed object deletion (ObDeferDeleteObject) and the Ob Repear Routine and list.
- Update Kernel Fun.
- BUGBUG: Temporaily hack VMWare to detection to always detect VMWare.

svn path=/trunk/; revision=25238
2006-12-29 18:49:00 +00:00
Magnus Olsen
32b82baa21 commit same strechblt code for 8,16,32, it does not using putpixel anylong for 8 and 32, and small cleanup
this code can be makefaster, how remove getpixel that will doing huge incress in speed, split calc to
simple 1x 2x .. zoom in/out now we are using 1.1x 2.2x Zoom and 1x 2x zoom same code. if we split it we will
see a speed incress. 

svn path=/trunk/; revision=25237
2006-12-29 13:16:53 +00:00
Magnus Olsen
2e502d8d23 freetype cache glyth patch pass last all my test.patch
ogrinal author of this patch is royce3, modify by tinus so it work again with trunk,  ThePhysicist (timo dot kreuzer at web dot de) did fix the last bugs in it. at last long leave freetype glyth patch, now we got faster text output in reactos. and I where up to 38fps in winquake with this patch (debugbuild + serial debug on). This is very fast. I wonder what speed it give in release build or qemu now. 
   

See issue #511 for more details.

svn path=/trunk/; revision=25236
2006-12-29 00:09:54 +00:00
James Tabor
168bd92ec5 Implement GetDCDWord, update GetObjectType and printing.c fixups.
svn path=/trunk/; revision=25235
2006-12-28 22:36:53 +00:00
Maarten Bosma
7a40310c04 EmuandCo: More applications
svn path=/trunk/; revision=25234
2006-12-28 16:52:07 +00:00
James Tabor
bc33042584 Work to date. Update and add more functions to printing.c.
svn path=/trunk/; revision=25232
2006-12-28 05:53:50 +00:00
Eric Kohl
69a2a4ca6e - Rename SCM_START_PACKET to SCM_CONTROL_PACKET.
- Rename SCM_START_COMMAND to SCM_CONTROL_START and use the unused value 0 of the SERVICE_CONTROL_ constants.
- Implement stop command.

svn path=/trunk/; revision=25231
2006-12-26 01:29:22 +00:00
Maarten Bosma
32bfd4a46f Error if download failed.
svn path=/trunk/; revision=25230
2006-12-25 19:25:27 +00:00
Maarten Bosma
aa366332eb Add downloader to installation.
svn path=/trunk/; revision=25229
2006-12-25 17:09:33 +00:00
Magnus Olsen
eac88d0a30 Update to lates dejavu font, version 2.13
1. 100% finish the Cyrillic for Sans font 
2. 41 new chars support
and allot more. 

svn path=/trunk/; revision=25228
2006-12-25 14:25:22 +00:00
Eric Kohl
8745000456 Add default screen saver.
svn path=/trunk/; revision=25227
2006-12-25 12:38:53 +00:00
Johannes Anderwald
515d199878 - remove stdcall decoration
svn path=/trunk/; revision=25226
2006-12-24 15:57:45 +00:00
Johannes Anderwald
aaf231182d - remove stdcall decoration
- include winsock2.h before windows.h

svn path=/trunk/; revision=25225
2006-12-24 15:41:36 +00:00
Johannes Anderwald
8566616d62 - remove stdcall decoration
svn path=/trunk/; revision=25224
2006-12-24 15:36:32 +00:00
Maarten Bosma
8b602f059f Bypass bug in windows, by deleting the content of the applications treeview twice. (Occurs under Windows XP.)
Physicus 24.12.2006 14:31: There's a bug in downloader: when you select Internet then click on Firefox then on Games & Fun, you will find putty there.

svn path=/trunk/; revision=25223
2006-12-24 15:30:50 +00:00
Johannes Anderwald
1ee33be807 - include winsock2.h before windows.h
svn path=/trunk/; revision=25222
2006-12-24 15:20:05 +00:00
Johannes Anderwald
001f6cc36d - remove stdcall decoration
svn path=/trunk/; revision=25221
2006-12-24 15:13:13 +00:00
Eric Kohl
27ddfa674c - Remove trailing whitespace
svn path=/trunk/; revision=25220
2006-12-24 15:00:24 +00:00
Eric Kohl
36deccc25e - Add version resource and description string.
- Ensure the message box pops up when you try to configure the screen saver using the context menu.

svn path=/trunk/; revision=25219
2006-12-24 14:48:52 +00:00
Maarten Bosma
ddd895bf12 Forgot to commit this one.
svn path=/trunk/; revision=25218
2006-12-24 13:26:08 +00:00
Maarten Bosma
f12ce11adc EmuandCo:
- Fix Typos in English resource file
- Add German translation
- Add applications

svn path=/trunk/; revision=25217
2006-12-24 12:28:27 +00:00
Magnus Olsen
0ed434ca11 a old patch I have for freeldr (did this change one year ago)
small speed in-cress, remove freeldr ros glue C version of  memcpy, memcmp, isalnum, labs and replace it from reactos string.a 
we got asm version of most of them, so that is reason to the speed in-cress of freeldr, freeldr are still slow in reactos thanks 
to our win32k, for we do not cahced the glyth yet. 

svn path=/trunk/; revision=25216
2006-12-23 21:02:31 +00:00
Magnus Olsen
22dc51bae5 Start comment how thing works in dx stuff and done some reformat, adding EnableDirectDraw to the directdraw handler hDD
svn path=/trunk/; revision=25215
2006-12-23 19:06:43 +00:00
Maarten Bosma
9e9286ab0d Call some more Unicode APIs explicitly.
svn path=/trunk/; revision=25214
2006-12-23 18:59:10 +00:00
Maarten Bosma
d7eb6d1ba4 Completely eliminate flickering by implementing double buffering.
svn path=/trunk/; revision=25213
2006-12-23 18:28:38 +00:00
Maarten Bosma
3b7c2562ce Prevent the user from making the window too small.
svn path=/trunk/; revision=25212
2006-12-23 18:07:37 +00:00
Aleksey Bragin
d53810a92e - Fix width/height params in a call to NtGdiAlphaBlend().
- Temporary disable the alpha blending code, because it doesn't work correctly. Comments added to the code.

svn path=/trunk/; revision=25211
2006-12-23 13:36:07 +00:00
Magnus Olsen
885e2ecded fixed a bug in DdDeleteDirectDrawObject
Zero the DirectDraw handler if it have sussess been free

svn path=/trunk/; revision=25210
2006-12-23 12:25:07 +00:00
Magnus Olsen
412dfceb6a fix a typo
svn path=/trunk/; revision=25209
2006-12-23 10:52:07 +00:00
Magnus Olsen
0435a6b3d6 adding joliet flags to bootcd
svn path=/trunk/; revision=25208
2006-12-23 10:34:05 +00:00
Magnus Olsen
80e2c0393d reformat dib16bpp.c remove mix betwin tab and space
svn path=/trunk/; revision=25207
2006-12-23 05:45:24 +00:00
Christoph von Wittich
deecf156b8 fixed some warnings
svn path=/trunk/; revision=25206
2006-12-22 21:49:18 +00:00
Magnus Olsen
14847ebfcf fixed a typo
svn path=/trunk/; revision=25205
2006-12-21 23:36:55 +00:00
Ged Murphy
f578f60f09 fix GCC 4.1 build
svn path=/trunk/; revision=25204
2006-12-21 22:58:35 +00:00
Magnus Olsen
d7d01873cd Last part of the new strectsblt
remove all mul and div from the loop. 

svn path=/trunk/; revision=25203
2006-12-21 22:36:16 +00:00
Magnus Olsen
f2bddbce01 start of new strechblt huge speed incress, the idea is not doing any mul or the div in the for loop. this is only done for 16bpp, same code will be copy to rest later.
1. remove all div and mul from for Y loops
2. todo remove so much as psoible mul and div from X loop

svn path=/trunk/; revision=25202
2006-12-21 21:57:17 +00:00
Magnus Olsen
d747ce9acb thx filip notice I use wrong filed to detect alpha blend.
svn path=/trunk/; revision=25201
2006-12-21 20:03:06 +00:00
Magnus Olsen
757b471441 Fixed alpha blend support in DrawIconEx
svn path=/trunk/; revision=25200
2006-12-21 19:43:13 +00:00
Magnus Olsen
b818e776ee some more stuff from filip dymatic resolutions change patch.
svn path=/trunk/; revision=25199
2006-12-21 17:38:36 +00:00
Magnus Olsen
af996c694b from filip
This is small part of filip dymatic change resolution  patch
1. fix a bsod in IntEngBitBltEx if the destsurface is NULL do not bsod or aseert, send back false.

svn path=/trunk/; revision=25198
2006-12-21 02:43:31 +00:00
Ged Murphy
c2feea400f contrast is implemented, don't grey it out
svn path=/trunk/; revision=25197
2006-12-21 00:01:37 +00:00
Eric Kohl
6eed4dbe08 Update the display resolution text while the slider is being moved.
svn path=/trunk/; revision=25196
2006-12-20 23:03:08 +00:00
Magnus Olsen
1762a757af Thanks janderwald you did think it was something wrong with the pointer This at begin of Create_DirectDraw
1. if some idot send in iPface is NULL to DirectDrawCreate/DirectDrawCreateEx  (example DirectDrawCreate/DirectDrawCreateEx(NULL,NULL,NULL)) we do not free the alloc memory at fail. 

svn path=/trunk/; revision=25194
2006-12-19 22:33:22 +00:00
Maarten Bosma
246509c4b5 Reduce flickering.
svn path=/trunk/; revision=25193
2006-12-19 22:03:24 +00:00
James Tabor
1d4927a407 Fixup ReleaseDC and add information.
svn path=/trunk/; revision=25192
2006-12-19 18:29:57 +00:00
Maarten Bosma
ad4bf983da prevent crash
svn path=/trunk/; revision=25190
2006-12-18 15:02:55 +00:00
Christoph von Wittich
3b3aadac55 some small warning fixes
svn path=/trunk/; revision=25189
2006-12-18 14:22:43 +00:00
Maarten Bosma
564debb90d Default text for application tree view.
svn path=/trunk/; revision=25188
2006-12-17 22:38:35 +00:00
Maarten Bosma
51f203737a Explicitly use Unicode Versions to please Ged.
svn path=/trunk/; revision=25187
2006-12-17 21:14:19 +00:00
Maarten Bosma
617b8b3f0f - Disallow warnings
- Explictically define _UNICODE
- Btn -> Button

svn path=/trunk/; revision=25186
2006-12-17 20:53:04 +00:00
Maarten Bosma
3df591e50e Prettier description field.
svn path=/trunk/; revision=25185
2006-12-17 20:34:19 +00:00
Magnus Olsen
2d38ffdb35 fixing some problem with backbuffer, we still can not draw to primary or backbuffer surface when we create a backbuffer why ??
svn path=/trunk/; revision=25184
2006-12-17 13:53:19 +00:00
Maarten Bosma
c038f82dad Fix build.
svn path=/trunk/; revision=25183
2006-12-16 18:49:57 +00:00
Maarten Bosma
b5beda119d Outsource strings to resource.
svn path=/trunk/; revision=25182
2006-12-16 18:36:45 +00:00
Johannes Anderwald
24dbaddea0 - include required header
svn path=/trunk/; revision=25181
2006-12-16 17:28:08 +00:00
Maarten Bosma
af95c99c2e More detailed Messages.
svn path=/trunk/; revision=25180
2006-12-16 11:57:07 +00:00
Maarten Bosma
1e657a7c38 Close window if xml file could not be found.
svn path=/trunk/; revision=25179
2006-12-16 11:33:38 +00:00
Maarten Bosma
36f750fcc3 Do not crash when download button is hit and no application selected and some other improvements.
svn path=/trunk/; revision=25178
2006-12-16 11:18:03 +00:00
Aleksey Bragin
815a380bfe - ReactOS does not directly aim NT4 compatibility everywhere, reflect this in the readme.
- Add a sentence about RosBE.

svn path=/trunk/; revision=25177
2006-12-16 11:06:33 +00:00
Sylvain Petreolle
1de0f7c37a dont crash if apps.xml cant be read
svn path=/trunk/; revision=25176
2006-12-16 10:55:15 +00:00
Magnus Olsen
c46da966ca Clean up the code bit, and move some code. nothing new really, it is basic new redesign for createsurface code.
svn path=/trunk/; revision=25175
2006-12-15 23:54:42 +00:00
Magnus Olsen
91742d22de Clean up the code bit, and move some code. nothing new really, it is basic new redesign for createsurface code.
svn path=/trunk/; revision=25174
2006-12-15 23:54:15 +00:00
Aleksey Bragin
b3b09c712f [AUDIT]
- Unlocking most of Mm components, because, first of all Memory Manager is based on a completely different concept, which is not like NT4, NT5, NT5.1 or NT5.2. Secondly, init routines are again different due to different Loader Parameter Block and different ways of passing memory map. Thirdly, there are a lot of stubs.
- All code was looked through and it does not seem to contain any suspicious details.

svn path=/trunk/; revision=25173
2006-12-15 20:22:43 +00:00
Maarten Bosma
e6440f38c4 Add the applications, which were in the old package manager.
svn path=/trunk/; revision=25172
2006-12-15 18:50:00 +00:00
Maarten Bosma
67fe893b0b Even set icon, if there is none given in the xml file. Workaround for ReactOS bug.
svn path=/trunk/; revision=25171
2006-12-15 18:14:49 +00:00
Maarten Bosma
343f35865f Do not hardcode the path to the xml file.
svn path=/trunk/; revision=25170
2006-12-15 16:54:18 +00:00
Maarten Bosma
1f61021064 Forgot to remove this
svn path=/trunk/; revision=25169
2006-12-15 16:40:18 +00:00
Maarten Bosma
e83af284f2 New Downloader
- Description field is not done yet. 
- Download.c is taken from getfirefox.

svn path=/trunk/; revision=25168
2006-12-15 16:11:59 +00:00
Magnus Olsen
0296188f39 adding experment code for createsurface overlay. but this code show how we should do the backbuffer.
svn path=/trunk/; revision=25167
2006-12-14 22:58:44 +00:00
Magnus Olsen
acb5f1bb20 we can now create backbuffer surface. but some how we are doing it wrong ??
1. hacked getattachsurface was not a good idea. we can not lure program with curren code so tehy fails. 


svn path=/trunk/; revision=25166
2006-12-14 21:11:00 +00:00
Sylvain Petreolle
8a0deccf20 build control with unicode=yes
svn path=/trunk/; revision=25165
2006-12-14 20:40:18 +00:00
Magnus Olsen
662f1546cf create backbuffer works, left todo is to implement getattach surface.
svn path=/trunk/; revision=25164
2006-12-14 20:03:06 +00:00
Magnus Olsen
23153cc3cf 1. fixed fullscreen crash when we exit
2. more prepations for backbuffer support

svn path=/trunk/; revision=25163
2006-12-14 19:33:05 +00:00
Magnus Olsen
4eca115ed8 start prepare for implement of the backbuffer. we do not alloc the backbuffers yet.
1. add alloc of backbuffer to own files so it is easy understand how it is done. 
   the file createsurface.c are not include to rbuild yet. I do not want lose current
   code. if something happen with it. 

svn path=/trunk/; revision=25162
2006-12-14 18:10:18 +00:00
Aleksey Bragin
627e0b918d A correct check, finally.
svn path=/trunk/; revision=25161
2006-12-14 13:22:55 +00:00
Aleksey Bragin
734c8972dd GreyGhost: Fixing typos.
svn path=/trunk/; revision=25160
2006-12-14 12:51:16 +00:00
Magnus Olsen
3b179ca6a9 revers 25135 for it is incorrect change, do ask before change any code in win32k. and do not assume code is wrong
See issue #25 for more details.

svn path=/trunk/; revision=25159
2006-12-14 12:49:19 +00:00
Magnus Olsen
75f5b641f2 make the cleanup working as it should, do not crash when it try free unlinked dd interface.
svn path=/trunk/; revision=25158
2006-12-14 10:53:35 +00:00
Magnus Olsen
80f2505753 The format change of setup.c cause unexpect error. some typo ??
svn path=/trunk/; revision=25157
2006-12-14 10:32:23 +00:00
Magnus Olsen
f6dc17f3c0 fixing the last problem with release of dd interface, hopply I do not forget to free any memory it alloc this time.
fixing proper shourtdown of dx. 

svn path=/trunk/; revision=25156
2006-12-14 09:35:19 +00:00
Magnus Olsen
45000c2da2 start implement release for dd interface, we do not release everthing yet, we still have some memory leak.
svn path=/trunk/; revision=25155
2006-12-14 09:20:00 +00:00
Magnus Olsen
849df320ad fixing a small check in createsurface
svn path=/trunk/; revision=25154
2006-12-14 08:43:04 +00:00
Magnus Olsen
fc31996a7d Implement full support for GetPixelFormat
svn path=/trunk/; revision=25153
2006-12-14 08:22:17 +00:00
Magnus Olsen
ac78b1e624 Do not crash in GetDC, mplayer company we do not have a backbuffer now. good news, instead for a crash
svn path=/trunk/; revision=25152
2006-12-13 23:19:20 +00:00
Magnus Olsen
e24638087b exprement code for GetPxielformat, (manger crash mplayer (the gui version) in the GetDC api, and maybe for we do not have the clipper implement. yet.
svn path=/trunk/; revision=25151
2006-12-13 23:06:48 +00:00
Sylvain Petreolle
1f89928830 build wordpad with unicode="yes/no"
svn path=/trunk/; revision=25150
2006-12-13 22:05:14 +00:00
Magnus Olsen
82d454c95b more cleanup,
1. fixed more tab to space
2. rewrite addref for some inteface. 

svn path=/trunk/; revision=25149
2006-12-13 21:48:35 +00:00
Magnus Olsen
b7bb710426 fixing more format from tab to space
svn path=/trunk/; revision=25148
2006-12-13 21:28:52 +00:00
Magnus Olsen
ca82e66f85 fixed format of this file do not mix tab and space
svn path=/trunk/; revision=25147
2006-12-13 20:57:09 +00:00
Aleksey Bragin
209f1567c8 - Improve a debug print to provide more info.
svn path=/trunk/; revision=25146
2006-12-13 16:04:17 +00:00
Hervé Poussineau
8a628a8eea Try to read shell name from HKCU registry key.
If HKCU registry key or file not found, fall back to HKLM registry key
If HKLM registry key or file not found, fall back to names "explorer.exe" and "cmd.exe"

svn path=/trunk/; revision=25145
2006-12-13 14:58:10 +00:00
Johannes Anderwald
7f7148ea0c - msvc compability fixes
- fix build breakage introduced by me

svn path=/trunk/; revision=25144
2006-12-13 14:45:23 +00:00
Magnus Olsen
4c1c201d3c fixed setcorative level set now the DDRAWILCL_ISFULLSCREEN flags,
remove some code from blt for it does not work in fullscreen. our bltblt working now in fullscreen and windows mode. 
 

svn path=/trunk/; revision=25143
2006-12-13 09:36:39 +00:00
Magnus Olsen
519c0fdb36 small cleanup for unlock
svn path=/trunk/; revision=25142
2006-12-13 08:31:02 +00:00
Magnus Olsen
cb00971319 Fixed, yeah our second test apps works ms dx sdk font.exe works equal good as it use to now. We are getting Ddlock and Ddunlock working again.
svn path=/trunk/; revision=25141
2006-12-13 07:54:45 +00:00
Peter Ward
f696e3e547 - Compilation fix.
svn path=/trunk/; revision=25140
2006-12-13 05:37:55 +00:00
Johannes Anderwald
86ee432e0b Part 2/2 of WDK compability fixes
- reflect previous header changes
- fix prototype for GetConsoleAliasA/W
                    CreateSymbolicLinkA/W


svn path=/trunk/; revision=25139
2006-12-12 23:57:24 +00:00
Johannes Anderwald
170373b2b0 Part 1/2 of WDK compability fixes
- add struct CONSOLE_READCONSOLE_CONTROL to wincon.h
- add missing pointer typedef
- fix declaration of ReadConsoleA 
                     ReadConsoleW
                     FindFirstVolumeA
                     FindFirstVolumeW
                     FindFirstVolumeMountPointA
                     FindFirstVolumeMountPointW
                     FindNextVolumeA
                     GetApplicationRecoveryCallback
                     RegisterApplicationRecoveryCallback
                     SystemTimeToTzSpecificLocalTime

- fix typedef of WIN32_FIND_STREAM_DATA

svn path=/trunk/; revision=25138
2006-12-12 23:52:02 +00:00
Magnus Olsen
0354fd8d4b do not crash if we call lock and unlock but something are wrong.
we manger getting a lock but ms sdk font sample does not showing the font why ??

svn path=/trunk/; revision=25137
2006-12-12 22:03:49 +00:00
Magnus Olsen
6d0fbf46e2 now we are back in track, we are almost same state as we got with the old desgin of ddraw.dll
bltblt working again for HAL

svn path=/trunk/; revision=25136
2006-12-12 20:35:12 +00:00
Johannes Anderwald
2e89f9158d - fix bug in IntChangeDisplaySettings
svn path=/trunk/; revision=25135
2006-12-12 20:22:07 +00:00
Magnus Olsen
fe01bb3090 bltblt is hacked now. but it draw a yellow surface now
svn path=/trunk/; revision=25134
2006-12-12 19:34:33 +00:00
Aleksey Bragin
0d5961e9e4 - Improve debug output
svn path=/trunk/; revision=25133
2006-12-12 19:08:32 +00:00
Maarten Bosma
5c0d1ea97a Check if This and ThisSrc are NULL.
svn path=/trunk/; revision=25132
2006-12-12 18:54:50 +00:00
Magnus Olsen
f1c6b23eaa remove fireball hack in changedisplay, do not hard code the display number,
with this patch we are now extract the display number from the desktop and use it
patch was wroten by me and janderwald. I was to lazy finish it so janderwald did finish it
thanks janderwald. 

svn path=/trunk/; revision=25131
2006-12-12 17:56:27 +00:00
Maarten Bosma
e564de2bbd Make it a compile time choice, whether you want to use a clipper or not, because our ddraw does not support it yet.
svn path=/trunk/; revision=25130
2006-12-12 17:51:50 +00:00
Aleksey Bragin
8d383c3bad ChangeDisplaySettingsEx() can be called with NULL DeviceName. In this case, we should look it up, instead of BSODing.
Right now, this case is fixed by substituting the value to a hardcoded one "\\.\DISPLAY1" in case of NULL and call is made to store the values in registry.

svn path=/trunk/; revision=25129
2006-12-12 12:18:17 +00:00
Johannes Anderwald
d7b7be7821 set svn:eolstyle native
svn path=/trunk/; revision=25128
2006-12-12 07:59:45 +00:00
Sylvain Petreolle
159c3a0448 add french translation to ipconfig
svn path=/trunk/; revision=25127
2006-12-11 22:41:37 +00:00
Sylvain Petreolle
e094e5bf06 unicode build fixes
svn path=/trunk/; revision=25126
2006-12-11 18:04:02 +00:00
Aleksey Bragin
1a86140ef5 - Assign a proper InterfaceType to the resource descriptor. Fixes assert when using VMWare video driver.
Approved by hpoussin.

svn path=/trunk/; revision=25125
2006-12-11 17:31:04 +00:00
Peter Ward
37d0a75dc4 - Fix GCC 4.1.2 build. Patch by Usurp.
svn path=/trunk/; revision=25122
2006-12-10 22:39:21 +00:00
Peter Ward
204be1a566 Fix compilation \ -> /.
svn path=/trunk/; revision=25121
2006-12-10 22:26:01 +00:00
Alex Ionescu
c853849d00 - Add missing header.
svn path=/trunk/; revision=25119
2006-12-10 21:21:08 +00:00
Alex Ionescu
c39989df1b - Fix SleepEx.
- Put volatile statements in EX_RUNDOWN_REF, IRP, DEVICE_OBJECT, ERESOURCE, FILE_OBJECT, IO_REMOVE_LOCK, WORK_QUEUE_ITEM where required (thanks to Microsoft's changes in the WDK to mark the fields properly).
- Update FILE_OBJECT definition.
- Add some asserts to some I/O functions.
- Add stub support for File Objects created by XP+ Drivers which have File Object Extensions.
- Add some fixes to IopDeleteFile, including proper reference counting for the DO and VPB, as well as cleanup when the file is closed without a handle.
- Fix a bug in IopSecurityFile.
- Queue and unqueue IRPs in all I/O functions.
- Fully support IRP cancellation now.
- Fix critical bugs in NtDeviceIoControlFile and NtDeviceFsControlFile which were causing double queueing of IRPs and freeing of invalid memory, as well as invalid paramter checking for user-mode buffers.
- Add exhaustive validation checks to IoCreateFile, add more failure cases, and validate the EA buffer. Also support IO_ATTACH_DEVICE_API flag.
- Implement IoCreateStreamFileObjectEx and IoCreateStreamFileObjectLite and fix several bugs in the original implementation of IoCreateStreamFileObject.
- Fix a bug in RtlRaiseException.
- Update Io*ShareAccess routines to support XP+ style semantics related to special File Object flags which disable their use.
- Add validation to all Query/Set routines so that information clasess, lengths, buffers and alignment are properly checked.
- Also add an array for the proper acess rights that each query/set operation requires.
- Check backup/restore privileges during I/O File operations.
- Check traverse access during I/O File Operations.
- Check access privileges to the device during I/O file operations.
- Rename IopReferenceDeviceObject and also verify if an exclusive DO is trying to be invalidly opened.
- Support various extra security checks during I/O File/Device Parse Routine.
- Fix a bug during IopCleanupIrp so that we don't dereference the File OBject if this was a create operation.
- Fix some bogus asserts in IofCompleteRequest, and save the IRP Flags before signalling it's event, since the driver might've freed it behind our back.
- Fix a large bug in ObInsertObject which affected the insert of unnamed objects with forced security options (Such as process/threads).
- Fix the creation of the Process/Thread/Job Obejct Types to that security information is forced.
- Remove "Fix PS!!!" messages since the bug is now fixed and these objects now get proper security descriptors.
- Fix another bug in ObInsertObjet which wasn't properly validating user-mode objects and always assumed kernel mode.
- Silence multiple trace/checkpoint messages that have accumulated throughout time for various debugging purposes.

svn path=/trunk/; revision=25118
2006-12-10 18:40:30 +00:00
Magnus Olsen
2ae5e0b1ff commit the patch from bug 1874 even it does not use the RDMSR and WRMSR measure methood, we need use the RDMSR and WRMSR for dual core and CPU support it see Intel documentations AP-485, who u should do it. The patch is from HTO Bugfix detections of RTSC support for single and dual core by me, adding check if the CPU support RDMSR and WRMSR and send a true or false value to GetCpuSpeed, so we known which method we should use. HTO patch should be use when it is false. other wise we should use the RDMSR and WRMSR measure method
See issue #1874 for more details.

svn path=/trunk/; revision=25117
2006-12-10 17:39:01 +00:00
Andrew Greenwood
d14487acdf Stubbing of Kernel Streaming DRM module
svn path=/trunk/; revision=25115
2006-12-10 15:12:12 +00:00
Andrew Greenwood
c7765a6c6c Further stubbing of Kernel Streaming APIs:
KS.SYS PORTCLS.SYS


svn path=/trunk/; revision=25114
2006-12-10 15:09:46 +00:00
Magnus Olsen
0fe6b951ac Fixed all hack in createsurface, we still have some bugs and do not create surface as we should.
but we lest create a single primary surface. 

svn path=/trunk/; revision=25113
2006-12-10 13:32:35 +00:00
Magnus Olsen
33ba72260b fixed some check in createsurface so user can not easy crash it.
svn path=/trunk/; revision=25112
2006-12-10 10:44:39 +00:00
Magnus Olsen
41059dabf4 Remove more of createsurface hack for primary surface.
svn path=/trunk/; revision=25111
2006-12-10 08:11:08 +00:00
Magnus Olsen
da0a71a8bc small optimzing of drawing line by George Veskov (jkxxster at gmail dot com) irc nick jkxx
svn path=/trunk/; revision=25110
2006-12-10 07:39:20 +00:00
Peter Ward
5ad7b6a0c9 - Revert 25108, requested by silverblade.
svn path=/trunk/; revision=25109
2006-12-10 05:43:49 +00:00
Andrew Greenwood
26fa983af4 Further stubbing of Kernel Streaming APIs
(corrective path fix to follow...)


svn path=/trunk/; revision=25108
2006-12-10 04:16:35 +00:00
Andrew Greenwood
275e3ef97e These files aren't complete yet, but this will put them at least in
their right place...


svn path=/trunk/; revision=25107
2006-12-10 04:04:03 +00:00
Magnus Olsen
b06bb7eb7e remove most of the hack in createsurface
svn path=/trunk/; revision=25105
2006-12-09 21:41:42 +00:00
Magnus Olsen
465b3d78e8 Test code to create surface. it is a big hack to create a primare surface.
but we success create a primary surface. with this hack. 

svn path=/trunk/; revision=25104
2006-12-09 18:31:31 +00:00
Eric Kohl
9360360cb5 Don't show a wallpapers file extension.
svn path=/trunk/; revision=25102
2006-12-09 15:31:06 +00:00
Johannes Anderwald
71d16876ff - only control panel applet should be started with rundll32.exe, other modules can be started w/o it
svn path=/trunk/; revision=25101
2006-12-09 14:43:02 +00:00
Christoph von Wittich
cc41125c21 fix version information display when using yasm
svn path=/trunk/; revision=25100
2006-12-09 13:47:38 +00:00
Magnus Olsen
94ca1acc37 revert the 25082 it cause unknown regress.
I did not notice it becose I did have a crashed dx hal interface.


svn path=/trunk/; revision=25099
2006-12-09 12:11:09 +00:00
Johannes Anderwald
659dc2230c - various msvc fixes
* inline -> __inline
 * use msvc generated interface name
 * fix duplicate definition of ElfrRegisterEventSourceA -> ElfrRegisterEventSourceW
 * fix memory leak in ElfrOpenELA 

svn path=/trunk/; revision=25097
2006-12-09 09:07:15 +00:00
Christoph von Wittich
880ee116c3 -display version information for compiler, binutils and nasm
svn path=/trunk/; revision=25092
2006-12-08 18:41:20 +00:00
Johannes Anderwald
3e7c9ccd65 - generated client header/source files get _c postfix
- generated server header/source files get _s postfix
- only generate code for the required module
Note: due to an bug in VS2005 build tool lib tool does only get part of generated object filename i.e. pnp_c.obj becomes pnp.obj. As a result the lib tool cannot link. However we need to generate unique obj files so that client / server project always compiles the requires source files

svn path=/trunk/; revision=25091
2006-12-08 12:47:58 +00:00
Johannes Anderwald
9813d8a0b7 - silence output
svn path=/trunk/; revision=25090
2006-12-08 12:24:40 +00:00
Johannes Anderwald
bc5080e521 - include path to generated idl files for dependant projects
svn path=/trunk/; revision=25089
2006-12-08 11:50:56 +00:00
Christoph von Wittich
adfd78e1b8 fix unused variable warning in release build
svn path=/trunk/; revision=25088
2006-12-08 11:15:48 +00:00
Johannes Anderwald
e731b55f87 - add missing source header
svn path=/trunk/; revision=25087
2006-12-08 10:53:14 +00:00
Christoph von Wittich
6bf437add2 updated buslogic driver to version 1.2.0.4
See issue #1891 for more details.

svn path=/trunk/; revision=25086
2006-12-08 02:01:34 +00:00
Christoph von Wittich
ae69669470 fix a typo in ObFindObject patch by hto
See issue #1861 for more details.

svn path=/trunk/; revision=25085
2006-12-08 01:06:10 +00:00
Christoph von Wittich
ceff92df91 -new german language file
-some fixed for the english language file
patch by Colin Finck
See issue #1900 for more details.

svn path=/trunk/; revision=25084
2006-12-08 01:00:51 +00:00
Christoph von Wittich
7ead042aa6 fix gcc 4.1.2 build patch by Coviti
See issue #1897 for more details.

svn path=/trunk/; revision=25083
2006-12-08 00:50:58 +00:00
Magnus Olsen
66bf6c2606 Adding more setup infromations for createsurface. (does not working yet)
svn path=/trunk/; revision=25082
2006-12-07 20:48:00 +00:00
Magnus Olsen
78eacb0873 start config up createsurface right to create surface but we are not setting all value right yet.
svn path=/trunk/; revision=25081
2006-12-07 18:27:16 +00:00
Magnus Olsen
f2f6e89dc0 start writing on the createsurface code, current does not setup the interface right yet so we do not doing the callbacks yet
svn path=/trunk/; revision=25080
2006-12-07 16:46:33 +00:00
Peter Ward
ab5143ea78 - Fix for "pice.sys gets loaded unexpectedly".
- Patch by Usurp.
- See bug http://www.reactos.org/bugzilla/show_bug.cgi?id=1898.

svn path=/trunk/; revision=25079
2006-12-07 16:43:30 +00:00
Johannes Anderwald
3315995e54 - fix a few warnings
- make it compilable with msvc and gcc4.1.1

svn path=/trunk/; revision=25078
2006-12-07 08:54:16 +00:00
Aleksey Bragin
87084dffa3 Add KdChangeOption() stub
svn path=/trunk/; revision=25077
2006-12-06 20:55:42 +00:00
Magnus Olsen
78e6f55307 did forget to exlucde the ddraw.rbuild. sorry I did break the build
svn path=/trunk/; revision=25076
2006-12-06 19:54:53 +00:00
Magnus Olsen
4e309b0917 fixed a pointer I forget setup. the This->lcl->lpDDCB was not set. and that mean we did not use any interface. we are using This->lcl->lpDDCB in the iface calls
svn path=/trunk/; revision=25075
2006-12-06 19:53:43 +00:00
Christoph von Wittich
e6219a7ac8 set minimum req. gcc version to 3.4.2
svn path=/trunk/; revision=25074
2006-12-06 16:22:32 +00:00
Aleksey Bragin
45f26cb114 - vfat now checks what CcCopyRead() returned, and return that value to the caller in case of failure
- Added a check for successful call to ReadCacheSegmentChain() in CC
See issue #1855 for more details.

svn path=/trunk/; revision=25073
2006-12-06 13:29:21 +00:00
Alex Ionescu
9dbd8d4fbe - Revert 25070: NO.
- Please look what I did inside FreeLdr. I called this function perfectly without needing to modify how it works. It's what the AdditionalBias parameter is there for...

svn path=/trunk/; revision=25071
2006-12-05 18:33:03 +00:00
Aleksey Bragin
35d9339017 A necessary hack for PE relocation within physical address space (in FreeLdr).
Using it removes code duplication from FreeLdr / winldr.

To get rid of this hack, either freeldr should be fully switched to virtual paged mode (which is not good) or code must be duplicated inside freeldr.

svn path=/trunk/; revision=25070
2006-12-05 18:28:08 +00:00
Johannes Anderwald
4ecce0d21b - fix build with gcc 4.1.0
svn path=/trunk/; revision=25069
2006-12-05 11:27:45 +00:00
Christoph von Wittich
94d2fce55a -revert janderwalds change until because it breaks the gcc 4.x build
svn path=/trunk/; revision=25065
2006-12-04 16:46:52 +00:00
Christoph von Wittich
6fb82c4caf fix ks.rbuild
svn path=/trunk/; revision=25064
2006-12-04 16:34:26 +00:00
Michael Steil
ef4a67dd52 ReactOS Intel Mac compatibility commits, part 2/2
== LBA Functionality BIOS Bug ==
When the BIOS is asked whether it supports INT 13 extensions, it will answer yes if the device is a hard disk, but it will pretend that even the function to ask about this functionality is unsupported if asked about a CD drive. This is similar to what is documented in the code already: Some BIOSes return "doesn't support INT 13 extensions" for CDs.
Code has been added to use INT 13 extensions (and therefore LBA read as opposed to CHS) even if the BIOS claims this is unsupported, if the device is a CD-ROM. The check for the drive type is done by comparing with 0x90: If the device number is 0x90 or above, it's a CD drive. (On Insyde's BIOS, it's 0x90, on most others, it's 0x9F).

(Ironically, Insyde's BIOS cannot even do CHS on CDs, so if the bootloader correctly asks for LBA support, it will get a "no" and will fail when trying to do CHS: When querying the max. CHS values, the BIOS returns 0 sectors per track, which will make conversions from LBA to CHS impossible.)

== LBA Read BIOS Bug ==
When trying to read from CD using the LBA function INT 13/42, the BIOS function will return as it is supposed to, with CF and AH cleared, but with an unchanged buffer. This is because freeldr passes a "disk address packets" that structure contains an extra 64 bit value at the end and is therefore 24 bytes long instead of 16. This is perfectly fine, and a BIOS should ignore any extra data in the structure, but Insyde's BIOS, which doesn't support the extra field (and thus the EDD-3.0 standard) just ignores the complete task and returns in this case.
The extra field has been removed from the structure in freeldr, as it is not used anyway. The structure is now 16 bytes long.

svn path=/trunk/; revision=25063
2006-12-04 15:33:06 +00:00
Michael Steil
eb565e3840 ReactOS Intel Mac compatibility commits, part 1/2, by Michael Steil.
== A20 Gate and the Keyboard Controller ==
In order to turn on the A20 gate, the keyboard controller has to be emptied. This is done in freeldr by reading bytes until the keyboard controller signals it's empty. Intel Macs don't have PS/2 keyboard controller and the status register always reads back 0xFF, so the "there is data" bit will never be cleared. (The same problem has been in GRUB as well as in Darwin's BIOS loader.)
Added code that doesn't bother to clear the keyboard buffer if the status port reads back 0xFF.

== Serial Port BIOS Bug ==
Insyde's BIOS reports that there is a COM1 serial port at 0x3F8 (as stored in 0040:0000 in memory), but there is none in Intel Macs, so freeldr spins infinitely while trying to empty the serial port's buffer.
Added code that makes sure the loop only gets executed up to 200 times

svn path=/trunk/; revision=25062
2006-12-04 15:00:11 +00:00
Peter Ward
f790496bd4 - Small compilation fix for roshttpd.
svn path=/trunk/; revision=25060
2006-12-04 01:50:47 +00:00
Johannes Anderwald
369fa23f46 - give roshttpd a rbuild file
- include it in build
- fix building with msvc

svn path=/trunk/; revision=25059
2006-12-03 23:35:02 +00:00
Johannes Anderwald
231c494a6f -fix compiling with msvc
svn path=/trunk/; revision=25058
2006-12-03 22:43:22 +00:00
Johannes Anderwald
9595935d9f - fix compiling with msvc
- replace getopt with simple parse routine

svn path=/trunk/; revision=25057
2006-12-03 22:29:07 +00:00
Johannes Anderwald
4c44ec895f - fix some warnings when compiling with msvc
svn path=/trunk/; revision=25056
2006-12-03 21:51:50 +00:00
Johannes Anderwald
f737754b34 - remove unused make files
svn path=/trunk/; revision=25055
2006-12-03 21:37:38 +00:00
Johannes Anderwald
06d8efb11c - fix msvc compile problems
svn path=/trunk/; revision=25054
2006-12-03 21:33:17 +00:00
Johannes Anderwald
8dde1987db - move undocumented constants to more appropiate location
- thnx to Alex_Ionescu

svn path=/trunk/; revision=25053
2006-12-03 21:19:23 +00:00
Andrew Greenwood
e07f82102e New stubbing of KS (Kernel Streaming) and associated header files.
Updated README.


svn path=/trunk/; revision=25052
2006-12-03 21:11:56 +00:00
Magnus Olsen
c33ae33877 started hacked SetCooperativeLevel and ReCreateDirectDraw code. we need it if hwnd are not null we need recreate the HAL and HEL interface for we already inistate it early.
svn path=/trunk/; revision=25051
2006-12-03 21:11:40 +00:00
Johannes Anderwald
54876ff367 - default to __cdecl convention for gui / console apps
svn path=/trunk/; revision=25050
2006-12-03 21:09:04 +00:00
Aleksey Bragin
5edc5e319f [AUDIT]
Change name everywhere back to Ariadne because real person could not be contacted. Non-working email address removed.

If this person doesn't contact me before finish of the audit, the copyright will be transferred to ReactOS Foundation.

svn path=/trunk/; revision=25049
2006-12-03 21:06:03 +00:00
Andrew Greenwood
d79fc4b62c Kernel Streaming cleanup - replacing with new stubs shortly!
svn path=/trunk/; revision=25048
2006-12-03 20:59:52 +00:00
Johannes Anderwald
77255e9849 -fix compiling with msvc
svn path=/trunk/; revision=25047
2006-12-03 20:48:25 +00:00
Johannes Anderwald
af06dadd48 - include gettype in build process
- add missing dependency

svn path=/trunk/; revision=25046
2006-12-03 20:43:21 +00:00
Johannes Anderwald
316ca7fc58 - give getfirefox a WinMain it deserves
- theres no reason to include NDK for it
- fix a bug in dlOnProgress while debugging it

svn path=/trunk/; revision=25045
2006-12-03 20:36:53 +00:00
Johannes Anderwald
86f3d0e7ea - fix some warnings when compiling with msvc
svn path=/trunk/; revision=25044
2006-12-03 20:17:55 +00:00
Johannes Anderwald
9a841754c2 - fix correct app type
svn path=/trunk/; revision=25043
2006-12-03 20:04:09 +00:00
Johannes Anderwald
69b8ba7ca7 - fix warning
- fix svn properties

svn path=/trunk/; revision=25042
2006-12-03 19:52:19 +00:00
Johannes Anderwald
5a8d8453fc - update readme
See issue #1890 for more details.

svn path=/trunk/; revision=25041
2006-12-03 19:17:19 +00:00
Johannes Anderwald
8a50599cf5 - update readme
See issue #1890 for more details.

svn path=/trunk/; revision=25040
2006-12-03 19:16:30 +00:00
Magnus Olsen
1de675a898 Fixed HALDD been setup right.
svn path=/trunk/; revision=25039
2006-12-03 18:53:05 +00:00
Johannes Anderwald
076a9dd89e - New changes for the Greek Keyboard layout
- by Apostolos Alexiadis
- fix some formating issues
See issue #1831 for more details.

svn path=/trunk/; revision=25038
2006-12-03 18:48:29 +00:00
Alex Ionescu
144e232b5f - Fix IopSecurityFile to send the IRP to the right device.
- Fix IoSetInformation to send the IRP to the right device.
- After the major fix in 24996, the functions that had been written to work with the I/O bug stopped working (by sending the IRP to the wrong device object, which, due to the bug was the ""right"" object), this is now fixed and the bootcd works again.

svn path=/trunk/; revision=25037
2006-12-03 18:04:32 +00:00
Magnus Olsen
a75646d6df fixed so we return almost same flags in DD->GBL->dwFlags left todo is the DDRAWI_DRIVERINFO2
svn path=/trunk/; revision=25036
2006-12-03 17:54:25 +00:00
Magnus Olsen
bdd9cf7f66 fixed a refer counter that was zero out, but it should be have set to 1
svn path=/trunk/; revision=25035
2006-12-03 15:42:12 +00:00
Magnus Olsen
3d923733e6 Fixed the initate process so it do not call to StartDirectDrawHel when GUID DDCREATE_HARDWAREONLY
Fixed the initate process so it do not call to StartDirectDrawHal when GUID DDCREATE_EMLATIONONLY

svn path=/trunk/; revision=25034
2006-12-03 15:23:44 +00:00
Aleksey Bragin
087400a522 NCI interface auditing, sysfuncs.lst.
- Fixed NtCompressKey() and NtQuerySystemEnvironmentValueEx() prototypes (they were incorrectly declared/defined, but had a correct number of params in sysfuncs.lst)
- Fixed incorrect number of parameters specified in sysfuncs.lst for NtLoadKeyEx(), NtQueryOpenSubKeysEx(), NtTranslateFilePath()

sysfuncs.lst now perfectly matches all functions definitions.

svn path=/trunk/; revision=25029
2006-12-03 11:13:05 +00:00
Magnus Olsen
3c9294fcf4 Fixed so we can optain the HAL again.
Do not trust on ddraw value yo get blindy. it will rest the value you need to optian the HAL and you can not spy on it so easy then.

svn path=/trunk/; revision=25027
2006-12-03 09:12:35 +00:00
Alex Ionescu
58fad00c6d - Clear capacity data buffer before reading it to avoid 0xCCCCCCCC values and manually set failure code if nobody filled it in (a hack, but I don't understand our pre-Nixon-era storage stack to "properly" fix it, so this is good enough and kills off the 0xCCCCCCCC byte non-paged pool allocations.
svn path=/trunk/; revision=25026
2006-12-03 08:08:08 +00:00
Alex Ionescu
cd31c14fe5 - Enable V86/DR save in HAL Clock Interrupt (and fix build).
- Add debug message to fs_rec driver to analyse why it's trying to allocate 4GB of non paged memory.

svn path=/trunk/; revision=25025
2006-12-03 07:34:03 +00:00
Magnus Olsen
aae91f0242 fixed a werid crash do not initate the member dwObsolete1 in LPDDRAWI_DIRECTDRAW_LCL
svn path=/trunk/; revision=25022
2006-12-03 00:17:56 +00:00
Magnus Olsen
073d96842d bug fixed some more info getting same as ms ddraw when you execute DirectDrawCreateEx
fixed some comment in main.c, Comment why memory does not being fill to zero in lest windows 2000 after you play with directdraw. 

svn path=/trunk/; revision=25021
2006-12-02 23:04:11 +00:00
Alex Ionescu
8b4c009bfb - Implement V86 trap fixup during traps and interrupts.
- Implement DR register save/restore during traps, interrupts and system calls.
- Remove respective entry from krnlfun.c.

svn path=/trunk/; revision=25020
2006-12-02 20:49:56 +00:00
Magnus Olsen
aa6252fc13 fixed so only NULL and DDCREATE_HARDWAREONLY are accpect when you linking two directdraw interface.
svn path=/trunk/; revision=25019
2006-12-02 19:26:55 +00:00
Magnus Olsen
a9e3149429 fixed follow bugs
1. Fixed memory crash bug for linking two directdraw interface
2. Fixed meoory alloc does not being overwrite when it being linked

svn path=/trunk/; revision=25018
2006-12-02 18:59:05 +00:00
Magnus Olsen
ca9afb4298 Fixed follow bug Create_DirectDraw
1. did not set the DDRAWILCL_DIRECTDRAW7 to This->lpLcl->dwLocalFlags
2. did not initate the This->lpLcl->dwLocalRefCnt to 0 and Main_DDrawSurface_AddRef did wrong count then 

svn path=/trunk/; revision=25017
2006-12-02 16:57:21 +00:00
Magnus Olsen
a709c01ca8 fixed partly linking with other directdraw interface, but we still overwrite some member and crash it, when we doing a link.
svn path=/trunk/; revision=25016
2006-12-02 13:37:55 +00:00
Magnus Olsen
1c4a115ec0 adding check if it is IID_IDirectDraw7 on right place and learn it is lpDD->QueryInterface that optain the d3d interface.
svn path=/trunk/; revision=25015
2006-12-02 10:27:56 +00:00
Magnus Olsen
1c7d9c3cb9 remove trunk stuff. for it was wine idea, if you reading msdn and test ms ddraw you can not use other interface that IID_IDirectDraw7
but wine allown you use older IID interface. But It will be hell to support DirectX 1-6 IID_IDirectDraw, IID_IDirectDraw2, IID_IDirectDraw4 so we doing like microsoft kill it. and this check can be use to detect if it wine ddraw or not. like test if other that IID_IDirectDraw7 are vaild. 

svn path=/trunk/; revision=25014
2006-12-02 10:20:33 +00:00
Magnus Olsen
17e88e019f Adding two new debuger macro and debocument each debug macro I am using in windows and why you should use one of them
with time the debug macro will be compelete remove. 

svn path=/trunk/; revision=25013
2006-12-02 08:30:16 +00:00
Magnus Olsen
817dba67ef Colin Finck (mail at colinfinck dot de)
patch to sysdm (id=1161)
fixing truncate of string and making allot better layout of the system info. 


See issue #1858 for more details.

svn path=/trunk/; revision=25012
2006-12-01 17:36:07 +00:00
Alex Ionescu
d67835f9dc - Kill some debug prints.
- Remove debug-test infinite loop from DbgkForwardException
- Fix missing "break" statement in DbgkFreeDebugEvent, causing a handle leak, and in DbgkpOpenHandles, causing user-mode to get a kernel-mode handle for DLL images instead of the correct duplicated one.
- Currently struggling with the fact that ArbitraryUserPointer seems to be reset to zero before it's read for the debug event, so DLL names don't come through.

svn path=/trunk/; revision=25011
2006-12-01 08:20:37 +00:00
Alex Ionescu
94912681e1 - Write DLL Being mapped into NtTib->ArbitraryUserPointer so that the debugger can pick it up.
- Fix bugs in DbgkWakeTarget, DbgkCreateThread, DbgkMapViewOfSection and call from NtMapViewOfSection.

svn path=/trunk/; revision=25010
2006-12-01 07:36:49 +00:00
Magnus Olsen
898809f6cb fixed crash in stub of createsurface
svn path=/trunk/; revision=25009
2006-11-30 22:58:48 +00:00
Magnus Olsen
04210101de stubed Main_DirectDraw_SetCooperativeLevel
it need be rewrite

svn path=/trunk/; revision=25008
2006-11-30 21:43:07 +00:00
Magnus Olsen
c2e48f423c fixing stub of drvsetcolorkey
svn path=/trunk/; revision=25007
2006-11-30 21:04:09 +00:00
Johannes Anderwald
c906b40fe9 - bye bye fixdef
svn path=/trunk/; revision=25006
2006-11-30 20:57:52 +00:00
Alex Ionescu
b41e5c3b6c - Fix a bug in DbgkCreateThread which wasn't saving the initial thread information in the right place. The process create event is now fully supported and properly returns the entrypoint of the application.
svn path=/trunk/; revision=25005
2006-11-30 20:46:48 +00:00
Alex Ionescu
3851db2429 - Implement support for DEBUG_PROCESS in CreateProcess so that processes can be started with a debugger (works and tested with a new test app).
- We still seem to be suffering from a bug during certain debug event waits.

svn path=/trunk/; revision=25004
2006-11-30 20:37:21 +00:00
Alex Ionescu
7909b7a822 - Properly set and check the image notification flag for the process in DbgkCreateThread. Patch by hto.
See issue #1879 for more details.

svn path=/trunk/; revision=25003
2006-11-30 19:52:49 +00:00
Alex Ionescu
9ab9cf7351 - Fix various Dbgk bugs in the DbgUI and Win32 Debug wrapper APIs.
- Win32 Debug test application now works as well as Native one.
- The Dbgk framework still crashes on exceptions, I think.

svn path=/trunk/; revision=25002
2006-11-30 19:38:04 +00:00
Ged Murphy
fb9895a402 allow the Americans their incorrect spellings and add a correct UK resource file ;)
svn path=/trunk/; revision=25001
2006-11-30 19:23:19 +00:00
Alex Ionescu
3087c4530c - Remove Dbgk entries from KrnlFun.c, the subsystem is now implemented, save a few small bugs.
- Congratulations ROS on your 25000th commit!

svn path=/trunk/; revision=25000
2006-11-30 19:04:17 +00:00
Alex Ionescu
6a8ff3fea2 - Update Dbgk test application to test Win32 as well (definable by a compile-time #define).
svn path=/trunk/; revision=24999
2006-11-30 19:02:22 +00:00
Ged Murphy
d7ac88ec6f - implement 'blur' and 'sharpness'
- implement 'contrast' allowing for separate adjustment of RGB colours
- Decorate the contrast / blur function names to make GCC happy. These functions will be merged at a later stage
- implement fading in and out of the floating windows. To activate, hover your cursor over one of the windows, then away again. Only works in Windows, ROS has missing translucency functionality at the moment.

svn path=/trunk/; revision=24998
2006-11-30 19:02:14 +00:00
Alex Ionescu
ad0227d2bf - Fix a bug in DbgkOpenHandles which was causing file handles to get lost.
- Process create, thread create and DLL load events are now working perfectly. See http://www.tinykrnl.org/dbgworking.png

svn path=/trunk/; revision=24997
2006-11-30 18:30:05 +00:00
Alex Ionescu
5d44e00704 - Fix critical I/O bugs in IopParseFile which were causing the file object's device object pointer to be associated to the FSD (File System Device) instead of the Disk Driver, as well as the dereference of the FSD after the Disk Driver had been referenced (causing too many derefs for one, and to many refs for the other). Also fix a bug in IopQueryDeviceInformation which was querying the Disk Driver instead of the FSD.
- This also fixes IopQueryNameFile to properly return the entire name of the file now, instead of only the FSD part (probably fixes a dozen regressions).

svn path=/trunk/; revision=24996
2006-11-30 18:04:22 +00:00
Johannes Anderwald
a76f1549b6 - various msvc compability fixes
- 2 errors remaining:
conio.c(2104) : error C2065: 'CONSOLE_INPUT_MODE_VALID' : undeclared identifier
conio.c(2108) : error C2065: 'CONSOLE_OUTPUT_MODE_VALID' : undeclared identifier

those two constants should be moved into the NDK(declared in wincon.h)...

svn path=/trunk/; revision=24993
2006-11-30 16:48:13 +00:00
Christoph von Wittich
6714832496 check for compiler version
svn path=/trunk/; revision=24992
2006-11-30 15:11:26 +00:00
Johannes Anderwald
55e6bb5471 - fix msvc_clean target
- implement cleaning up def files which are generated by fixdef

svn path=/trunk/; revision=24991
2006-11-30 12:20:40 +00:00
Johannes Anderwald
5d44e0c10f - silence debug prints
- create new generated file with _msvc postfix

svn path=/trunk/; revision=24990
2006-11-30 11:24:46 +00:00
Aleksey Bragin
d59a0757d9 Fix HALMP build
svn path=/trunk/; revision=24989
2006-11-30 11:24:03 +00:00
Alex Ionescu
58809635ad - Raw test app for DbgUi+Dbgk Debugging Subsystem (skeletal, and doesn't test Win32 APIs).
svn path=/trunk/; revision=24988
2006-11-30 09:54:31 +00:00
Alex Ionescu
3b4c74ae10 - Client IDs were OK, I incorrectly assumed they weren't due to the concidence they were equal to the thead/process handles. Actual bug was NtDebugContinue not accepting a valid status value. This is fixed now.
svn path=/trunk/; revision=24987
2006-11-30 09:30:07 +00:00
Alex Ionescu
cca4a71164 - Fix some bugs in NtWaitForDebugEvent which caused debug events to be sent in the wrong order and also more then one event to be sent at the same time (and thus some events skipped).
- Test app now properly receives the "create process" event along with valid process/thread handles and the image base. No file handle sent yet because of the I/O Manager File Object bug.
- There's still a bug in NtContinueDebugEvent due to wrong Client IDs being sent.

svn path=/trunk/; revision=24986
2006-11-30 09:22:07 +00:00
Alex Ionescu
ef1120e56b - Fix DbgkSectionHandleToFileHandle.
- Implement MmGetFileNameForSection.
- There is a bug in ObQueryNameString for file objects, so the full name isn't returned...

svn path=/trunk/; revision=24985
2006-11-30 05:22:20 +00:00
Alex Ionescu
d4cf4b1b58 - Fix a bug in NtWaitForDebugEvent.
- Dbgk kindaaaa works now, as a proof-of-concept more then anything else since some helper Mm routines are missing. Still have some bugs to fix, but connecting, attaching and waiting on events seems not to crash anymore (And returns partially valid data).

svn path=/trunk/; revision=24984
2006-11-30 04:52:22 +00:00
Alex Ionescu
e6463c5a34 - Implement an unhandled case in DbgkSetProcessDebugPort. The event queue is now properly parsed during connect and the event is signaled to start flushing the queue.
- Still got some bugs, but attach works...

svn path=/trunk/; revision=24983
2006-11-30 04:45:01 +00:00
Magnus Olsen
d1e6b52baa forgot this file
svn path=/trunk/; revision=24982
2006-11-30 04:35:10 +00:00
Alex Ionescu
d83fcae7d1 - Forgot to actually initialize Dbgk during system initialization, so any API would crash.
- Fix some stupid bugs in NtCreateDebugObject.
- Add tracing framework and add tracing to all of debug.c.
- Dbgk *almost* works: http://www.tinykrnl.org/dbgworking.png. Here I attach to services.exe and the kernel is sending notifications for all threads and DLLs loaded.

svn path=/trunk/; revision=24981
2006-11-30 04:16:35 +00:00
Alex Ionescu
2a4049fdfc - Implement DbgkPostFakeThreadMessages.
- Add Dbgk-calls to NtMap/UnmapViewOfSection to nodify debugging services of new DLL image load.
- Dbgk support is now skeletally complete, I will write a simple test app to test some functionality and start finding/fixing bugs.

svn path=/trunk/; revision=24980
2006-11-30 01:57:25 +00:00
Eric Kohl
9ceed92dda Move global variables into a struct that is attached to the property sheet page dialog.
svn path=/trunk/; revision=24979
2006-11-29 23:03:18 +00:00
Johannes Anderwald
bb39bd7162 - implement a basic scanning dection algorithm
- please review :P

svn path=/trunk/; revision=24978
2006-11-29 22:49:16 +00:00
Alex Ionescu
b906fae81e - Add profil.c and stub HalStartProfileInterrupt, HalStopProfileInterrupt and HalSetProfileInterval, and export these functions.
- KdComPortInUse is exported by HAL, not kdcom, so make the change.
- Register the KD support routines that kdcom on NT uses and implement most of them (except support for PCI Debug Cards).
- I can now get Windows to recognize the HAL but it freezes during loading (Due to broken IRQL implementation) and WinDBG won't connect to it.

svn path=/trunk/; revision=24977
2006-11-29 22:12:50 +00:00
Magnus Olsen
893be43835 1. adding surface callbacks stub, and activate them.
2. Finish the mix betwin HAL and HEL that we can do for now. 
3. Finish the switch betwin HAL and HEL that we can do for now. 
4. mange activate a DDCALLBACKS stub that was not posible before with wine ddraw.h header. after I wrote a new ddraw.f header for ReactOS, it works to actiavte FlipToGDISurface  HEL callbacks. But it is stub for moment. 

svn path=/trunk/; revision=24976
2006-11-29 22:09:52 +00:00
Johannes Anderwald
93c26f0ab5 - beginning of a def conversion utility
svn path=/trunk/; revision=24975
2006-11-29 21:08:15 +00:00
Alex Ionescu
358a8ed849 - Don't freeze on spurious interrupt.
svn path=/trunk/; revision=24974
2006-11-29 19:23:06 +00:00
Alex Ionescu
37d156c4c8 - Swap the IDT where we should, in KiSystemStartup instead of the freeldr.c hackfile. This, coupled with the previous patch, should make NTLDR-booting even more succesful since interrupts won't crash/be ignored.
svn path=/trunk/; revision=24973
2006-11-29 19:20:17 +00:00
Alex Ionescu
96d593c9ba - Finally figured out a way to make the old HAL IRQ implementation work with the new Ke Interrupt implementation without requiring my new HAL IRQ code (which doesn't work).
- Remove the "deprecated" directory from ntoskrnl since it now truly is.
- Remove KeInitInterrupts hack.
- Remove KiDispatchInterrupt2 export hack from kernel and stop using it from the HAL.
- HAL can now be built/tested with Windows/TinyKRNL since the export hack is gone and interrupts are sent properly through the IDT.
- Remove a bunch of completed krnlfun entries.
- Fix progressbar during bootcd bug.

svn path=/trunk/; revision=24972
2006-11-29 19:13:12 +00:00
Magnus Olsen
495e62c516 fixing more of dections of DDCREATE_HARDWAREONLY and DDCREATE_EMULATIONONLY,
we are now swicting betwin mix HEL and HAL, only HAL, or only HEL. But this is not complete yet

svn path=/trunk/; revision=24971
2006-11-29 19:12:06 +00:00
Magnus Olsen
1d4d4056b4 fixing some of the mix betwin hel and hal. (still not complete)
fixing some of dections of DDCREATE_HARDWAREONLY and DDCREATE_EMULATIONONLY,
we are now swicting betwin mix HEL and HAL, only HAL, or only HEL. But this is not complete yet
adding more comment so i do not forget in startuphal

svn path=/trunk/; revision=24970
2006-11-29 18:51:04 +00:00
Alex Ionescu
9f841739ff - Fix again
svn path=/trunk/; revision=24969
2006-11-29 17:57:56 +00:00
Alex Ionescu
f675588849 - Properly fix boot/build.
svn path=/trunk/; revision=24968
2006-11-29 17:35:15 +00:00
Christoph von Wittich
09f6f9fded skip binutils detection when no build date is returned (fix linux build)
svn path=/trunk/; revision=24967
2006-11-29 15:55:17 +00:00
Johannes Anderwald
b74888ef0d - fix build (commenting out calls)
svn path=/trunk/; revision=24966
2006-11-29 12:36:33 +00:00
Johannes Anderwald
76a4c9efc1 - fix build (commenting out calls)
svn path=/trunk/; revision=24965
2006-11-29 10:19:00 +00:00
Alex Ionescu
d466efb4fb - Fixup all the file headers with proper paths and authors.
- Move sysbus.c contents (a 4 line function) into bus.c.
- Unify initialization code.
- Delete and disable stall execution calibration (currently using the default). Will implement later in a more precise manner (this routine was bizarly setting the MHz of the CPU in the PRCB in some cases...).

svn path=/trunk/; revision=24964
2006-11-29 08:28:20 +00:00
Alex Ionescu
f09a042483 - Implement a working version of KeQueryPerformanceCounter based on the C implementation (without the strange MHZed-based code) and also support updating the performance timer during a clock interrupt, otherwise the value might become stale during the query.
- Update clock interrupt handler to update the performance counter, and also detect if someone changed the clock rate (but don't yet support this).
- Test app from previous revision now works beautifully.

svn path=/trunk/; revision=24963
2006-11-29 08:01:58 +00:00
Alex Ionescu
7cd2e3f498 - There's no such thing as Phase 2 HAL init.
- Only map the 0x0 physical address in HalpReboot when enabling warm-reboot, there's no need to map it during init and keep it allocated during the whole time.

svn path=/trunk/; revision=24962
2006-11-29 07:32:27 +00:00
Alex Ionescu
9b7daac048 - Test for High-Precision Timer (QueryPeformanceCounter). Verifies everything from the Win32 implementation to system call speed to HAL timer accuracy and functionality. Currently fails.
svn path=/trunk/; revision=24961
2006-11-29 07:31:25 +00:00
Johannes Anderwald
20dd3542a2 new / update french translations
See issue #1889 for more details.

svn path=/trunk/; revision=24960
2006-11-29 06:50:14 +00:00
Johannes Anderwald
89ba98d32c new / update french translations
See issue #1889 for more details.

svn path=/trunk/; revision=24959
2006-11-29 06:46:16 +00:00
Christoph von Wittich
4b21ce3c1f Renamed remotely
svn path=/trunk/; revision=24958
2006-11-29 00:38:07 +00:00
Christoph von Wittich
c5cd59c583 fix compilation of RC files
svn path=/trunk/; revision=24957
2006-11-28 23:46:26 +00:00
Magnus Olsen
94ef0f9c47 tempary fix : adding HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session
Manager\Environment\PROCESSOR_ARCHITECTURE =x86 fixing some installer like WinPcap, this should freeldr setup up
not be hardcode here. 

svn path=/trunk/; revision=24956
2006-11-28 22:56:08 +00:00
Johannes Anderwald
1a9cad6cd0 revert commit
svn path=/trunk/; revision=24955
2006-11-28 22:04:31 +00:00
Johannes Anderwald
3e8791008e oops i did it again
svn path=/trunk/; revision=24954
2006-11-28 21:46:54 +00:00
Magnus Olsen
ba66be6c8d start fixing dections of DDCREATE_HARDWAREONLY and DDCREATE_EMULATIONONLY,
we are now swicting betwin mix HEL and HAL, only HAL, or only HEL. But this is not complete yet

svn path=/trunk/; revision=24953
2006-11-28 21:45:51 +00:00
Johannes Anderwald
5acd4a4cc2 - shuffle resource files a bit
- a priori:
- mea culpa 
- hominem est erratum

svn path=/trunk/; revision=24952
2006-11-28 21:44:53 +00:00
Johannes Anderwald
8b802cd4a8 - mea culpa
- hominem est erratum

svn path=/trunk/; revision=24951
2006-11-28 21:30:54 +00:00
Magnus Olsen
b3bfeea3b4 fixing some of the mix betwin hel and hal. (still not complete)
svn path=/trunk/; revision=24950
2006-11-28 21:28:12 +00:00
Johannes Anderwald
2eded5bfd7 - shuffle resource files a bit
svn path=/trunk/; revision=24949
2006-11-28 21:20:25 +00:00
Magnus Olsen
4ce5377130 prepare work for StartDirectDrawHel Now I need write stub for each HEL that we do not have. I slather all this HEL even partly working once, when I did redesign ReactOS ddraw.
svn path=/trunk/; revision=24948
2006-11-28 21:14:30 +00:00
Johannes Anderwald
efd9b25185 - shuffle resource files a bit
svn path=/trunk/; revision=24947
2006-11-28 21:07:03 +00:00
Johannes Anderwald
289358813b - shuffle resource files a bit
svn path=/trunk/; revision=24946
2006-11-28 20:55:29 +00:00
Magnus Olsen
6448d0948e fixing a bug in Create_DirectDraw, did call on Main_DirectDraw_Initialize, but that function have been rewriten, and did not working as the old one.
svn path=/trunk/; revision=24945
2006-11-28 20:52:22 +00:00
Johannes Anderwald
40c598fe5b - shuffle resource files a bit
svn path=/trunk/; revision=24944
2006-11-28 20:48:52 +00:00
Johannes Anderwald
adebc4d2f4 - shuffle resource files a bit
svn path=/trunk/; revision=24943
2006-11-28 20:39:07 +00:00
Johannes Anderwald
50d5129634 - shuffle resource files a bit
svn path=/trunk/; revision=24942
2006-11-28 20:26:23 +00:00
Magnus Olsen
eefba2cf76 fixing some of the mix betwin hel and hal. (still not complete)
svn path=/trunk/; revision=24941
2006-11-28 20:22:02 +00:00
Johannes Anderwald
1d46571e84 - shuffle resource files a bit
svn path=/trunk/; revision=24940
2006-11-28 20:19:18 +00:00
Johannes Anderwald
79d3164089 - move resource files
svn path=/trunk/; revision=24939
2006-11-28 20:06:41 +00:00
Johannes Anderwald
a4b85228ed - add uk translation
- move resource files
See issue #1723 for more details.

svn path=/trunk/; revision=24938
2006-11-28 19:47:40 +00:00
Thomas Bluemel
2f38d6fab0 Fix wrong locale names...
svn path=/trunk/; revision=24937
2006-11-28 19:46:40 +00:00
Thomas Bluemel
9d871f4c4c Fix wrong locale names...
svn path=/trunk/; revision=24936
2006-11-28 19:44:41 +00:00
Thomas Bluemel
e7c19466ec Fix wrong locale names...
svn path=/trunk/; revision=24935
2006-11-28 19:42:15 +00:00
Thomas Bluemel
9a0505b7fa Fix wrong locale names...
svn path=/trunk/; revision=24934
2006-11-28 19:40:40 +00:00
Christoph von Wittich
48de8c59f9 -fix some linking issues
-generate import libraries

svn path=/trunk/; revision=24933
2006-11-28 19:40:03 +00:00
Thomas Bluemel
203483385f Fix wrong locale names...
svn path=/trunk/; revision=24932
2006-11-28 19:39:31 +00:00
Johannes Anderwald
7ad0b4b92d - add uk translation
- move resource files
See issue #1723 for more details.

svn path=/trunk/; revision=24931
2006-11-28 19:35:42 +00:00
Johannes Anderwald
e1878ebc5b - add uk translation
See issue #1723 for more details.

svn path=/trunk/; revision=24930
2006-11-28 19:21:26 +00:00
Johannes Anderwald
532d616363 - add uk translation
- move resource files
See issue #1723 for more details.

svn path=/trunk/; revision=24929
2006-11-28 19:17:12 +00:00
Johannes Anderwald
240e63b0ef -add uk translation
- move resource files
See issue #1723 for more details.

svn path=/trunk/; revision=24928
2006-11-28 19:07:27 +00:00
Johannes Anderwald
410d018382 - add italian translation
See issue #1786 for more details.

svn path=/trunk/; revision=24927
2006-11-28 18:46:31 +00:00
Johannes Anderwald
fde384536e - add italian translation
- add missing include for german translation
See issue #1791 for more details.

svn path=/trunk/; revision=24926
2006-11-28 18:40:06 +00:00
Johannes Anderwald
c4541ac0fa - move resource files
- add italian translation by  Gabriel Ilardi
See issue #1787 for more details.

svn path=/trunk/; revision=24925
2006-11-28 18:26:23 +00:00
Johannes Anderwald
e152530080 - move resource files
- add italian translation by  Gabriel Ilardi
See issue #1788 for more details.

svn path=/trunk/; revision=24924
2006-11-28 18:14:07 +00:00
Johannes Anderwald
5ff05c3a47 - italian translation by gabrielilardi
See issue #1789 for more details.

svn path=/trunk/; revision=24923
2006-11-28 17:41:41 +00:00
Johannes Anderwald
f852d57f69 - add italian translation
- by gabrielilardi
See issue #1793 for more details.

svn path=/trunk/; revision=24922
2006-11-28 17:34:58 +00:00
Johannes Anderwald
5f20736785 -fix multiline issue in the patch
See issue #1794 for more details.

svn path=/trunk/; revision=24921
2006-11-28 17:30:35 +00:00
Johannes Anderwald
475edbefd9 - "Corrected some grammar issues, translated de license part, and corrected
the menu letter shortcuts to make them match those used in windows."
- patch by  gabrielilardi
See issue #1794 for more details.

svn path=/trunk/; revision=24920
2006-11-28 17:25:38 +00:00
Johannes Anderwald
d3d87084ce - set correct svn properties
svn path=/trunk/; revision=24919
2006-11-28 17:15:44 +00:00
Johannes Anderwald
38a6892741 - add french translation
- rename resource files

See issue #1813 for more details.

svn path=/trunk/; revision=24918
2006-11-28 17:09:02 +00:00
Johannes Anderwald
f065b96907 - devmgmt German translation
See issue #1846 for more details.

svn path=/trunk/; revision=24917
2006-11-28 16:58:10 +00:00
Johannes Anderwald
e7cf9c20e5 - greek translation by Apal
- rename language files

See issue #1853 for more details.

svn path=/trunk/; revision=24916
2006-11-28 16:38:14 +00:00
Johannes Anderwald
8254c46300 - greek translation by Apal
See issue #1853 for more details.

svn path=/trunk/; revision=24915
2006-11-28 16:26:29 +00:00
Johannes Anderwald
b45fddc1f3 - greek translation by Apal
See issue #1853 for more details.

svn path=/trunk/; revision=24914
2006-11-28 16:22:43 +00:00
Johannes Anderwald
be4a027434 - insert resource file alphabetically
svn path=/trunk/; revision=24913
2006-11-28 16:20:30 +00:00
Johannes Anderwald
f8b22377a7 - czech translation for msconfig
- translation by preston
See issue #1887 for more details.

svn path=/trunk/; revision=24912
2006-11-28 16:14:29 +00:00
Johannes Anderwald
9342740f27 - fixed encoding in czech lang rc file for notepad
- patch by preston
See issue #1886 for more details.

svn path=/trunk/; revision=24911
2006-11-28 16:09:22 +00:00
Alex Ionescu
84348d0f29 - Cleanup more code in the deprecated IRQ implementation and use the newer implementations oF KeInitializeInterrupt and KeDisconnectInterrupt. Will allow easier debugging oF the HAL IRQ regression with the new, unused implementation.
svn path=/trunk/; revision=24910
2006-11-28 15:52:54 +00:00
Aleksey Bragin
54306c43a2 Wine sync of msi.dll
Warning: msi_ros.diff needs to be updated with new sql.tab.c and sql.tab.h before performing any future autosyncs!

Log:
22 hours ago Mike McCormack msi: Use MSI_QueryGetRecord in ACTION_AppSearchReg.
22 hours ago Mike McCormack msi: Use MSI_QueryGetRecord in ACTION_AppSearchComponents.
22 hours ago Mike McCormack msi: Use MSI_QueryGetRecord in ACTION_AppSearchGetSigna ...
22 hours ago Mike McCormack msi: Use MSI_IterateRecords when cloning properties.
22 hours ago Francois Gouget msi: Add a Portuguese translation (contributed by Ameri ... 
4 days ago Francois Gouget Replace SUBLANG_DEFAULT with the specific SUBLANG_XXX ... 
6 days ago Mike McCormack msi: Treat the SourceDir folder the same as TargetDir. 
6 days ago Mike McCormack msi: Load all folders in one query, rather one per ... 
6 days ago Mike McCormack msi: Only wait for custom actions that don't have msidb ... 
6 days ago Mike McCormack msi: Split process_action_return_value into two differe ... 
6 days ago Mike McCormack msi: Remove an unused parameter. tree | commitdiff 
6 days ago Mike McCormack msi: Fix use of integer fields in MsiFormatRecord. 
6 days ago Mike McCormack msi: Test MsiRecordGetString on an integer record field ... 
6 days ago Mike McCormack msi: Add a test for formatting records with strings. 
6 days ago Mike McCormack msi: Don't access the list of controls after the dialog ... 
6 days ago Mike McCormack msi: Create a function to free control data. 
7 days ago Mike McCormack msi: Fix an access after freeing memory. 
8 days ago Mike McCormack msi: Split msi_set_sourcedir_props into a separate ... 
8 days ago Mike McCormack msi: Spelling fixes. 
8 days ago Mike McCormack msi: Add another test for the SourceDir property. 
8 days ago Mike McCormack msi: Clean up parameters of msi_media_get_disk_info(). 
8 days ago Mike McCormack msi: Fix some memory leaks.
8 days ago Mike McCormack msi: Don't leak row handles.
11 days ago Mike McCormack msi: Fix a memory leak in load_folder().
11 days ago Mike McCormack msi: Remove unnecessary includes.
11 days ago Mike McCormack msi: Remove a level of indent in resolve_folder().
11 days ago Mike McCormack msi: Add a test showing the _Properties table is a ...
11 days ago Mike McCormack msi: Add a test showing which tables are special.
11 days ago Mike McCormack msi: Remove some redundant else statements.
2006-11-14 Mike McCormack msi: Split MSI_CreatePackage into two functions.
2006-11-14 Mike McCormack msi: Delete the tempfile created by GetTempFileName.
2006-11-14 Mike McCormack msi: Defer package deletion until after the database ... 
2006-11-14 Mike McCormack msi: Remove track_tempfile()'s unused 2nd parameter.
2006-11-14 Mike McCormack msi: Always delete temp files after creating them.
2006-11-14 Mike McCormack msi: Print a message if we fail to delete a file.
2006-11-14 James Hawkins msi: Notify the external UI handler when changing media.
2006-11-13 Mike McCormack msi: Only free a string in one place.
2006-11-13 Mike McCormack msi: Fix error handling.
2006-11-13 Mike McCormack msi: Track temp files as soon as they are created.
2006-11-13 Mike McCormack msi: Fail if we can't write out a temporary file.
2006-11-13 Mike McCormack msi: Fix an uninitialized variable in the test cases.
2006-11-13 Mike McCormack msi: Clean upstore_binary_to_temp.
2006-11-13 Francois Gouget Assorted spelling fixes.
2006-11-13 Francois Gouget msi: assert.h is not a local header (spotted by winapi ...
2006-11-13 Paul Vriens msi: Fix typo's (Coverity).
2006-11-13 James Hawkins msi: Fix a heap corruption bug by resizing the src ...
2006-11-10 Mike McCormack msi: Only log the Action, as it's the same as ActionReq ...
2006-11-10 Mike McCormack msi: Check whether the component is enabled first.
2006-11-10 Mike McCormack msi: Component attributes are bitmasks.
2006-11-09 Eric Pouech msi: Fixed bogus A -> W conversion. 
2006-11-09 Eric Pouech msi: Don't call PropVariantClear on uninitialized variants. 
2006-11-09 James Hawkins msi: Add support for continuous cabinets. 
2006-11-09 James Hawkins msi: Extract cabinets in ACTION_InstallFiles. ready ...
2006-11-09 James Hawkins msi: Move the file sequence check out of ready_media ... 
2006-11-09 James Hawkins msi: Factor out load_media_info from ready_media_for ...
2006-11-09 James Hawkins msi: Use disk_prompt from the media_info structure ... 
2006-11-09 James Hawkins msi: Only add text to the scroll control if text is ... 
2006-11-08 Stefan Leichter msi: Added stub for MsiGetFeatureValidStatesA/W. 
2006-11-08 James Hawkins msi: Factor out download_remote_cabinet and reuse extra ... 
2006-11-08 James Hawkins msi: Store the base URL of the MSI package if it is ... 
2006-11-08 James Hawkins msi: Factor copy_install_file out of ACTION_InstallFiles. 
2006-11-08 James Hawkins msi: Factor schedule_install_files out of ACTION_Instal ... 
2006-11-08 James Hawkins msi: Model the media_info structure members after the ... 
2006-11-08 James Hawkins msi: Use msi_alloc_zero instead of a helper function ... 
2006-11-08 James Hawkins msi: Use the file's component instead of passing an ... 
2006-11-08 James Hawkins msi: Use the media_info structure instead of passing ... 
2006-11-08 James Hawkins msi: Add more tests for installing from cabinets. 
2006-11-08 Mike McCormack msi: Fix a memory leak.
2006-11-07 Francois Gouget Assorted spelling fixes. 
2006-11-07 Mike McCormack msi: By default, install components locally.
2006-11-07 Mike McCormack msi: Fix WHERE IS (NOT) NULL queries. 
2006-11-07 Mike McCormack msi: Fix regression tests failing on Windows. 
2006-11-07 Mike McCormack msi: Split ACTION_CostFinalize into two functions. 
2006-11-06 Alexandre Julliard msi: Fixed definition of the MSIITERHANDLE type. 
2006-11-02 Mike McCormack msi: Avoid a memory leak by freeing actions scripts ... 
2006-11-02 Mike McCormack msi: Fix a memory leak. 
2006-11-02 Mike McCormack msi: Fix a handle leak in the tests. 
2006-11-01 Mike McCormack msi: Fix a typo. 
2006-11-01 Mike McCormack msi: Don't print traces for addref and release. 
2006-11-01 Mike McCormack msi: Search the patch package for source cabinet files. 
2006-10-31 Mike McCormack msi: Add a test showing a join doesn't need a WHERE ... 
2006-10-31 Mike McCormack msi: Use a simpler algorithm for joins. 
2006-10-31 Mike McCormack msi: Test the data returned by join queries in one ... 
2006-10-31 Mike McCormack msi: Remove tokens that aren't valid for MSI SQL. 
2006-10-31 Mike McCormack msi: Fix a trace. 
2006-10-31 Mike McCormack msi: Fix the ALTER and FREE keywords in the tokenizer. 
2006-10-31 Mike McCormack msi: Mark components with missing or outdated files ... 
2006-10-30 Mike McCormack msi: Split ACTION_UpdateInstallStates into two separate ... 
2006-10-27 James Hawkins msi: Extract cabinets based on DiskId, not LastSequence. 
2006-10-27 James Hawkins msi: Test the order in which cab files are handled ... 
2006-10-27 James Hawkins msi: Implement handling for the ErrorDialog and use ... 
2006-10-27 Mike McCormack msi: Avoid crashing if writeout_cabinet_stream fails.  
2006-10-27 Mike McCormack msi: Remove redundant null checks before MSI_EvaluateCo ... 
2006-10-26 Mike McCormack msi: Fix the join algorithm. 
2006-10-26 Mike McCormack msi: Allow UPDATE queries without a condition. 
2006-10-26 Mike McCormack msi: Update tables using records, not integer by integer. 
2006-10-26 Mike McCormack msi: Remove some unused functions. 
2006-10-26 Mike McCormack msi: Fixed the UPDATE query to work with explicit values. 
2006-10-26 Mike McCormack msi: Use msi_feature_set_state and msi_component_set ... 
2006-10-26 Mike McCormack msi: Create macro functions to set feature and componen ... 
2006-10-26 James Hawkins msi: Add tests for the UPDATE sql command. 
2006-10-25 Alexandre Julliard msi: Properly handle negative coordinates for mouse ...
2006-10-24 Mikołaj Zalewski resources: Change Dutch sublanguage code to SUBLANG ...
2006-10-24 Mikołaj Zalewski resources: Change German sublanguage code to SUBLANG ...
2006-10-24 Mike McCormack msi: Split code to get a file's verion into a separate ...
2006-10-24 James Hawkins msi: Add tests for installing from continuous cabinets. 
2006-10-24 James Hawkins msi: Allow more customization of install test files.
2006-10-24 James Hawkins msi: Remove unused function pointer and definitions.
2006-10-24 James Hawkins msi: Remove two unnecessary install tables. tree | commitdiff 
2006-10-24 James Hawkins msi: Add support for localizable strings in MsiDatabase ... 

svn path=/trunk/; revision=24909
2006-11-28 11:21:39 +00:00
Alex Ionescu
088b3cd98e - Fix prototype/definition of HalCalibratePerformanceCounter and properly implement it.
- Implement KeStallExecutionProcessor in its own assembly file isntead of using inlined GCC assembly, and align the loop to 16 bytes for more streamlined execution speed.
- Mask out clock interrupt during Phase 0 and Initialize clock interrupt on HAL Phase 1. This enables the HAL clock interrupt which was already written.
- Make the clock interrupt use HalpCurrentTimeIncrement instead of hardcoding a value.
- Re-implement HalpInitializeClock to allow for dynamic increments from 1ms to 15ms with appropriate rollovers and to call KeSetTimeIncrement to update timer values with the kernel.
- Implement HalSetTimeIncrement to allow changing the clock ms increment (but this isn't yet respected).
- Remove system/runtime update routines from the deprecated IRQ implementation and use the newer assembly ones already written, since we're now using the HAL clock interrupt. Remove other unused code.
- Fix more bugs in new hal IRQ implementation (that still isn't used yet due to regressions) and implement HalClearSoftwareInterrupt.

svn path=/trunk/; revision=24908
2006-11-28 08:11:14 +00:00
James Tabor
7df718a150 Add Wine defines for disk and memory meta files.
svn path=/trunk/; revision=24907
2006-11-28 07:47:07 +00:00
James Tabor
c468138553 Fixup example code and add the new helper function.
svn path=/trunk/; revision=24906
2006-11-27 22:04:17 +00:00
James Tabor
00b0562f90 Add a help function for gdi32.
svn path=/trunk/; revision=24905
2006-11-27 21:58:46 +00:00
Thomas Bluemel
cd70afcfd9 Forgot to commit a file
svn path=/trunk/; revision=24904
2006-11-27 21:43:53 +00:00
Thomas Bluemel
f6481b3da6 Rename resource files to match the locale names
svn path=/trunk/; revision=24903
2006-11-27 21:42:05 +00:00
Thomas Bluemel
2feb77e790 Rename resource files to match the locale names
svn path=/trunk/; revision=24902
2006-11-27 21:41:08 +00:00
Thomas Bluemel
e26a32ec7a Rename resource files to match the locale names
svn path=/trunk/; revision=24901
2006-11-27 21:39:30 +00:00
Thomas Bluemel
4fd1b81a3b Rename resource files to match the locale names
svn path=/trunk/; revision=24900
2006-11-27 21:38:23 +00:00
Thomas Bluemel
295c893759 Rename resource files to match the locale names
svn path=/trunk/; revision=24899
2006-11-27 21:37:22 +00:00
Thomas Bluemel
0d5d499f89 Rename resource files to match the locale names
svn path=/trunk/; revision=24898
2006-11-27 21:36:36 +00:00
Thomas Bluemel
eac3b60726 Rename resource files to match the locale names
svn path=/trunk/; revision=24897
2006-11-27 21:34:53 +00:00
Thomas Bluemel
c427824f3c Rename resource files to match the locale names
svn path=/trunk/; revision=24896
2006-11-27 21:33:31 +00:00
Thomas Bluemel
8d2259c84e Rename resource files to match the locale names
svn path=/trunk/; revision=24895
2006-11-27 21:30:49 +00:00
Thomas Bluemel
6dc2318fab Rename resource files to match the locale names
svn path=/trunk/; revision=24894
2006-11-27 21:29:29 +00:00
Thomas Bluemel
4f4ea68c99 Rename resource files to match the locale names
svn path=/trunk/; revision=24893
2006-11-27 21:27:34 +00:00
Thomas Bluemel
491641031d Rename resource files to match the locale names
svn path=/trunk/; revision=24892
2006-11-27 21:26:32 +00:00
Thomas Bluemel
42acbb95ed Rename resource files to match the locale names
svn path=/trunk/; revision=24891
2006-11-27 21:23:28 +00:00
Thomas Bluemel
376e78e608 Rename resource files to match the locale names
svn path=/trunk/; revision=24890
2006-11-27 21:21:47 +00:00
Thomas Bluemel
d845de7264 Rename resource files to match the locale names
svn path=/trunk/; revision=24889
2006-11-27 21:20:32 +00:00
Thomas Bluemel
72b75ef12d Rename resource files to match the locale names
svn path=/trunk/; revision=24888
2006-11-27 21:19:22 +00:00
Thomas Bluemel
867a0841ea Rename resource files to match the locale names
svn path=/trunk/; revision=24887
2006-11-27 21:15:38 +00:00
Thomas Bluemel
c4f03d4578 Rename resource files to match the locale names
svn path=/trunk/; revision=24886
2006-11-27 21:12:39 +00:00
Thomas Bluemel
9b839341b4 Rename resource files to match the locale names
svn path=/trunk/; revision=24885
2006-11-27 21:05:23 +00:00
Thomas Bluemel
200fbf762c Rename resource files to match the locale names
svn path=/trunk/; revision=24884
2006-11-27 20:37:42 +00:00
Thomas Bluemel
48dcba37a6 Rename resource files to match the locale names
svn path=/trunk/; revision=24883
2006-11-27 20:36:29 +00:00
Thomas Bluemel
7fd803c5ec Rename resource files to match the locale names
svn path=/trunk/; revision=24882
2006-11-27 20:35:10 +00:00
Thomas Bluemel
4476ee8796 Rename resource files to match the locale names
svn path=/trunk/; revision=24881
2006-11-27 20:34:01 +00:00
Thomas Bluemel
c4fa90de45 Rename resource files to match the locale names
svn path=/trunk/; revision=24880
2006-11-27 20:20:24 +00:00
Thomas Bluemel
b4d2f5f827 Rename resource files to match the locale names
svn path=/trunk/; revision=24879
2006-11-27 20:16:28 +00:00
Thomas Bluemel
cd76482b2b Rename resource files to match the locale names
svn path=/trunk/; revision=24878
2006-11-27 20:11:02 +00:00
Thomas Bluemel
781f5d2012 Rename resource files to match the locale names
svn path=/trunk/; revision=24877
2006-11-27 20:08:27 +00:00
Thomas Bluemel
e0cd86ea82 Rename resource files to match the locale names
svn path=/trunk/; revision=24876
2006-11-27 20:06:07 +00:00
Thomas Bluemel
fd68af87b0 Rename resource files to match the locale names
svn path=/trunk/; revision=24875
2006-11-27 19:55:14 +00:00
Thomas Bluemel
7ab2735513 Rename resource files to match the locale name
svn path=/trunk/; revision=24874
2006-11-27 19:35:37 +00:00
Magnus Olsen
d94aae38eb fixing a old bug in ibrowers I got irrate so long time now,
when u pressing on letter S it goes to full screen, but if I looked at the rc file
it is intend go to fullscreen when u press on Ctrl+S, fixed so it goes to fullscreen when u pressing Ctrl+S

svn path=/trunk/; revision=24873
2006-11-27 19:34:31 +00:00
Alex Ionescu
139ff99f50 - Cleanup HAL initialization code:
- Initailize the clock increment separately from the calibration of stall execution.
  - Raise IRQL to the current IRQL (basically a no-op) to force a standard PIC state. Will be needed for the new IRQ implementation when it'll work.
  - Scan commandline for PCILOCK and BREAK parameters during hal initalization. The former is not supported, only saved, while the latter causes a breakpoint just like the windows implemetnation.
  - Get the bus type (ISA, EISA, MCA) on startup to support bootup from NTLDR.
  - Validate HAL to match the kernel (checked kernel and UP kernel). Also make the kernel set the proper PRCB flags for this.
  - Initialize the CMOS lock.
  - Setup HAL Dispatch table and enable call to HalQuerySystemInformation in the kernel since it now works.
- Rewrite bus functions to get rid of the idea of "Bus handlers". This is a deprecated NT4 concept that ReactOS copied and only slows down performance.
  - Support custom private dispatch table PCI functions.
  - Provide default PCI functions.
  - Rewrite PCI functions using clean structures and code instead of magic macros and undocumented magic values. Use simple macros to generate PCI bus operations for write/read uchar, ushort and ulong.
  - Simplify function definitions for CMOS access.
  - Unify some dupli/tripi-cated code.
- Fix definition of HaliSetSystemInformation.
- Fix definitions of Bus Handler functions (add NTAPI).
- Add official BUS_HANDLER definition to NDK.
- Fix definition of HAL_PRIVATE_DISPATCH.
- Remove some derecated code (isa.c and mca.c).

svn path=/trunk/; revision=24872
2006-11-27 19:26:31 +00:00
Christoph von Wittich
5de49d3922 -create import libraries
-change target value to match the new C::B one (C::B r3286 SVN)
-simplify cpl debugging command

svn path=/trunk/; revision=24871
2006-11-27 19:24:10 +00:00
Alex Ionescu
3c8201f006 - Fix some bugs in the newer IRQL implementation for the HAL (that's still not used because it caused regressions).
svn path=/trunk/; revision=24870
2006-11-27 19:16:24 +00:00
Magnus Olsen
029d10b72a Patch from mail at colinfinck dot de (Colin Finck) for freeldr
See issue #1856 for more details.

svn path=/trunk/; revision=24859
2006-11-27 19:06:22 +00:00
Magnus Olsen
c2c4ceff11 Patch from hto@mail dot cnt dot ru for sysdm
See issue #1856 for more details.

svn path=/trunk/; revision=24857
2006-11-27 19:04:25 +00:00
Magnus Olsen
5d08bbb40d forget adding the french .rc file in early commit thx hpussin
svn path=/trunk/; revision=24856
2006-11-27 18:59:08 +00:00
Thomas Bluemel
1ae072c165 Fix typos (this is en-US)
svn path=/trunk/; revision=24855
2006-11-27 18:55:37 +00:00
Magnus Olsen
d85b9807fb patch from Simon Hanae mail : ja731j at ja731j dot homeip dot net, part 2 of 2
See issue #1876 for more details.

svn path=/trunk/; revision=24854
2006-11-27 17:05:59 +00:00
Magnus Olsen
fc374e1953 patch from Simon Hanae mail : ja731j at ja731j dot homeip dot net, part 1 of 2
See issue #1876 for more details.

svn path=/trunk/; revision=24853
2006-11-27 17:04:57 +00:00
Magnus Olsen
0460202c9a french translate by Heis Spiter heis_spiter at hotmail dot com
See issue #1883 for more details.

svn path=/trunk/; revision=24852
2006-11-27 16:53:24 +00:00
Magnus Olsen
74cca509ff french translate by Heis Spiter heis_spiter at hotmail dot com
See issue #1884 for more details.

svn path=/trunk/; revision=24851
2006-11-27 16:49:24 +00:00
Magnus Olsen
9e2ffe9e12 fixing a small bug : LTEXT, GROUPBOX, DEFPUSHBUTTON, PUSHBUTTON, ICON, EDITTEXT, LISTBOX, COMBOBOX (function DialogCMDBuild1) adding a emty style tag to thuse xml syntax.
fixing a small bug : Rename MENUSEPARATOR to MENUITEMSEPERATOR
Thanks frik85 

svn path=/trunk/; revision=24850
2006-11-27 15:45:23 +00:00
Thomas Bluemel
4e4647e514 Fix using a pointer to a temporary variable outside it's scope in RtlCreateUserProcess
svn path=/trunk/; revision=24849
2006-11-27 14:26:48 +00:00
Aleksey Bragin
f8446ca7cb i386BootDrive and i386BootPartition are ULONGs, and before saving a byte value they must be zeroed.
Thanks to Magnus for identifying the problem.

svn path=/trunk/; revision=24848
2006-11-26 21:46:45 +00:00
Thomas Bluemel
dbf2ea6e40 Fix GCC4 warnings
svn path=/trunk/; revision=24847
2006-11-26 21:44:57 +00:00
The Wine Synchronizer
6e7d40997d Autosyncing with Wine HEAD
svn path=/trunk/; revision=24846
2006-11-26 21:36:50 +00:00
Christoph von Wittich
6434224fea handle IFable data
svn path=/trunk/; revision=24845
2006-11-26 21:36:40 +00:00
The Wine Synchronizer
a4e979ee9c Autosyncing with Wine HEAD
svn path=/trunk/; revision=24844
2006-11-26 21:19:02 +00:00
The Wine Synchronizer
a3a5c88936 Autosyncing with Wine HEAD
svn path=/trunk/; revision=24843
2006-11-26 21:05:00 +00:00
The Wine Synchronizer
aa9927ced4 Autosyncing with Wine HEAD
svn path=/trunk/; revision=24842
2006-11-26 21:04:10 +00:00
Johannes Anderwald
b0a023a88a -only include files where if Property == value || If not Property != value
- example win32k.rbuild:
<ifnot property="ARCH" value="i386">                      
                      <file>dib24bppc.c</file>
                      <file>dib32bppc.c</file>
</ifnot> 

svn path=/trunk/; revision=24841
2006-11-26 20:05:42 +00:00
Christoph von Wittich
547b4bb0d2 compile asm files
svn path=/trunk/; revision=24840
2006-11-26 18:27:21 +00:00
Christoph von Wittich
4790fb5a3c use correct path for import libs
svn path=/trunk/; revision=24839
2006-11-26 16:57:25 +00:00
Christoph von Wittich
205512d48a -properly handle dependencies
-compile startup libs with -Wno-main

svn path=/trunk/; revision=24838
2006-11-26 14:20:55 +00:00
Aleksey Bragin
7a692fb597 Dmitry G. Gorbachev: Fix possible buffer overflow in FreeLdr
See issue #1881 for more details.

svn path=/trunk/; revision=24837
2006-11-26 13:37:50 +00:00
Eric Kohl
62d7a61d53 - Move global variables into a struct that is attached to the property sheet page dialog.
- Remove trailing whitespace and tabs.
- Clean up the source code.

svn path=/trunk/; revision=24836
2006-11-26 12:47:56 +00:00
Magnus Olsen
756f987da0 Patch from hto@mail dot cnt dot ru was commited in r24834 for the mouse.c changes.
I incress the counter to 500 so I manger getting his patch working even on my old p3
I got the mouse back on my p3 now. 


See issue #1837 for more details.

svn path=/trunk/; revision=24835
2006-11-26 10:56:02 +00:00
Magnus Olsen
aeea883a59 1. revers 24831 to 24833 userenv.h does not exists in ms psdk and shall move to folder include/ndk or include/reactos
2. do not create new private header, we already have one, but it is in wrong folder. 
3. This header should have been move long time ago. 
4. do not doing #include "userenv-priv.h" it will not found the header in syssetup/install
 

svn path=/trunk/; revision=24834
2006-11-26 10:39:50 +00:00
Johannes Anderwald
14d9f47180 - finally clean up userenv.h header
svn path=/trunk/; revision=24833
2006-11-26 10:10:29 +00:00
Johannes Anderwald
d725d33ed4 - include userenv base in order to use private userenv functions
svn path=/trunk/; revision=24832
2006-11-26 10:09:14 +00:00
Johannes Anderwald
a2e0d65ded - move ReactOS userenv only functions to userenv-priv.h
- set _USERENV_ when building

svn path=/trunk/; revision=24831
2006-11-26 10:08:11 +00:00
Magnus Olsen
eeaa0bd981 [AUDIT]
No suspicious code detected in mouse.c, the code is quite understandable and have comments
compare it also with ms ddk and no code was taken from it. 

svn path=/trunk/; revision=24830
2006-11-26 08:55:05 +00:00
James Tabor
313154b380 Fixed iType for non and file meta dc.
svn path=/trunk/; revision=24829
2006-11-26 00:53:07 +00:00
James Tabor
ad91a665c4 Add the Enhmetafile and Metafiledc structs.
svn path=/trunk/; revision=24828
2006-11-26 00:37:40 +00:00
James Tabor
e09513a12e Add the pDc_Attr to the main DC object. It will become a internal structure to Win32k.
svn path=/trunk/; revision=24827
2006-11-26 00:24:56 +00:00
Johannes Anderwald
0b25c86f26 -fix a critical bug in SamGetUserSid
"I wonder how this all has worked with this..." :o)

svn path=/trunk/; revision=24826
2006-11-25 22:46:03 +00:00
James Tabor
8076cb9096 Example coding for Enhance Meta File and Meta DC implementation.
- Add printing.c
- Add a new CreateEnhMetaFileW

svn path=/trunk/; revision=24825
2006-11-25 20:21:22 +00:00
Magnus Olsen
2607f10229 get rid of some of vs warings when we are using our own objidl, it did forget #undef some interface
svn path=/trunk/; revision=24824
2006-11-25 14:43:29 +00:00
Magnus Olsen
d3d8e81607 update the def file
svn path=/trunk/; revision=24823
2006-11-25 13:45:36 +00:00
Magnus Olsen
b8583857a7 Update dejavu font from 2.10 to 2.12, see the change log for dejavu for more info
Charter changes                                          Sans               Serif              Sans Mono          
old    : U+0180 Latin Extended-B                         100% (208/208)      89% (187/208)      57% (119/208)
update : U+0180 Latin Extended-B                         100% (208/208)      90% (188/208)      57% (119/208) 

old    : U+0400 Cyrillic                                  97% (249/255)      73% (188/255)      66% (170/255)
update : U+0400 Cyrillic                                  98% (251/255)      74% (190/255)      66% (170/255)    

old    : U+0500 Cyrillic Supplement                       90% (18/20)            (0/20)             (0/20)       
update : U+0500 Cyrillic Supplement                      100% (20/20)            (0/20)             (0/20)

old    : U+1400 Unified Canadian Aboriginal Syllabics         (0/630)            (0/630)            (0/630)      
update : U+1400 Unified Canadian Aboriginal Syllabics     23% (150/630)          (0/630)            (0/630)    

old    : U+2000 General Punctuation                       82% (87/106)       44% (47/106)       37% (40/106)     
update : U+2000 General Punctuation                       82% (87/106)       45% (48/106)       38% (41/106)     

old    : U+2100 Letterlike Symbols                        56% (45/79)         7% (6/79)          7% (6/79)       
update : U+2100 Letterlike Symbols                        59% (47/79)         7% (6/79)          7% (6/79) 

old    : U+2600 Miscellaneous Symbols                     99% (175/176)      17% (30/176)       84% (149/176)        
update : U+2600 Miscellaneous Symbols                    100% (176/176)      17% (30/176)       84% (149/176)   

svn path=/trunk/; revision=24822
2006-11-25 08:36:45 +00:00
Christoph von Wittich
95433bb0e5 add mingw, mingw-common and msvcrt libs where needed
svn path=/trunk/; revision=24821
2006-11-24 13:57:20 +00:00
Christoph von Wittich
5b88a78c5b -added cpl applet debugging support
-added naive target support (custom C::B version needed atm)
-handle linker options like baseaddress, entrypoint, stdlib and alignment
-use def files when linking dlls

svn path=/trunk/; revision=24820
2006-11-24 10:46:14 +00:00
James Tabor
6499dbb80f Add Enhanced Meta File header pointer to local DC structure.
svn path=/trunk/; revision=24819
2006-11-24 08:53:59 +00:00
Martin Fuchs
5ef0f18fee update TODO lisi
svn path=/trunk/; revision=24818
2006-11-24 07:21:29 +00:00
Magnus Olsen
97c3a7658a adding new ddraw.h header. we are delete wine ddraw.h header and using my header I wrote instead.
svn path=/trunk/; revision=24817
2006-11-23 21:49:29 +00:00
Magnus Olsen
4c93f74b77 adding some new ddk header, the info are base/got from windows xp ddk kit version 3790.1830
svn path=/trunk/; revision=24816
2006-11-23 20:19:54 +00:00
Magnus Olsen
5a943e65b8 adding two new ddk header, the info are base/got from windows xp ddk kit version 3790.1830
svn path=/trunk/; revision=24815
2006-11-23 20:13:17 +00:00
Magnus Olsen
708c9d5c71 adding one new ddk header, the info are base/got from windows xp ddk kit version 3790.1830
svn path=/trunk/; revision=24814
2006-11-23 20:09:07 +00:00
Magnus Olsen
2700e7a12c adding two new ddk header, the info are base/got from windows xp ddk kit version 3790.1830
svn path=/trunk/; revision=24813
2006-11-23 20:06:14 +00:00
Magnus Olsen
2d36c9b726 update : ddk header, the info are base/got from windows xp ddk kit version 3790.1830
svn path=/trunk/; revision=24812
2006-11-23 19:48:12 +00:00
Magnus Olsen
3ffeae3d50 update : ddk header, the info are base/got from windows xp ddk kit version 3790.1830
svn path=/trunk/; revision=24811
2006-11-23 18:49:17 +00:00
Magnus Olsen
5995f74c17 adding three new ddk header, the info are base/got from windows xp ddk kit version 3790.1830
svn path=/trunk/; revision=24810
2006-11-23 18:41:41 +00:00
Magnus Olsen
cc4a3eac21 1. adding two new ddk header, the info are base/got from windows xp ddk kit version 3790.1830
2. change bit of layout in usbkern

svn path=/trunk/; revision=24809
2006-11-23 18:38:19 +00:00
Magnus Olsen
dfeb2d6b14 adding two new ddk header, the info are base/got from windows xp ddk kit version 3790.1830
svn path=/trunk/; revision=24808
2006-11-23 18:35:38 +00:00
Aleksey Bragin
46e065bf4e Partial shell32 wine-sync
svn path=/trunk/; revision=24807
2006-11-23 16:57:58 +00:00
Aleksey Bragin
b1d908abe5 comctl32 auto-winesync
svn path=/trunk/; revision=24806
2006-11-23 15:49:53 +00:00
Christoph von Wittich
2de78f3052 -always keep the correct file extension (fixes building of control panel applets)
-escape defines (fixes loading of some project files)

svn path=/trunk/; revision=24805
2006-11-23 11:38:49 +00:00
Christoph von Wittich
6fd65c6155 better subsystem handling
svn path=/trunk/; revision=24804
2006-11-22 21:37:56 +00:00
Magnus Olsen
7635779c5e written header usbkern.h
svn path=/trunk/; revision=24803
2006-11-22 20:38:40 +00:00
Christoph von Wittich
4959cbb837 use the correct compiler for .c/.cpp files
svn path=/trunk/; revision=24802
2006-11-22 20:35:11 +00:00
Christoph von Wittich
d26cca517a fixed a function declaration
some minor formatting changes

svn path=/trunk/; revision=24801
2006-11-22 20:19:12 +00:00
Christoph von Wittich
f0e69a1925 -fix line endings
-set eol-style:native

svn path=/trunk/; revision=24800
2006-11-22 15:23:17 +00:00
Christoph von Wittich
754c08251f Code::Blocks backend
svn path=/trunk/; revision=24799
2006-11-22 15:18:51 +00:00
Aleksey Bragin
48953bfa71 The code expects synchronous behaviour here, so until a better solution exists, IoSynchronousInvalidateDeviceRelations() is going to be used.
This fixes the "Loading ndis.sys" problems.

Thanks to Dmitry Gorbachev, confirmed by Herve Poussineau.
See issue #1875 for more details.

svn path=/trunk/; revision=24798
2006-11-22 10:15:51 +00:00
Alex Ionescu
0b5c955898 - Update kernel fun.
svn path=/trunk/; revision=24797
2006-11-22 07:45:30 +00:00
Alex Ionescu
9bd055bf1e - Fix boot CD with 10 lines of code. That's right Fireball, go shame yourself!
svn path=/trunk/; revision=24796
2006-11-22 07:01:32 +00:00
Aleksey Bragin
732eec1ad8 Fix warning when compiled with DBG=0
svn path=/trunk/; revision=24795
2006-11-20 13:07:57 +00:00
Ged Murphy
0ecf7d35d0 tab -> space
svn path=/trunk/; revision=24794
2006-11-19 22:36:37 +00:00
Magnus Olsen
1cae12f9ba fixing a small bug, do not known why, with this change I getting 19 of 20 booting working for me. I have not update to lates svn yet.
old change I did get 11 of 12 booting working

svn path=/trunk/; revision=24793
2006-11-19 21:17:52 +00:00
Eric Kohl
3f3741f6eb Remove the obsolete STDCALL decorations from .def files.
svn path=/trunk/; revision=24792
2006-11-19 21:17:42 +00:00
Thomas Bluemel
eb04d1528e - Correct definition of DbgPrompt
- Add definitions for the CSTRING structure

svn path=/trunk/; revision=24791
2006-11-19 21:14:49 +00:00
Eric Kohl
8a2cb65283 Use '-enable-stdcall-fixup' linker option for all mingw builds.
svn path=/trunk/; revision=24790
2006-11-19 21:10:56 +00:00
Eric Kohl
b49d1db6bf - Remove some global variables.
- Clean up the source code.
- Display the names of the screen savers.
- Sort the screen saver list by the screen saver names.
- Disable setting controls when 'None' screen saver is selected.

svn path=/trunk/; revision=24789
2006-11-19 21:06:30 +00:00
Magnus Olsen
a919bba10c adding a wcsstrlen to make msg "Unable to start , error" when no screensaver have been set.
I hope it is all check we need. hpousin if u dislike this check u are wellcome to remove it. 
 

svn path=/trunk/; revision=24788
2006-11-19 20:35:11 +00:00
Aleksey Bragin
59f8fd9675 Add PsInitialSystemProcess declaration into winddk.h (fixes win32k compilation)
svn path=/trunk/; revision=24787
2006-11-19 20:24:46 +00:00
Magnus Olsen
07f3fc4c5d remove the start of reactos vbe directdraw support until it is ready. allot problem with current code. so I discde to remove it from reactos, untill it is stable.
svn path=/trunk/; revision=24786
2006-11-19 20:24:15 +00:00
Aleksey Bragin
0cd52c45f5 Add a typecast to remove a warning
svn path=/trunk/; revision=24785
2006-11-19 20:06:44 +00:00
Ged Murphy
fc73d244e4 - merge the latest code from my minibranch:
- use a static image to refer to when choosing your image brightness so returning to normal (100) displays the original colours
- allow  individual colours (RGB) to be adjusted as well as adjusting them all simultaneously
- apply the chosen brightness from the dialog to the main image
- implement greyscale, so an image can be displayed in black and white
- implement inverting of colours so an image can be displayed as a negative.



svn path=/trunk/; revision=24784
2006-11-19 19:49:45 +00:00
Johannes Anderwald
54b8308c2b - fix prototype
svn path=/trunk/; revision=24783
2006-11-19 19:43:54 +00:00
Magnus Olsen
67e5e2ef0a the new desgin of ddraw are in place some files need be rename.
1. this version does not working and contain allot of bugs
2. HAL are not setup right yet
3. HEL are not setup right yet
4. crashing VS when u try debug it from vs if it compile with gcc. 
5. implement HEL in user mode. 
6. remove some code that was working for it is not longer compatible with new desgin

svn path=/trunk/; revision=24782
2006-11-19 19:13:35 +00:00
Johannes Anderwald
d926e80e5c fix typo
svn path=/trunk/; revision=24781
2006-11-19 19:08:42 +00:00
Alex Ionescu
62f904960f - Change kdcom.sys to kdcom.dll.
- Remove all kdcom exports and files from HAL and link with kdcom.dll instead.
- Add support in freeldr for loading kdcom.dll (and theoretically any other import, such as the Code Integrity DLL for kernel-mode signing, but for now I've only tested this one).
- Refactor some of the HAL loading code to make it generic for any image.
- Load HAL manually when loading kernel, before processing imports, to make sure that HAL is index 1 in the loader modules and loads before KDCOM.
- Fix some build problems.

svn path=/trunk/; revision=24780
2006-11-19 19:00:03 +00:00
Alex Ionescu
4c45bdc2ea - Fix last-minute compiler bug.
svn path=/trunk/; revision=24779
2006-11-19 18:12:27 +00:00
Alex Ionescu
312f07d0e5 - Major changes to HAL/kernel loading and freeldr hacks:
- Add PE routines for traversing the import table and fixing up the imports.
  - Add routine for getting the LOADER_MODULE for a freeldr module by name.
  - Add the ability to load a not-yet-loaded-driver that's in an import entry (ie: dependencies). Only used for HAL now.
  - Map HAL in the same was as the kernel, instead of relocating it as a hack from within the kernel.
  - Refactor some routines to better share code. Don't read freed memory anymore.
  - Use LdrRelocateImageWithBias instead of quintuplicating relocation code.
  - Parse kernel and HAL imports while PE-loading from within freeldr.
  - Remove dozens of freeldr.c hacks from the kernel. Remove slow code which was making two copies of the parameter block and wasting over 30KB in static strings that were immediately copied to other strings...
  - Don't use HalModuleObject and NtoskrnlModuleObject anymore. Remove LdrSafePEProcessModule and other similar boot-time hacks. Reimplement MmGetSystemRoutineAddress.
- NDK/DDK fixes.
- Add KDCOM to bootcd/installation.

svn path=/trunk/; revision=24778
2006-11-19 17:53:31 +00:00
Aleksey Bragin
c157acf875 - Add a null-check to the IopLoadServiceModule.
- Add a DPRINT1 saying about the possible memory-overwrite bug. This is a hack to get a bootable tree, but still have a note when The Bug happens (look for 'weird' in the debug log).

svn path=/trunk/; revision=24777
2006-11-19 17:22:18 +00:00
Magnus Olsen
a24ea27b47 - Change movw $0x0000,%ax to xorw %ax,%ax (because of probable bug in binutils, which compiles the first instruction into something weird)
- Add segment registers save+restore in Int386() in FreeLdr (thanks to tamlin too)

svn path=/trunk/; revision=24776
2006-11-19 17:01:23 +00:00
Alex Ionescu
e59260f8cb - Add kdcom driver. It contains the exact same functions as in HAL/kdbg.c (not yet used).
- Fix halxbox compile.

svn path=/trunk/; revision=24775
2006-11-17 06:14:31 +00:00
Alex Ionescu
1a3b63b4c4 - Fix some more MSVC problems.
- Get rid of HAL's own intrisics and use intrin_i.h and/or MSVC intrinsics from intrin.h
- If anyone knows how to make a .DEF file that is not only understood by both compilers, but also creates a proper import library, please let me know.

svn path=/trunk/; revision=24774
2006-11-17 04:18:41 +00:00
Alex Ionescu
5ec8f2dc40 - MSVC VCPROJ Maker:
* Don't insert NDEBUG as a define, files define this manually already.
  * Don't add _CRT flags, since the RTM WDK defines them properly.
  * Force warning.h to be included just like the WDK does.
  * Disable WPO and LTCG for now.
  * Disable 64-bit warnings for now.
  * Fix assembly custom steps. NASMW for .asm, and GAS for .S.
- Please remember that you NEED the WDK 6000 RTM installed to use MSVC for building ReactOS. Don't change global build settings just because you were too lazy to download it and think that because your Win32 app doesn't need it, it's ok to break other people's native/system/kernel/hal builds. Change it locally if you're lazy, but don't revert these changes again.

svn path=/trunk/; revision=24773
2006-11-17 02:44:37 +00:00
Hervé Poussineau
deefef4098 Fix HAL compilation
svn path=/trunk/; revision=24772
2006-11-16 20:52:13 +00:00
Ged Murphy
265fc33b63 - Add test code for adjusting the brightness of an image. It's a bit of a hack at the moment, but adjusting the trackbar in the brightness dialog will alter the brightness of the small image.
- save pointer to the bitmap header and bitmap bits in the image struct.

svn path=/trunk/; revision=24771
2006-11-16 18:49:58 +00:00
Alex Ionescu
596c3bee62 - Reorganize HAL exports and export KeTRyToAcquireQueuedSpinlock and KeTryToAcquireQueuedSpinLockRaisetoSynch.
- Add stub for HalSetTimeIncrement.
- Cleanup CMOS-related routines (Get/Set environment value and get/set RTC). Fixup some prototypes as well. Inline HalpReadCmos/HalpWriteCmos instead of having a separate function.
- Fixup wrong protypes for various Queued Spinlock functions.
- Use __rdtsc intrinsic instead of Ke386RdTsc.
- Other MSVC compilation fixes.

svn path=/trunk/; revision=24770
2006-11-16 17:30:52 +00:00
Aleksey Bragin
4a33b4c040 Use Uint32x32To64() function instead of ULONG * ULONG. Fixes partition length truncation.
See issue #1871 for more details.

svn path=/trunk/; revision=24769
2006-11-16 17:26:31 +00:00
Magnus Olsen
cb8322a4e3 remove two compiling warnings thx frik85 to notice it.
svn path=/trunk/; revision=24768
2006-11-16 15:56:10 +00:00
Alex Ionescu
0cb9e0fd78 - Purposefully add 6 debug prints to RtlpGetRegistryHandle, which, while ndis.sys is initializing, should BSOD the system. I have seen this "RtlpGetRegistryHandle" BSOD randomly during boot (But always with the same stack trace), and a local HAL patch managed to cause it 100% of the time. I know that the problem had nothing to do with the HAL or registry paths, because it came up before too when I added debug prints to fstub. These 6 prints 100% reproduce the problem on my machine with GCC 3.4.5. It is my hope it will do the same for everyone. This is a nasty bug, either stack related or some critical structure is being damaged. I am breaking trunk because it's been here for a long time, but now I found a way to repro it so that we can work together to try finding it. In a way, trunk was always broken, but this patch should force a freeze. Please help.
svn path=/trunk/; revision=24767
2006-11-16 07:09:37 +00:00
Alex Ionescu
8c3485a307 - Remove internal HAL function from ntifs
- Make sure obfuncs.h includes obtypes.h if it's ever included separately.
- Add ARC_STATUS and ARC Error Codes.

svn path=/trunk/; revision=24766
2006-11-16 06:55:59 +00:00
Thomas Bluemel
a1e3bd38a5 Fix some compilation errors
svn path=/trunk/; revision=24765
2006-11-15 20:24:55 +00:00
Aleksey Bragin
8b93146888 Properly use the second param.
svn path=/trunk/; revision=24764
2006-11-15 16:57:15 +00:00
Aleksey Bragin
44eba681e0 Fix build by:
- Matching HAL MP HalStartNextProcessor() and commenting out a call to HaliStartApplicationProcessor() (because it needs ProcessorContext). Proper fix should be done.
 - Removing HalReportResourceUsage from MP version, and marking what it did differently as FIXME in the generic version.

svn path=/trunk/; revision=24763
2006-11-15 10:42:46 +00:00
Alex Ionescu
b649dd5293 - Export ExiTryToAcquireFastMutex from ntoskrnl, I had forgotten to export this ages ago when adding the other Exi*FastMutex* stuff.
- Remove fmutex.c and fastmutex functions from HAL. The whole point of having the Exi ones in the kernel was that HAL calls them through forward exports now (so any old driver can still link with HAL). Now we don't duplicate the implementation anymore.
- Remove DriverEntry, it's useless. Also move HalReportResourceUsage to halinit because it's a call-once-on-boot function much akin a HalInitPhase2 function, so delete resource.c
- Keep track of interrupt affinity and active processor mask each time a new CPU initializes.

svn path=/trunk/; revision=24762
2006-11-15 00:08:51 +00:00
Ged Murphy
6e572dc57a - split the main header file into seperate files as it was becoming annoying to maintain
- split the open / new file code
- Add a dialog for adjusting the brightness. The code for adjusting the brightness will follow soon, as will many other image adjusting dialogs.
- change the menus to show the image adjustment tools which will be present
- remove the horrible image property dialog code. I'll rewrite it at a later stage
- Set Arial as the default font
- fix a few API's to be 64-bit compatable
- reduce msvc warnings

svn path=/trunk/; revision=24761
2006-11-14 23:15:02 +00:00
Alex Ionescu
3047ba1df7 - Build fixes.
svn path=/trunk/; revision=24760
2006-11-14 22:42:59 +00:00
Alex Ionescu
7b4b9aec8f - Delete HAL cruft files.
- Implement (or cleanup + mark as implemented, these are 4 line functions) HalDisplayString, HalAcquireDisplayOwnership, HalSetDisplayParameters, HalQueryDisplayParameters, HalInitailizeProcessor, HalAllProcessorsStarted, HalStartNextProcessor, HalProcessorIdle, HalRequestIpi.
- Fix some prototype definitions and cleanup some formatting.

svn path=/trunk/; revision=24759
2006-11-14 20:59:48 +00:00
Hervé Poussineau
f651c1f8b6 Don't force screensaver file names to have at least 4 chars
Terminate the string just after the last read character.

svn path=/trunk/; revision=24758
2006-11-14 18:35:29 +00:00
Alex Ionescu
5a7f46becc - Implement HalSystemVectorDispatchEntry, KeFlushWriteBuffer, HalFlushCommonBuffer, HalAllocateCrashDumpRegisters.
- Add lots of missing PCI definitions to the DDK, and to the internal file pci.h
- Make HAL compilable with the WDK thanks to a nice hack/trick I found.

svn path=/trunk/; revision=24757
2006-11-14 18:17:33 +00:00
Johannes Anderwald
66920d049e - print debug logs on stdout
- sysreg is now ready for deployment

svn path=/trunk/; revision=24756
2006-11-14 17:10:26 +00:00
Johannes Anderwald
a6ae267b13 - dump reached checkpoints when an BSOD is detected
- dump rest of log file when a BSOD is detected
- write debugging data to ROSBOOT_DEBUG_FILE when reading from a pipe 
- update configuration files
- silence debug print in sym_file.cpp

svn path=/trunk/; revision=24755
2006-11-14 16:58:42 +00:00
Johannes Anderwald
b768b7fc2f - update testboot script
svn path=/trunk/; revision=24754
2006-11-14 16:51:32 +00:00
Magnus Olsen
bd41c3c6dc fixing Usurp bug repot in irc channel, if a screensaver does not exists it try execute a no exiting screensaver it make reactos freze on real hw and in qemu, acoring Usurp. With this change it does not longer freze and does not either try execute a no existing screensaver. Thx Usurp for testing it.
svn path=/trunk/; revision=24753
2006-11-14 16:50:47 +00:00
Johannes Anderwald
4db3b4d934 - ignore failure if dir already exists
svn path=/trunk/; revision=24752
2006-11-14 16:26:15 +00:00
Johannes Anderwald
dd14ad52ea - update svn properties
- improve error checking
- return -2 when the test fails
- add a few test configs (required for sysregtest target)

svn path=/trunk/; revision=24751
2006-11-14 12:58:52 +00:00
Johannes Anderwald
8269b5eebd - implement target sysregtest which compiles all required modules and generates an unattended bootcdregtest which is feed to sysregtest and executes the required tests
- fix regtest target

svn path=/trunk/; revision=24750
2006-11-14 12:47:42 +00:00
The Wine Synchronizer
2822449d9a Autosyncing with Wine HEAD
svn path=/trunk/; revision=24747
2006-11-13 15:20:30 +00:00
The Wine Synchronizer
d953e5a54b Autosyncing with Wine HEAD
svn path=/trunk/; revision=24746
2006-11-13 14:51:39 +00:00
Aleksey Bragin
23c4a96e42 Dmitry G. Gorbachev: After kbd controller init, the System Flag should be set to 1.
Fixes rebooting on real hardware (famous "Flushing cache" hang).
See issue #1842 for more details.

svn path=/trunk/; revision=24744
2006-11-13 12:40:02 +00:00
Aleksey Bragin
e884800c6c Delete unneeded files
svn path=/trunk/; revision=24743
2006-11-13 10:14:08 +00:00
Alex Ionescu
abe724dba9 - Make HalMakeBeep a bit nicer by making the PUCHAR typedef part of the TIMER constants.
svn path=/trunk/; revision=24742
2006-11-13 04:34:57 +00:00
Alex Ionescu
30c16d9652 - Add some more descriptive comments to HalpReboot (and rename it from HalReboot) since some of the operations lacked comments.
- Stall the CPU after each I/O command to simulate I/O delay.
- Flush write buffers before rebooting.
- Refactor sending the reset command since it's not always a matter of using the keyboard port.
- HalReturnToFirmware does a HalpReboot no matter what parameter is sent.

svn path=/trunk/; revision=24741
2006-11-13 04:33:45 +00:00
Alex Ionescu
0e8c70ba22 - Re-implement messy portio.c by using MSVC-compatible intrinsics instead. 20 lines of code become 1, yay!
svn path=/trunk/; revision=24740
2006-11-13 04:31:39 +00:00
Alex Ionescu
6652f94900 - Fix a typo in DbgkCreateThread which caused a boot-time crash/regression.
svn path=/trunk/; revision=24739
2006-11-13 01:47:10 +00:00
Alex Ionescu
afb3f6c5c3 - Fix build error.
svn path=/trunk/; revision=24738
2006-11-12 23:32:11 +00:00
Alex Ionescu
4d578c637e - FSTUB Patch for Mount Manager Support, Part 1:
- Create new /fstub directory in the kernel tree and move iomgr's xhal functions there.
  - Delete disk.c entirely from iomgr.c and spread it across fstub.
  - Entirely reimplement from scratch IoWritePartitionTable, IoReadPartitionTable, IoSetPartitionInformation, HalExamineMbr. Lots of bug fixes in terms of wrong assumptions and compatibility with weird partition tables.
  - Fix prototype of IoAssignDriveLetters, but for now, keep the old code (xHalIoAssignDriveLetters) because this has not been rewritten yet.
  - Move some functions to fstubex.c for future implementation, and some to volume.c. Move the HAL table to halstub.c
  - Make use of the hal.h file commited earlier.
  - Move IoAssignDriveLetters from halfuncs to iofuncs.h
  - Implement missing functions in HAL (IoRead/Write/Set PartitionInfo) and make them call into the ntoskrnl exports.

svn path=/trunk/; revision=24737
2006-11-12 22:51:06 +00:00
Alex Ionescu
03d84cb508 - Move out SEH-support routines from ntoskrnl/rtl to lib/rtl
- Re-implement the routines in intel syntax and also cleanup the formatting.
- Also re-implement the way the routines work, by following Matt Pietrek's c code that he wrote in one of his articles after looking at the disassembly.
- Also used a patch for mingw found on Google which contained some implementations in C.
- New changes mostly add protection during unwinding, faster speed, and add implementations for __except_handler2 and _abnormal_termination which were not previously present.

svn path=/trunk/; revision=24736
2006-11-12 22:43:43 +00:00
Alex Ionescu
b66b8bdcea - Implement IoSetCompletionRoutineEx, which is a safe way to set completion routines that almost all newer drivers will be using (XP+).
svn path=/trunk/; revision=24735
2006-11-12 22:39:09 +00:00
Alex Ionescu
1c3d0f91a1 - Argh, another forgotten file. Too many local changes :(
svn path=/trunk/; revision=24734
2006-11-12 22:37:52 +00:00
Alex Ionescu
9bb38bc012 - Apologies, forgot these two files for the Dbgk patch.
- Adds PsNtDllPathName constant string since we use it in two place (PsLocateSystemDll and DbgkpCreateThread).
- Adds PsImageNotifyEnabled boolean flag and sets it to true (although it should only be when a routine is installed, but ROS doesn't do this yet.

svn path=/trunk/; revision=24733
2006-11-12 22:36:21 +00:00
Alex Ionescu
29a0679654 - Implement MmAddVerifierThunks, MmIsDriverVerifying, MmIsVerifierEnabled.
- Not used by anything, these are for 3rd-party drivers and Driver Verifier.

svn path=/trunk/; revision=24732
2006-11-12 22:34:28 +00:00
Alex Ionescu
00418f00bf - Fix flags in DbgkpSectionToFileHandle
- Implement DbgkpCreateThread.
- Implement DbgkpSetProcessDebugObject.

svn path=/trunk/; revision=24731
2006-11-12 22:33:04 +00:00
Alex Ionescu
5415ad9497 - Cleanup fastio.c
- Implement FsRtlMdlReadDev (this function is not called, no risk of regressions).
- Move FsRtlAcquireFileExclusive and FsRtlReleaseFileExclusive from filelock.c to fastio.c.
- Bugfix these functions to actually call FsRtlEnter/ExitFileSystem.
- Huge cleanusp of filelock.c, but no code changes, except the usage of some simpler macros provided by NTIFS.H (with equivalent code).

svn path=/trunk/; revision=24730
2006-11-12 22:31:45 +00:00
Alex Ionescu
49c35d197f - Add CcFastMdlReadWait extern to ntifs.h
- Add FsRtlCompleteRequest macro to ntifs.h
- Add LDRP_DRIVER_VERIFYING flag to ldrtypes.h
- Add MM_DRIVER_VERIFIER_DATA and DRIVER_SPECIFIED_DRIVER_THUNKS to mmtypes.h
- Add MAXLONGLONG to ntdef.h.

svn path=/trunk/; revision=24729
2006-11-12 22:27:10 +00:00
Ged Murphy
c77ef10192 - fix a bug freeing memory for floating windows.
- ShowHideWindow needs no more than a Window handle

svn path=/trunk/; revision=24728
2006-11-12 20:13:39 +00:00
Johannes Anderwald
48e98be889 - add dbgprint tool as optional tool
svn path=/trunk/; revision=24727
2006-11-12 13:37:02 +00:00
Art Yerkes
4f1dd7e361 Broaden a lock to prevent a race for completion of the receive IRP. Fixes
some crashes while receiving from a fast remote host under load.

svn path=/trunk/; revision=24726
2006-11-12 10:01:56 +00:00
Eric Kohl
250bddf673 Fix a typo in the library name. kbdv.dll -> kbddv.dll
svn path=/trunk/; revision=24725
2006-11-11 21:29:10 +00:00
Johannes Anderwald
dff9cbd270 - fix typo, identation, grammar in multiple german resource files
- patch by maku
See issue #1847 for more details.

svn path=/trunk/; revision=24724
2006-11-11 21:13:38 +00:00
Johannes Anderwald
b32dec065a - fix text box alignment
- spotted by Coviti
- patch by Coviti

See issue #1860 for more details.

svn path=/trunk/; revision=24723
2006-11-11 20:53:52 +00:00
Eric Kohl
ff30ee9de7 KbdLayerDescriptor is a STDCALL function.
svn path=/trunk/; revision=24722
2006-11-11 20:33:06 +00:00
Johannes Anderwald
89655cd6a2 - use dbgprint tool to output debug messages
svn path=/trunk/; revision=24721
2006-11-11 16:41:52 +00:00
Johannes Anderwald
ee8ad2c335 - add a primitive tool to output text via DbgPrint
svn path=/trunk/; revision=24720
2006-11-11 16:07:35 +00:00
Aleksey Bragin
d112ca4391 Make SystemConfigurationDataQueryRoutine() store information about as many drives as needed (previous version of the code did the same).
Fixes "no partitions list" bug in usetup introduced in 24718.

svn path=/trunk/; revision=24719
2006-11-11 13:17:58 +00:00
Hervé Poussineau
eb77bd4e85 - Set correct flags when calling Nt* functions during file copy
- Fix reading of disks parameter in registry
- Keep FS name in unicode instead of char
- Don't hardcode more than once ReactOS directory on bootcd ('\reactos')
- Get screen dimensions only once (at startup)
- General cleanup (warnings...)
- Do some actions only if __REACTOS__ if defined. (I'm currently using them to debug usetup)

svn path=/trunk/; revision=24718
2006-11-10 21:00:24 +00:00
Hervé Poussineau
7885d994ff Move some files to subdirectories. No code change.
svn path=/trunk/; revision=24717
2006-11-10 18:20:00 +00:00
Johannes Anderwald
59ec217f00 - add a sample bootchecking script (running after 3rd boot)
- to enable 
1. copy testboot.bat.sample to testboot.bat
2. uncomment GuiRunOnce section in unattend.inf
3. add "cmd.exe /C %SystemRoot%\bin\testboot.bat"

svn path=/trunk/; revision=24714
2006-11-10 13:03:30 +00:00
James Tabor
065806e5f1 Sync up PATH_Arc and PATH_Ellipse with Wine.
svn path=/trunk/; revision=24713
2006-11-10 12:50:34 +00:00
Johannes Anderwald
445e9e71b5 - add documentation for GuiRunOnce
svn path=/trunk/; revision=24712
2006-11-10 11:17:17 +00:00
Johannes Anderwald
037bd166bc - implement a GuiRunOnce section for unatttended setup
- with this we launch programs after 3rd boot (programs / scripts)
- another a little step for sysreg :)

svn path=/trunk/; revision=24711
2006-11-10 11:16:38 +00:00
Ged Murphy
d22e48600b The one that got away...
...add file with the code for writing the font data

svn path=/trunk/; revision=24710
2006-11-09 20:45:52 +00:00
Ged Murphy
f5fe947177 - add some font data to the combo boxes
svn path=/trunk/; revision=24709
2006-11-09 20:28:29 +00:00
Ged Murphy
f56d1e28ca don't force usage of warning.h as it breaks building on msvc unless the WDK is installed.
svn path=/trunk/; revision=24708
2006-11-09 18:47:05 +00:00
Saveliy Tretiakov
0b70008f89 For windows with WS_EX_DLGMODALFRAME sysmenu can be opened only by right mouse click ( new fix, no movable buttons in calculator)
svn path=/trunk/; revision=24707
2006-11-09 18:34:36 +00:00
Hervé Poussineau
9f9c29b952 Correctly clear DO_DEVICE_INITIALIZING flag
See issue #1862 for more details.

svn path=/trunk/; revision=24706
2006-11-09 12:38:40 +00:00
Johannes Anderwald
534b73b00f - revert part of 24701 as requested on ml
"It's plain wrong to set eol-style:native for files of type .dsp, *.dsw, *.vcproj, *.sln and some other files like chinese resource scripts"

svn path=/trunk/; revision=24705
2006-11-09 06:58:56 +00:00
James Tabor
8110686c9c Incremental changes, adding new Create and Delete DC functions and support structures.
svn path=/trunk/; revision=24704
2006-11-09 01:45:42 +00:00
Ged Murphy
73ce7bc885 - create a pretty combobox custom control which resembles the one in MS Office as the standard Windows/ReactOS combo box is ugly
- change ShowHideWindow to make it more reliable
- fix the second combobox positioning within the text toolbar
- hide all windows except the toolbar at startup (these will eventually be read from the registry)

svn path=/trunk/; revision=24703
2006-11-08 19:27:57 +00:00
Ged Murphy
329371d730 - fix drawing on the memory device to be the same as the screen, not that it really matters as it's just test code, but it's always nice to have correct test code ;)
- change typo for compilation unit name

svn path=/trunk/; revision=24702
2006-11-08 17:37:30 +00:00
Johannes Anderwald
9b71253be1 set most of trunk svn property eol-style:native
svn path=/trunk/; revision=24701
2006-11-08 11:47:44 +00:00
Alex Ionescu
6ba0dad7f1 - Remove WRITE/READ_REG_XXX functions written in C and write them in optimized assembly (no stack usage).
- Also flush posted write buffers during WRITE_XXX operations.

svn path=/trunk/; revision=24699
2006-11-07 14:44:32 +00:00
Johannes Anderwald
7fa7aee0e8 - this should go to the debug port but not to the screen
svn path=/trunk/; revision=24698
2006-11-07 00:12:24 +00:00
Johannes Anderwald
4a941a0b25 - improve namedpipe_reader parsing of lines code
- it should now be able handle partial / full lines

svn path=/trunk/; revision=24697
2006-11-06 23:50:03 +00:00
Johannes Anderwald
19c938e607 - fix a devasting bug (introduced by me)
Sorry JaixBly...

svn path=/trunk/; revision=24694
2006-11-06 11:03:57 +00:00
Aleksey Bragin
cf213c0fc9 Revert 24074 by Saveliy Tretiakov until correct fix available. Fixes bug with moveable calculator buttons.
svn path=/trunk/; revision=24693
2006-11-06 10:20:40 +00:00
Christoph von Wittich
24fa497955 added missing copyright information
svn path=/trunk/; revision=24692
2006-11-05 22:55:11 +00:00
Christoph von Wittich
076aef2fb0 implemented timeout settings on startup and recovery page
svn path=/trunk/; revision=24691
2006-11-05 22:53:48 +00:00
Magnus Olsen
5b6863ed96 1. Fixed some vc warings and fault
2. Implement AcquireDDThreadLock, ReleaseDDThreadLock (does not working as it should yet)
3. Start making ddraw thread safe
4. Fixed some mirors bugs

svn path=/trunk/; revision=24690
2006-11-05 21:19:53 +00:00
Peter Ward
556dd785d7 - Added missing variable for the SMP build, noticed by Usurp.
- Trimmed trailing white-space.

svn path=/trunk/; revision=24689
2006-11-05 21:00:42 +00:00
Johannes Anderwald
69722e926c - read lines into a vector of string lines
- move os specific functions into an own file 
- fix a bug in command line options parsing
- add function for converting ansi2Unicode

svn path=/trunk/; revision=24688
2006-11-05 20:51:02 +00:00
Alex Ionescu
8be06d0e3b - Add hal.h from TinyKRNL containing internal definitions for fstub (MBR, Partiton Table, Partition Table Entry, Layout structures) and helper macros. Some structures come from disk.sys sample in the DDK.
svn path=/trunk/; revision=24687
2006-11-05 20:44:38 +00:00
Alex Ionescu
3065170214 - disk.sys: Don't fail IOCTL_GET_PARTITION_INFO for Partition 0. This is perfectly valid (and needed for some code I'll add later).
- IopGetDiskInformation: Treat the partition buffer as a simple PULONG array.
- KeUpdateSystemTime: Fix memory addressing to silence GAS compile-time warning.

svn path=/trunk/; revision=24686
2006-11-05 20:43:07 +00:00
Alex Ionescu
6e282d4611 - Simplify LPC Message allocation with an LpcpAllocateFromPortZone macro.
- Move LPC Macros/inlines to lpc_x.h
- Implement LpcRequestPort.
- Fix a bug in CsrTerminateProcess which was setting up incorrect sizes for the LPC message.
- Add some debug output to csrss.
- NTLPC works perfectly now, except for a bug on shutdown which doesn't properly close LPC processes.

svn path=/trunk/; revision=24685
2006-11-05 20:31:35 +00:00
Alex Ionescu
fb3a3c8a7f - Fix boot.
- Fix GUI boot (bootvid).
- Fix cmlib bug.

svn path=/trunk/; revision=24684
2006-11-05 20:28:59 +00:00
James Tabor
a57cbd2aa5 Part of the Win32k User32 Compatibility Project.
- Create IntLoadKeyboardLayout
- Code assimilated from win32k ntuser keyboard.c and Wine.
- Process and load a new keyboard layout.
- Creates the HKL for processing in NtUserLoadKeyboardLayoutEx.
- Load and computes module offset so NtUserLoadKeyboardLayoutEx can process it (read it in), load (EngLoadImage) and set the table entry point. This data is saved in a new structure connected to a list of keyboard layouts that was created during win32k init.


svn path=/trunk/; revision=24683
2006-10-30 19:38:37 +00:00
Alex Ionescu
f176b46108 - In my fear of accidentally comitting NTLPC = 1, I forgot to make the initial NTLPC = 0 commit, so LPC was never getting compiled at all. This fixes it.
svn path=/trunk/; revision=24682
2006-10-30 19:20:08 +00:00
Alex Ionescu
5134659f32 - Properly initialize the Port Message header in NTDLL's Csr Routines and Win32k's as well.
- It is now possible to boot into GUI and use the Command Line/Console (heavy LPC user) in NTLPC mode.
- NTLPC is still disabled in trunk however, because there are still bugs and missing functionality.

svn path=/trunk/; revision=24681
2006-10-30 19:12:17 +00:00
Alex Ionescu
f886617372 - Use Emanuelle's design for SMSS's LPC Code in CSRSS as well so that it can be portable between ROS LPC and NT LPC.
svn path=/trunk/; revision=24680
2006-10-30 18:45:22 +00:00
Alex Ionescu
6dc99e73a2 - Fix incorrect parameter shuffle in NtAcceptConnectPort. CSRSS now initializes properly and kernel32 gets loaded, but fails when connecting.
svn path=/trunk/; revision=24679
2006-10-30 17:04:49 +00:00
Alex Ionescu
be2a6c6ee3 - Add support for mapping the client section in NtAcceptConnectPort.
svn path=/trunk/; revision=24678
2006-10-30 16:54:45 +00:00
Alex Ionescu
bf01f1f77c - Fix parameter checks in NtAcceptConnectPort.
- Make CSRSS properly fill out the ServerView structure's length so that it can be validated by the kernel.

svn path=/trunk/; revision=24677
2006-10-30 16:50:20 +00:00
Alex Ionescu
a5aaf04a27 - Add support for secure LPC. However, we always return success atm because SeQueryInformationToken is not implemented. (Someone needs to refactor NtQueryInformationToken).
svn path=/trunk/; revision=24676
2006-10-30 16:45:54 +00:00
Alex Ionescu
91c97b2944 - Add support for Client/RemoteView in NtSecureConnectPort. Still lacking support for SID (needed for Csr)
svn path=/trunk/; revision=24675
2006-10-30 16:39:19 +00:00
Alex Ionescu
560282ce30 - Add correct calls to NtAcceptConnectPort if NTLPC is used. Now we freeze because CSRSS uses client/server views so I have to implement that.
svn path=/trunk/; revision=24674
2006-10-30 16:21:21 +00:00
Alex Ionescu
9eeadde533 - Implement NtRequestWaitReplyPort. This is a simple implementation that doesn't support Callback LPC Messages yet (Since we don't make use of them). SMSS can now send API messages on the Sb Port.
- With these APIs we now have a skeleton NTLPC that is fully NT-compatible. Thanks to ea's (Emanuele)'s smss work which he strived to make portable, building with NTLPC = 1 will also build a compatible smss that now works.
- CSRSS requires some changes since it was not written to be NTLPC portable.

svn path=/trunk/; revision=24673
2006-10-30 14:50:31 +00:00
Alex Ionescu
7000c5a210 - Implement NtSecureConnectPort so that clients can connect to SMSS. Does not yet support actual secure connections (with a SID) and will fail those requests. Also doesn't support memory-mapped LPC yet.
svn path=/trunk/; revision=24672
2006-10-30 14:46:56 +00:00
Alex Ionescu
b14168c73c - Implement NtCompleteConnectPort. SMSS can now completely accept new incoming connections.
svn path=/trunk/; revision=24671
2006-10-30 14:45:07 +00:00
Alex Ionescu
ed9d7c1816 - Implement NtAcceptConnectPort. This is a naive implementation that doesn't support memory-mapped LPC yet (since it's not used by SMSS). Such LPC messages will hit an ASSERT for now (when they do, I'll implement the missing functionalitY).
svn path=/trunk/; revision=24670
2006-10-30 14:44:05 +00:00
Alex Ionescu
2624bc881d - Implement NtReplyWaitReceivePortEx (And LpcpSave/FreeDataInfoMessage and LpcpMoveMessage). SMSS can now respond to connection attempts.
svn path=/trunk/; revision=24669
2006-10-30 14:42:07 +00:00
Alex Ionescu
fa1547f01d - Implement NtListenPort as a wrapper around NtReplyWaitReceivePort that only listens for connection requests. SMSS can now do this.
svn path=/trunk/; revision=24668
2006-10-30 14:32:18 +00:00
Alex Ionescu
850c098196 - Implement LpcpCreatePort (And LpcpInitializePortQueue). SMSS can now create the Sb API Port.
svn path=/trunk/; revision=24667
2006-10-30 14:30:20 +00:00
Alex Ionescu
86a52afde3 - Add lpc\ntlpc directory when NTLPC = 1.
- Add function stubs in appropriate files.
- Implement NtConnectPort (stub to NtSecureConnectPort). Implement NtReplyWaitReceivePort (stub to NtReplyWaitReceivePortEx). Everything else is unimplemented.
- Implement LpcpInitSystem and object callbacks LpcpDeletePort and LpcpClosePort.
- Add internal lpc.h header.

svn path=/trunk/; revision=24666
2006-10-30 14:28:50 +00:00
Alex Ionescu
8d1e84dfd6 - Implement the rest of Hard Error support.
- Kernel support is complete (except temporary LPC hack), and CSRSS properly receives the event and sends it off to win32csr's hard error handler (much like on NT). However, the handler doesn't call NtUserHardErrorControl nor do much of the complex sequence of events that NT does, instead, we only display a hello-world style message box. Anyone up for implementing the rest is welcome.

svn path=/trunk/; revision=24665
2006-10-30 14:20:45 +00:00
Alex Ionescu
1a98439492 - SMSS: Send QOS structure when creating new ports, it's not optional on NT LPC. Send maximum port length when creating new ports, it's not optional on NT LPC. Create 2 listening threads on NTLPC, instead of just one. [AUDIT: Unlock smlib, it's fully internal and specific to ROS without any relationship to NT. The author used clean-room tests and documentation].
- Fix various LPC structures in the NDK. Fix some prototypes too.
- Don't export PEPORT or PLPCP_PORT_OBJECT outside of /lpc and use PVOID isntead.
- Add a new RBUILD setting called NTLPC, which enables NTLPC when turned on.

svn path=/trunk/; revision=24664
2006-10-30 14:17:37 +00:00
Johannes Anderwald
48ffe89726 - zero complete buffer
- increase buffer when reading more data than current capacity

svn path=/trunk/; revision=24663
2006-10-30 12:58:35 +00:00
Christoph von Wittich
a1de6893f7 -force include of warning.h from WDK
-removed CRT_SECURE_NO_DEPRECATE because it is declared in warning.h
-set warning level to /W3
-set calling convention to stdcall
-use nasmw for asm files

svn path=/trunk/; revision=24662
2006-10-30 12:53:25 +00:00
Johannes Anderwald
963c6260b1 - use ReactOS_Debug as a default os when DBG && unattended setup mode is defined
- set timeout to zero in unattended mode && DBG defined

svn path=/trunk/; revision=24661
2006-10-30 12:41:17 +00:00
Thomas Bluemel
bcf2a300f2 Implement GetTickCount64
svn path=/trunk/; revision=24660
2006-10-30 11:56:28 +00:00
Christoph von Wittich
e343b07d1f now it is possible to build bootcd and bootcdregtest with the same tree (without changing any files)
svn path=/trunk/; revision=24659
2006-10-26 08:45:16 +00:00
Alex Ionescu
ef31ab5c96 - Make CSRSS register the default hard error port on startup.
- Stubplement the System Hard Error handler (it simply bugchecks)
- Fully implement ExRaiseHardError when called from user-mode so that the strings and parameters are properly captured into user-mode memory.
- Almost completely implement ExpRaiseHardError which is responsible for actually doing the error. However, ROS LPC is screwed up so sending the LPC Message crashes since the port isn't in a listening state or something.
- Would appreciate some advice on how to get the LPC message to CSRSS.
- Fix Get/SetErrorMode. The Native API uses an inverted value of SEM_FAILCRITICALERRORS, so this must be handled in win32.
- Cleanup formatting of RaiseException, and only normalize the paramter count if we're actualy going to use it.
- Implement LpcRequestWaitReplyPort as a big hack, but it should work.

svn path=/trunk/; revision=24658
2006-10-26 04:55:34 +00:00
Alex Ionescu
6d56cb39a6 - Fix dozens of missing typecast errors.
- Other MSVC/WDK compatibility fixes.

svn path=/trunk/; revision=24657
2006-10-26 01:49:51 +00:00
Martin Fuchs
3dbb7d20de add build script
svn path=/trunk/; revision=24656
2006-10-25 21:10:38 +00:00
Martin Fuchs
52ca28450e added GCC compatible chinese resource file translation of Larry Li <larryli@qq.com>
svn path=/trunk/; revision=24655
2006-10-25 20:58:04 +00:00
Martin Fuchs
cc6d35abef rename explorer-cn.rc to explorer-cn-msvc.rc (MSVC specific resource file encoding)
svn path=/trunk/; revision=24654
2006-10-25 20:54:46 +00:00
Christoph von Wittich
a94c4a796e fix some issues when reading from a named pipe
fix a typo
terminate qemu at exit (when using named pipes)

svn path=/trunk/; revision=24653
2006-10-25 20:02:01 +00:00
Alex Ionescu
6497d295c3 - Add some missing/internal definitions to proper headers.
- Get rid of FLUSH_TLB macros and use KeFlushCurrentTb and the MSVC_compatible instrinsic __invlpg;
- Fix some prototypes.
- Fixed unsigned/signed mismatches.
- Fix SEH usage in ExAllocatePoolWithQuotaTag.

svn path=/trunk/; revision=24652
2006-10-25 18:23:45 +00:00
Alex Ionescu
a900757d83 - Implement more of the Ke386 ASM macros for MSVC.
- Remove custom Set/Get Cr macros and use MSVC-compatible __read/__writecrX
- Remove custom WbInvd macro and use MSVC-compatible __wbinvd.

svn path=/trunk/; revision=24651
2006-10-25 17:15:11 +00:00
Alex Ionescu
b5e25167e2 - Move all ASM internal intrinsics to intrin_i.h. Request for KJK::Hyperion/hackbunny to look at the GCC ones and optimize/fix them up.
- Add MSVC versions for some of them (not yet complete).
- Fix the fact that KeGetLocalDescriptorTable was setting the LDT instead of retrieving it.
- Fix bug in LIST_FOR_EACH and LIST_FOR_EACH_SAFE which was setting the flink to NULL instead of checking if the flink is NULL. One more reason these damned macros should've never been used.
- Use MSVC-intrinsics when applicable (_disable/_enable, etc).
- Fix JOB_SET_ARRAY problems.
- Fix buffer overflow in SystemProcessInformation QSI_DEF.
- Fix some broken compares/arithmetic to due to lack of parens.
- Add some ASSERTS to some unknown functions that make pointer assumptions.

svn path=/trunk/; revision=24650
2006-10-25 16:37:46 +00:00
Christoph von Wittich
6f17cc84f7 -debug info can now be read from a pipe
-fixed a typo
-terminate the qemu process on linux

svn path=/trunk/; revision=24649
2006-10-25 16:02:47 +00:00
Christoph von Wittich
2aceefe1a5 use TCHAR instead of WCHAR
svn path=/trunk/; revision=24648
2006-10-25 12:49:35 +00:00
Christoph von Wittich
94663d29ba fix SYSREG_CHECKPOINT:USETUP_COMPLETE
svn path=/trunk/; revision=24647
2006-10-25 12:29:47 +00:00
James Tabor
e4ee4f1bab Commit tmp patch by dralnix, fixes Rev 24626 Breaks Linux Build, and windows build.
svn path=/trunk/; revision=24646
2006-10-25 01:30:19 +00:00
Johannes Anderwald
9529d06636 - add an checkpoint for the system regression tool
svn path=/trunk/; revision=24645
2006-10-24 20:21:30 +00:00
Christoph von Wittich
2da90d7544 -added -l parameter to list all available tests
-when no config file is specified use sysreg.cfg as default
-updated help text

svn path=/trunk/; revision=24644
2006-10-24 19:59:27 +00:00
Johannes Anderwald
8c625a375a - fix string define mess
svn path=/trunk/; revision=24643
2006-10-24 11:45:21 +00:00
Johannes Anderwald
5e8e6f57b6 - set svn:eol-style properties
- update makefile
- fix warning

svn path=/trunk/; revision=24642
2006-10-24 11:27:23 +00:00
Johannes Anderwald
985cb41a59 - fix typo in config file
- implement ROSBOOT_CRITICAL_APP
- implement a class which is responsible for file reading
- 

svn path=/trunk/; revision=24641
2006-10-24 11:21:17 +00:00
Alex Ionescu
bca3708172 - Optimize PsGetCurrentProcess as well.
svn path=/trunk/; revision=24640
2006-10-23 22:07:45 +00:00
Alex Ionescu
edaa6996f4 - Properly implement inline versions of KeGetCurrentThread and KeGetPreviousMode/ExGetPreviousMode, as well as KeGetPcr. This should significantly increase performance. (KeGetPreviousMode is reduced to 2 lines of code instead of 15 lines with 2 expensive jumps).
svn path=/trunk/; revision=24639
2006-10-23 22:01:25 +00:00
Alex Ionescu
2dae9ef970 - Fix/add some remaining prototypes.
- Add all the Nt functions to sysfuncs.lst and fixup some entries which were out-of-order. Unless I skipped anything (might've skipped 1 or 2 APIs), we should now have the same system call table as Windows 2003 SP1 (useful for my testing of ntdll.dll inside Windows).

svn path=/trunk/; revision=24638
2006-10-23 21:28:17 +00:00
Alex Ionescu
2e1f5d46f3 - Add some missing definitions to our NTIFS.h.
svn path=/trunk/; revision=24637
2006-10-23 21:24:16 +00:00
Alex Ionescu
57a9accaa9 - Add NtApphelpCacheControl, NtFilterToken (WARNING: PATENTED. TAKE CARE WHEN IMPLEMENTING).
- Add all the recently added functions to their proper place in the NDK.

svn path=/trunk/; revision=24636
2006-10-23 21:19:15 +00:00
Alex Ionescu
4ccf5bf0a4 - Implement NtSetEventBoostPriority, NtGetCurrentProcessorNumber, NtQueryPortInformationProcess, NtWaitForMultipleObjects32.
svn path=/trunk/; revision=24635
2006-10-23 20:49:52 +00:00
Alex Ionescu
20cab2c593 - Should fix the build.
svn path=/trunk/; revision=24634
2006-10-23 20:21:08 +00:00
Alex Ionescu
0df736c010 - Add NtGetWriteWatch, NtResetWriteWatch.
- Add NtCreateJobSet and define JOB_SET_ARRAY.

svn path=/trunk/; revision=24633
2006-10-23 18:35:13 +00:00
Alex Ionescu
0b311bdf68 - Add NtCreateKeyedEvent, NtOpenKeyedEvent, NtReleaseKeyedEvent, NtWaitForKeyedEvent.
svn path=/trunk/; revision=24632
2006-10-23 18:25:23 +00:00
Alex Ionescu
1bf94f2a3a - Add NtEnumerateSystemEnvironmentValuesEx, NtQuerySystemEnvironmentValueex, NtSetSystemEnvironmentValueEx.
- Fix some build brtakage.

svn path=/trunk/; revision=24631
2006-10-23 18:21:31 +00:00
Alex Ionescu
03aeec584e - Add NtGetDevicePowerState, NtIsSystemResumeAutomatic, NtRequestWakeupLAtency, NtSetThreadExecutionState.
svn path=/trunk/; revision=24630
2006-10-23 18:16:24 +00:00
Alex Ionescu
e46732dfc8 - Add NtAllocateUserPhysicalPages, NtMapUserPhysicalPAges, NtMapUserPhysicalPagesScatter, NtFreeUserPhysicalPages.
- Add NtAreMappedFilesTheSame.

svn path=/trunk/; revision=24629
2006-10-23 18:12:12 +00:00
Alex Ionescu
d99f845de8 - Add NtCompactKeys, NtcompressKey, NtLoadKeyEx, NtLockProductActivationKeys, NtLockRegistryKey, NtNotifyChangeMultipleKeys, NtQueryOpenSubKeys, NtQueryOpenSubKeysEx, NtSaveMergedKeys, NtUnloadKey2, NtUnloadKeyEx.
svn path=/trunk/; revision=24628
2006-10-23 18:05:06 +00:00
Alex Ionescu
909334f45c - Define EFI_DRIVER_ENTRY.
- Add NtAddDriverEntry, NtDeleteDriverEntry, NtEnumerateDriverEntries, NtModifyBootEntry, NtModifyDriverEntry, NtQueryDriverEntryOrder, NtSetDriverEntryOrder.
- These are for EFI (or pseudo-EFI if we ever emulate Vista).

svn path=/trunk/; revision=24627
2006-10-23 17:53:25 +00:00
Alex Ionescu
4fda8d1bb7 - Add NtAccessCheckAndAuditAlarm, NtAccessCheckByType, NtAccessCheckByTypeAndAuditAlarm, NtAccessCheckByTypeResultList, NtAccessCheckByTypeResultListAndAuditAlarm, NtAccessCheckByTypeResultListAndAuditAlarmByHandle, NtAccessCheckByTypeResultListAndAuditAlarmByHandleByGodHowMuchLongerCanTheseAPINamesGet.
- Last one is a joke.

svn path=/trunk/; revision=24626
2006-10-23 17:47:40 +00:00
Magnus Olsen
f11bf40b80 rewrite D3DParseUnknownCommand to use switch case instead
it looks better. Add a summer of msdn documentions how the first input parameter works. So u do not need read the whole doc for it. Add some more comment in the code

svn path=/trunk/; revision=24625
2006-10-23 17:37:51 +00:00
Johannes Anderwald
d9e412fef7 - revert 24623
svn path=/trunk/; revision=24624
2006-10-23 09:06:27 +00:00
Johannes Anderwald
7014cc1752 - really fix build
svn path=/trunk/; revision=24623
2006-10-23 08:54:19 +00:00
Johannes Anderwald
93d8160abd - fix build
svn path=/trunk/; revision=24622
2006-10-23 08:42:27 +00:00
Alex Ionescu
6979adfdc2 - Fix another build break... sorry for the SVN Server is fucked due to the CIA post-commit hook and is being unusable.
svn path=/trunk/; revision=24621
2006-10-23 05:55:06 +00:00
Alex Ionescu
4ed86823da - Fix some EFI prototypes and exports.
- Add BOOT_ENTRY definition.
- Fix build breakage from earlier commit.

svn path=/trunk/; revision=24620
2006-10-23 05:49:07 +00:00
Alex Ionescu
fbe74e44f9 - Implement DbgUiConvertStateChangeStructure. Win32/Native Debugging should be fully implemented now (and waiting on the kernel to support it.)
svn path=/trunk/; revision=24619
2006-10-23 05:08:19 +00:00
Alex Ionescu
1c38e47592 - Implement WaitForDebugEvent. Calls out to DbgUiConvertWaitStateStructure which is still unimplemented.
svn path=/trunk/; revision=24618
2006-10-22 23:47:12 +00:00
Alex Ionescu
aced9b0023 - Define DBGSS_THREAD_DATA and DbgSsGet/SetThreadData. This is what is located in DbgSsReserved[0] (an internal high-level structure that subsystem debuggers can use for whatever purposes they need). DbgSsReserved[1] is the actual native debug object used only by DbgUi in ntdll.
- Implement SaveThreadHandle, SaveProcesHandle, MarkThreadHandle, MarkProcessHandle, RemoveHandles and CloseAllProcessHandles to deal with this structure.
- Call these functions when required, except for WaitForDebugEvent which will set them up once implemented.

svn path=/trunk/; revision=24617
2006-10-22 23:28:33 +00:00
Hervé Poussineau
7ed56310ad Fix compilation in release mode
svn path=/trunk/; revision=24616
2006-10-22 21:22:46 +00:00
Alex Ionescu
8008f9d427 - Stub DbgUiConvertStateChangeStructure (this isn't done in kernel32 anymore) and export it.
- Implement and export DbgUiSetThreadDebugObject.
- Fix DbgUi* APIs to use DbgSsReserved[1], and not [0]. Still trying to figure out what [0] is for.

svn path=/trunk/; revision=24615
2006-10-22 21:19:34 +00:00
Alex Ionescu
756da82c2f - Implement helper routine DbgkpSectionToFileHandle and stub MmGetFileNameForSection (easy ObQueryNameString-based implementation to do later).
- Implement helpers DbgkpSuspendProcess and DbgkpResumeProcess based on KeFreeze/ThawAllThreads.
- Implement DbgkExitProcess, DbgkExitThread, DbgkMapViewOfSection, DbgkUnmapViewOfSection. Apart from DbgkCreateThread, these are the main notification APIs that Dbgk uses for user-mode debug events. (Mm code needs to be changed to call the map/unmap notifications. Ps already calls the exit/create ones).

svn path=/trunk/; revision=24614
2006-10-22 20:56:24 +00:00
Alex Ionescu
024e1d9725 - Implement KeThawAllThreads based on KeFreezeAllThreads.
- Fix a bug in KeFreezeAllThreads which was causing us never to actually parse the next flink.
- Fix a bug in KeFreezeAllThreads which was causing us never to leave the critical region we entered at the beginning.

svn path=/trunk/; revision=24613
2006-10-22 20:52:13 +00:00
Ged Murphy
6943ab32d9 update comctl32 to Wine 0.9.23
svn path=/trunk/; revision=24612
2006-10-22 20:49:59 +00:00
Alex Ionescu
2ce482998f - Fix KeFreezeAllThreads prototype and define it in the internal headers.
- Fix two bugs in KeSetBasePriorityThread and KeSetPriorityThread which were using an undefined value for "Lock Released" if the priority wasn't changing, potentially causing a missing spinlock release when none was required (and thus eventually freezing the scheduler)

svn path=/trunk/; revision=24611
2006-10-22 20:39:08 +00:00
The Wine Synchronizer
f332d881af Autosyncing with Wine HEAD
svn path=/trunk/; revision=24610
2006-10-22 20:23:59 +00:00
Alex Ionescu
d8762edcd7 - Implement DbgkPostFakeModuleMessages.
- Stub MmGetFileNameForAddress but write documentation on how to implement it (thanks to Filip Navara). For now it always returns ntdll.dll as a testhack.

svn path=/trunk/; revision=24609
2006-10-22 19:53:10 +00:00
Alex Ionescu
6d08ee060e - Add one of the basic OBJECT_ATTRIBUTES flags and don't fail any 3rd-party driver or application that might've been using it.
- Add missing member to DBGKM_LOAD_DLL.

svn path=/trunk/; revision=24608
2006-10-22 19:48:43 +00:00
Johannes Anderwald
5d119e76fa - set breakpoint before FreeConsole to have a bigger chance of output :)
svn path=/trunk/; revision=24607
2006-10-22 19:11:24 +00:00
Johannes Anderwald
913d10566a - add an checkpoint for the system regression tool
svn path=/trunk/; revision=24606
2006-10-22 18:52:01 +00:00
Johannes Anderwald
f17eb0c2a1 - implement FormatPartition settings
- fix a few bugs in the unattend setup code

svn path=/trunk/; revision=24605
2006-10-22 18:40:37 +00:00
Johannes Anderwald
2e2bcf5447 - add auto-format partition setting to unattend setup
svn path=/trunk/; revision=24604
2006-10-22 18:28:51 +00:00
Hervé Poussineau
b4c3d08f83 Remove multiple definition warning
Add a few missing error codes (taken from http://www.derkeiler.com/Newsgroups/microsoft.public.platformsdk.security/2004-02/0201.html)

svn path=/trunk/; revision=24603
2006-10-22 17:19:49 +00:00
Johannes Anderwald
d966387fc7 - implemented ROSBOOT_CHECKPOINT
- implemented ROSBOOT_DELAY_READ
- dump reached checkpoint in case of bsod / um-exceptions
- add error handling
- remove hardcoded constants

svn path=/trunk/; revision=24602
2006-10-22 11:27:45 +00:00
Magnus Olsen
98ae58da2b should have read msdn one more time for D3DParseUnknownCommand vaild command return sizeof of the struct * number of struct + 4 bytes, so it point to the end of the buffer.
svn path=/trunk/; revision=24601
2006-10-22 10:43:36 +00:00
Magnus Olsen
b780943388 full implement of D3DParseUnknownCommand + 1 undocument command that have been review by D3DParseUnknownCommand_show in rosapps/tests
svn path=/trunk/; revision=24600
2006-10-22 10:01:46 +00:00
Thomas Bluemel
39500f9853 - Change RtlMoveMemory to RtlCopyMemory where memory regions are never overlapping
- Re-Secure a few Nt stubs by adding SEH/Probing where neccessary

svn path=/trunk/; revision=24599
2006-10-22 09:06:58 +00:00
Magnus Olsen
68b1244df5 correct D3DHAL_DP2OPERATION struct
this include file should be rewriten 

svn path=/trunk/; revision=24598
2006-10-22 08:23:13 +00:00
Art Yerkes
8268d67594 Build an entirely new page table.
svn path=/branches/powerpc/; revision=24597
2006-10-22 07:24:21 +00:00
Magnus Olsen
2c691e6c16 return code scanner for D3DParseUnknownCommand to figout what it support.
svn path=/trunk/; revision=24596
2006-10-22 07:15:06 +00:00
Alex Ionescu
5143e2364f - Implement DbgkpQueueMessage. This is the main bi-directional communication routine for the newer non-LPC Debug Object.
- Implement DbgkPostFakeProcessCreateMessages (and stub DbgkpPostFakeThreadMessages and DbgkpPostFakeModuleMessages). These are required when attaching to a process after threads have been created and modules loaded, so that the debugger can have a valid state.
- Still missing the two functions to Set/Clear the Debug Object, will do these next.

svn path=/trunk/; revision=24595
2006-10-21 19:26:54 +00:00
Johannes Anderwald
af697b174a - quit sysreg when checkpoint USETUP_COMPLETED is reached
svn path=/trunk/; revision=24594
2006-10-21 17:59:15 +00:00
Johannes Anderwald
c58fc3041a - add an option to store emulators pidfile in txt
- destroy emulator process when sysreg exits (windows only currently)
- the tool now works in windows

svn path=/trunk/; revision=24593
2006-10-21 16:12:42 +00:00
Thomas Bluemel
c4f8255e95 Remove the no longer used kjs library
svn path=/trunk/; revision=24592
2006-10-21 16:00:44 +00:00
Johannes Anderwald
c59a6328c4 - set svn-eol:style property
svn path=/trunk/; revision=24591
2006-10-21 08:56:23 +00:00
Johannes Anderwald
4d2dee8fd5 - provide a sample configuration file
- allow other address line resolver than addr2line

svn path=/trunk/; revision=24590
2006-10-21 08:55:34 +00:00
Johannes Anderwald
95126f2a4a - give sysreg a makefile
- allow compilation with gcc 4.1.1
- temporary disable execution of emulator command
- lets start testing :)

svn path=/trunk/; revision=24589
2006-10-21 08:34:00 +00:00
Johannes Anderwald
b75f825406 - implement a basic boot detection algorithm
- sysreg can now recognize some user mode detection and blue screen of deaths
- a few timing issues have to be sorted out in order make deployment ready

svn path=/trunk/; revision=24588
2006-10-21 00:13:52 +00:00
Johannes Anderwald
ee5b1449f9 - use timeout to define maximum runtime of emulator
svn path=/trunk/; revision=24587
2006-10-20 21:14:08 +00:00
Johannes Anderwald
74847bd6f5 - avoid using _tprintf
- use EnvironmentVariable as a singleton

svn path=/trunk/; revision=24586
2006-10-20 20:09:29 +00:00
Johannes Anderwald
98aa4d7f47 - fix compilation
- implement scanning of symbol directories

svn path=/trunk/; revision=24585
2006-10-20 19:40:33 +00:00
Johannes Anderwald
4ba2129226 * beginning of a system regression tools
svn path=/trunk/; revision=24584
2006-10-20 15:49:46 +00:00
Thomas Bluemel
66e157c5eb Minor simplification
svn path=/trunk/; revision=24583
2006-10-20 14:26:41 +00:00
Thomas Bluemel
b330be87df Prefer inline probing macros for base types
svn path=/trunk/; revision=24582
2006-10-20 14:20:27 +00:00
Thomas Bluemel
5d6a6fd0b8 Fix integer overflow vulnerability in NtPrivilegeCheck
svn path=/trunk/; revision=24581
2006-10-20 14:10:53 +00:00
Thomas Bluemel
de34ab04c1 Fix returning the context of the current thread in NtGetContextThread
svn path=/trunk/; revision=24580
2006-10-20 13:45:52 +00:00
Thomas Bluemel
cf98132b2f Use inline probing macro for handle variables
svn path=/trunk/; revision=24579
2006-10-20 13:33:24 +00:00
Thomas Bluemel
ccd9ed0a4e - Some minor Nt stub fixes
- Fix compilation with GCC4

svn path=/trunk/; revision=24578
2006-10-20 13:19:13 +00:00
Alex Ionescu
d9b18cdbb2 - Implement DbgkpConvertKernelToUserStateChange. I just remembered that there's actually 3 debug subsystems in NT: Win32, Native and Kernel, so this structure will still need to be heavily parsed at the Win32 level (in kernel32) before user-mode debuggers can work (so I'll have to write a small native-mode debugger test app to test this implementation first).
- Implement DbgkpMarkProcessPeb.

svn path=/trunk/; revision=24577
2006-10-20 06:12:54 +00:00
Alex Ionescu
2a37845ce0 - Fix kernel symbol loading.
svn path=/trunk/; revision=24576
2006-10-20 05:41:01 +00:00
Alex Ionescu
9c4178c05b - Define DBGKM_APINUMBER
- Implement DbgkpSendApiMessageLpc, DbgkpSendApiMessage, DbgkCopyProcessDebugPort, DbgkForwardException, DbgkFreeDebugEvent, DbgpWakeTarget.
- Close original handle in DbgkOpenHandles.

svn path=/trunk/; revision=24575
2006-10-20 05:16:04 +00:00
Alex Ionescu
0d09a4e5f9 - Fixup DEBUG_OBJECT definition.
- Implement DbgkpCloseObject.
- Implement DbgkpOpenHandles.
- Fix various bugs in the code and flag usage.
- Enable calling DbgkClearProcessDebugObject when terminating a process.

svn path=/trunk/; revision=24574
2006-10-19 20:08:52 +00:00
Ged Murphy
41ba900587 - test app to display both the system and device image lists.
- this app confirms the overlay icons in the device image list are part of the list.

svn path=/trunk/; revision=24573
2006-10-19 16:55:11 +00:00
Alex Ionescu
aef24e2a4a - Implement the entire kernel-mode native interface of Debug Objects, minus a few missing operations in NtWaitForDebugEvent:
- NtCreateDebugObject, NtDebugContinue, NtDebugActiveProcess, NtRemoveProcessDebug, NtSetInformationDebugObject, NtWaitForDebugEvent.
- Of course, the entire backend is stubbed out.
- Implement Debug object initialization (not called yet) and close(not done) and delete (done) callbacks.

svn path=/trunk/; revision=24572
2006-10-19 07:04:21 +00:00
James Tabor
42d7cdbd64 Add four more members to the Gdi user data (DC_ATTR) structure. Sort the list later.
svn path=/trunk/; revision=24571
2006-10-19 04:48:51 +00:00
Alex Ionescu
ad5eb998a6 - Fix SD charges to 2048 bytes instead of 2000.
- Fix a memory leak in ObOpenObjectByName. Object Create Information is now freed.

svn path=/trunk/; revision=24570
2006-10-19 03:09:19 +00:00
Alex Ionescu
fb85f19b88 - Implement Object Type Resource Lock, since object types are shared across all objects and thread-safety is critical. Used it everywhere where I think it's needed. Thomas, can you check if I missed anything please?
- Use interlocked increase/decrease for accounting variables inside the Object Type instead of acquiring a full lock or not being thread safe.
- Clear the creator type list of an object if it lost all its handles.
- Fix a bug in NtduplicateObject which was potentially derefernecing a garbage pointer (thanks Prefast!).

svn path=/trunk/; revision=24569
2006-10-19 02:54:48 +00:00
Alex Ionescu
51a79c26bd - Set OBJ_OPENLINK invalid for core object types.
- Initialize symbolic link in-line with other core object types.
- Use the SePublicDefaultUnrestrictedSd directly instead of building another SD.
- Create core directory objects with Nt* functions instead of Ob*, to insure full accounting and error-handling.
- Create core objects with OBJ_CASE_INSENSITIVE.
- Fix the huge ObInit hack which was manually inserting Directory and Type object types in the type directory, and now loop the type list. Now we don't skip the Process, Token, Thread, Job, Section types anymore.
- Support Quota Information during object allocation and deallocation isntead of ignoring it.
- Use interlocked decrement when touching the object type (since it's a shared structure. We don't use the lock yet, but we won't for this anyways, since it's a simple lockable operation).
- Use the right object key when freeing the object.
- Modify the allocation function for a more optimized way of allocating objects instead of having to keep track of two sets of variables. 
- Add various accounting variables.
- Make sure to properly handle allocations without object create info (ie, for object types). Now they get creator info and name info (which allowed us to cleanp the hack in ObInit).
- Add checks to see if Quota informatio is needed.
- Clear CreatorBackTraceIndex during allocation.
- Remove CreatorUniqueProcess hack from back when the idle thread was NULL.
- Do not zero out the header during allocation anymore, since this slows down the routine (instead, simply zero out the 2 fields that are NULL).
- Locate and clearly display that the fact we zero objects on creation is a HACK that needs to be fixed. (The Token code makes this assumption).
- Update HighWaterNumberOfObjects when needed.
- If caller didn't give pool charges, use the one from the object type.
- Clear the Total/HighWater* values for newly created object types instead of using random values.
- Properly typecast the WCHAR tag as CHAR.
- Insert each new object type in the ObTypeObjectType Type List.
- Set the Index member of each new object type and insert each new object type in the ObpObjectTypes array. This is crucial for object type enumeration when implemented.
- Fixup the way we insert new object types into the tree. Allow failure and don't return a type if we couldn't insert it, and only reference the type directory object if it actually exists.
- Move DOS Devices\"??" initialization in its own routine and fix it:
  - Use Nt APIs for all operations instead of raw I/O.
  - Create GLOBALROOT link to \
  - Create \??\Global link to \??

svn path=/trunk/; revision=24568
2006-10-19 02:20:32 +00:00
Hervé Poussineau
c4a6f8d938 Fix calling convention for class callbacks
svn path=/trunk/; revision=24567
2006-10-18 22:40:39 +00:00
Thomas Bluemel
cc6eeaab94 Fix gcc4 warning (thx to Herve)
svn path=/trunk/; revision=24566
2006-10-18 21:35:18 +00:00
Thomas Bluemel
c9ba938610 fix gcc4 warning
svn path=/trunk/; revision=24565
2006-10-18 21:18:02 +00:00
Alex Ionescu
7716bdddbb - A much simpler and featured RawFs driver that I had been working on while learning how to write simple FS drivers. Still missing some advanced functionality (Lite Stream File Objects and FS Notifications) because the Kernel doesn't fully support them yet. This one actually creates the \\Device names so that user-mode can even talk to it.
svn path=/trunk/; revision=24564
2006-10-18 18:00:42 +00:00
Alex Ionescu
1b96a22c6c - Combine PnpInit1/2 since they were called one after the other.
- Load RAW driver while loading boot drivers.
- Cleanup IoInitSystem a bit more.

svn path=/trunk/; revision=24563
2006-10-18 17:46:55 +00:00
Ged Murphy
fd5116b50c To stop the app hanging when enumerating, use a separate thread for enumerating exclusively
svn path=/trunk/; revision=24562
2006-10-18 15:50:05 +00:00
Alex Ionescu
9b785911ed - Some stuff I promised James. This is DC_ATTR from Win2K, IIRC (you called it GDI_USER_DATA). It changed a bit in XP, but now you have a working model. Also added some more flags/enums that I knew about and some font structures.
svn path=/trunk/; revision=24561
2006-10-18 06:00:31 +00:00
James Tabor
31280506e9 Set GDI_BatchLimit from TEB.
svn path=/trunk/; revision=24560
2006-10-18 03:55:28 +00:00
James Tabor
f7420ccbad Add more DCDWord constants and two more members in GdiUserData structure.
svn path=/trunk/; revision=24559
2006-10-18 03:54:35 +00:00
Ged Murphy
37741f841f fix a couple of warnings msvc highlighted
svn path=/trunk/; revision=24558
2006-10-17 23:11:02 +00:00
Ged Murphy
400f62c0f2 - enumerate devices in a separate thread so it doesn't stall opening of the main window
- check for problems with devices, e.g. disabled devices (currently missing code to display overlay icons)
- enable / disable the properties command dependant on what item is selected
- fix a few potential bugs

svn path=/trunk/; revision=24557
2006-10-17 15:56:41 +00:00
Magnus Olsen
fead15e683 adding windows 28592 (iso-2859-2) latin2 to ansi to utf -8 converter in roswebparser
svn path=/trunk/; revision=24556
2006-10-17 15:16:06 +00:00
Aleksey Bragin
95d350f6fe Having two cats with the same name in one repository is too much
svn path=/trunk/; revision=24555
2006-10-17 15:02:51 +00:00
James Tabor
7b814c1069 Add another member to GdiUserData structure.
svn path=/trunk/; revision=24554
2006-10-17 05:52:35 +00:00
James Tabor
7b6642d8a0 Implement Get & Set batch limit.
svn path=/trunk/; revision=24553
2006-10-17 05:30:54 +00:00
Alex Ionescu
07b9937721 - Merge some parts of IoInitSystem in the same main function instead of calling out to 10 external modules.
- Re-factor some code into smaller functions.
- Don't create some Object Directories twice, since now ExpCreateSystemRootLink does some of them.
- Add some failure paths to I/O Init.
- Implement a function to mark the boot partition DO_SYSTEM_BOOT_PARTITION in order to better catch some bugchecks.

svn path=/trunk/; revision=24552
2006-10-17 05:14:57 +00:00
James Tabor
6dc593f684 Win32k GDI Compatibility Project:
- Add new Gdi user data structure
- Fixed Meta constants
- Add new GetDCWord constant

svn path=/trunk/; revision=24551
2006-10-17 04:32:18 +00:00
Alex Ionescu
7c42b991f3 - One school day and two midterms later, I'm still the only one with enough time to fix a header. Can't wait to see who will be up for trying to fix booting...
svn path=/trunk/; revision=24550
2006-10-17 04:20:48 +00:00
Thomas Bluemel
9d10081480 Fixed usage of uninitialized variable warning
svn path=/trunk/; revision=24549
2006-10-16 15:55:33 +00:00
Alex Ionescu
3b6c356260 - Fix user-mode compilation.
svn path=/trunk/; revision=24548
2006-10-16 15:27:12 +00:00
Thomas Bluemel
503b41d90b Fix a typo. Thanks to Dmitry Timoshkov
svn path=/trunk/; revision=24547
2006-10-16 11:26:24 +00:00
Alex Ionescu
f9a7faa6e5 - Implement RtlGetElementGenericTable using ordered node/element.
- The splay tree generic table package is now complete. (The AVL package was done by Art earlier).

svn path=/trunk/; revision=24546
2006-10-16 04:08:09 +00:00
Alex Ionescu
a18f3458b2 - Fix GCC compile bug.
svn path=/trunk/; revision=24545
2006-10-16 03:53:48 +00:00
Alex Ionescu
d403bc14c4 - Create "AVL FUNCTIONS" section tag.
- Implement RtlENumerateGEnericTableWithoutSplaying.

svn path=/trunk/; revision=24544
2006-10-16 03:51:49 +00:00
Alex Ionescu
cac3dc3812 - Implement RtlLookupElementGenericTableFull.
- Implement RtlEnumerateGenericTable.

svn path=/trunk/; revision=24543
2006-10-16 03:47:47 +00:00
Alex Ionescu
cef2ebcee2 - Implement RtlIsGenericTableEmpty, RtlNumberGenericTableElements.
- Implement RtlLookupElementGenericTable.
- Implement RtlDeleteElementGenericTable

svn path=/trunk/; revision=24542
2006-10-16 03:39:49 +00:00
Alex Ionescu
dbb8a15d7c - Added some generic table routines to rtlfuncs.h so that they can be used in user-mode.
- Implemented RtlInsertElementGenericTable and RtlInsertElementGenericTableFull (Splay-Tree versions). Also implemented a helper function RtlpFindGenericTableNodeOrParent when we're not given one and need to locate it manually.
- Defined structure for generic table entries so that we can properly return user data and do the right allocations.

svn path=/trunk/; revision=24541
2006-10-16 03:19:14 +00:00
Alex Ionescu
693525bd5a - Organize file by AVL/Splay routines.
- Add RtlLookupFirstMatchingElementGenericTableAvl stub.
- Fixup some formatting/tag spacing and prototype definitions.

svn path=/trunk/; revision=24540
2006-10-16 02:49:23 +00:00
Alex Ionescu
d280d7f5a7 - Fix a bug in FreeLdr key creation (patch by Filip Navara).
- Make cmlib use the StorageTypeCount value since my new Cm code needs it.

svn path=/trunk/; revision=24538
2006-10-16 02:04:09 +00:00
Hervé Poussineau
6ea6b76acd Add some missing exports
svn path=/trunk/; revision=24537
2006-10-16 02:02:51 +00:00
James Tabor
2834696d89 Add object type COLORSPACE mask.
svn path=/trunk/; revision=24536
2006-10-16 01:39:34 +00:00
James Tabor
8835a6c1cb First of the Win32k-Gdi compatibility changes.
svn path=/trunk/; revision=24535
2006-10-16 01:29:27 +00:00
James Tabor
7e06d0e8cf Fix text line.
svn path=/trunk/; revision=24534
2006-10-16 01:22:21 +00:00
Hervé Poussineau
48a7051b20 Correctly return FALSE in SeAccessCheck if access is not granted
Don't always check the first ace in the DACL

svn path=/trunk/; revision=24533
2006-10-15 23:31:16 +00:00
Hervé Poussineau
09da758c64 Don't force a security descriptor to have an owner
svn path=/trunk/; revision=24532
2006-10-15 21:24:21 +00:00
Hervé Poussineau
842f4cfb17 Include intrin.h only if compiler is GCC.
svn path=/trunk/; revision=24531
2006-10-15 20:09:04 +00:00
James Tabor
ad7f6254da Fixed definition for NtUserLoadKeyboardLayoutEx.
svn path=/trunk/; revision=24530
2006-10-15 20:07:45 +00:00
Thomas Bluemel
e5cb57f9f5 Implement the advapi32 part of ImpersonateAnonymousToken
svn path=/trunk/; revision=24529
2006-10-15 19:58:57 +00:00
Thomas Bluemel
6f2586bb50 Add a stub for NtCompareTokens
svn path=/trunk/; revision=24528
2006-10-15 19:12:41 +00:00
Magnus Olsen
7c6ad03034 adding ansi to utf-8 converting
support follow code pages
oem437, oem850, windows28591 ( iso-2859-1 Latin 1)

svn path=/trunk/; revision=24527
2006-10-15 19:07:19 +00:00
Thomas Bluemel
ef9ac412e7 Implemented AddMandatoryAce
svn path=/trunk/; revision=24526
2006-10-15 16:52:25 +00:00
Thomas Bluemel
0414f87d02 Make some strings const
svn path=/trunk/; revision=24524
2006-10-15 13:07:03 +00:00
Thomas Bluemel
f0203ef66d Fixed one more optimization bug
svn path=/trunk/; revision=24523
2006-10-15 13:03:54 +00:00
Thomas Bluemel
5a34618d8e Sorry, accidently committed a bug...
svn path=/trunk/; revision=24522
2006-10-15 12:50:30 +00:00
Thomas Bluemel
f682bf63e7 Fix buffer overflow in KiGetCpuVendor, thanks to Michael Fritscher for reporting this bug.
svn path=/trunk/; revision=24520
2006-10-15 12:41:48 +00:00
Thomas Bluemel
809d98521c Remove ASSERT(FALSE) statement
svn path=/trunk/; revision=24516
2006-10-15 12:23:15 +00:00
Thomas Bluemel
fa1f06919a Fix optimization bug
svn path=/trunk/; revision=24513
2006-10-15 10:53:53 +00:00
Art Yerkes
789a033291 Fixed avl tree completely.
- We can't use the builtin node as a sentinel in exactly the same way as used
in the austin lib, so we account for that by treating the builtin node like
nil a few places.

svn path=/trunk/; revision=24510
2006-10-14 17:29:41 +00:00
Aleksey Bragin
8e756fbebc - Use loader memory types in memory allocation bitmap instead of 0 for free memory and 1 for allocated
- Slightly change / add comments

svn path=/trunk/; revision=24509
2006-10-14 13:36:21 +00:00
Hervé Poussineau
201f1d750e Better stub for ScmrSetServiceObjectSecurity
svn path=/trunk/; revision=24508
2006-10-13 21:14:07 +00:00
Magnus Olsen
275c588825 include/GL folders files update to mingw w32s api version 3.6
svn path=/trunk/; revision=24506
2006-10-13 19:54:59 +00:00
Hervé Poussineau
633ffc6a05 Set file security information (if provided in .inf file)
svn path=/trunk/; revision=24505
2006-10-13 19:50:02 +00:00
Thomas Bluemel
ff377bd3d2 Don't accidentally free the object name path in case it wasn't altered when resolving paths to handles
svn path=/trunk/; revision=24504
2006-10-13 19:19:16 +00:00
Hervé Poussineau
e53f089662 Disable DbgBreakPoint() in release versions. This lets "copy nul com1:" fail instead of crashing.
Next task: fix cmd.exe to let the command succeed

svn path=/trunk/; revision=24503
2006-10-13 14:31:57 +00:00
Thomas Bluemel
25bc0553d1 Fix building with GCC4
svn path=/trunk/; revision=24502
2006-10-13 12:52:24 +00:00
Johannes Anderwald
728ea14e4f - add cat, load, unload, infinst, nts2w32err, objdir, partinfo to build system
- fix includes in those modules

svn path=/trunk/; revision=24501
2006-10-13 10:56:52 +00:00
Johannes Anderwald
7ee180373e - add binpatch to build system
- fix a gcc warning

svn path=/trunk/; revision=24500
2006-10-13 09:56:30 +00:00
Johannes Anderwald
d9692ef1cd - give stats an rbuild file
- compile stats as an unicode app

svn path=/trunk/; revision=24499
2006-10-13 09:41:59 +00:00
Johannes Anderwald
d3e4805f4d - give tickcount a rbuild file
svn path=/trunk/; revision=24498
2006-10-13 09:16:34 +00:00
Aleksey Bragin
d200d605f4 Move unmaintained stuff (cis, os2, rosky, vms, and msvc6) to a respective branch [02/02]
svn path=/trunk/; revision=24497
2006-10-13 09:03:51 +00:00
Art Yerkes
a8e91f11af Fixen. Delete is still broken.
We now use BalancedRoot->Parent as the nil element and distinguish it from
the embedded element.
Fix null and root macros, assert macro and some other stuff.

svn path=/trunk/; revision=24495
2006-10-13 07:02:04 +00:00
Aleksey Bragin
20d422c02d - Fix a mistake in low memory pages allocation algorithm (commit-reviewers, where are you? :))
svn path=/trunk/; revision=24494
2006-10-12 20:46:07 +00:00
Hervé Poussineau
3dce4b0486 Read object security descriptors from .inf file. Apply them for registry keys and services and display a message for files
svn path=/trunk/; revision=24493
2006-10-12 09:01:16 +00:00
Hervé Poussineau
32ac32df07 Better stubs for RpcImpersonateClient and RpcRevertToSelf (taken from Wine)
svn path=/trunk/; revision=24492
2006-10-12 08:57:21 +00:00
Hervé Poussineau
cc0716b65d Send right security descriptor to InitializeObjectAttributes, so ntoskrnl won't fail
The code was working because we never tried to call RegCreateKeyEx with a security descriptor...

svn path=/trunk/; revision=24491
2006-10-11 23:11:59 +00:00
Hervé Poussineau
47ef13cf4a Replace incomplete and broken implementations of ConvertStringSecurityDescriptorToSecurityDescriptorW and ConvertStringSidToSidW by new ones
svn path=/trunk/; revision=24490
2006-10-11 22:14:05 +00:00
Hervé Poussineau
dc1d41df49 Add some definitions
svn path=/trunk/; revision=24489
2006-10-11 21:57:22 +00:00
Hervé Poussineau
a29de84b89 Don't try to signal init event, as it has been removed in r24413/24414
svn path=/trunk/; revision=24488
2006-10-11 18:25:22 +00:00
Thomas Bluemel
5cb6da33e5 Fixed InterlockedExchangeAdd
svn path=/trunk/; revision=24487
2006-10-11 17:41:42 +00:00
KJK::Hyperion
11962157c1 How could so much be so wrong in so little code is something future generations will forever ponder in vain. Fixed constraints on inline asm outputs for compare-exchange intrinsics
svn path=/trunk/; revision=24486
2006-10-11 16:07:45 +00:00
Thomas Bluemel
c0c399894e Some header upgrades
svn path=/trunk/; revision=24485
2006-10-11 11:44:40 +00:00
Thomas Bluemel
d395d0ad39 Fix polling of ShutdownNotify
svn path=/trunk/; revision=24484
2006-10-11 10:34:36 +00:00
Aleksey Bragin
e81472d5d0 - Add global var for keeping size of NLS data in pages
- Restructure memory-map building loop to create special descriptor for NLS data
- Fix a bug in memory-map building loop which lead to not covering last XXX pages of memory

svn path=/trunk/; revision=24483
2006-10-10 15:20:03 +00:00
Art Yerkes
79e9d9d8aa Added 'austin' AVL implementation and provide a binding for the AVL functions
in generictable.

Not tested, (but nothing relies on it yet).

Austin is
 Copyright (C) 2000 Kaz Kylheku <kaz@ashi.footprints.net>
 Copyright (C) 2000 Carl van Tast <vanTast@netway.at>

Copying, reuse and modification are permitted on liberal terms.

svn path=/trunk/; revision=24482
2006-10-10 12:31:16 +00:00
Aleksey Bragin
a8e5dde037 Add a stub to peloader.c
svn path=/trunk/; revision=24481
2006-10-10 10:42:07 +00:00
Aleksey Bragin
3bef467687 - Implement WinLdrLoadBootDrivers() / WinLdrLoadDeviceDriver() - to be able to load boot-time drivers
- Perform hardware detection in the beginning (I had to insert RegInitializeRegistry() hack because MachHwDetect initializes certain stuff in registry)
- Convert info from hwdetect to suitable form in LPB (code by Alex Ionescu, just moved/adapted). Debug routine added to output its contents.
- Move allocation memory for NlsData into "phase 0" (AllocateAndInitLPB)
- Fixed SystemRoot to be of a correct form (later will be autogenerated of course, now just for reference)

svn path=/trunk/; revision=24480
2006-10-10 10:38:45 +00:00
Filip Navara
493f953a0c Fix setting of SystemBootDevice and SystemStartOptions in registry.
Fix detection of MiniNT systems.

svn path=/trunk/; revision=24479
2006-10-10 00:22:04 +00:00
Filip Navara
7bbb81a0d4 Sort the key indexes in CM.
svn path=/trunk/; revision=24478
2006-10-09 23:43:06 +00:00
Hervé Poussineau
ca6e7110f5 - Start NetLogon service (lsass.exe)
- Fix lots of problems in error handling
- Some general cleanup

svn path=/trunk/; revision=24477
2006-10-09 19:19:28 +00:00
Hervé Poussineau
e16a26e1f2 Formatting and add a call to StartServiceCtrlDispatcher
svn path=/trunk/; revision=24476
2006-10-09 19:16:47 +00:00
Magnus Olsen
f86ee0a05c make our msvcrt bit more windows nt4/2000 compatible
do not link _i64toa and _i64tow to ntdll they are missing in windows nt4/windows 2000 ntdll. 

svn path=/trunk/; revision=24475
2006-10-09 18:42:24 +00:00
Magnus Olsen
80c28a9405 fixed so our taskmgr works in windows 2000
svn path=/trunk/; revision=24474
2006-10-09 18:01:56 +00:00
Thomas Bluemel
ca392ef651 Make sure the compiler doesn't optimize away writes to video memory
svn path=/trunk/; revision=24473
2006-10-09 16:37:27 +00:00
Thomas Bluemel
8a80403d2a Some portability fixes that address possible alignment issues. Read R. Chen's blog 10/06/06 for more information.
svn path=/trunk/; revision=24472
2006-10-09 15:09:50 +00:00
Aleksey Bragin
182fc37942 Revert r24430 changes (by Magnus Olsen) since they are incorrect (additionally confirmed by Filip Navara)
svn path=/trunk/; revision=24471
2006-10-09 15:02:33 +00:00
Thomas Bluemel
b79edc3b52 Fix compilation with GCC4
svn path=/trunk/; revision=24470
2006-10-09 14:59:10 +00:00
Thomas Bluemel
2600e04b68 Strings should be const char *. Fixes compilation with GCC4
svn path=/trunk/; revision=24469
2006-10-09 14:54:40 +00:00
Thomas Bluemel
b8dd6657bc Strings should be const char *. Fixes compilation with GCC4
svn path=/trunk/; revision=24468
2006-10-09 14:43:16 +00:00
Mindflyer
c255fa82a3 Change copyright to 1996-2006, because
a) our earliest version records show 1996
b) we are now in 2006

svn path=/trunk/; revision=24467
2006-10-09 12:37:03 +00:00
Aleksey Bragin
b6df2387ba Fix mkhive compiling by adding _NTSYSTEM_ define. This is needed after Thomas' fixes to headers.
svn path=/trunk/; revision=24466
2006-10-09 08:07:19 +00:00
Alex Ionescu
4ffb9d2c3e - Some misc changes to fix some of the 250+ warnings in the MSVC build.
svn path=/trunk/; revision=24465
2006-10-09 05:59:18 +00:00
Alex Ionescu
6951a4887c - Bootvid rewrite by Filip Navara (with some fixes by myself)
- HAL DMA enhancements by Filip Navara.
- CSRSS Console enhancements by Filip Navara.
- Win32k Primitive Queue/Input/Painting/Focus enhancements by Filip Navara.
- Other misc win32k/CSR bug fixes by Filip Navara.
- The new bootvid code has some bugs, but try out a GUI Boot!

svn path=/trunk/; revision=24464
2006-10-09 04:00:34 +00:00
Alex Ionescu
3012ee8072 - Initialize the registry in one shot, and allow it to fail and do the associated CONFIG_INIT_FAILED bugcheck.
- Initialize Io in one shot, with IoInitSystem.
- Locate the system DLL a bit later, since on the boot CD this creates a small incompatibility due to the wrong path being in use.

svn path=/trunk/; revision=24463
2006-10-09 01:16:28 +00:00
Alex Ionescu
b772538a22 - Add RtlInitEmptyAnsiString to DDK.
- Fix a pretty bad stack/memory corruption bug related to IoReassignSystemRoot.
- Combine IoInit2 and IoInit3 into IoInitSystem, and make it return a BOOLEAN, and handle error with the appropriate IO1_INIT_FAILED bugcheck. Will combine IoInit1 soon.

svn path=/trunk/; revision=24462
2006-10-08 23:46:26 +00:00
Alex Ionescu
2b1ade4723 - Remove InitSharedUserDataPage since this entire function is not needed anymore due to the recent ARC improvements.
- Call IoAssignDriverLetters with the proper parameters, and give it a chance to update the SystemRoot path (although our version doesn't yet do this).

svn path=/trunk/; revision=24461
2006-10-08 22:50:26 +00:00
Alex Ionescu
d4b5fef3d6 - Finalize ARC Boot changes:
* Rename IoCreateArcNames to IopCreateArcNames and set it to NTAPI, as well as pass the loader block as a parameter.
  * Reduce buffers to 128 bytes, since ARC Paths don't get longer then that.
  * Optimize stack usage by using a single ANSI_STRING instead of 3 or 4.
  * Optimize stack usage by using a single ansi buffer, not 2 or more.

svn path=/trunk/; revision=24458
2006-10-08 21:38:45 +00:00
Alex Ionescu
b5f79593de - Optimize IopApplyRosCdromArcHack by not searching for the second copy of ntoskrnl if we already found the first.
- Also optimize stack usage by only using an ANSI buffer instead of having another Unicode buffer and unicode strings. Saves 530 bytes of stack.

svn path=/trunk/; revision=24457
2006-10-08 21:16:20 +00:00
Alex Ionescu
5e214ceaa0 - Part 2.5 of ARC Boot changes. Re-factor IoCreateArcNames not to use a list-entry of detected disk from pool that gets looped and de-referenced, but instead use a simple loop which calls a function that gets disk information one-by-one (IopGetDiskInformation), so that it's used on the spot instead of allocated, linked, and retrieved later.
- Inline IopAssignArcNamesToDisk to reduce some stack size abuse and too much parameter shuffling.
- Stack use is still very inefficient, will fix next.

svn path=/trunk/; revision=24456
2006-10-08 21:09:00 +00:00
Thomas Bluemel
73c2dc5053 Some header fixes
svn path=/trunk/; revision=24454
2006-10-08 20:28:03 +00:00
Alex Ionescu
1047de88bf - Greatly simplify and optimize IoCreateArcNames by using ARC data from FreeLDR/NTLDR (now nearly 100% compatible!) instead of querying registry data (which FreeLdr had already set up, so we cached those values like ntldr does).
- Last step is to stop using a list of drives and pool allocated entries, to optimize memory usage and re-factor the code.

svn path=/trunk/; revision=24453
2006-10-08 19:59:53 +00:00
Alex Ionescu
c537eb20f2 - Have FreeLDR fill out ARC_DISK_SIGNATURE information for each detected disk, as it's filling the registry.
- Add code to KiRosFrldrLpbToLpb to convert this array to the official ARC_DISK_INFORMATION structure that contains LIST_ENTRYies for each ARC_DISK_SIGNATURE, and initialize the ArcDiskSignatureListHead.
- The end result will be that in the next patch we can remove a bunch of registry-reading code in IoCreateArcNames.

svn path=/trunk/; revision=24452
2006-10-08 19:34:16 +00:00
Alex Ionescu
7a1b73cf84 - Part 2 of ARC boot changes: Major modifications done to the existing code, as well as re-formatting and cleanup. Floppy ARC names are not created anymore (they don't exist), and CD-ROM ARC name is only created 1) when there is a boot CD and 2) only for the boot CD. This mimics NT functionality.
- Optimize some code paths, mostly by not querying the whole GET_DRIVE_GEOMETRY IRP twice and reducing some buffer usage. Also re-factor some code better into smaller functions.
- Document and work around currently FreeLDR incompatibility (lack of ARC_DISK_INFORMATION) data in LoaderBlock.

svn path=/trunk/; revision=24451
2006-10-08 16:58:03 +00:00
Art Yerkes
6dae10c682 Simplify this since we now have intrin.h
svn path=/branches/powerpc/; revision=24450
2006-10-08 10:50:50 +00:00
Art Yerkes
884712c2ba Also added for merge.
svn path=/branches/powerpc/; revision=24449
2006-10-08 10:31:52 +00:00
Art Yerkes
d56f62106c Move mmu.h to make it more generally accessible since we need translation
functions in windows subdir.

svn path=/branches/powerpc/; revision=24448
2006-10-08 10:27:42 +00:00
Art Yerkes
d908957c65 Really fix font.h
svn path=/branches/powerpc/; revision=24447
2006-10-08 10:18:28 +00:00
Art Yerkes
9c051d65f9 Fix silly error: missing digit.
svn path=/branches/powerpc/; revision=24446
2006-10-08 10:14:01 +00:00
Art Yerkes
4b55d29dd3 Straggler. Early boot video font.
svn path=/branches/powerpc/; revision=24445
2006-10-08 10:11:51 +00:00
Aleksey Bragin
b234cb305e - Add dumping boot drivers list, remove unneded comment
- Implement WinLdrScanRegistry() (based on freeldr's already existing implementation) which searches for boot-loading drivers
- Implement WinLdrAddDriverToList() - it correctly fills an entry in the BootDriversList in LoaderParameterBlock

svn path=/trunk/; revision=24444
2006-10-08 10:06:06 +00:00
Art Yerkes
6cbdc0d820 Partially fixed up tree after merge from HEAD. More to do.
Fixing ICE in gcc is no fun.

svn path=/branches/powerpc/; revision=24443
2006-10-08 10:01:27 +00:00
Aleksey Bragin
3c3080f16b - Add simple support functions to be able to use more RTL in FreeLdr
svn path=/trunk/; revision=24442
2006-10-08 08:54:44 +00:00
Alex Ionescu
6d262bb755 - Whoops, don't call IopReassignSystemRoot twice.
svn path=/trunk/; revision=24441
2006-10-08 07:59:30 +00:00
Alex Ionescu
66f4128216 - Part 1 of ARC boot cleanups/changes: Create a valid \\SystemRoot symbolic link as the system is booting, which points to the ARC name, then, once drivers have loaded, re-assign it to the proper NT Device name. Added proper security descriptors and flags to symbolic links, as well as proper bugchecks when required.
- Kept and cleaned up the ROS hack for CD-ROM boot.

svn path=/trunk/; revision=24440
2006-10-08 07:53:37 +00:00
Alex Ionescu
9307f32ce3 - More re-shuffling of initialization calls, including enabling access to the blue screen much much earlier (no point in doing it so late, but this change is not that useful since soon we'll have bootvid).
- Split Po init in two, so the early Po init (which we'll need to do eventually) doesn't depent on the later Po init (which uses a PnP notification which depends on the Io system).
- Make I/O initialize quite a bit later.

svn path=/trunk/; revision=24439
2006-10-08 04:47:26 +00:00
Alex Ionescu
4b00ba5d4d - Inline and make some slight correctiions to KiInitailizeSystemClock, since it's based on the Ex subsystem, not Ke. Add code for boot-time timezone bias, but currently disabled because I need to implement a function to read configuration registry data at startup.
- Improve Init bugchecks to give the exact module that failed. Add Kd initilization in the same block as the other subsystems.
- Rename and re-arrange some initlization calls.

svn path=/trunk/; revision=24438
2006-10-08 04:05:27 +00:00
Alex Ionescu
9088db842e - Stub LdrVerifyMappedImageMatchesChecksum.
- Separate locating the system DLL from initializing it.
- Implement split-phase PsInitSystem for Phase 0 and 1, and make system dll initialization as part of phase 1.
- Add MmVerifyImageIsOkForMpUse and MmCheckSystemImage to validate the system DLL.
- Add a separate bugcheck for each failure in PsLocateSystemDll, matching with the NT bugchecks that would occur.

svn path=/trunk/; revision=24437
2006-10-08 02:10:34 +00:00
Alex Ionescu
ebd9a573ec - In NTLDR boot, try to get the first kernel physical address from the loader entries.
- Fixup HAL's image base in the loader parameter block, since we load it at a different place then freeldr tells us.
- We've reached a dead end in NTLDR compatibility. Out memory manager initialization code makes some assumptions which are totally incompatible with the page table state that NTLDR gives us.

svn path=/trunk/; revision=24436
2006-10-08 00:04:03 +00:00
Alex Ionescu
378f64d047 - FreeLDR: Create the loader entry for ntoskrnl now that FreeLDR PE-loads it since last year. This lets us remove a large hack in ntoskrnl which was manually creating the entry and filling it in.
- Rename some LastKrnl... addresses into MmFreeLdr to easily identify them, and remove the need to use MmFreeLdrMemLower and MmFreeLdrPageDirectoryStart.
- Remove the static KERNEL_BASE definition based on a GCC-specific external. Everything now uses the actual module entry's saved base address.
- Fix a Ps Initialization hack and properly set the boot PDE.
- Add a hack for NTLDR's lack of MmFreeLdrMemHigher and MmFreeLdrPageDirectoryEnd.

svn path=/trunk/; revision=24435
2006-10-07 22:23:35 +00:00
Ged Murphy
f8fa7d16f8 move the string parsing routine into it's own function so it can be used with DeviceProblemWizard_RunDLL when required.
svn path=/trunk/; revision=24434
2006-10-07 15:02:43 +00:00
Ged Murphy
71bc38ca20 testing ros-diffs
svn path=/trunk/; revision=24433
2006-10-07 14:35:22 +00:00
Aleksey Bragin
a40bc5ff5f - Add structure for describing boot-loaded drivers
svn path=/trunk/; revision=24432
2006-10-07 13:07:25 +00:00
Alex Ionescu
b53f179583 - Fix calls to HvInitializeHive
svn path=/trunk/; revision=24431
2006-10-06 23:11:49 +00:00
Magnus Olsen
2db2156bb3 Fixed control apps windows, Let me known if it create any regress.
svn path=/trunk/; revision=24430
2006-10-06 21:59:42 +00:00
Aleksey Bragin
41c8741041 - Load and initialize in-memory registry
- Query NLS file names from registry instead of hardcoding
- Move loading of NLS data to WinLdrLoadAndScanSystemHive()

svn path=/trunk/; revision=24429
2006-10-06 21:20:36 +00:00
Alex Ionescu
e2295b6e85 - Fix calls to HvInitializeHive due to my last patch. Proof that Fireball doesn't properly test his commits... I broke Freeldr building before his commit, yet he commited it anyway even though freeldr couldn't build ;). Just kidding.
svn path=/trunk/; revision=24428
2006-10-06 20:52:50 +00:00
Aleksey Bragin
0b9fa0e21a - Make arc-path passed to the kernel look a bit more correct (still a hack of course)
- Add KdCom.dll loading along with ntoskrnl.exe and hal.dll
- Move registry-related code to a new file wlregistry.c
- WinLdrLoadAndScanSystemHive() is going to combine loading, initializing and parsing registry. NLS / OEM font data loading is marked with FIXMEs now, since it needs going into that routine (because registry tells the file names, not hardcoding them)

svn path=/trunk/; revision=24427
2006-10-06 20:28:55 +00:00
Alex Ionescu
9bfa61479f - Add PROFILE_ACPI_DOCKING_STATE.
- Fix HvInitialize definition to match more closely NT's since I need some of the extra parameters for the cm rewrite.
- Implement ExInitializePushLock and ExConvertPushLockSharedToExclusive macros.

svn path=/trunk/; revision=24426
2006-10-06 19:29:25 +00:00
Ged Murphy
6318f42ad0 fix a TCHAR brain lapse...
svn path=/trunk/; revision=24425
2006-10-06 17:10:57 +00:00
Ged Murphy
2380e7bb33 implemented DeviceProperties_RunDLLW and DeviceProperties_RunDLLA
svn path=/trunk/; revision=24424
2006-10-06 16:08:54 +00:00
Alex Ionescu
a4c366b659 - Add internal EX_CALLBACK Object to NDK. (Callback blocks are a new NT 5.2 kernel mechanism much like RunOncs blocks in Vista user-mode). They're managed by rundown protection and fast-referencing through interlocked calls to push/pop/sychrnonize system callbacks.
- Add ObOpenObjectByName to NDK, since this API is not documented in official headers.

svn path=/trunk/; revision=24422
2006-10-06 06:36:35 +00:00
Alex Ionescu
45d84c9668 - Guard some current cmlib includes against new cm branch
- Remove NTSYSAPI from NtBuildNumber definition in NDK.

svn path=/trunk/; revision=24416
2006-10-05 23:01:38 +00:00
Alex Ionescu
8859463623 - Remove SMSS's code for signaling the "init" event.
- Make ExpInitNls responsible for NLS initialization in Phase 0 as well, to clean up the code in ExpInitailizeExecutive a bit.
- Initialize the system time/clock in Phase 1, not in Phase 0.
- Do HAL Phase1 initialization as the first step in Phase 1 initialization, then initialize the system clock (since the HAL's RTC is now configured).
- Do Ob Phase 1 init in Phase 1 initialization, not in phase 0.
- Do Ke Phase 1 init after HAL, Ob and Ex phase 1 inits.
- Initialize NLS for Phase 1 after Ke Phase 1, instead of much later.

svn path=/trunk/; revision=24414
2006-10-05 16:38:58 +00:00
Alex Ionescu
093d1a3aba - Get rid of the completely convoluted way that Phase 1 initialization was being ended, with umpteen events and waits and timeouts all synchronized from user-mode and do a simple 5-second wait to determine if smss started OK or not.
- Promote the Phase 1 initialization thread by jumping directly into the zero-page thread, and remove manual zero-page thread initialization code since we simply jump into its main routine.
- 100 less lines of code :)

svn path=/trunk/; revision=24413
2006-10-05 16:14:28 +00:00
Alex Ionescu
eb8c705ce9 - Put all Phase 1 Ex* Initialization in ExpInitSystemPhase1 and clean up associated deprecated calls.
- Call ExpInitializePushLocks since we weren't doing this before.

svn path=/trunk/; revision=24412
2006-10-05 15:13:59 +00:00
Alex Ionescu
3f66fcf605 - Rewrite ExpLoadInitialProcess by inlining and simplifying what the call to RtlCreateProcsesParameters should do, and also create our own custom environment with the same arguments that NT's smss gets.
- This optimizes booting as well as gets use the differnet SESSIONY_INITIALIZATION_FAILED, where Y is a number representing which step of the process parameter/envieonment creation failed.

svn path=/trunk/; revision=24411
2006-10-05 14:49:20 +00:00
Aleksey Bragin
3727f8fc7d - Add #ifdef DEBUG / #endif to fix compile. FreeLdr's debug macros needs some improvement in the future...
svn path=/trunk/; revision=24410
2006-10-05 09:15:44 +00:00
Alex Ionescu
5162751ab3 - Use KeLoaderBlock for registry hive loading.
- Get rid of the CACHED_MODULE array and associated structures and stop using them, get rid of ParseAndCacheLoadedModules. Stop using KeLoadedModules and KeLoadedModuleCount outside of freeldr.c.
- Except for MmInit1, the kernel should now be totally isolated from FreeLDR-specific data.

svn path=/trunk/; revision=24409
2006-10-05 02:02:27 +00:00
Alex Ionescu
0bfcd77883 - Implement ExpInitNls to initialize the NLS Section using the new semantics recently implemented. Works pretty much like the previous code in rtl/nls.c except it uses the new variable names as well as maps a view of the NLS Table into the system process.c
- Delete rtl/nls.c and all the associated deprecated code.
- Do MmInit1 and SharedUserData stuff *after* initializing the initial thread, to avoid an ASSERT during bootup.

svn path=/trunk/; revision=24408
2006-10-05 01:44:54 +00:00
Ged Murphy
52d60b023b add a few more icons to the device imagelist
svn path=/trunk/; revision=24407
2006-10-04 22:29:18 +00:00
Christoph von Wittich
a387e6f9f8 -removed unused var
svn path=/trunk/; revision=24406
2006-10-04 22:06:00 +00:00
Aleksey Bragin
b103aa1ece - Add most needed memory-manipulating functions. Some places are really crappy (like WinLdrSetProcessorContext's IDT filling), will be fixed soon.
- FIXME: Since FreeLdr doesn't really keep track of which memory is of which type, this code has a massive hack for guessing the memory type, which is incorrect for future usage

svn path=/trunk/; revision=24405
2006-10-04 21:58:36 +00:00
Christoph von Wittich
a361366988 -support debugging of control panel applets
svn path=/trunk/; revision=24404
2006-10-04 21:47:43 +00:00
Christoph von Wittich
245dca159a -don't use GetLastError with Reg* functions
-remove @16 from def file (msvc doesn't like it)

svn path=/trunk/; revision=24403
2006-10-04 21:47:08 +00:00
Aleksey Bragin
602923e572 - Fix warning in winldr.c
- Implement WinLdrAllocateDataTableEntry() used for allocating and initializing the DTE
- Implement WinLdrLoadImage(), which uses LdrRelocateImageWithBias() from RTL, calling it with loader name "FLx86" (RTL should treat it differently -- ROS/WinLdr-specific behavior)

svn path=/trunk/; revision=24402
2006-10-04 21:36:56 +00:00
Aleksey Bragin
76abbb4423 - Remove some crap from the LoadAndBootWindows()
- Change debugging checkpoint to online-asm (all this is temporary), since any code after while(1){}; seems to be just optimized away by gcc
- Uncomment NDEBUG for now

svn path=/trunk/; revision=24401
2006-10-04 21:11:16 +00:00
Thomas Bluemel
32dcc834ed Fix broken resources
svn path=/trunk/; revision=24400
2006-10-04 19:55:53 +00:00
Ged Murphy
a595b4c7da add some overlay icons needed for devmgmt
svn path=/trunk/; revision=24399
2006-10-04 19:04:16 +00:00
Thomas Bluemel
948a1f9045 Fix almost the same bug in LdrGetProcedureAddress as in r24397
svn path=/trunk/; revision=24398
2006-10-04 18:46:57 +00:00
Thomas Bluemel
80da4a434c - Fix binary search algorithm in LdrGetProcedureAddress
- Fix temporary ntdll export hack (r24395)

svn path=/trunk/; revision=24397
2006-10-04 16:51:51 +00:00
Ged Murphy
7e6d549b19 - Open the device propsheet for child items (not parents as there isn't much point)
- Tag the Device ID onto the treeview items and provide functionality to tear it down
- Remove/change some code which wasn't needed to speed up opening time3
- We now have a pretty functional device manager. However it's heavily reliant on devmgr.dll, therefore functionality per device will rely on how complete this lib is.

svn path=/trunk/; revision=24396
2006-10-04 16:39:45 +00:00
Alex Ionescu
d0cb64ce3d - Implement XPSP2+ syscall stub that uses indirect pointer instead of executable code inside KUSER_SHARED_DATA.
- Someone (FILIP!) please fix LdrGetProcedureAddress. It's broken and I had to rename an ntdll export to make it work (see comments).
- Make sure you REBUILD CLEAN. This commit changes NCITool!!!
- Setup some NPX-related CPU features in SharedUserData during KiInitializeKernel.
- Remove some now-deprecated initialization functions.

svn path=/trunk/; revision=24395
2006-10-04 16:00:36 +00:00
Thomas Bluemel
48236aa642 Don't compile with -Wconversion since we have function callbacks that have parameters with sizes different from int without forward declarations. Fixes superfluous warnings.
svn path=/trunk/; revision=24394
2006-10-04 15:19:23 +00:00
Aleksey Bragin
778bad347c - Format code of InstallFatBootcodeToPartition(), changing from tabs+spaces mix to tabs only (use "ignore whitespaces" settings to view other changes)
- Change installation logic when installing to a NTLDR's boot.ini: Firstly freeldr.ini is checked for existence, and either created or updated, then boot.ini is checked for having a proper entry, and if needed - entry is added. Fixes related bugs (having more and more ReactOS entries, no entry added if freeldr.ini already exists in the root folder)

svn path=/trunk/; revision=24392
2006-10-04 12:26:12 +00:00
Magnus Olsen
41dea75354 this file some have forget set eol-style native
fixed

svn path=/trunk/; revision=24391
2006-10-04 10:59:01 +00:00
Art Yerkes
47e3cefe5b - Create a slab that contains the last vestage of our life as the boot program.
- Include a font containing some characters we can use with boot video.
- Copy in a description of the boot framebuffer.
- Add a small ad-hoc number writing function.
- Display our progress building the initial page table.
- We don't necessarily have space in the boot-time page table so just kill
  off boot-time paging.
- Pass ntoskrnl the address of the boot slab.  It contains the boot font, a
  description of the boot video device and all active page table entries.
- Next, well be able to use this in early ntoskrnl space to display our 
  progress etc.  Since we're using phyiscal addresses to write to the boot
  framebuffer, the page table needn't include it.  This simplifies things
  compared to linux, but it's expensive.

svn path=/branches/powerpc/; revision=24390
2006-10-04 08:10:01 +00:00
Magnus Olsen
07725072f3 1. move all languages file to own folder
2. fixed sub languages on allot languages rc files
3. add LMH1 Norwegian translations.

See issue #1698 for more details.

svn path=/trunk/; revision=24389
2006-10-04 06:58:03 +00:00
Alex Ionescu
38a5188c8e - Fix boot crash due to last patch, forgot that SharedUserDAta wasn't available yet.
svn path=/trunk/; revision=24388
2006-10-04 05:59:56 +00:00
Alex Ionescu
a6056d1fa9 - Fix KUSER_SHARED_DATA in winddk.h
- Scanfor NOEXECUTE/EXECUTE/OPTIN/OPTOUT/ALWAYSON/ALWAYSOFF load strings and set the appropriate NX policy in KUSER_SHARED_DATA as well as kernel CPU Feature flags.

svn path=/trunk/; revision=24387
2006-10-04 05:48:46 +00:00
Alex Ionescu
1e4f141555 - Add KF_XMMI64 feature flag for SSE2 and detect it.
- Detect Hyper-Threading and set Local APIC ID (put back Thomas's code that he added in an old revision and that I had accidentally removed and forgotten to re-convert into the new KiGetFeatureBits function).
- Add code to set the kernel MX Csr Mask in the FX Save Area.
- Startup the sysenter handler on the DPC stack.
- Detect and notify users with broken Pentiums.
- Do some NPX checks to forcefully disable any FPU flags that might be set (SSE, MMX, 3DNOW) if the NPX is disabled.

svn path=/trunk/; revision=24386
2006-10-04 05:29:30 +00:00
Alex Ionescu
917979cceb - Make Kernel initialization (KeInit2) portable/more complete. KeInit2 becomes KeInitSystem, the portable part, with a call to KiInitMachineDependent, the arch-specific part.
- Do all CPU configuration through IPIs and synchronize with potential multiple CPUs.
- Add mtrr.c and patpge.c for future support of MTRR, AMD K6 MTRR, PGE and PAT support, with initilization calls in each of them (which only print out a "Sorry" message).
- Add some stubbed code for extra initizliation to do later once some detection things are fixed.

svn path=/trunk/; revision=24385
2006-10-04 03:37:11 +00:00
Ged Murphy
ad0184614e update comctl32 to Wine-0.9.22 to get the new imagelist code.
svn path=/trunk/; revision=24384
2006-10-03 22:46:26 +00:00
Ged Murphy
2ef79f3efe add LPCDLGTEMPLATE definition
svn path=/trunk/; revision=24383
2006-10-03 22:43:46 +00:00
Ged Murphy
f1775cc055 fix processor display
svn path=/trunk/; revision=24382
2006-10-03 20:51:35 +00:00
Thomas Bluemel
99379a7e2c Fix warning
svn path=/trunk/; revision=24381
2006-10-03 20:04:39 +00:00
Ged Murphy
a2d3c5fe33 - Implement the context menu (mouse only at the moment) makeing it accessable when the cursor over the item only
- open the propsheet when double clicking child items
- make 'properties' bold

svn path=/trunk/; revision=24380
2006-10-03 19:55:15 +00:00
Hervé Poussineau
21dd51fc8b Copy i8042prt driver from 0.3.1 branch to trunk. Try #2
svn path=/trunk/; revision=24379
2006-10-03 18:04:03 +00:00
Hervé Poussineau
90b4dc09c7 Of course, I've added one level in directory structure in 24377. Delete the whole i8042prt driver and retry
(Sorry, this revision won't build)

svn path=/trunk/; revision=24378
2006-10-03 18:03:28 +00:00
Hervé Poussineau
273908b19f Copy i8042prt driver from 0.3.1 branch to trunk
svn path=/trunk/; revision=24377
2006-10-03 18:00:04 +00:00
Hervé Poussineau
b207566c12 Add back registry entries from i8042prt/kbdclass/mouclass
svn path=/trunk/; revision=24376
2006-10-03 17:57:29 +00:00
Thomas Bluemel
fd990e9ada Fix displaying Win32 errors (the Reg* APIs don't set the last error code!)
svn path=/trunk/; revision=24375
2006-10-03 17:02:36 +00:00
Thomas Bluemel
7b5fcdd9fa Fix displaying the size of the RAM
svn path=/trunk/; revision=24374
2006-10-03 16:25:13 +00:00
Hervé Poussineau
30189808bf Fix a few warnings
svn path=/trunk/; revision=24373
2006-10-03 14:28:21 +00:00
Ged Murphy
640d89daad set processor information in the sysdm control panel applet
svn path=/trunk/; revision=24372
2006-10-02 23:35:43 +00:00
Andrew Munger
2167cc7a61 Patch from ShadowFlare, bug 1838.
"The current implementation continues to register or unregister additional DLLs
that were specified, even if one of the earlier ones failed.  The behavior on
the Microsoft version is different; if one fails, it stops there instead of
continuing.  Some installers may possibly depend on this behavior."

svn path=/trunk/; revision=24371
2006-10-02 22:21:37 +00:00
Aleksey Bragin
835bb80157 - Add registry entry for usbdriver.sys's legacy loading. Commented out by default.
- Add usbdriver.sys to bootcd

svn path=/trunk/; revision=24370
2006-10-02 21:28:01 +00:00
Aleksey Bragin
903c277247 - Change CONNECT_DATA to DEV_CONNECT_DATA
- Add the last bit to the usb mouse driver to make it functional - recognition by mouclass.sys, and sending input data to it
- Misc small changes

Now USB mouse works in 2nd stage (you need to add usbdriver.sys as a legacy driver to the registry certainly)

TODO, but not of the top priority:
- Make unloading correct

svn path=/trunk/; revision=24369
2006-10-02 21:23:41 +00:00
Hervé Poussineau
c99914fdac Disable keyboard and mouse before checking the i8042 controller.
Flush queue before enabling them

svn path=/trunk/; revision=24368
2006-10-02 21:14:40 +00:00
Hervé Poussineau
3674f2ef32 Fix 2 typos (spotted by Fireball)
svn path=/trunk/; revision=24367
2006-10-02 19:36:14 +00:00
Ged Murphy
3193a5d7e9 - display system RAM on the general page.
- fixes bug 1835

svn path=/trunk/; revision=24366
2006-10-02 18:51:31 +00:00
Hervé Poussineau
b2aeafcad4 Implement CMP_WaitNoPendingInstallEvents
Wait for Pnp manager to finish its job before displaying the 2nd stage setup
Thanks Filip for his precious help on the umpnpmgr.exe side (not thread-safe as Single linked list functions are not implemented in ntdll)

svn path=/trunk/; revision=24365
2006-10-02 18:46:39 +00:00
Ged Murphy
4cfbdb6f63 - Only call SetupDiGetClassDevs once for each class, this makes load time 3 times faster although I'm still not happy with it. We may have to enumerate the drivers in the background.
- use UINT for 1 bit flags, reduce the width a little and check the menu.

svn path=/trunk/; revision=24364
2006-10-02 18:14:58 +00:00
Alex Ionescu
04c5f92621 - Combine SeInit1 and SeInit2 into SeInit since both can be done together now.
- Call PsInitSystem instead of PspInitPhase0, since PsInitsystem is the "external" phase-choosing routine.
- Implement ExComputeTickCountMultiplier to create a 24-bit precision remainder + whole integer of the ms/clock tick used in SharedUserData.
- Set the OS version and Machine Type (i386/PPC (<3 Arty) in SharedUserData.
- Move some HAL calls in Phase 2 (actually Phase 1...), same for KeInit2.
- Break into KDBG a bit earlier.

svn path=/trunk/; revision=24363
2006-10-02 15:52:58 +00:00
Alex Ionescu
06142d4e0d - Setup memory limits in shared user data.
- Loop security descriptors to find NLS data and make a copy of it in kernel pool, because the NLS buffer from NTLDR will be freed on NT. Also discovered a bug in Freeldr where it doesn't allocate ths NLS files sequentially, leaving a hole of 0x1000 between them. Added a hack to compensate (won't break NTLDR booting, just will waste 8KB of memory).
- Allocate the system call count table on checked builds.
- Refactor Ob/Se booting to match more closely NT, and so that we can do Se initialization in one shot.

svn path=/trunk/; revision=24362
2006-10-02 15:05:03 +00:00
Thomas Bluemel
62ac7ad5c9 Fix some warnings
svn path=/trunk/; revision=24361
2006-10-02 13:29:55 +00:00
Alex Ionescu
afa1de7c81 - Implement Phase 0 Ex initialization (Resource, Lookaside initialization) and generic Ex initialization routine.
- Clear the crypto exponent on boot-up.
- Set default global flags for checked builds.
- Set NtSystemRoot (SharedUserData) to C:<NT BOOT PATH> on startup.
- Cleanup lookas.c file and implement routines to initialize the system lookaside list in phase 0.

svn path=/trunk/; revision=24360
2006-10-02 13:23:03 +00:00
Thomas Bluemel
526efd2ee7 Define NTOSAPI before including ntddk.h to avoid including function prototypes with dllimport
svn path=/trunk/; revision=24359
2006-10-02 12:22:17 +00:00
Alex Ionescu
7fcf928e38 - Continue implementation of KiRosFrldrLpbToNtLpb by parsing the FreeLDR command line and:
* Removing the ARC Boot path and splitting it into the ARC Boot Device Name, the ARC HAL Device Name, and the NT Boot and HAL Path Names, saved in their respective LoaderBlock pointers.
  * Converting every slash to a space. ("/DEBUGPORT" -> " DEBUGPORT")
  * Now we can fully parse and read NTLDR command lines.
- Update various code in the kernel to:
  * Use LoaderBlock->ArcDeviceNamePath & friends instead of the command line.
  * Stop depending on slashes, and instead use strstr for parameters.

svn path=/trunk/; revision=24358
2006-10-02 05:40:36 +00:00
Art Yerkes
532db1da72 A 'boot logo' of sorts to show we're about to switch to kernel mode.
We'll pass the FB address into kernel land so we can continue writing on it.

svn path=/branches/powerpc/; revision=24357
2006-10-01 22:57:16 +00:00
Aleksey Bragin
5c112af711 - Add a check to the boot.ini-changing code, to prevent creation of a new ReactOS entry after each installation.
svn path=/trunk/; revision=24356
2006-10-01 21:48:05 +00:00
Andrew Munger
e6adaebbce Resource sync from trunk.
Merged 24269, 24281, 24285, 24292, 24294-24295,
24298-24299, and 24303.

svn path=/branches/ros-branch-0_3_1/; revision=24355
2006-10-01 21:32:47 +00:00
Aleksey Bragin
5cf4352021 - Implement loading of NLS data, SYSTEM hive data (just simple loading into memory, without any kind of parsing or even checking if that data is correct)
- Add a function for creating a stub of hardware config (config consisting of only one node - root)
- Implement two steps of LPB initialization (names Phase 0 and Phase 1 are used internally by me, and doesn't correspond to anything)
- Implement a WinLdrSetupForNt, which allocates and initializes some specific structures (PCR, TSS, GDT, IDT)
- Respectively enable calls to these functions from LoadAndBootWindows()

svn path=/trunk/; revision=24354
2006-10-01 21:15:15 +00:00
Aleksey Bragin
eb998b4eaf - Comment out xbox memory detection for now (until fully switched to NT-style LPB)
- Fix HalpInitializePhase0() prototype
- Add halxbox back to build

svn path=/trunk/; revision=24353
2006-10-01 21:07:25 +00:00
Alex Ionescu
0c1b724e79 - Un-optimize KeGetPcr and make it use fs:20h instead of hard-coding the 0xFF.... address, because someone decided that ROS should have a different KPCR address then NT.
- This gets NTLDR working with ReactOS and I can boot all the way to MmInit1 (which fails due to missing KeMemoryMap & freeldr data).
- Serial port output works with DPRINT1 as well ;-)

svn path=/trunk/; revision=24352
2006-10-01 20:27:36 +00:00
Alex Ionescu
2855e1f08f - Do MmInit1 in KiInitializeKernel so we can access SharedUserData from it (we'll need to setup the CPU Features there).
- Cleanup some external/prototype mess and put them nicely into headers.

svn path=/trunk/; revision=24351
2006-10-01 19:43:18 +00:00
Aleksey Bragin
3d9d36ccff - Add new type of debug print for windows loader
- Add address conversion routines for windows loader
- Add stubs for PE loading, memory operations
- Add some code to the LoadAndBootWindows()

Some notes:
- The windows loader is going to become some kind of a library in future, shared at least between freeldr and EFI loader.
- The code in windows loader is specific to i386 architecture for now, but I add it to the "freeldr_base". I better separate it a bit later, after discussion with arty (because I hardly want compatibility with loading windows on PPC).

svn path=/trunk/; revision=24350
2006-10-01 19:39:49 +00:00
Andrew Munger
b5dbaf9282 Merge the one line fix from 24273 v. 24276.
svn path=/branches/ros-branch-0_3_1/; revision=24349
2006-10-01 19:29:03 +00:00
Alex Ionescu
71e329a125 - Do MmInit1 much earlier in the boot phase (right at the beginning of ExpInitalizeExecutive). This gives us access to things like SharedUserData, which NT has since NTLDR. Will try moving it up even higher.
- Also move some ROS-specific/Freeldr hacks on top of the file so they'll be easier to remove later when needed.
- Fix a bug in ExInitPoolLookasidePointers which was making us overwrite low-memory.
- Initialize NLS tables during Phase 0, so that the associated APIs can work earlier.
- Bugcheck if HAL Phase 0 initialization failed, and force interrupts enabled after the HAL is ready.

svn path=/trunk/; revision=24348
2006-10-01 19:27:10 +00:00
Alex Ionescu
9f40202dfc - Add setupblk.h from TinyKRNL with all the definitions for NT's SETUPLDR structures (SETUP_LOADER_BLOCK and hardware configuration stuff). Update KiRosFrldrLpbToNtLpb to setup the Flags field of this block to "Text-Mode Setup Active" when we know that we're in ROS text mode.
- Update ExpInitializeExecutive to check for a valid setup block and detect text-mode and network installation modes. Use ExpInTextModeSetup instead of SetupMode variable, to make detection compatible with NTLDR.

svn path=/trunk/; revision=24347
2006-10-01 18:27:59 +00:00
Alex Ionescu
cbfbbdb7f1 - Implement ExpIsLoaderValid to validate the LOADER_PARAMETER_BLOCK's extension for the right size and version (we currently support 5.2 and over).
- Add code in KiRosFrldrLpbToNtLpb to setup a LOADER_PARAMETER_EXTENSION and set the right version and size.
- Initialize the per-CPU PRCB Paged/NPaged lookaslide pool lists.
- Add code to support application CPUs booting in ExpInitializeExecutive, and pass the loaderblock as a parameter.

svn path=/trunk/; revision=24346
2006-10-01 18:01:38 +00:00
Alex Ionescu
0adfdd1ace - Implement static compile-time assertions and use them for structure field checks. Thanks to Thomas and KJK.
svn path=/trunk/; revision=24345
2006-10-01 15:52:10 +00:00
Alex Ionescu
4f1804b0c0 - Use __readfsdword instead of de-referencing the Boot PCR, which is not queried for Application CPUs. (And put the Goto back where it was). Thanks to Thomas Weidenmueller for noticing.
svn path=/trunk/; revision=24344
2006-10-01 15:22:42 +00:00
KJK::Hyperion
41ecee90f7 Fixed:
- _InterlockedCompareExchange64 (more efficient handling of 64-bit operands)
 - __writecr0, __writecr3, __writecr4 (for real this time)

svn path=/trunk/; revision=24343
2006-10-01 14:49:07 +00:00
Thomas Bluemel
70da417c02 Fix usage of a uninitialized variable, unnecessary goto not replaced by a if(...) statement
svn path=/trunk/; revision=24342
2006-10-01 14:02:08 +00:00
Thomas Bluemel
d7978d0054 fix __writecr0, __writecr3 and __writecr4
svn path=/trunk/; revision=24341
2006-10-01 12:33:24 +00:00
Thomas Bluemel
408d13caaa Fix function name (fixes a redefinition error)
svn path=/trunk/; revision=24340
2006-10-01 12:19:36 +00:00
Hervé Poussineau
5895844509 Add ufatx.dll, to be able to create FATX (Xbox file system) partitions
svn path=/trunk/; revision=24339
2006-10-01 10:11:46 +00:00
Hervé Poussineau
72a9a3af12 Rewrite SetupDiGetClassImageListExW and SetupDiGetClassImageIndex which were completly wrong
Add stub for SetupDiDestroyClassImageList
Now, you can see some icons in device manager

svn path=/trunk/; revision=24338
2006-10-01 09:05:19 +00:00
Alex Ionescu
ebafbecc80 - Fix Ki386InitializeTss to use dynamic GDT calculated from KiGetMachineBootPointers instead of static internal address. Now NTLDR boots us all the way to HalInitializeProcessor.
svn path=/trunk/; revision=24337
2006-10-01 07:31:33 +00:00
Alex Ionescu
7c753a339a - Put IDT in RW .data section
- Fix Ki386InitializeTss to properly set Boot TSS descriptor data (set it to 32-bits). Also properly setup the DF/NMI Task Gates in the IDT.

svn path=/trunk/; revision=24336
2006-10-01 07:24:24 +00:00
Alex Ionescu
00564d63b7 - Clear KPCR->TEB during bootstrap as well.
- Use KPCR_PROCESSOR_NUMBER instead of 0x130.

svn path=/trunk/; revision=24335
2006-10-01 06:46:08 +00:00
Alex Ionescu
aebf830821 - Add two more lines in boot.S which detect boot-by-NTLDR and jump into KiSystemService (I thought FreeLdr didn't use the entrypoint, but it looks like it does, so this hack is needed). Detection is done by checking for the high bit in the PLOADER_PARAMETER_BLOCK pointer, which will be set on NT.
- Fix a double bug in KiSystemStartup. First, we were setting KPCR->Number instead of KPRCB->Number. Second, we were using KeGetPcr instead of __writefsdword. It worked on ROS because KeGetPcr is hard-coded to ROS's KPCR buffer.

svn path=/trunk/; revision=24334
2006-10-01 06:43:26 +00:00
Alex Ionescu
790760dcf4 - Remove all the remaining code in boot.S and make KiRosPrepareForSystemStartup fastcall. Now NtProcessStartup just does a jmp to KiRosPrepareForSystemStartup without any other code.
- Use freeldr's stack during all of freeldr.c, and only switch to the boot stack in KiSystemStartup before calling KiInitializeKernel. This is what NT does as well (it piggybacks on NTLDR's stack until then). This allowed us to clean boot.S and now we can boot from NTLDR properly.

svn path=/trunk/; revision=24333
2006-10-01 06:08:05 +00:00
Art Yerkes
042ade46e9 Working out boot video, fixed memory map completely.
svn path=/branches/powerpc/; revision=24332
2006-10-01 05:46:59 +00:00
Alex Ionescu
380f89c205 - Fully use KeLoaderBlock->InLoadOrderListHead for driver loading and symbol lookups, instead of KeLoaderModules/KeLoaderModuleCount. Still not 100% compatible with NTLDR (since it uses BootDriverListHead with a special structure), but much closer to a portable design that doesn't rely on static kernel data.
- Change some internal functions to use UNICODE_STRING instead of PCHAR since this is how LdrEntry->BaseDllName is, and also it's closer to NT Design.

svn path=/trunk/; revision=24331
2006-10-01 05:05:57 +00:00
Andrew Munger
32b3c2fdf9 WaxDragon curses BrandonTurner.
svn path=/branches/ros-branch-0_3_1/; revision=24330
2006-10-01 04:57:50 +00:00
Andrew Munger
786ac12c99 Oops. I forgot the branch has a config.rbuild...
svn path=/branches/ros-branch-0_3_1/; revision=24329
2006-10-01 04:47:34 +00:00
Andrew Munger
550317611d Sync win32k and gdi32_winetest from trunk.
Merged 24228-24229, 24231, 24234-24239,
24255-24257, 24260-24264, 24266-24268,
24270-24271, 24287-24288.

svn path=/branches/ros-branch-0_3_1/; revision=24328
2006-10-01 04:37:32 +00:00
Art Yerkes
6421038be3 Remove the need to relocate freeldr. We now use it in-place as stored in
ofwldr's .data.  Fix call_ofw for more modern macs.
Add more debugging type calls to calls.ofw.


svn path=/branches/powerpc/; revision=24327
2006-10-01 03:30:06 +00:00
Hervé Poussineau
fbe45c7180 Give enough space to retrieve full device class description
svn path=/trunk/; revision=24326
2006-09-30 23:37:44 +00:00
KJK::Hyperion
ae3c3041f4 Fixes to un-break trunk:
* Disabling XBox HAL for now (TEMPORARY MEASURE)
 * Port MP HAL to the new loader structures

svn path=/trunk/; revision=24325
2006-09-30 23:35:17 +00:00
Hervé Poussineau
7227204f68 Better resources handling in serial driver.
All: copy lower device flags to FDO. This prevents the serial mouse to use buffered I/O

svn path=/trunk/; revision=24324
2006-09-30 23:06:51 +00:00
Hervé Poussineau
b606a6771c Do not expect a call to AddDevice with a NULL Pdo. Those are not guaranteed
svn path=/trunk/; revision=24323
2006-09-30 22:41:23 +00:00
Hervé Poussineau
3f47783c54 Implement SetupDiGetDriverInstallParamsW
Add support for DI_FLAGSEX_INSTALLEDDRIVER

svn path=/trunk/; revision=24322
2006-09-30 20:42:47 +00:00
Hervé Poussineau
b0e0c40c5d i8042prt manages PS/2 ports, not PS/2 devices. Take it into account when browsing devices detected by freeldr.
svn path=/trunk/; revision=24321
2006-09-30 19:09:10 +00:00
Hervé Poussineau
c1e52bcfca Fix wrong default registry value, which was possibly leading to non PS/2 keyboard detection at startup
svn path=/trunk/; revision=24320
2006-09-30 17:26:31 +00:00
Thomas Bluemel
41f18c74da Recalculate property sheet sizes after adding/removing sheets.
svn path=/trunk/; revision=24319
2006-09-30 16:31:35 +00:00
Alex Ionescu
c25e3321b0 - Complete much more of KiRosFrldrLpbtoNtLpb. We now:
- Create a LDR_DATA_TABLE entry for each module (driver, hal, kernel) and properly fill it out and insert it into the loader block.
  - Use the NLS data block to hold pointers to the NLS tables.
  - Use the ->RegistryBase/Length loader block members to hold pointers to the SYSTEM hive.
  - Create a MEMORY_ALLOCATION_DESCRIPTOR for each type of memory currently used (LoaderNlsData, LoaderRegistrydata, LoaderSystemCode, LoaderHalCode, LoaderBootDriver).
  - Changes are currently UNUSED!
- Revert LOADER_PARAMETER_BLOCK change, it actually really is PNLS_DATA_BLOCK.

svn path=/trunk/; revision=24318
2006-09-30 16:04:23 +00:00
Alex Ionescu
13ccbc28b2 - Re-remove intrinics from winddk.h
- Fix a typo in LOADER_PARAMETER_BLOCK

svn path=/trunk/; revision=24317
2006-09-30 14:57:30 +00:00
Magnus Olsen
10bd13604b adding back __readcr4 and __readcr3 to winddk.h for gcc does not have it. come bit futer build trunk
svn path=/trunk/; revision=24316
2006-09-30 14:43:41 +00:00
KJK::Hyperion
52fb2adb7c Corrected DWORD operand typo (%l -> %k)
svn path=/trunk/; revision=24315
2006-09-30 14:40:12 +00:00
Thomas Bluemel
b1a25bba1d Fix GCC4 warnings
svn path=/trunk/; revision=24314
2006-09-30 11:54:37 +00:00
Magnus Olsen
767b7de159 hopply this will fix hal_xbox build not tested.
svn path=/trunk/; revision=24313
2006-09-30 11:33:21 +00:00
Magnus Olsen
ce35dd9b7b fix build of blue again gcc does not have _disable and _enable, but MSVC have it.
svn path=/trunk/; revision=24312
2006-09-30 10:52:41 +00:00
Ged Murphy
c3a99cfb3e implement refresh, although it runs at a snails pace until the multiple SetupDiGetClassDevs call issue is fixed
svn path=/trunk/; revision=24311
2006-09-30 10:39:36 +00:00
Ged Murphy
c2e551ecea stop icon from changing when selected.
This change doesn't seem quite right to me, but it works for now

svn path=/trunk/; revision=24310
2006-09-30 10:31:28 +00:00
Ged Murphy
f8df38ff88 add a line at the root of the tree for user ergonomics :)
svn path=/trunk/; revision=24309
2006-09-30 10:18:04 +00:00
Alex Ionescu
540d96660c - Save processor state in the PKPRCB in KiInitializeKernel.
- Set the booting CPU as idle if no next thread was scheduled.
- Raise IRQL to HIGH_LEVEL upon exiting KiInitializeKernel to match the re-lowering to DISPATCH_LEVEL in KiSystemStartup (and subsequent interrupt flush).

svn path=/trunk/; revision=24308
2006-09-30 07:04:49 +00:00
Alex Ionescu
f516d2846e - Add loop around the KiFreezeExecutionLock before continuing OS boot.
- Only check for break-in on the Boot CPU.
- Set priority to 0 *Before* lowering to DISPATCH_LEVEL.
- Also force interrupts to be enabled before lowering IRQL.
- Also set the idle thread's wait irql to DISPATCH_LEVEL (might fix some odd crashes) and set it as Running on UP builds (on SMP builds this is done in other code).

svn path=/trunk/; revision=24307
2006-09-30 06:18:45 +00:00
Alex Ionescu
eb0f964be3 - Fix some bugs in intrin.h (missing __inline__ statments in some locations, which were causing warnings due to "static").
- Remove intrinsics in winddk.h since they're now properly done in intrin.h (thanks KJK!!!)
- Make freeldr.c setup the boot KTSS like NTLDR does, so that the GDT entry for it is valid (and remove the code that was doing this from Ki386InitializeTss)
- Refactor KiSystemStartup to use 100% dynamic pointers and machine data queried from the Loader Block or actual GDT/IDT/Selectors in memory, isntead of hard-coded ntoskrnl offsets. This makes it possible to be loaded by NTLDR, which sets these system structures up by itself. (we do it in freeldr.c, as hacks).

svn path=/trunk/; revision=24306
2006-09-30 05:42:22 +00:00
Alex Ionescu
8b1ba6c11a - Use LOADER_PARAMETER_BLOCK everywhere in ReactOS except freeldr.c
- Implemented KiRosFrldrLpbtoNtLpb to do a lightweight conversion and setup. Next patches will try to get rid of PLOADER_MODULE and use LDR_DATA_TABLE_ENTRY as well as increase bootstrap compatibility.

svn path=/trunk/; revision=24305
2006-09-30 03:33:50 +00:00
Andrew Munger
723627e679 Merge 24208, 24236, 24242, and 24259 from trunk. LiveCD fixes.
svn path=/branches/ros-branch-0_3_1/; revision=24304
2006-09-30 02:54:20 +00:00
Ged Murphy
79e7a43785 - update french timedate resource file
- patch by Sylvain Petreolle

svn path=/trunk/; revision=24303
2006-09-29 18:04:15 +00:00
Aleksey Bragin
cad356e2d8 Add devmgmt to the build system, thus fixing make bootcd
svn path=/trunk/; revision=24302
2006-09-29 17:57:20 +00:00
Ged Murphy
1533a93526 add devmgmt.exe as it's usable in ROS now
svn path=/trunk/; revision=24301
2006-09-29 17:34:50 +00:00
Aleksey Bragin
b652b371db - Implement device creating, with the specified DeviceExtension
- Add stub for processing IRPs sent to the mouse driver

TODO (will be done once problem with load-order will be resolved):
- Store mouclass's callback address
- Actually call it thus making driver working
- Cleanup routines

svn path=/trunk/; revision=24300
2006-09-29 17:07:48 +00:00
Ged Murphy
c89da0aef0 there's always one that gets away ...
svn path=/trunk/; revision=24299
2006-09-29 17:07:17 +00:00
Ged Murphy
db3ddf3123 - Add the device imagelist icons to setupapi.
- It appears SetupDiGetClassImageListExW will need some work before these are usable though.

svn path=/trunk/; revision=24298
2006-09-29 16:56:24 +00:00
Ged Murphy
91b9b125db - fix the treeview so it displays parent and child devices
- display the device icons for each item
- other bits and bats I'm too lazy to list
- it still load slowly due to multiple calls to SetupDiGetClassDevs. Need to think of a better way of gathering the info. For now though, it works.

svn path=/trunk/; revision=24297
2006-09-29 16:38:38 +00:00
Aleksey Bragin
4da7594216 - Change in CONNECT_DATA for drivers so that they get direct pointer to the raw configuration data returned by the device
- Spelling fixes
- More debug prints added to ease debugging
- Added entries for mouse and keyboard drivers (keyboard is currently commented out)
- Implemented actual usb mouse driver - contains 1 hack aimed to correct determining the endpoint. Driver fully works except for actually sending data to win32k/HID driver stack

svn path=/trunk/; revision=24296
2006-09-29 09:08:20 +00:00
Ged Murphy
1d1b74fa19 change run icon as a few people wanted something more fitting and add 2 more icons to the system imagelist
svn path=/trunk/; revision=24295
2006-09-28 22:57:09 +00:00
Ged Murphy
cc033012dd new timedate and powercfg icons
svn path=/trunk/; revision=24294
2006-09-28 22:14:00 +00:00
Ged Murphy
c31fb83895 rename folder to make it clear
svn path=/trunk/; revision=24293
2006-09-28 22:03:03 +00:00
Ged Murphy
0d942e1cef fix the floppy icons and add 2 new ones for network drives.
svn path=/trunk/; revision=24292
2006-09-28 22:01:07 +00:00
Ged Murphy
4aa949d1df - Reserve enough space on the heap to store the GUID
- Thanks to Thomas for restoring my sanity

svn path=/trunk/; revision=24291
2006-09-28 21:36:12 +00:00
Ged Murphy
afcf1f7b14 clean up irregularities
svn path=/trunk/; revision=24290
2006-09-28 21:15:51 +00:00
Ged Murphy
7c67a5ec0d Initial development of a devmgmt.msc clone.
Unusable at the moment though.

svn path=/trunk/; revision=24289
2006-09-28 20:05:17 +00:00
Magnus Olsen
2e3507e05d NtGdiCreateDIBitmap
fixed 2 more hiden bugs (cause some crash/bsod) but not the bug I am searching for. 

svn path=/trunk/; revision=24288
2006-09-28 19:08:07 +00:00
Magnus Olsen
9e939c11e9 fix a hidden bug in IntCreateBitmapIndirect
svn path=/trunk/; revision=24287
2006-09-28 18:32:09 +00:00
Hervé Poussineau
eeef3f67ba Support mount manager in disk.sys
svn path=/trunk/; revision=24286
2006-09-28 16:33:12 +00:00
Ged Murphy
c191e989a6 update a few cpl icons
svn path=/trunk/; revision=24285
2006-09-27 22:40:18 +00:00
Magnus Olsen
86e57e8c93 hpoussin forget change this regkey to SOFTWARE\\Microsoft\\WindowsNT\\CurrentVersion\\Winlogon"
svn path=/trunk/; revision=24284
2006-09-27 17:30:08 +00:00
Thomas Bluemel
28d82c0229 Don't use BOOL for 1 bit flags because it's signed.
svn path=/trunk/; revision=24283
2006-09-27 12:43:50 +00:00
Thomas Bluemel
87099f3ca6 Move the memory in RtlpDeleteData instead of copying it because the source and destination may be overlapping.
svn path=/trunk/; revision=24282
2006-09-27 12:28:25 +00:00
Hervé Poussineau
fa9c62c9a0 Patch by Matthias Kupfer
Fix tiny typo in all rc-files "%" -> "%s"
See issue #1828 for more details.

svn path=/trunk/; revision=24281
2006-09-26 21:08:11 +00:00
Hervé Poussineau
36032a956d Fix format build.
Why dependency tracking didn't detect this problem? Another mystery...

svn path=/trunk/; revision=24280
2006-09-26 19:52:55 +00:00
Hervé Poussineau
2c56c7d7e8 Merge from Wine:
Frank Richter <frank.richter@gmail.com>
setupapi: Duplicate behaviour of native SetupGetInfInformation with NULL ReturnBuffer and certain ReturnBufferSizes.

svn path=/trunk/; revision=24279
2006-09-26 19:44:17 +00:00
Hervé Poussineau
21ff1ddb3d Fix some warnings in winlogon code
Change winlogon registry key to "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" for compatibility reasons, as some programs read it directly

svn path=/trunk/; revision=24278
2006-09-26 19:18:02 +00:00
Hervé Poussineau
572541f16a Two more constants found in FMIFS...
svn path=/trunk/; revision=24277
2006-09-26 19:12:39 +00:00
Alex Ionescu
54403619f8 - In some far, far away galaxy, a long, long time ago, Greatlord will learn to fix 1-line bugs and/or talk to the developers responsible instead of reverting their code...until then....
svn path=/trunk/; revision=24276
2006-09-26 05:29:46 +00:00
Art Yerkes
77caf5c3c7 Checkpoint in here. More work needed.
svn path=/branches/powerpc/; revision=24275
2006-09-26 03:33:05 +00:00
Art Yerkes
1956e17bc7 Added some needed OFW calls.
svn path=/branches/powerpc/; revision=24274
2006-09-26 03:29:53 +00:00
Magnus Olsen
7a0843f8af fixed overlaping memory problem with RtlMoveMemory. The rewrite of RtlMoveMemory did not handling overlaping memory. it shows with ntdll_winetest rtl, use the old asm version from the string.a instead
svn path=/trunk/; revision=24273
2006-09-25 23:46:32 +00:00
Magnus Olsen
b3f30cb100 restore files mem.c and memgen.c
restore no i386 arch define in rbuild
do not remove it, it is for build on no i386 platform
the was accident delete in r23830 

svn path=/trunk/; revision=24272
2006-09-25 23:26:08 +00:00
Magnus Olsen
56c76b3069 NtGdiSetViewportExtEx
fix a bsd by moving in some value to seh last
 we can run gdi32_winetest mapping without bsd

svn path=/trunk/; revision=24271
2006-09-25 21:28:09 +00:00
Magnus Olsen
4c2f6e8647 implement PEN_GetObject, we can now get pen from GetopjectType. and manger pass some new wine test
svn path=/trunk/; revision=24270
2006-09-25 20:12:43 +00:00
Johannes Anderwald
ff8121c676 * fix typo in german resource file spotted by pilic
* fix bug 1797
* set svn-eolstyle:native property
See issue #1797 for more details.

svn path=/trunk/; revision=24269
2006-09-25 19:28:40 +00:00
Magnus Olsen
888f16ea6f NtGdiRestoreDC
1. fix do not delete all hdc and the restore hdc. 
2. fix calc of SaveLevel the calc are not perfect

we only have 6 fails when we try restore dc now with wine gdi32 test dc 

svn path=/trunk/; revision=24268
2006-09-25 18:50:40 +00:00
Saveliy Tretiakov
b79a852fe5 - PATH_RoundRect from wine
- RtlCopyMemory -> memcpy


svn path=/trunk/; revision=24267
2006-09-25 08:06:20 +00:00
Magnus Olsen
604ab3e4c0 Fixed some bugs in win32k function BITMAP_GetObject.
svn path=/trunk/; revision=24266
2006-09-25 05:25:11 +00:00
Art Yerkes
5ece9e35c8 Add missing file from the branch. Preparing to move build hosts.
svn path=/branches/powerpc/; revision=24265
2006-09-25 01:43:46 +00:00
Magnus Olsen
6f10b47b94 update winetest gdi32 with more wine test
svn path=/trunk/; revision=24264
2006-09-24 22:27:00 +00:00
Magnus Olsen
2b9e96e558 fixed another build break by me :(
svn path=/trunk/; revision=24263
2006-09-24 21:17:31 +00:00
Magnus Olsen
08256d0670 sorry I broken the build it fixed now
svn path=/trunk/; revision=24262
2006-09-24 21:10:36 +00:00
Magnus Olsen
9b6f293ce5 adding more missing struct need them later in winetest
svn path=/trunk/; revision=24261
2006-09-24 20:53:47 +00:00
Magnus Olsen
235dd5fe2b adding more missing struct
svn path=/trunk/; revision=24260
2006-09-24 20:28:57 +00:00
Art Yerkes
350e281e1c Fix use of unicode for unix host regardless of -fshort-wchar.
svn path=/trunk/; revision=24259
2006-09-24 20:14:44 +00:00
KJK::Hyperion
29b494be56 Cosmetic changes
svn path=/trunk/; revision=24258
2006-09-24 18:07:21 +00:00
Saveliy Tretiakov
2047460d02 memcpy -> RtlCopyMemory
assert -> ASSERT


svn path=/trunk/; revision=24257
2006-09-24 17:10:58 +00:00
Saveliy Tretiakov
a5b535fee4 - Implement NtGdiStrokePath and NtGdiStrokeAndFillPath (based on wine)
- Get rid of PATH_GetPathFromDc()


svn path=/trunk/; revision=24256
2006-09-24 17:02:29 +00:00
Saveliy Tretiakov
a04da34bc0 More prototypes
svn path=/trunk/; revision=24255
2006-09-24 17:01:46 +00:00
Hervé Poussineau
f1d365f767 Don't hardcode the list of available filesystems in fmifs.dll, but store it in the registry.
Adding a filesystem is now only a matter of creating a u{FS}.dll + one registry entry to be able to use normal format.exe/chkdsk.exe/...

svn path=/trunk/; revision=24254
2006-09-24 13:42:24 +00:00
Hervé Poussineau
9cea0fddde Display available file systems in usage screen
svn path=/trunk/; revision=24253
2006-09-24 12:50:51 +00:00
Hervé Poussineau
c492ac0ccc Implement QueryAvailableFileSystemFormat and SetLabel in fmifs.dll
Fix a few prototypes

svn path=/trunk/; revision=24252
2006-09-24 11:55:58 +00:00
Hervé Poussineau
e84a6d47b1 [FORMATTING] Replace spaces by tabs
svn path=/trunk/; revision=24251
2006-09-24 11:08:27 +00:00
Hervé Poussineau
7c4cca9870 Add a filter command in KDBG, which is a wrapper around NtSetDebugFilterState/NtSetDebugFilterState.
svn path=/trunk/; revision=24250
2006-09-24 10:39:43 +00:00
Magnus Olsen
595ffab596 Update some gdi32 winetest
svn path=/trunk/; revision=24249
2006-09-24 09:43:16 +00:00
Magnus Olsen
9e99515740 adding two more missing define
svn path=/trunk/; revision=24248
2006-09-24 09:41:28 +00:00
Magnus Olsen
9f553707a1 adding OBJ_COLORSPACE it was missing, need it soon
svn path=/trunk/; revision=24247
2006-09-24 09:24:23 +00:00
Magnus Olsen
7f9492fc2f tested in dib16
Fixed all wine test for brush, zero fualt now
passing all 32 test fine. 
gdi32 bitmap test only 7 fails now

svn path=/trunk/; revision=24246
2006-09-24 08:36:56 +00:00
Hervé Poussineau
2abe11c82a Revert r24233, which leads to have the header written too late in debug log and was preventing a crash during the first DbgPrint calls when using GDB
Replace it by another fix (not tested)

svn path=/trunk/; revision=24245
2006-09-24 07:38:53 +00:00
Magnus Olsen
c32cdd8bfb revers 24232 for cause some other unknown regress.
I need found a better way to solv the null termeting strings

svn path=/trunk/; revision=24244
2006-09-24 07:30:43 +00:00
Hervé Poussineau
7bfdc5ceb7 Allow digits in computer name.
http://www.reactos.org/bugzilla/show_bug.cgi?id=1806#c2 still needs to be checked
See issue #1806 for more details.

svn path=/trunk/; revision=24243
2006-09-24 06:25:49 +00:00
Art Yerkes
5d46ef1a26 Fix mkhive on unix.
svn path=/trunk/; revision=24242
2006-09-24 02:58:31 +00:00
Hervé Poussineau
939cbfc4c7 Report correct interrupt resources to ntoskrnl
svn path=/trunk/; revision=24241
2006-09-23 22:26:28 +00:00
Hervé Poussineau
68434f2227 Add default destination for driver files in keyboard.inf
svn path=/trunk/; revision=24240
2006-09-23 22:09:18 +00:00
Hervé Poussineau
9e314810ae Skip keyboard detection in freeldr, as it doesn't work in Qemu 0.8.2
svn path=/trunk/; revision=24239
2006-09-23 20:21:41 +00:00
Aleksey Bragin
cd007816d8 Change #defines of bios memory types to a proper enum. Makes it easier to distinguish BIOS memory types and FreeLoader's memory types (in future).
svn path=/trunk/; revision=24238
2006-09-23 16:50:39 +00:00
Hervé Poussineau
0e779901fc Do not display the group name of a service if it doesn't exists
svn path=/trunk/; revision=24237
2006-09-23 16:06:15 +00:00
Hervé Poussineau
edeb548dd1 Subkeys names should be case insensitive.
Fixes the 'make install' problem, where shell was not starting at third boot

svn path=/trunk/; revision=24236
2006-09-23 16:01:02 +00:00
Magnus Olsen
52b43f7ae9 IntGdiCreateSolidBrush
Remove the if table I did. 
Remove Color = Color & 0xffffff to Color = Color
that gave same result and pass equal many wine test. 
we still have some werid xlate bugs some where, for set/get pixel. I should have remove Color & 0xffffff in frist place. but the code did look right.  


svn path=/trunk/; revision=24235
2006-09-23 15:54:11 +00:00
Magnus Olsen
2d24316959 fixed some more setpixel bugs
svn path=/trunk/; revision=24234
2006-09-23 12:33:54 +00:00
Aleksey Bragin
e126931cb0 - Issue a synchronous invalidate device relations request instead of asynchronous (eliminates the "can't open \SystemRoot\ bugcheck during 2nd stage startup)
- Comment out usbport/usbhub/etc from bootcd, they will be enabled once they don't crash and/or slow down system.

svn path=/trunk/; revision=24233
2006-09-23 09:34:34 +00:00
Magnus Olsen
cc70b77eca add NULL termate on ansi string when WideCharToMultiByteCP doing wchar to ansi converting.
svn path=/trunk/; revision=24232
2006-09-23 07:28:44 +00:00
Magnus Olsen
63535f6e15 remove folder gdi for all gdi test are in gdi32
svn path=/trunk/; revision=24231
2006-09-23 06:19:28 +00:00
Andrew Munger
8f9a18cfff Merge 24219-24222, and 24209 from trunk.
svn path=/branches/ros-branch-0_3_1/; revision=24230
2006-09-22 21:45:35 +00:00
Magnus Olsen
cfe10b7a75 Implement BRUSH_GetObject it is not perfect, it return wrong color in some case. But we get down from 20 to 11 fails in wine test.
Wine say GetObject (HANDLE obj, INT Count, PVOID * Buffer) if Buffer is NULL return the requeuer size in bytes

svn path=/trunk/; revision=24229
2006-09-22 20:19:49 +00:00
Magnus Olsen
391e807b81 finish implement NtGdiCloseEnhMetaFile it is not fully tested it can contain bugs
svn path=/trunk/; revision=24228
2006-09-22 17:26:20 +00:00
Magnus Olsen
230edc01b6 merges ros-branch-0_3_1 r24226 to trunk with arty permission. "ARP query support. Thanks to WaxDragon for encouragement and debugging."
svn path=/trunk/; revision=24227
2006-09-22 08:10:11 +00:00
Art Yerkes
50ee081131 ARP query support.
Thanks to WaxDragon for encouragement and debugging.

svn path=/branches/ros-branch-0_3_1/; revision=24226
2006-09-22 06:36:16 +00:00
Aleksey Bragin
2a0160473e Add an MM api to get the memory map from Freeldr's memory manager (as opposed to MachGetMemoryMap which gets architecture-specfic memory map returned by BIOS/firmware/etc).
Currently this api is unused, it's going to be used by windows/reactos bootloader in future.

svn path=/trunk/; revision=24224
2006-09-21 17:25:41 +00:00
Saveliy Tretiakov
7d1faef9ee Fix boot with /DEBUGPORT=GDB and /DEBUGPORT=COM1. I don't know why, but this works...
svn path=/trunk/; revision=24223
2006-09-21 07:42:21 +00:00
Magnus Olsen
d42d3c29c0 set GetLastErrorMsg if CreateFontIndirectA(NULL) are use as inputparam . it make same beauvoir as CreateFontIndirectW
svn path=/trunk/; revision=24222
2006-09-21 02:47:37 +00:00
James Tabor
6d8ba42532 Fix CreateFontIndirectA so it will not bigcheck with a null pointer.
svn path=/trunk/; revision=24221
2006-09-20 21:34:08 +00:00
James Tabor
18733c4397 Kill debug prints.
svn path=/trunk/; revision=24220
2006-09-20 21:09:30 +00:00
James Tabor
fff3bf11fa Gdi32 font.c:
- Patch by Dmitry Timoshkov
  - If there is no space for strings GetOutlineTextMetricsA should not indicate that they present.

svn path=/trunk/; revision=24219
2006-09-20 20:36:27 +00:00
Hervé Poussineau
f1cf836837 Big update of i8042prt driver. The driver is now plug&play compliant and some mouse driver filters may be installed.
svn path=/trunk/; revision=24218
2006-09-20 18:56:04 +00:00
Hervé Poussineau
d2241f8ec4 If boot resources are provided, use them instead of using resource requirements.
In all cases, translate the resource list before calling the driver

svn path=/trunk/; revision=24217
2006-09-20 18:16:24 +00:00
Aleksey Bragin
364cdf1951 - Add ability to allocate either "low" or "high" pages
- Don't display a warning to user if allocating memory at certain address fails
- Change debug prints so they tell in which function allocation failed
- Include RTL and LDR headers from NDK, so that it's possible to use functions from RTL in FreeLdr in future

svn path=/trunk/; revision=24216
2006-09-20 16:54:54 +00:00
Saveliy Tretiakov
b9ade034f9 Fix booting with /DEBUGPORT=GDB and Pice too.
svn path=/trunk/; revision=24215
2006-09-20 15:00:17 +00:00
Hervé Poussineau
9907e96a49 Save correct boot resources lists in registry
svn path=/trunk/; revision=24214
2006-09-20 14:46:21 +00:00
Magnus Olsen
3138af456a commit rc languages to xml parser for the webservre and standalone.
svn path=/trunk/; revision=24213
2006-09-20 14:38:37 +00:00
Thomas Bluemel
8e90ccee4d Some tchar fixes
svn path=/trunk/; revision=24212
2006-09-20 09:54:00 +00:00
Thomas Bluemel
d0e354f6c1 Fix warnings
svn path=/trunk/; revision=24211
2006-09-20 09:27:59 +00:00
Brandon Turner
59c2e127cc Add a config.rbuild and set DBG=0
svn path=/branches/ros-branch-0_3_1/; revision=24210
2006-09-19 17:38:10 +00:00
Andrew Munger
14d0c5f34a Initialize h_alises with a length 1 array containing a terminating null as specified. Patch by arty. (Fixes ncftp connection)
svn path=/trunk/; revision=24209
2006-09-19 04:25:14 +00:00
James Tabor
f8fcca6f06 Kill some warnings.
svn path=/trunk/; revision=24208
2006-09-18 23:37:22 +00:00
Andrew Munger
ece02ec90c Bump to 0.3.1-SVN
svn path=/branches/ros-branch-0_3_1/; revision=24207
2006-09-18 22:59:55 +00:00
Ged Murphy
3f0a7fb997 - Add a cute custom control to sysdm allowing dialogs to display hyperlink style text which can open web pages and run exe's.
- see the general page, and the user account dialog for examples.

svn path=/trunk/; revision=24205
2006-09-18 22:25:00 +00:00
Andrew Munger
d00d45c34e Reapply entrypoint fix, patch from Usurp.
svn path=/trunk/; revision=24204
2006-09-18 21:49:12 +00:00
The Wine Synchronizer
d3cd32d90d Autosyncing with Wine HEAD
svn path=/trunk/; revision=24203
2006-09-18 16:59:16 +00:00
The Wine Synchronizer
d88a99e18e Autosyncing with Wine HEAD
svn path=/trunk/; revision=24202
2006-09-18 16:52:25 +00:00
The Wine Synchronizer
9e9bd06847 Autosyncing with Wine HEAD
svn path=/trunk/; revision=24201
2006-09-18 16:51:34 +00:00
The Wine Synchronizer
1b0a889e2b Autosyncing with Wine HEAD
svn path=/trunk/; revision=24200
2006-09-18 16:50:11 +00:00
The Wine Synchronizer
446242dfb2 Autosyncing with Wine HEAD
svn path=/trunk/; revision=24199
2006-09-18 16:49:02 +00:00
The Wine Synchronizer
2cb8454522 Autosyncing with Wine HEAD
svn path=/trunk/; revision=24198
2006-09-18 16:47:55 +00:00
The Wine Synchronizer
11c17d1dc0 Autosyncing with Wine HEAD
svn path=/trunk/; revision=24197
2006-09-18 16:46:41 +00:00
The Wine Synchronizer
04b927e3ff Autosyncing with Wine HEAD
svn path=/trunk/; revision=24196
2006-09-18 16:45:21 +00:00
Hervé Poussineau
a11691c3c4 Autosyncing with Wine HEAD
svn path=/trunk/; revision=24195
2006-09-18 16:41:29 +00:00
The Wine Synchronizer
82845620c6 Autosyncing with Wine HEAD
svn path=/trunk/; revision=24194
2006-09-18 16:36:06 +00:00
The Wine Synchronizer
8bde95b20e Autosyncing with Wine HEAD
svn path=/trunk/; revision=24193
2006-09-18 16:32:05 +00:00
The Wine Synchronizer
fab72e48ec Autosyncing with Wine HEAD
svn path=/trunk/; revision=24192
2006-09-18 16:28:29 +00:00
Hervé Poussineau
ed5305eeae Autosyncing with Wine HEAD
svn path=/trunk/; revision=24191
2006-09-18 14:34:40 +00:00
Johannes Anderwald
f8b5e46f8b * fix build
svn path=/trunk/; revision=24190
2006-09-18 10:58:00 +00:00
Aleksey Bragin
a42c7ad876 Fix some defines used in fiber.S in kernel32.dll (fixes build)
svn path=/trunk/; revision=24189
2006-09-18 08:56:28 +00:00
Magnus Olsen
6e100cf43f revert 24179 it was bad idea. and wrong way todo it on
See issue #21478 for more details.

svn path=/trunk/; revision=24188
2006-09-18 05:13:17 +00:00
Alex Ionescu
8b094bf093 - Implement FPU Exception Handler.
- We can now properly handle FPU faults (wrote a small test for invalid fpu precision).
- OpenGL probably still doesn't work, as there might be some bugs around the place. However, you should not see FPU Bugchecks anymore.

svn path=/trunk/; revision=24187
2006-09-18 02:33:21 +00:00
Alex Ionescu
03c36d1a35 - Implement Trap 16: Math Coprocessor Fault. Happens during Floating Point precision error test that I wrote. Simply calls shared NPX handler in KiTrap7.
- Implement some extra checks in KiTrap7 and start coding the NPX shared handler. We *almost* have full FPU support now... (trying to get this done for tomorrow morning so that Greatlord can sent me the 15 000$ he promised...)

svn path=/trunk/; revision=24186
2006-09-18 01:07:13 +00:00
Alex Ionescu
d228dcccad - On SMP systems, update KPROCESS->ActiveProcessors and assert their validty. Needed for a similar assertion and check in KiSwapProcess which we already have.
- Also on SMP, make sure to clear the KTHREAD's swap-busy lock after the actual swap has been done.

svn path=/trunk/; revision=24185
2006-09-18 00:34:13 +00:00
Alex Ionescu
2ea699f94e - Assert that the current CPU is the one the thread is supposed to be running on.
- Get CR0, read the KTHREAD NPX State, disable interrupts and verify if the NPX state is dirty. If it is, then reload CR0 with the new value. Re-enable interrupts. This sequence should make FPU work during context switching, but I haven't tested yet. At the very least, it should get rid of TRAP_FAULT_UNKNOWN blue screen.
- Set TEB in the same time as the selector is being configured, not way earlier.

svn path=/trunk/; revision=24184
2006-09-18 00:30:30 +00:00
Alex Ionescu
63da586075 - Fix some bugs in LDT switch (EDI->EBP)
- Turn simple bugcheck into BugCheckEx with information that the helpfile says it should have.

svn path=/trunk/; revision=24183
2006-09-18 00:17:53 +00:00
Alex Ionescu
8de07ee7b4 - Don't update CR3 in KTSS, it's not used.
- Don't read a useless stack pointer anymore.
- Update KTSS_ESP0 near the end of context switching, not at the beginning anymore.
- Same for IOPM and I/O Redirection Map Base Address.

svn path=/trunk/; revision=24182
2006-09-18 00:10:58 +00:00
Alex Ionescu
eaf28f0509 - Stop doing cli/sti doing context switching (For now, since it's only needed for FPU, which isn't yet done).
- Stop using XP KPCR fields for storing stack values, they're not used inside the kernel anymore and now have 2003 values (WMI tracing, etc).
- Move parts of the process switch (LDT reload) out-of-line.

svn path=/trunk/; revision=24181
2006-09-18 00:02:46 +00:00
Alex Ionescu
b52483ba9a - Add func.endfunc decoration.
- Add code to wait for SwapBusy == FALSE on SMP.
- Add stub code to check for new PCR fields in 2003. Currently disabled because thread swap code still uses XP fields.
- Check for active DPCs at the end of thread swap, not at the beginning.
- Set PRCB->IdleThread outside of the thread swap routine.
- Don't set the thread state to running inside the swap routine, we already do it outside.

svn path=/trunk/; revision=24180
2006-09-17 23:17:07 +00:00
Magnus Olsen
70cca480e5 implemet GdiReleaseDC it redirect to NtUserReleaseDC(HWD hwd, HDC hdc) now
svn path=/trunk/; revision=24179
2006-09-17 22:10:24 +00:00
Alex Ionescu
3e709fbbd9 - Fix some insidious bugs in exception handling, mostly related to the art of unwinding (RtlUnwind).
- Can't name specifics, but probably fixes multiple SEH/application bugs/regressions since about 6-8 months ago. Fixes my personal SEH test from 22 failures/crashes/BSODs to 22 succeesses...
- Also fixes some crashes in kernel-kqemu mode.

svn path=/trunk/; revision=24178
2006-09-17 21:09:10 +00:00
Magnus Olsen
45f71f78c8 did delete NtGdiDeleteObjectApp at end of NtGdiCloseEnhMetaFile by mistake. radding it
svn path=/trunk/; revision=24177
2006-09-17 20:42:59 +00:00
Magnus Olsen
fa61787952 Activate CloseEnhMetaFile in gdi32.
We do not leak memory from CreateEnhMetaFile.
 

svn path=/trunk/; revision=24176
2006-09-17 20:22:27 +00:00
Magnus Olsen
d3eeef4046 NtGdiCloseEnhMetaFile
1. translate EMF_Create_HENHMETAFILE to reactos 
2. Delete hdc.

NtGdiCreateEnhMetaFile
1. Set hdc ownership. 


svn path=/trunk/; revision=24175
2006-09-17 20:21:01 +00:00
Alex Ionescu
23dc37d575 - Cleanup except_asm.s and add .func/.endfunc and fix some double definitions.
svn path=/trunk/; revision=24174
2006-09-17 18:44:52 +00:00
Alex Ionescu
b820ec4930 - Fix a bug in KeRaiseUserExceptionDispatcher which was causing us not to set the Exception Address (EIP) in the EH record.
- Fix a terrible stack corruption bug in KeRaiseUserExceptionDispatcher which was causing us to eventually fuck up the stack in user mode (0x14 bytes instead of 0x50 bytes were reserved).
- Protect User-mode Callbacks with SEH, and use STATUS_POP_CALLBACK_STACK.
- Fix another nasty stack corruption bug in user-mode APC delivery.
- Protect User-mode APC delivery with SEH.
- Fix SEH handlers to return EXCEPTION_EXECUTE_HANDLER isntead of ExceptionContinueSearch.

svn path=/trunk/; revision=24173
2006-09-17 17:31:52 +00:00
Magnus Olsen
4493c99327 fast implemet of NtGdiCloseEnhMetaFile
follow thing need be done before it is finish but it will slov leaked memory and filehandle from NtGdiCreateEnhMetaFile
for we have NtGdiCreateEnhMetaFile implement. NtGdiCloseEnhMetaFile is base on wine cvs 15/9-2006
Todo
1. Rewrite it to own api call IntGdiCloseEmhMetaFile
2. Use Zw and Int direcly so we do not need todo  context swith each call
3. Translate follow api to kernel api 
   // hMapping = CreateFileMappingW(Dc->hFile, NULL, PAGE_READONLY, 0, 0, NULL);
   // Dc->emh = MapViewOfFile(hMapping, FILE_MAP_READ, 0, 0, 0);
   // hmf = EMF_Create_HENHMETAFILE( Dc->emh, (Dc->hFile != 0) );


 

svn path=/trunk/; revision=24172
2006-09-17 15:47:29 +00:00
Hervé Poussineau
6afc1a0152 Define some registry entries as not volatile, to prevent new installation of device at each boot
svn path=/trunk/; revision=24171
2006-09-17 15:42:50 +00:00
Hervé Poussineau
3ab77c0239 DeviceNode->ResourceList and DeviceNode->ResourceListTranslated should not share memory with DeviceNode->BootResources
svn path=/trunk/; revision=24170
2006-09-17 15:24:55 +00:00
Alex Ionescu
adb93d9531 - A missing "return" statement to KiDispatchException which was causing all user-mode exceptions to become second-chance and thus crash the app. mIRC works again, and probably numerous other apps (mozilla as well i think, since it had the same issue)
svn path=/trunk/; revision=24169
2006-09-17 15:01:57 +00:00
Hervé Poussineau
551811ac52 Disable some code I did during the last day to repair ReactOS boot. Let's hope it is enough
svn path=/trunk/; revision=24168
2006-09-17 14:27:17 +00:00
Magnus Olsen
5c66b358e1 Upgrade from dejavu font 2.9 to 2.10
reason 
1. Bugfix some charters that did not show in Windows/ReactOS
2. Fixing space between some charters 
3. Dejvau san font support 100% folllow Latin Extended-B, Latin Extended-C, Greek and Coptic, Superscripts and Subscripts, Currency Symbols.
4. and allot more new charters 

svn path=/trunk/; revision=24167
2006-09-17 13:37:59 +00:00
Hervé Poussineau
ac233d6e61 Don't go further than end of string when writing value to registry
svn path=/trunk/; revision=24166
2006-09-17 12:20:44 +00:00
Hervé Poussineau
f271868696 Don't enable acpi service by default, it would be automatically installed if necessary
svn path=/trunk/; revision=24165
2006-09-17 12:17:44 +00:00
Magnus Olsen
15732d3ae2 implement last part of NtGdiCreateEnhMetaFile
it can now create file.  (add ntdll.a to rbuild need RtlDosPathNameToNtPathName_U api)

svn path=/trunk/; revision=24164
2006-09-17 10:56:13 +00:00
Art Yerkes
1226225c28 Add ppc version of bitops header (from linux)
Compile usbuhci, usbohci

svn path=/branches/powerpc/; revision=24163
2006-09-17 10:35:12 +00:00
Hervé Poussineau
b6919c977d Merge from Wine:
James Hawkins <truiken@gmail.com>
- Add stubs for SetupOpenLog, SetupCloseLog, and SetupLogError
- Implement pSetupGetField, with tests.

svn path=/trunk/; revision=24162
2006-09-17 10:34:51 +00:00
Art Yerkes
99c1928bcb Fix b0rked macros
svn path=/branches/powerpc/; revision=24161
2006-09-17 10:19:34 +00:00
Art Yerkes
fd77489b59 Add disable, enable interrupts.
svn path=/branches/powerpc/; revision=24160
2006-09-17 10:00:59 +00:00
Art Yerkes
ee127f5c83 Add needed definition (scsiport).
KeGetCurrentIrql

svn path=/branches/powerpc/; revision=24159
2006-09-17 09:51:36 +00:00
Art Yerkes
b6e4be8a15 compile atapi.sys (add needed def for PAGE_SIZE)
svn path=/branches/powerpc/; revision=24158
2006-09-17 09:49:21 +00:00
Art Yerkes
6b21a858d1 Adapt pefixup for bytesex.h, rsym: add some debugging info that can be
turned on if needed.

svn path=/branches/powerpc/; revision=24157
2006-09-17 09:37:46 +00:00
Hervé Poussineau
f07b34a9d0 I don't know how to save REG_LINK info on disk, so ignore them. Incidently, fixes "make install_registry"
svn path=/trunk/; revision=24156
2006-09-17 08:44:17 +00:00
Alex Ionescu
8ef78cb6e6 - Create a KD-compatible KiDebugRoutine and piggyback KDBG on it.
- Create separate GDB entry hack routine.
- Fix booting with /BREAK and continuing after an INT3/ASSERTion.

svn path=/trunk/; revision=24155
2006-09-17 07:06:35 +00:00
Alex Ionescu
bee17dc290 - Large cleanup of psmgr.c. Move all externs and prototype, into headers, reformat and re-arrange the code.
- Optimize PspLookupUserEntrypoints to use static ANSI_STRINGs instead of building them at runtime.
- Fix mapping/loading of the System DLL so that it's loaded as executable code, not read-only code. Also fix a handle leak of the section, and re-factor some code into smaller shared functions to reduce code duplication.

svn path=/trunk/; revision=24154
2006-09-17 05:20:24 +00:00
Hervé Poussineau
1b0d4ce154 Install VMware driver using UpdateDriverForPlugAndPlayDevicesW function.
Installing a driver is not as easy as copying files and adding some registry entries, especially when autogenerated PnP ids change...

svn path=/trunk/; revision=24153
2006-09-17 00:28:19 +00:00
Hervé Poussineau
68bee00b1d Make IoInvalidateDeviceRelations really asynchronous
Implement IoSynchronousInvalidateDeviceRelations

svn path=/trunk/; revision=24152
2006-09-16 23:30:57 +00:00
Johannes Anderwald
5d0d792e67 * update comments
* remove unused members in ConsoleInfo struct
* update global struct on UDN_DELTAPOS events
* update WindowSize ScreenBuffer member when bigger / smaller on scroll events

svn path=/trunk/; revision=24151
2006-09-16 21:41:57 +00:00
Hervé Poussineau
5ed7c7746e Fix compilation (3 variables were unused)
svn path=/trunk/; revision=24150
2006-09-16 21:21:05 +00:00
Hervé Poussineau
47f4f5c36a Change detection method to see if a driver is a legacy one
Fix last issues with PCI driver

svn path=/trunk/; revision=24149
2006-09-16 20:53:27 +00:00
Alex Ionescu
78ef70deda - Fix one of the oldest hacks in ReactOS: KeGetCurrentThread() and PsGetcurrentProcess used to be NULL during early boot stage. We also didn't have an official idle therad/process. Also system intialization was not in its sepearte thread. Changes:
- Implemented SeAssignPrimaryToken.
   - Setup Boot/System Token for Idle Process in SeInit2.
   - Remove ROS hack in SeCaptureSubjectContextEx.
   - Call SeAssignPrimaryToken in PspInitializeProcessSecurty when called for the Initial Process creation.
   - Implement PsInitiailizeQuotaSystem and set PspDefauptQuotaBlock for the idle process so that it can be used for the initial process.
   - Rewrite Process Manager Phase 0 initialization from scratch, to create a new initial system process and thread which will be used for Phase 1 (in ROS, phase 2) initialization of the executive.
   - Fix a bug in PspCreateProcess which was using an uninitialized value of SectionObject in some cases, instead of NULL.
   - Call PsInitailizeQuotaSystem from ObInit, and also create the system handle table inside the idle process, and make it the ObpKernelHandleTable.
   - Do Executive Phase 0 Initialization at APC_LEVEL.
   - Start idle thread at HIGH_PRIORITY then lower it to 0 once the Initial Thread is setup, so that it can run, then keep priority to 0 at DISPATCH_LEVEL and jump into idle loop code.
   - Add NtYieldExecution to idle loop code since it's now being used.
   - Fix IoGetCurrentProcess which was previously hacked.
   - Remove some checks for Thread == NULL in ke_x.h, since this is now impossible.
   - Split Phase 0/1 initialization in ex\init.c, since one runs in a separate thread now. Also don't lower IRQL to PASSIVE_LEVEL anymore (run at APC_LEVEL).

svn path=/trunk/; revision=24148
2006-09-16 20:37:49 +00:00
Alex Ionescu
0d996fd421 - Revert part of 24108 which was scanning the process's thread ready list and making the threads ready. This shouldn't currently happen on ReactOS but it seems that happens on Fireball's machine and crashes it, so I'm reverting it.
svn path=/trunk/; revision=24147
2006-09-16 20:27:53 +00:00
Hervé Poussineau
25e2b01535 Don't crash if PCI AddDevice is called with a NULL Pdo (happens if pci.sys is considered as a legacy driver)
svn path=/trunk/; revision=24146
2006-09-16 20:22:54 +00:00
Martin Fuchs
30f438bb7b explorer: minor code cleanup
svn path=/trunk/; revision=24145
2006-09-16 15:41:17 +00:00
Martin Fuchs
fcfeb83217 "Debug Release" mix configuration for notifyhook project file
svn path=/trunk/; revision=24144
2006-09-16 15:40:24 +00:00
Martin Fuchs
a06bdc9503 explorer: handle child window creation errors
svn path=/trunk/; revision=24143
2006-09-16 15:39:07 +00:00
Magnus Olsen
bb1f92d0d3 fixed a memory I accident created when to free a hdc
svn path=/trunk/; revision=24142
2006-09-16 06:40:37 +00:00
Alex Ionescu
5acd247d8e - Implement most of the Ring 3/0 Invalid Opcode handler. Stops apps like mIRC from BSODing the system anymore.
svn path=/trunk/; revision=24141
2006-09-16 06:03:04 +00:00
James Tabor
6b30b92bf0 I think this was on Ged mind.
svn path=/trunk/; revision=24140
2006-09-16 05:29:25 +00:00
Art Yerkes
f20c6b89df Not sure where LicenseDialogProc is supposed to come from. For now, we'll
disable it until it gets fixed.

svn path=/trunk/; revision=24139
2006-09-16 01:56:51 +00:00
Alex Ionescu
d664420182 - Merge in my latest Dispatcher changes for KeWaitForMultipleObject, which are basically the same kind of changes as have been done for KeDelay/KeWaitForSingle. (Optimizations and readability improvements).
- Also fixed a previous bug where we didn't respect alertable waits anymore for KeWaitForMultiple...
- Remove krnlfun entry, the rest of dispatcher changes are tied to the new timer implementation for later.

svn path=/trunk/; revision=24138
2006-09-16 00:07:02 +00:00
Magnus Olsen
aa64d1177f Implement NtGdiCreateEnhMetaFile it is base on wine cvs 15/9-2006 version of CreateEnhMetaFileW in wine gdi32.dll
Our are not complete it can not create the file.
But we parseing now some NULL pointer test and some other test in winetest for gdi32. 

 

svn path=/trunk/; revision=24137
2006-09-15 23:24:04 +00:00
Hervé Poussineau
dfda3eceff Fix "normal" formatting, by removing differences between quick and normal formatting.
Normal formatting is quick formatting + fill sectors with 0 (not done yet)

svn path=/trunk/; revision=24136
2006-09-15 17:04:18 +00:00
Ged Murphy
4db2ab349a enable system info (again)
svn path=/trunk/; revision=24135
2006-09-15 16:45:00 +00:00
Ged Murphy
c09e1c12ab - add hardware profile and start and recovery dialogs
- popup a message box for dialogs not yet implemented

svn path=/trunk/; revision=24134
2006-09-15 16:37:26 +00:00
Aleksey Bragin
4094a71f3e Fix typos in comments
svn path=/trunk/; revision=24133
2006-09-15 16:07:11 +00:00
Aleksey Bragin
ee7e88e8ec Add missing "NTAPI"
svn path=/trunk/; revision=24132
2006-09-15 16:01:50 +00:00
Aleksey Bragin
04a96186b4 Revert a change in debug.h introduced in 19329 by Hartmut Birr. Freeldr's debug output doesn't expect any DbgPrint call to result in a "__FILE__:__LINE__ output_string" substitution.
Now FreeLdr's debug output looks good again.

svn path=/trunk/; revision=24131
2006-09-15 10:45:53 +00:00
Magnus Olsen
ed022d17fd arcoding winetest CreateEnhMetaFileA all param can be NULL
and we fail on this. But this is only one bugfix, We need bugfix win32k now. To completed the bugfix

svn path=/trunk/; revision=24130
2006-09-15 10:36:50 +00:00
Hervé Poussineau
b73a685a79 Assume bus number #0 if not specified in resource list
svn path=/trunk/; revision=24129
2006-09-15 09:09:18 +00:00
Hervé Poussineau
2a1513dc5c - Fix Freeldr to correctly send reported resources (at least PCI buses and PS/2 devices)
- Let Root bus report BootResources
- If no resource requirement are found, use the boot resource list (not sure of this one)

svn path=/trunk/; revision=24128
2006-09-15 06:48:01 +00:00
Hervé Poussineau
3daa4394f7 Check for ACPI BIOS identifier, to prevent double enumeration of devices
Move boot resource informations to Root\ key (if available)
Add a missing \0 at the end of hardwareId list

svn path=/trunk/; revision=24127
2006-09-14 22:29:07 +00:00
Ged Murphy
af77fee9dd fix a few dialog asthetics
svn path=/trunk/; revision=24126
2006-09-14 21:51:56 +00:00
Ged Murphy
faa4bd22bb put system info back in
svn path=/trunk/; revision=24125
2006-09-14 20:46:06 +00:00
Hervé Poussineau
7ac40876f4 Report to registry hardware found by Freeloader.
See issue #645 for more details.

svn path=/trunk/; revision=24124
2006-09-14 20:30:35 +00:00
Magnus Olsen
eccbefcccb thx fireball fixing a spelling fault
svn path=/trunk/; revision=24123
2006-09-14 20:00:28 +00:00
Ged Murphy
da666d1ce5 sneaky little blighter
svn path=/trunk/; revision=24122
2006-09-14 19:12:48 +00:00
Ged Murphy
4732ef2b6a start to overhaul sysdm.cpl and make it more like XP's, which is much more user friendly
- completely rewrite the resource file to make it readable and logical
- do the same with the resource.h file (I'll cry if anyone messes these 2 up, it's mega neat now ... ;p)
- add the ReactOS logo to the first page (general tab)
- move the licence to it's own dialog accessable from the general tab
- rearrange the computer name and hardware pages
- delete the user profile page and add it as a separate dialog accessable from the advanced page
- add an error reporting button (as per XP) which opens a web browser directly to bugzilla.
- loads of other little alterations.
*note, I've dissabled language files until I've finished messing with the resources*

svn path=/trunk/; revision=24121
2006-09-14 19:09:56 +00:00
Magnus Olsen
a413ba4de2 forget this file thx Quip at irc
svn path=/trunk/; revision=24120
2006-09-14 19:02:56 +00:00
Magnus Olsen
e1ba479b2c 1. move all languages to own folder
2. accepted LMH1 languages patch (with small modification)

See issue #1696 for more details.

svn path=/trunk/; revision=24119
2006-09-14 17:33:25 +00:00
Magnus Olsen
5f0ec93a17 translations patch accepted from LMH1 (with small modification from me)
See issue #1695 for more details.

svn path=/trunk/; revision=24118
2006-09-14 17:26:08 +00:00
Magnus Olsen
3e4ab62cca 1. move all languages to own folder
2. accepted LMH1 languages patch (with small modification)
3. fixed right sublang on few languages rc files
See issue #1685 for more details.

svn path=/trunk/; revision=24117
2006-09-14 17:17:51 +00:00
Magnus Olsen
eb39f6f8dc translations patch accepted from LMH1 (with small modification from me)
See issue #1679 for more details.

svn path=/trunk/; revision=24116
2006-09-14 16:53:53 +00:00
Ged Murphy
d667517b42 start to rewrite the virtmem code to remove many bugs and make it more readable.
I'm currently working on enhancements to sysdm, but it's probably better to commit this separately 

svn path=/trunk/; revision=24115
2006-09-14 16:49:11 +00:00
Magnus Olsen
4a1ee5a228 adding Japanese keyboard to reactos installer
svn path=/trunk/; revision=24114
2006-09-14 16:40:40 +00:00
Magnus Olsen
3f285b2d73 adding Japanese keyboard drv patch from ja731j (real name : Simon Hanae mail : ja731j at ja731j dot homeip dot net
See issue #1795 for more details.

svn path=/trunk/; revision=24113
2006-09-14 16:39:35 +00:00
Aleksey Bragin
efcc4447c1 Reapply fixed half of 24020 (relocation update in rtl). Tested on vmware and real hardware.
svn path=/trunk/; revision=24112
2006-09-14 16:37:05 +00:00
Saveliy Tretiakov
63ae604355 Fix typo. palate -> pallete
svn path=/trunk/; revision=24111
2006-09-14 16:04:08 +00:00
Alex Ionescu
1b75e6549e - Converted some macros to inlined functions.
- Modified KeDelayExecutionThread and KeWaitForSingleObject to be much simpler and readable, reducing some of the loops and continues, and 4th-level indentation. Also packed up common wait initialization at the beginning of the function, and into two new inline functions: KxDelayThreadWait and KxSingleThreadWait. No actual semantic changes, just re-ordering.
- Rename KiUnwakeQueue to KiActivateWaiterQueue.

svn path=/trunk/; revision=24110
2006-09-14 15:48:02 +00:00
Aleksey Bragin
bb617c9ac9 Sylvain Petreolle: Fix a typo in the code (palGDI -> sysGDI)
svn path=/trunk/; revision=24109
2006-09-14 15:40:16 +00:00
Alex Ionescu
74703ca408 - Implement KeReadyThread that wraps KiReadyThread so that \ps doesn't have to worry about dispatcher lock.
- Make sure all a process's threads are ready if they're on the ready queue, during attachment.
- Merge in KiReadyThread from scheduler code, with a small code change to keep working with ROS's scheduler lists instead.

svn path=/trunk/; revision=24108
2006-09-14 12:13:32 +00:00
Magnus Olsen
beb74a2356 remove entrypoint in rbuild files.
1. This change are right but binutils setting
   PE header flags wrongs for cpl/dll wrong

2. Remove entrypoint for cpl until this bug have
   been fixed in binutils.
    

svn path=/trunk/; revision=24107
2006-09-14 09:10:13 +00:00
Aleksey Bragin
4309a525f4 Show the value, not the address in memory! (Thanks to Dmitry Philippov)
svn path=/trunk/; revision=24106
2006-09-14 08:27:08 +00:00
Aleksey Bragin
d64332beb2 Mikhail Zvyozdochkin: If I enter directly DNS server address in TCP/IP properties window, and after it open this window again, DNS server address is not retrieved to text field.
Patch 1746

svn path=/trunk/; revision=24105
2006-09-14 08:20:50 +00:00
Magnus Olsen
dc1e819150 Fixing two NULL pointer crash in win32k.
I do not known if I done right in NtGdiRealizePalette step2, step2 is not tested.  

svn path=/trunk/; revision=24104
2006-09-14 07:43:20 +00:00
Alex Ionescu
20425875ce - Implement KiAcquireDispatcherObject, KiReleaseDispatcherObject, used on SMP for dispatcher objects which use the volatile long member in the dispatcher header (such as gates).
- Implement KiTryThreadLock which tries to acquire the lock but exits if it can't, isntead of looping.
- Re-factor KeWaitForGate to make it SMP-safe by acquiring various locks when required.
- Fixed up KeSignalGateBoostPriority so it can also be SMP-safe, and also fix what exactly happens when the gate is signaled (directly make the other thread ready instead of doing a KiUnwaitThread on it).
- Split KxAcquireSpinLock/KxReleaseSpinLock into SMP vs UP like the other routines.

svn path=/trunk/; revision=24103
2006-09-14 05:53:51 +00:00
Alex Ionescu
d53352c677 - Implement KiUnlinkThread to unlink a thread from its wait blocks, handle queue and timer activation/removal.
- Don't play with priorities in KiAbortWaitThread anymore, since we'll soon support Win2003 delayed "adjust increment" functionality, so that the code is not repeated many times.
- Rename KiAbortWaitThread to KiUnwaitThread, make it use KiUnlinkThread and delayed adjustment.
- Implement KxUnwaitThread and KxUnwaitThreadForEvent, optimized versions of KiWaitTest that can be used in special circumstances (notification events, thread termination, process signalling).
- Optimize KeSetEvent by handling signaled notification events without acquiring the dispatcher lock, and by using new inlined routines described above.
- Reimplement KeSetEventBoostPriority properly to actually do boosting.
- Fixup KeRundownQueue with a more typical/proper LIST_ENTRY loop.
- Let me know if you see regressions...

svn path=/trunk/; revision=24102
2006-09-14 03:49:20 +00:00
Alex Ionescu
c440454c10 - Update Kernel Fun.
svn path=/trunk/; revision=24101
2006-09-13 21:46:32 +00:00
Magnus Olsen
a2a7c9632f Greek keyboard layout changes by Apal
See issue #1631 for more details.

svn path=/trunk/; revision=24100
2006-09-13 19:08:41 +00:00
Saveliy Tretiakov
5971670b9b Separate NtGdiModifyWorldTransform and IntGdiModifyWorldTransform for internal usage.
svn path=/trunk/; revision=24099
2006-09-13 16:50:19 +00:00
KJK::Hyperion
182b4dc71d <intrin.h> compatibility header. Implements Visual C++ intrinsics in GCC. Licensed very liberally, please keep it that way
svn path=/trunk/; revision=24098
2006-09-13 14:07:41 +00:00
Saveliy Tretiakov
457e0142bd Move IntGdiGradientFill and IntSystemParametersInfo prototypes to header files.
Delete DestroyThreadWindows prototype (function does not exist).


svn path=/trunk/; revision=24097
2006-09-13 13:43:39 +00:00
Saveliy Tretiakov
0eabb5d7bc Move UserDrawIconEx and UserGetCurIconObject prototyepes to header file.
svn path=/trunk/; revision=24096
2006-09-13 13:03:17 +00:00
Saveliy Tretiakov
e6c1f9ca4b Add UnattendSetupEnabled key for enabling\disabling unattended setup without editing rbuild files.
Modifing rbuild files all the time is not handy and slows down build process.


svn path=/trunk/; revision=24095
2006-09-13 12:33:59 +00:00
Alex Ionescu
63142230b2 - Rename kqueue.c to devque. KQUEUE (kernel queues) are implemented in queue.c, and this filename always confused me. Why would you name KDEVICE_QUEUE into kqueue.c, when you already have KQUEUE in queue.c?!
- Rename exception.c to except.c, mostly due to MSVC's incompatibility with multiple identically named files.
- SVN delete usercall.c leftover.
- Fix KeSetPriorityAndQuantumProcess to use Queued Spinlocks and KiAcquireProcess/ThreadLock when needed.

svn path=/trunk/; revision=24094
2006-09-13 03:02:40 +00:00
Alex Ionescu
630f3d1e69 - Cleanup ipi.c, reformat, and re-organize.
- Undefine all functions for UP builds, except KeIpiGenericCall.
- Implement KeIpiGenericCall for UP builds and add @implemented tag.

svn path=/trunk/; revision=24093
2006-09-13 02:25:32 +00:00
Alex Ionescu
31e4c651c4 - Renamed device.c to config.c and removed all irrelevant code from it, leaving only the two KeFindConfigurationEntry*** functions in it.
- Also fixed the above for incorrect formatting/excessive whitespace.
- The other routines in device.c were moved to cpu.c, since they deal with CPU-specific things.
- Cleaned up KeFlushEntireTb.
- Added inlined routines for setting/getting CR, and also getting GDTR, IDTR, LDTR, TR. Used to implement KiSaveProcessorControlState.
- Implemented KeSaveStateForHibernate.

svn path=/trunk/; revision=24092
2006-09-13 02:08:22 +00:00
Alex Ionescu
b4aab80937 - Fix a typo that happened after-the-fact.
svn path=/trunk/; revision=24091
2006-09-13 02:04:33 +00:00
Alex Ionescu
7687187bf0 - Implement KxAcquireSpinLock/KxReleaseSpinLock for inline acquisition of spinlocks, SMP, UP and DBG. (on DBG builds, we OR the spinlock value with the KTHREAD address, then compare on release.)
- Make In-Stack QSLs a complete no-op in UP, we were still touching some fields.
- Cleanup and re-organize spinlock.c

svn path=/trunk/; revision=24090
2006-09-13 01:41:17 +00:00
Alex Ionescu
07a0973e21 - Remove usercall.c from portable part of Ke and add it to ke\i386. The implementation is slightly arch-specific.
- Remove code in userapc.c and move it into usercall.c, since both functions basically deal with user-mode callouts.
- Handle STATUS_CALLBACK_POP_STACK and add the status to ntstatus.h
- Also handle future support for GDI Batch flushing.

svn path=/trunk/; revision=24089
2006-09-13 01:00:50 +00:00
Alex Ionescu
a614833b08 - Use inlined guarded region routines instead of duplicating code.
- Add @implemented tags.

svn path=/trunk/; revision=24088
2006-09-13 00:35:56 +00:00
Alex Ionescu
d99f96a295 - Implement KiAcquireDeviceQueueLock/KiReleaseDeviceQueueLock for locking KDEVICE_QUEUEs, since they can be used from Threaded DPCs which don't execute at DISPATCH_LEVEL, so the lock needs to be acquired differently.
- Add ASSERT_DEVICE_QUEUE and ASSERTify + reformat kqueue.c.
- Implement KeRemoveByKeyDeviceQueueIfBusy.
- Cleanup exception.c
- Remove dangerous/broken KeGetCurrentIrql() define.

svn path=/trunk/; revision=24087
2006-09-13 00:20:46 +00:00
Aleksey Bragin
c0cda24302 Just one entrypoint="0" is enough
svn path=/trunk/; revision=24086
2006-09-12 21:33:56 +00:00
Hervé Poussineau
6ed6c1661e Don't call notification procedures with APC disabled, it may lead to some strange results.
Thanks Alex for the time he took to help me to debug this issue

svn path=/trunk/; revision=24085
2006-09-12 21:18:22 +00:00
Ged Murphy
3fd92a4f96 Revert changes from r23620 until a better solution can be found as it breaks opening of cpl applets with VS.
The 'DebugSettings' should be stored in the .user file.

svn path=/trunk/; revision=24084
2006-09-12 21:02:39 +00:00
Aleksey Bragin
3b58ac1932 Fix last things preventing me from compiling the tree:
vsnprintt -> _vsnprintf in the wine/unicode.h and in riched20

svn path=/trunk/; revision=24083
2006-09-12 18:51:05 +00:00
Hervé Poussineau
2140d54ca5 Start to support GUID_DEVICE_SYS_BUTTON interface. It is required to handle keyboards with power buttons (wake/sleep/power)
(This commit is done now to be able to debug an APC problem)

svn path=/trunk/; revision=24082
2006-09-12 15:19:51 +00:00
Hervé Poussineau
fec5904b50 [AUDIT] This file only include other files, so it can't be dirty.
Additionally, define GUID_DEVICE_SYS_BUTTON

svn path=/trunk/; revision=24081
2006-09-12 15:19:17 +00:00
Alex Ionescu
2829cc5982 - Re-merge 24062+24063, with a minor difference, they work now.
svn path=/trunk/; revision=24080
2006-09-12 13:54:52 +00:00
Alex Ionescu
6b1e4db5b5 - Partial revert of r20462/63. New HAL/Po/Ki code remains, but restored the original PsIdleThread code. I know what the bug is but I'm too tired to fix it, so I'd rather revert the broken part.
- Install + 2nd stage + boot to desktop will not work in qemu, kernel-kqemu and vmware (all wax and I tested).

svn path=/trunk/; revision=24079
2006-09-12 05:37:14 +00:00
Alex Ionescu
978da5c0af - Revert 24020 (good code, but buggy) and 24041 (bad code/revision).
- This gets us as far as 24061(+24048) for booting.

svn path=/trunk/; revision=24078
2006-09-12 05:21:27 +00:00
Art Yerkes
32c139b3f3 rsym working right on ppc. Use a template (horror) to emulate an off-endian
field in a struct.  We'll reconcile this code later.
remove link-ntoskrnl.  I'm gonna split off the ppc ldscript.

svn path=/branches/powerpc/; revision=24077
2006-09-12 05:09:41 +00:00
Aleksey Bragin
4e03e0ec4a Those two #ifdefs were wrong on my setup (straightforward RosBE 3.4.2, and also updated to 3.4.4). So:
1. Removed the stricmp guard
2. Added a #ifdef->#undef solution

If this break compilation on linux or on gcc 4 on win32 (very low probability, if any), let's think further.

svn path=/trunk/; revision=24076
2006-09-11 21:40:50 +00:00
Saveliy Tretiakov
17189649af For windows with WS_EX_DLGMODALFRAME sysmenu can be opened only by right mouse click
svn path=/trunk/; revision=24074
2006-09-11 15:49:42 +00:00
Hervé Poussineau
6f5c6f23d3 Fix halmp compilation
svn path=/trunk/; revision=24073
2006-09-11 14:35:46 +00:00
Saveliy Tretiakov
68f5e47ce6 This testapp demonstrates WS_SYSMENU + WS_EX_DLGMODALFRAME behavior
and shows that DrawCaption does care about WS_EX_DLGMODALFRAME and WS_EX_TOOLWINDOW.


svn path=/trunk/; revision=24072
2006-09-11 13:09:12 +00:00
Saveliy Tretiakov
529631027a Fix WS_SYSMENU+WS_EX_DLGMODALFRAME bug.
Fixes Messagebox broblem and some others.

svn path=/trunk/; revision=24071
2006-09-11 13:07:12 +00:00
Aleksey Bragin
d263039fe9 Add missing header
svn path=/trunk/; revision=24070
2006-09-11 13:01:39 +00:00
Hervé Poussineau
60fb482ad4 Fix compilation on Linux hosts - try #2
We can't use the _WIN32 symbol which is automatically defined once you include psdk/windef.h ...

svn path=/trunk/; revision=24069
2006-09-11 12:42:35 +00:00
Alex Ionescu
5fb31962db - Implement KiReleaseProcessLockFromDpcLevel and use it in KeTerminateThread. We were lowering to PASSIVE during thread termination, and then doing a context switch at PASSIVE, which you can guess is pretty bad.
svn path=/trunk/; revision=24068
2006-09-11 12:00:02 +00:00
Hervé Poussineau
07dc58982f We want to support hives version 1.3+ (up to 1.5 currently). Fix test accordingly
svn path=/trunk/; revision=24067
2006-09-11 11:28:54 +00:00
Hervé Poussineau
7b79f44d6b Better handling of REG_LINK values
Try to fix Linux build (thanks Usurp on IRC)

svn path=/trunk/; revision=24066
2006-09-11 11:04:33 +00:00
Saveliy Tretiakov
4f6a751b6f Implement NtGdiCloseFigure (Fixes BSOD!)
svn path=/trunk/; revision=24065
2006-09-11 11:01:35 +00:00
Saveliy Tretiakov
059fb2c54e Implement NtGdiFlattenPath
svn path=/trunk/; revision=24064
2006-09-11 10:43:42 +00:00
Alex Ionescu
c19a362969 - Implement HalProcessorIdle.
- Fix KiIdleLoop to actuall load the PCR in EBX. It was using a completely random value.
- Call the Processor Idle Routine now, isntead of hard-coding STI+HLT. This routine had already been setup during bootup by PoInitailizePrcb.
- Implemented PopIdle0 and made it call HalProcessorIdle. No performance/throttling is done yet.

svn path=/trunk/; revision=24063
2006-09-11 06:50:19 +00:00
Alex Ionescu
81997fc0bc - Implement and export HalClearSoftawareInterrupt (currently implemented to match the hacked ROS version, no new version written yet).
- Implement CPU Idle Loop in assembly for UP and SMP systems. Differences:
  * Runs with interrupts off most of the time, except when it does interrupt cycling at each iteration.
  * Calls KiRetireDpcList directly, instead of going through KiDispatchInterrupt.
  * Support for new scheduler and immediate thread switch.
  * Support for Idle Scheduler.
  * Support for HAL/ACPI/CPU Driver-defined "Idle Function". currently disabled and STI+HLT harcoded instead.
- Removed ps/idle.c and dumped the hack code directly in psmgr.c wher eit's used.

svn path=/trunk/; revision=24062
2006-09-11 06:22:26 +00:00
Alex Ionescu
a0fac81cfd - Add the actual missing code to KiQuantumEnd. It's asserted to make sure it'll never execute (yet).
- Add KiExitDispatcher from my new scheduler code. Same as KiQuantumEnd, added an assertion to make sure it doesn't enter in code paths that shouldn't yet happen.

svn path=/trunk/; revision=24061
2006-09-11 05:26:38 +00:00
Alex Ionescu
6c853c9c32 - Fix a critical bug in KiComputeNewPriority.
- Fix a bug in KiSetPriorityThread which wasn't setting *released = FALSE, which left the var uninitailized and usually = TRUE on the stack.
- Half-copy KiQuantumEnd from my new scheduler code. Main difference is usage of newly created locks, support for quantum-disable and RT threads, and usage of KiComputeNewPriority.

svn path=/trunk/; revision=24060
2006-09-11 05:21:18 +00:00
Alex Ionescu
8028be67cb - Fix KiDeliverApc prototype for PPC compatibilty.
- Fixup comment header for KiDeliverApc and KiInsertQueueApc.
- Set APC trap frame during APC delivery. We actually weren't doing this before (I'm kind of amazed at ROS's previous functionality due to importance of this bug!).
- Use proper in-stack queued spinlock mechanisms.
- Make sure that the Kernel APC list didn't become empty while we acquired the APC lock after the first verification.
- Validate IRQL on return from APC routines, to catch bad code.

svn path=/trunk/; revision=24059
2006-09-11 04:34:25 +00:00
Alex Ionescu
d011801cef - Fix lock acquisition/release mismathces in KiInsertQueueApc.
- Support and document InsertApcEnvironment KAPC_ENVIRONMENT type.
- Fixup formatting and ASSERTify.
- Acquire dispatcher lock when insereting an APC into another thread.
- Use delayed interrupt request on SMP systems (and fixup KiRequestApcInterrupt accordingly).

svn path=/trunk/; revision=24058
2006-09-11 03:14:26 +00:00
Alex Ionescu
52b3dfb608 - Fix stupid typo.
svn path=/trunk/; revision=24057
2006-09-11 02:30:38 +00:00
Alex Ionescu
90a7bca112 - Add new KAPC_ENVIRONMENT mode: InsertApcEnvironment.
- Fixup KeInitalizeApc like all the other functions.
- Don't use an expensive 48-byte RtlZeroMemory instead of just clearing two members.

svn path=/trunk/; revision=24056
2006-09-11 02:28:09 +00:00
Alex Ionescu
8b90aed6be - Fix comment headers for KeFlushQueueApc, KeInsertQueueApc.
- ASSERTify KeInsertQueueApc and some formatting fixes.

svn path=/trunk/; revision=24055
2006-09-11 02:17:57 +00:00
Alex Ionescu
c9607ffe89 - Fix for Windows Kernel APC Data-Free Local Privilege Escalation Vulnerability (re-initialize the list head after cleaning it, so that the list is circular).
- Optimize KeFlushQueueApc: we can check if the Kernel-Mode APC list is empty without acquiring the lock. If it's empty, we can quit immediately, if not, then we'll acquire and check it again. For user APCs we always need to acquire the lock, though.

svn path=/trunk/; revision=24054
2006-09-11 02:09:13 +00:00
Alex Ionescu
43a412db60 - Add ASSERT_APC definition.
- Fix KeRemoveQueueApc comment header and clean up function.
- Acquire dispatcher lock at DPC level during ApcListEntry read/write.

svn path=/trunk/; revision=24053
2006-09-11 01:45:11 +00:00
Alex Ionescu
4b35027c0f - Cleanup RepairList, KiMoveApcState.
- Fixup comments for KeAreApcsDisabled.
- Implement and add comment header to KeAreAllApcsDisabled.

svn path=/trunk/; revision=24052
2006-09-11 01:30:24 +00:00
Alex Ionescu
2fea34f0e1 - Re-implement KiRequestApcInterrupt in ke_x.h. Make it work by CPU number (as documented) instead of comparing PRCBs.
- Move NtQueueApcThread to ps/state.c since it's a Ps-level function.
- Make NtQueueApcThread use POOL_QUOTA_FAIL_INSTEAD_OF_RAISE and add that flag to our DDK. Also fix the check for SystemThread by looking at the flag, not checking if TEB == NULL. Also fix a memory leak and comment header.
- Fix comment header in KiInitalizeUserApc.

svn path=/trunk/; revision=24051
2006-09-11 01:15:03 +00:00
Alex Ionescu
1462b71058 - Re-organize apc.c into private/public functions (no code change).
- Move KiInitializeUserApc to ke/i386/userapc.c. The routine is non-portable.
- Force Ring 3 state into User APC TrapFrame to maintain system integrity and coherency. Also respect IOPL.
- Use SEH handling routine just like when handling exceptions, to properly re-direct a crash here. Thanks to KJK again for showing me how to write these kinds of routines.

svn path=/trunk/; revision=24050
2006-09-11 00:54:12 +00:00
Alex Ionescu
4d94e0557f - Fix KeEnterCriticalRegion/KeLeaveCriticalRegion by moving to ke_x and adding ASSERTs, and change the code in apc.c to call these inlined versions instead. Also fix comment headers for these functions in apc.c to match the official standard.
svn path=/trunk/; revision=24049
2006-09-11 00:26:17 +00:00
Alex Ionescu
38759195cb - We only need to update the page directory for the current stack, not the whole ETHREAD. (the page fault will be handled).
- Release dispatcher lock from DPC level in KiAttachProcess.
- Add missing decoration/assert to KeAttachProcess, and only acquire APC lock after we've made the invalid attach test. Also acquire dispatcher lock at DPC level here and in KeStackAttachProcess.
- Loop in KeUnStachDetachProcess to avoid the case where we acquired the APC lock while a kernel APC was pending. Keep releaing the loop and re-attemping acquire until it has been delivered.
- Add Decoration for *ServiceTable* functions.

svn path=/trunk/; revision=24048
2006-09-10 23:41:08 +00:00
Alex Ionescu
d7ae142cf1 - KPROCSES Flags are LONG, not ULONG.
- Add some missing decoration.
- NUMA node semantics for KeInitializeProcess are only required on SMP builds.
- Allow KeInitailizeProcess to receive an argument specifying if alignment faults should be enabled or not.
- Use KiComputeIopmOffset to get the IopmOFfset instead of setting -1

svn path=/trunk/; revision=24047
2006-09-10 23:17:22 +00:00
Aleksey Bragin
5e7a9fc74e Create a place for some R&D work about booting Windows from inside of FreeLdr
svn path=/trunk/; revision=24046
2006-09-10 21:32:02 +00:00
Art Yerkes
5b6b2b681f Insert PTEs for 16 mb of kernel memory.
Added function to insert PTEs in mmu.c
mboot: complete the jump to kernel space.
mach: add some memory to our initial map.
 - We should allow freeldr's mm to request more memory before giving up
 - We'll do well to allocate big blocks directly from ofw and small blocks
   from this heap implementation
 - We can't return *all* memory like it wants because we still need ofw,
   which may need to do allocation itself

svn path=/branches/powerpc/; revision=24045
2006-09-10 20:43:26 +00:00
Alex Ionescu
faa5f58b84 - Remove KeGetCurrentProcess. This API doesn't exist.
- Add assertions to relevant functions in process.c and re-format some code.
- Check for invalid APC state in KeDetachProcess.
- Decrease process stack count while holding the Dispatcher Lock at DPC level.
- Implement KiSwapProcess in ctxswitch.S and add SMP-support and LDT swap support for the future, as well as updating the IOPM base in the TSS.

svn path=/trunk/; revision=24044
2006-09-10 20:23:02 +00:00
Aleksey Bragin
54a6548aa7 Fix inconsistent formatting and other trails of GreatLord's fixing
svn path=/trunk/; revision=24043
2006-09-10 20:12:16 +00:00
Saveliy Tretiakov
6a37552f9e implement NtGdiPathToRegion
svn path=/trunk/; revision=24042
2006-09-10 19:42:09 +00:00
Alex Ionescu
344fd08452 - No need to apply the ROS Page hack inside thread switching, since the process is the same.
svn path=/trunk/; revision=24041
2006-09-10 19:41:31 +00:00
Alex Ionescu
ecb32725f7 - Add ASSERT_EVENT.
- Same changes to event.c as with the other files.
- Remove lock property, these files have already been audited as clean and were unlocked.

svn path=/trunk/; revision=24040
2006-09-10 19:14:03 +00:00
Alex Ionescu
b5c8cf43e7 - Add ASSERT_MUTANT and ASSERT_SEMAPHORE to our DDK.
- Cleanup mutex.c and sem.c. No real code changes, just add ASSERTs, STDCALL->NTAPI, IN/OUT decoration.
- One change though, in KeReleaseMutant, use KeLeaveCriticalRegion instead of manually writing down the code, it's more readable this way.

svn path=/trunk/; revision=24039
2006-09-10 18:47:53 +00:00
Alex Ionescu
da15ddafc8 - Get completely rid of old Dispatcher Lock macros and use new ones.
- apc.c -> Also multiple optimizations to use the APC lock instead of the full-fledged dispatcher lock.
- gate.c -> Use APC lock as well, the full dispatcher lock isn't required because a thread can only wait on one and only one gate.
- process.c -> Optimize the code to use the Process and/or APC lock instead of the dispatcher lock. Also delay acquiring the locks after some checks, to make the exit paths simpler.
- More fixes are teh needed.

svn path=/trunk/; revision=24038
2006-09-10 18:26:50 +00:00
Thomas Bluemel
63346a8dda Fix difference in signedness warning
svn path=/trunk/; revision=24037
2006-09-10 18:22:48 +00:00
Thomas Bluemel
ac14f5a033 Fix LdrRelocateImageWithBias prototype: Strings in C are neither signed nor unsigned, and they are constants. Fixes warnings with GCC4
svn path=/trunk/; revision=24036
2006-09-10 17:16:59 +00:00
Alex Ionescu
4300e4effe - Update the last remaining old function, KeSetBasePriority. Use new locks and assertions, and also make use of KiComputeNewPriority.
svn path=/trunk/; revision=24035
2006-09-10 17:13:55 +00:00
Alex Ionescu
1ee6196a10 - Reposition and update KeQueryBasePriorityThread to use the new locks.
- Update KeSetAFfinityThread, KeSetPriorityThread with new locks and assertions (plus the current ROS scheduler hack).

svn path=/trunk/; revision=24034
2006-09-10 17:05:07 +00:00
Alex Ionescu
678df444b7 - Update KeRevertToUserAffinityThread, KeSetSystemAffinityThread to use new lock functions, and add code to support future scheduler.
- Update KeSetIdealProcessorThread to properly do Ideal CPU logic instead of blindgly setting it (most importantly, respect UserIdealProcessor and SystemAffinityActive seettings).

svn path=/trunk/; revision=24033
2006-09-10 16:55:03 +00:00
Alex Ionescu
d3a7b531f3 - Re-organize all internal functions in 3 groups:
- 1) Utility (FindRightmost/LeftMost Set, etc)
   - 2) State (Alert, AlertResume, ForceResume, Freeze, Resume, Rundown, Start, Suspend, TestAlert)
   - 3) Un/Initialization (KeInitThread, KeInitializeThread, KeUninitThread).

svn path=/trunk/; revision=24032
2006-09-10 16:38:02 +00:00
Aleksey Bragin
a9d0596841 - Add msvcrt linking where needed
- Change "rintf" unixism to ceil() and data conversion to integer type

svn path=/trunk/; revision=24031
2006-09-10 16:32:37 +00:00
Alex Ionescu
af9e8a64e7 - Remove KeSetPreviousMode, KeDisableThreadApcQueueing.
- Stargint reorganizing some public functions to the bottom of the file.
- Don't hold lock during KeSetKernelStackSwapEnable.

svn path=/trunk/; revision=24030
2006-09-10 16:30:49 +00:00
Alex Ionescu
1b223aebfb - Implement KiAcquireProcessLock, KiReleaseProcessLock.
- Update KeFreezeAllThreads to use the Process and APC In-Stack Queued Spinlock.
- Update KeTerminateThread to use the Process Lock. Call KiRundownThread to cleanup the NPX thread. Add some assertions for Stack in/out-paging. Use KiSetThreadSwapBusy for proper SMP vs UP building.
- NUMA Node semantics in KeStartThread only need to be done for CONFIG_SMP builds, so #ifed them appropriately. Also made it use the Process In-Stack QSL.

svn path=/trunk/; revision=24029
2006-09-10 16:25:57 +00:00
Alex Ionescu
e61739c38c - Fix definition of SYNCH_LEVEL.
- Implement KeAcquireInStackQueuedSpinLockRaiseToSynch for UP systems.
- Implement KiAcquireApcLock, KiAcquireApcLockAtDpcLevel, KiReleaseApcLock, KiReleaseApcLockFromDpcLevel.
- KeResumeThread, KeSuspendThread, KeAlertThread, KeForceResumeThread, KeTestAlertThread, KeAlertResumeThread are now the first to use the new APC In-Stack Queued Spinlock for sychronization.

svn path=/trunk/; revision=24028
2006-09-10 16:09:58 +00:00
Hervé Poussineau
bd33d79025 Initialize MainResource and PagingIoResource fields in FSRTL_COMMON_FCB_HEADER structure
svn path=/trunk/; revision=24027
2006-09-10 15:58:29 +00:00
Hervé Poussineau
6702dd5240 Let mkhive use cmlib. "make install" now works and this let the livecd go further than before
svn path=/trunk/; revision=24026
2006-09-10 15:39:11 +00:00
Hervé Poussineau
2ca81c5573 Fix some warnings
svn path=/trunk/; revision=24025
2006-09-10 15:26:48 +00:00
Alex Ionescu
aafcd436d5 - Thread Support cleanup 1: Separate kthread.c into thrdobj.c (Exported and globally accesible functions dealing with the KTHREAD object) and thrdschd.c (Fully internal thread scheduling routines for Ke* only).
- Also fix KeSetAffinityThread to return the old affinity, instead of NTSTATUS and move NtYieldExecution from Ps to Ke, and move NtDelayExecution to wait.c
- No code changes.

svn path=/trunk/; revision=24024
2006-09-10 15:23:20 +00:00
Aleksey Bragin
f9b0ee1a03 vsnprintf -> _vsnprintf
svn path=/trunk/; revision=24023
2006-09-10 15:07:02 +00:00
Alex Ionescu
d2cb3868b7 - Add some definitions to ketypes.h
- Fix multiple bugs in KTHREAD/KPROCESS where signed char values were marked as unsigned (and define SCHAR in ntdef.h)
- Change prototype of KiSwapThread for future compatibility.
- Fix prototype of KeSetIdealProcessorThread.
- Add KiAcquireDispatcherLock, KiReleaseDispatcherLock, KiAcquireDispatcherLockAtDpcLevel, KiReleaseDispatcherLockFromDpcLevel to ke_x.h for future use.
- Add KiInsertDeferredReadyList, KiRescheduleThread, KiSetThreadSwapBusy, KiRundownThread, KiCheckDeferredReadyList for future use.
- Add KiAcquirePrcbLock, KiReleasePrcbLock, KiAcquireThreadLock, KiReleaseThreadLock for future use.
- Add KxQueueReadyThread, KiSelectReadyThread for future use.
- Add KiComputeNewPriority for future use.

svn path=/trunk/; revision=24022
2006-09-10 14:43:12 +00:00
Aleksey Bragin
098292d473 These DPRINT1s are ONLY for Magnus' debuggin session.
Correcting his mistake of commiting them to the tree.

(taskmgr.exe should work again)

svn path=/trunk/; revision=24021
2006-09-10 14:23:13 +00:00
Aleksey Bragin
b52f7b069b - Implement enable/disable of protection for PE sections in ntdll
- Finally get rid of duplicated relocation code in ntdll by using the relocate function from RTL and enable/disable protection
- Some improvements added to RTL's relocation function, it's split up into two functions now

svn path=/trunk/; revision=24020
2006-09-10 13:33:30 +00:00
Hervé Poussineau
65df8c2bad Revert part of r23972. Now we can boot again
(+ fix a little bug)

svn path=/trunk/; revision=24019
2006-09-10 10:26:58 +00:00
Aleksey Bragin
a9bca34078 Dmitry Philippov: Fix GCC4 warning
svn path=/trunk/; revision=24018
2006-09-10 09:31:44 +00:00
Aleksey Bragin
e90bd22c08 [AUDIT]
- Code duplication for relocation
- Widely documented PE loading algorithms
- Conclusion: clean

svn path=/trunk/; revision=24017
2006-09-10 08:35:30 +00:00
Aleksey Bragin
746299a0da - Move and slightly modify the relocation code to RTL, change its prototype so that it can be used in future in freeldr, ntdll and in kernel (right now there is code duplication, which is removed from kernel by this commit).
svn path=/trunk/; revision=24016
2006-09-10 08:00:57 +00:00
Art Yerkes
1cc1dd2ddd Cleaning: tweaks.
svn path=/branches/powerpc/; revision=24015
2006-09-10 06:07:08 +00:00
Art Yerkes
716a587e86 Add -fshort-wchar
svn path=/branches/powerpc/; revision=24014
2006-09-10 05:58:10 +00:00
Hervé Poussineau
0fbf1539ac At last, enable screensaver
svn path=/trunk/; revision=24013
2006-09-10 02:22:12 +00:00
Hervé Poussineau
96bb2d5365 Add stub for SPI_GETSCREENSAVEACTIVE (which always return TRUE at the moment...)
svn path=/trunk/; revision=24012
2006-09-10 02:20:29 +00:00
Hervé Poussineau
c965755754 Remove screensaver implementation of win32k (ie revert revision 22879).
svn path=/trunk/; revision=24011
2006-09-10 01:20:53 +00:00
Hervé Poussineau
b61c75703c LastInputTick value should be in milliseconds, according to the help of GetTickCount in MSDN
svn path=/trunk/; revision=24010
2006-09-10 01:08:35 +00:00
Hervé Poussineau
54ad3ea87b Add missing entrypoint="0" directive in rbuild files [Part 2/2]
svn path=/trunk/; revision=24009
2006-09-09 22:55:57 +00:00
Hervé Poussineau
ae5f6b945d Add missing entrypoint="0" directive in rbuild files [Part 1/2]
svn path=/trunk/; revision=24008
2006-09-09 22:33:07 +00:00
Hervé Poussineau
bc6649b746 Put a NULL entry point if explicitly asked for. Thanks w3seek for his help on this issue
svn path=/trunk/; revision=24007
2006-09-09 20:39:50 +00:00
Christoph von Wittich
e10a07af00 *add support for the new SVN 1.4.x binary format
svn path=/trunk/; revision=24006
2006-09-09 20:38:41 +00:00
Magnus Olsen
eb1866f25c Implement GetLastInput base on bug 1753 patch by P43LOk,
It did not catch the last input tick  from keyboard or mouse. 
This code is not tested in reactos, but should work. 
See issue #1753 for more details.

svn path=/trunk/; revision=24005
2006-09-09 19:41:12 +00:00
Saveliy Tretiakov
70a18c5a4e Implement NtGdiGetPath (based on wine)
svn path=/trunk/; revision=24004
2006-09-09 19:26:43 +00:00
Hervé Poussineau
0f51b5f0bc Implement registry handle closing notifications in ntoskrnl
svn path=/trunk/; revision=24003
2006-09-09 19:08:37 +00:00
The Wine Synchronizer
4246de3191 Autosyncing with Wine HEAD
svn path=/trunk/; revision=24002
2006-09-09 17:48:42 +00:00
Hervé Poussineau
b5957ce896 Fix MsiDatabaseIsTablePersistentA/W prototype
Update msi_ros.diff file for upcoming update

svn path=/trunk/; revision=24001
2006-09-09 17:42:28 +00:00
Hervé Poussineau
8e420b3974 Implement "Check volume" page in usetup.
Doesn't work yet because VfatChkdsk() is not implemented

svn path=/trunk/; revision=24000
2006-09-09 17:11:03 +00:00
Hervé Poussineau
07f8340c15 Use Guid specified in device info set (if available) in SetupDiGetClassDevsExW.
Update some documentation (taken from Wine)

svn path=/trunk/; revision=23999
2006-09-09 17:10:51 +00:00
Hervé Poussineau
8dcf1980fe Set 2nd stage setup to language selected in registry
Try to use GetLastInputInfo API instead of a keyboard/mouse hook for screensaver (not enabled yet)

svn path=/trunk/; revision=23998
2006-09-09 17:10:42 +00:00
Hervé Poussineau
52d59f6a4f Don't use buffered input when reading username/password in text mode
svn path=/trunk/; revision=23997
2006-09-09 17:09:45 +00:00
Hervé Poussineau
4ca190a004 Remove useless member in DESKTOP_OBJECT structure
svn path=/trunk/; revision=23996
2006-09-09 17:09:33 +00:00
Hervé Poussineau
1dc7b0f6af Add VfatChkdsk() prototype
svn path=/trunk/; revision=23995
2006-09-09 16:47:09 +00:00
Saveliy Tretiakov
52c652809d revert last commit
svn path=/trunk/; revision=23993
2006-09-09 14:49:11 +00:00
Saveliy Tretiakov
b2dbae0fab Messageboxes shouldn't have WS_SYSMENU
svn path=/trunk/; revision=23992
2006-09-09 14:38:07 +00:00
Art Yerkes
d8e8330fd4 Merge fix to ppc branch.
svn path=/branches/powerpc/; revision=23991
2006-09-09 13:49:03 +00:00
Art Yerkes
812b97ae66 Correct bug in cache which could cause us to lose the last block of a file.
This is wierd and insidious, and probably was the cause of n00bs not being
able to boot on occasion.

svn path=/trunk/; revision=23990
2006-09-09 13:47:45 +00:00
Art Yerkes
4a7321f583 Removed workaround. Now know the cause.
svn path=/branches/powerpc/; revision=23989
2006-09-09 13:33:18 +00:00
Saveliy Tretiakov
68c6a664cf Replace MmCopyFromCaller with probing and seh.
svn path=/trunk/; revision=23988
2006-09-09 13:19:03 +00:00
Aleksey Bragin
e6bb607c6f [AUDIT]
- PE loading/relocating/fixups/etc is greatly documented in a number of sources (e.g. good russian-language article - http://www.uinc.ru/articles/41/, it has links to a different media describing loading process of PE)
- Nothing suspicious found in the code itself

svn path=/trunk/; revision=23987
2006-09-09 12:22:40 +00:00
Saveliy Tretiakov
c439fb86f7 Add winetests to bootcd
svn path=/trunk/; revision=23986
2006-09-09 11:42:52 +00:00
Aleksey Bragin
249e8c91ba Dmitry Philippov: GCC 4 compiling fixes for PackMgr and tests/wm_paint
svn path=/trunk/; revision=23985
2006-09-09 11:41:24 +00:00
KJK::Hyperion
dd77d1676b modified Resources/hresult.xml
Added S_OK and S_FALSE

modified   Resources/ntstatus.xml
    Added all possible STATUS_WAIT_XX codes as STATUS_WAIT_0 + XX

modified   TechBot.Console/App.config
    Don't use hard-coded paths, please!

modified   TechBot.Library/ErrorCommand.cs
    New and improved !error command, now performs heuristics to catch all possible or likely uses

modified   TechBot.Library/HresultCommand.cs
    Removed useless field

modified   TechBot.Library/NumberParser.cs
    Made a couple of methods static

modified   TechBot.Library/TechBotService.cs
    Disable !api until it fails gracefully

svn path=/trunk/; revision=23984
2006-09-09 10:53:28 +00:00
Art Yerkes
25c11e5f6e Make UNIMPLEMENTED available everywhere and remove some #ifdef cruft.
svn path=/trunk/; revision=23983
2006-09-09 09:41:09 +00:00
Thomas Bluemel
94a97e085a Added missing definitions
svn path=/trunk/; revision=23982
2006-09-09 09:26:26 +00:00
James Tabor
03a2724000 User32 static.c:
- Patch by Dmitry Timoshkov, modified for ReactOS.
    - Use computed icon rectangle if SS_CENTERIMAGE style is set.

svn path=/trunk/; revision=23981
2006-09-08 22:30:46 +00:00
Aleksey Bragin
9233af3e50 Add a bit of error reporting
svn path=/trunk/; revision=23980
2006-09-08 22:00:39 +00:00
The Wine Synchronizer
1869f86db6 Autosyncing with Wine HEAD
svn path=/trunk/; revision=23979
2006-09-08 20:13:51 +00:00
The Wine Synchronizer
8377230a7b Autosyncing with Wine HEAD
svn path=/trunk/; revision=23978
2006-09-08 20:12:06 +00:00
The Wine Synchronizer
5a367d19d2 Autosyncing with Wine HEAD
svn path=/trunk/; revision=23977
2006-09-08 20:08:45 +00:00
The Wine Synchronizer
527fb9fa9b Autosyncing with Wine HEAD
svn path=/trunk/; revision=23976
2006-09-08 19:33:33 +00:00
Aleksey Bragin
335e03625a Fix invalid charset (DOS -> Windows)
svn path=/trunk/; revision=23975
2006-09-08 15:39:34 +00:00
Hervé Poussineau
9243a83d80 Adapt usetup to handle more easily additional filesystems
This also prepares ground for the Chkdsk disk page

svn path=/trunk/; revision=23974
2006-09-07 22:42:28 +00:00
Alex Ionescu
e6fd23de2c - 1>Build Time 0:04
1>ReactOS Kernel - 0 error(s), 253 warning(s)
- Add winerror.h to ps/win32.c so it can get the Win32 error definition it needs (winerror.h doesn't add any other nasty win32 headers, so this isn't really a header policy violation).
- Fix prototypes of KdEnableDebugger and KdDisableDebugger.
- Write one of the cleanest and most ingenious hacks I've ever come up with it, which bypasses the incompatibility of hard-coded WDK externals.

svn path=/trunk/; revision=23973
2006-09-07 22:38:06 +00:00
Alex Ionescu
254f6b62ac - More MSVC fixes (down to 19 errors):
- Header changes: fix FILE_LOCK_INFO, LARGE_MCB, BASE_MCB, MM_SYSTEMSIZE.
- Remove many things in W32API which are incorrectly there (due to winnt being used by the win32api DDK). Defined them in the NDK instead, where appropriate (mostly definitions that are present in user-mode headers, but not kernel-mode headers).
- Hacked the ERESOURCE functions to define a special ERESOURCE_XP type. This is necessary because ERESOURCE is an opaque-yet-exported structure, and its structure changed in Vista.
- Removed support for IMAGE_SCN_TYPE_NO_LOAD. It is a reserved field and Windows does not "respect" it. (sections marked as no-load will still be loaded by NT).

svn path=/trunk/; revision=23972
2006-09-07 21:36:15 +00:00
Hervé Poussineau
7d80cdabff Add ufat.dll and the optional ufatx.dll (to be added later to repository)
svn path=/trunk/; revision=23971
2006-09-07 20:57:02 +00:00
Hervé Poussineau
8c22629a9e [FORMATTING] Fix tab/space mess by replacing them by 4 spaces. No code change
svn path=/trunk/; revision=23970
2006-09-07 20:15:45 +00:00
Hervé Poussineau
1b337150cc Update prototypes
svn path=/trunk/; revision=23969
2006-09-07 19:46:18 +00:00
James Tabor
2fad285b14 Removed NtUserGetKeyboardType, there was no win32k.db entry for it.
svn path=/trunk/; revision=23968
2006-09-07 19:23:39 +00:00
Thomas Bluemel
3a4bb3b8dc Yes we should do it as WINE. Fixes a buffer overflow in RtlDetermineDosPathNameType_U()
svn path=/trunk/; revision=23967
2006-09-07 19:20:42 +00:00
Hervé Poussineau
2417bf273f Correctly handle optional parameters
svn path=/trunk/; revision=23966
2006-09-07 19:16:47 +00:00
Hervé Poussineau
022504ad3c Some 64 bits fixes (approved by Filip)
svn path=/trunk/; revision=23965
2006-09-07 19:13:37 +00:00
Hervé Poussineau
a2548c11a4 Fix format.exe compilation
svn path=/trunk/; revision=23964
2006-09-07 18:08:00 +00:00
Hervé Poussineau
24ff7a71b4 Fix compilation
svn path=/trunk/; revision=23963
2006-09-07 17:55:51 +00:00
Hervé Poussineau
0d173915ac Correctly implement autochk, which now calls the ChkdskEx function in u{FS}.dll.
svn path=/trunk/; revision=23962
2006-09-07 17:54:23 +00:00
Hervé Poussineau
611b577fd6 Add a stub for FAT12/16/32 chkdsk
svn path=/trunk/; revision=23961
2006-09-07 17:44:08 +00:00
Hervé Poussineau
eb50899ee0 Declare prototype for ChkdskEx function in u{FS}.dll
svn path=/trunk/; revision=23960
2006-09-07 17:39:42 +00:00
Magnus Olsen
3387c46e16 fixed win32k build, trunks builds again thanks w3seek for the help
svn path=/trunk/; revision=23959
2006-09-07 17:35:31 +00:00
Hervé Poussineau
8f329a8565 Fix typo: _GNUC_ -> __GNUC__
svn path=/trunk/; revision=23958
2006-09-07 13:47:14 +00:00
Magnus Olsen
861ae4bcca fixed rosapps so it compiles again
svn path=/trunk/; revision=23957
2006-09-07 11:10:27 +00:00
Magnus Olsen
01acfd4778 fixed follow test, acclertor, alive, alphablend, bitblt, button, button2, capclock, carets, combotst, dibtest, dirdlg, DxHalTest, edit, enhmetafile, enumfonts, enumwnd, enumws, gradient, hello, hivtest, icontest, lineclip, linetest, mdi, midtest
svn path=/trunk/; revision=23956
2006-09-07 10:31:37 +00:00
Magnus Olsen
433252a084 fixed ctm, kill, lsdd, man, regexpl, tcat can be build again
svn path=/trunk/; revision=23955
2006-09-07 10:01:22 +00:00
Magnus Olsen
d6a960a884 fixed so packmgr builds again
svn path=/trunk/; revision=23954
2006-09-07 09:53:25 +00:00
Magnus Olsen
c410304d3c fixed waring msg newline
svn path=/trunk/; revision=23953
2006-09-07 09:46:50 +00:00
Magnus Olsen
d287153576 fixed all network apps in rosapps.
svn path=/trunk/; revision=23952
2006-09-07 09:42:17 +00:00
Magnus Olsen
e3d7c1e7aa 1. fixed mc build again
2. fixed some warnings

svn path=/trunk/; revision=23951
2006-09-07 09:17:39 +00:00
Johannes Anderwald
4d044a7f0d * fix building ntoskrnl
svn path=/trunk/; revision=23950
2006-09-07 09:06:47 +00:00
Magnus Olsen
a5ea7e70cd fixed gdb2 build thx hpoussin for the host info
svn path=/trunk/; revision=23949
2006-09-07 08:50:42 +00:00
Magnus Olsen
fa303561af fixed build for ddraw_demo
svn path=/trunk/; revision=23948
2006-09-07 08:29:06 +00:00
Magnus Olsen
e32b3e7588 fixed build for maze again
svn path=/trunk/; revision=23947
2006-09-07 08:26:54 +00:00
Magnus Olsen
b780b50b58 fixed build for touch again
svn path=/trunk/; revision=23946
2006-09-07 08:23:54 +00:00
Magnus Olsen
49b27aaae4 fixed mode can be compile again.
svn path=/trunk/; revision=23945
2006-09-07 08:20:29 +00:00
Magnus Olsen
bff34182eb update shlguid, remove the dublacte guid, winefiles can be build now again
svn path=/trunk/; revision=23944
2006-09-07 07:14:49 +00:00
Magnus Olsen
d6fbed40b0 include psdk shlguid.h
svn path=/trunk/; revision=23943
2006-09-07 07:13:07 +00:00
Magnus Olsen
e50296456b Fixed so explorer can be compiling again.
Have not tested with rest of reactos if this break any anything. 

svn path=/trunk/; revision=23942
2006-09-07 06:36:33 +00:00
Alex Ionescu
dd25974e25 - More MSVC fixes:
Additions or changes to headers: FSRTL_PER_FILEOBJECT_CONTEXT, FsRtlAreNamesEqual uses CONST buffers, KiIpiGenericCall + PKPIP_BROADCAST_WORKER, MmPageEntireDriver returns PVOID, Obf(De)referenceObject return LONG_PTR, KeGetPreviousMode is ExGetPreviousMode. KeGetCurrentPrcb is reimplemented in inline, MAX_PATH exposed to drivers.
- Changes: STATIC->static. static __inline ->FORCEINLINE. STDCALL -> NTAPI (Some). WORD/DWORD/BYTE -> NT Types.
- Kernel bugs fixed: Some string concatenations were broken, some functions had wrong return values.

svn path=/trunk/; revision=23941
2006-09-07 05:07:34 +00:00
Thomas Bluemel
17e434d5bd Add user32 to build notifyhook
svn path=/trunk/; revision=23940
2006-09-06 21:44:06 +00:00
Brandon Turner
80562db631 Link to shell32 so we can use CommandLineToArgvW when compiling unicode. Thanks to Usurp for finding the problem.
svn path=/trunk/; revision=23939
2006-09-06 21:17:23 +00:00
Johannes Anderwald
29a8ffa699 * add console.dll to bootcd
* add setting for unattended GUI setup (disabled)

svn path=/trunk/; revision=23938
2006-09-06 21:12:06 +00:00
Art Yerkes
e1ba8f15ae Fix this properly: specify the search path among our various header sets.
svn path=/trunk/; revision=23937
2006-09-06 20:58:02 +00:00
Art Yerkes
d7a2739bdf Ditto.
svn path=/trunk/; revision=23936
2006-09-06 20:31:11 +00:00
Art Yerkes
ec6a7a35c4 Added _fpreset prototype. Not sure why this isn't picked up here.
svn path=/trunk/; revision=23935
2006-09-06 20:30:28 +00:00
Thomas Bluemel
3c13ad4c32 Delete empty directory
svn path=/trunk/; revision=23934
2006-09-06 20:10:02 +00:00
Thomas Bluemel
02a7a31265 - Force using the import libraries built by ReactOS only, don't use the ones that come with the mingw compiler (doesn't work for CPP!)
- Import the mingw startup library and customized it a little. _tmain() is now supported, compiling an application as unicode is now just a matter of setting the module attribute unicode="true"
- Fixed .rbuild files to import all libraries neccessary
- Various GUID header changes and hacks to get everything to build/link properly
- Fixed the IShellView2 interface

svn path=/trunk/; revision=23933
2006-09-06 20:00:41 +00:00
Magnus Olsen
292bb9268e [Audlt] this file was written by filip for mingw w32sapi, and it contain few GUID from wine to keep wine dsound happy.
I did add the GUID from wine. 

svn path=/trunk/; revision=23932
2006-09-06 19:57:19 +00:00
Magnus Olsen
d009b08d81 [Audlt] this file was written by filip for mingw w32sapi and it same as mingw w32aspi,
svn path=/trunk/; revision=23931
2006-09-06 19:51:03 +00:00
Johannes Anderwald
753aa1c0e2 * halfplement reading / writing Console User settings
* remove hardcoded constants
* shuffle initialization code :-)
* changing console text / background color now works :-)))))))
* changing cursor works only for one input (needs be investigated)

svn path=/trunk/; revision=23930
2006-09-06 19:37:53 +00:00
Thomas Bluemel
7aae13b091 Fixed difference in signedness warnings
svn path=/trunk/; revision=23929
2006-09-06 19:28:35 +00:00
Thomas Bluemel
84269d7917 Fixed difference in signedness warnings
svn path=/trunk/; revision=23928
2006-09-06 18:59:30 +00:00
Aleksey Bragin
7f0a82ce58 Fix MSVC 2005 compilation (Platform SDK is correctly included)
svn path=/trunk/; revision=23927
2006-09-06 18:43:35 +00:00
Saveliy Tretiakov
1fc89de847 Some win32k docs (from win32k rewrite branch).
svn path=/trunk/; revision=23926
2006-09-06 16:31:03 +00:00
Alex Ionescu
f0af84da4e - MSVC Build Fixes
svn path=/trunk/; revision=23925
2006-09-06 12:19:00 +00:00
Magnus Olsen
173cb3c677 update it.rc languages translation by gabrielilardi at hotmail.it (Gabriel ilardi)
svn path=/trunk/; revision=23924
2006-09-05 20:46:24 +00:00
Saveliy Tretiakov
90759eb5a2 Call NtUserDrawCaption directly
svn path=/trunk/; revision=23923
2006-09-05 16:28:20 +00:00
Johannes Anderwald
4da1de7ca1 * msvc compiling fix
svn path=/trunk/; revision=23922
2006-09-05 10:14:40 +00:00
Brandon Turner
d6d0d40cad Implement CryptSignHashW based WINE and old CryptSignHashA. Change CryptSignHashA to call CryptSignHashW.
svn path=/trunk/; revision=23921
2006-09-04 22:51:28 +00:00
Hervé Poussineau
d5168c3b05 Allow allow lower case when being called
svn path=/trunk/; revision=23920
2006-09-04 22:16:43 +00:00
Hervé Poussineau
aa34958d1b Add a hack to enable formatting (was broken since at least r20156)
svn path=/trunk/; revision=23919
2006-09-04 21:58:38 +00:00
Johannes Anderwald
478f24b02b * use ConsoleInfo struct directly
* change type in global struct (avoid buffer overflow when reading value from registry)

svn path=/trunk/; revision=23918
2006-09-04 21:26:49 +00:00
Hervé Poussineau
94b07b79db Add ufat.dll, to be able to format drives to FAT and FAT32 format
svn path=/trunk/; revision=23917
2006-09-04 20:55:39 +00:00
Thomas Bluemel
7ed51f5c9e rename version.h to ver.h to avoid a possible conflict with include/reactos/version.h
svn path=/trunk/; revision=23916
2006-09-04 20:14:48 +00:00
Hervé Poussineau
90d5c19850 Remove Vfat(x)Initialize and Vfat(x)Cleanup which were empty
Remove vfatlib dependancy of fmifs.dll (Providers like ufat.dll are loaded dynamically at startup)

svn path=/trunk/; revision=23915
2006-09-04 19:27:19 +00:00
Hervé Poussineau
132cf4ece8 [FORMATTING] Add standard headers
Replace the mix of tabs/spaces by tabs
Replace STDCALL by NTAPI

svn path=/trunk/; revision=23914
2006-09-04 17:11:14 +00:00
Hervé Poussineau
4ba3312a81 Add prototypes for some fmifs.dll functions.
These have been found with trial and error on a MS Windows XP SP2 system with MS Visual Studio 2003

svn path=/trunk/; revision=23913
2006-09-04 16:46:13 +00:00
Hervé Poussineau
e094312326 Fix compilation of rosapps with gcc 3.4.5.
Thanks Gge on IRC

svn path=/trunk/; revision=23912
2006-09-04 16:29:00 +00:00
Johannes Anderwald
c12e6bbcba * move reading / applying options out of console.dll
* remove unused code
* notify win32csr when a property has changed

svn path=/trunk/; revision=23911
2006-09-04 13:13:42 +00:00
KJK::Hyperion
8ee7f4296b PSEH was based on clean-room reverse engineering (read: trial-and-error) and on the pre-existing work of Matt Pietrek, just like the exception handling code used in Wine. I, the author, declare it clean
svn path=/trunk/; revision=23910
2006-09-04 12:04:54 +00:00
Art Yerkes
8c90909c24 Link ntoskrnl.
svn path=/branches/powerpc/; revision=23909
2006-09-04 06:38:37 +00:00
Art Yerkes
8741dcaf30 Removed junk.
svn path=/branches/powerpc/; revision=23908
2006-09-04 06:27:18 +00:00
Art Yerkes
c31bb913e5 Big merge: thanks alex and greatlord. Not a complete merge but most
relevant things for ppc right now.
hal
ntoskrnl
include
lib/rtl
lib/cmlib
some freeldr components

svn path=/branches/powerpc/; revision=23907
2006-09-04 05:52:23 +00:00
James Tabor
ab4e2c9cf4 User32 bitmap.c:
- Patch by Michael Kaufmann
  - CopyImage: Handle the flags LR_COPYDELETEORG, LR_CREATEDIBSECTION, and LR_MONOCHROME.

svn path=/trunk/; revision=23906
2006-09-04 03:08:18 +00:00
James Tabor
76b17ae494 User32 combo.c:
- Patch by Dmitry Timoshkov
  - do not force repainting on WM_WINDOWPOSCHANGED in combobox, it
    breaks Z-order based painting.
  - do nothing in the combobox WM_ERASEBKGND handler do all painting in
    WM_PAINT like Windows does.


svn path=/trunk/; revision=23905
2006-09-04 03:03:14 +00:00
Magnus Olsen
09a8680165 Adding small hack to getting SetPixel color right when it is more that 3 bytes long.
This hack allown us pass one more test. (Debuging in progress)

svn path=/trunk/; revision=23904
2006-09-03 22:54:22 +00:00
Alex Ionescu
9fbb616938 - Final cleanup for now:
- main.c -> freeldr.c + cleanups and nice formatitng.
  - Move out variables that were in main.c to ex\init.c or cpu.c, depending.
  - Separate i386/kernel.c into i386/kiinit.c for X86-specific intiailization, and /krnlinit.c for portable initialization across all architectures. Also move out global variables appropriately.
  - main_asm.S -> cpu.S

svn path=/trunk/; revision=23903
2006-09-03 21:06:30 +00:00
Hervé Poussineau
00abb85d36 Reorder the file
Add some more defines/typdefs from Wine sspi.h
Fix a few typos

svn path=/trunk/; revision=23902
2006-09-03 21:02:09 +00:00
Alex Ionescu
c65323691c - Add Ke386SetInterruptDescriptorTable inlined function to set the IDT.
- Rename and fixup initial stacks, instead of using 16 different variables all with confusining meanings and values. Define P0BootStack as the initial kernel stack, and KiDoubleFaultStack as the double-fault trap (and initial DPC) stack.
- Fix call to KiInitializePcr which was setting an incorrect DPC stack.
- Make space on the initial stack for a KTRAP_FRAME as well, not only for the FPU save area.
- Also push initial CR0 NPX state on the initial stack.
- Load the IDT and GDT directly in KiRosPrepareForSystemStartup.
- Completely rewrite main_asm.S in Intel syntax and clean it up.

svn path=/trunk/; revision=23901
2006-09-03 19:57:55 +00:00
Aleksey Bragin
4eebe5e53f Add comptypeDIB definition to headers
svn path=/trunk/; revision=23900
2006-09-03 19:38:16 +00:00
Magnus Olsen
7fe1969532 Fixed one more bug, we did create wrong bpp if we got HDC = NULL for CreateDIBitmap, when I read wine code
it is always 1Bpp and 1Plans and we are doing same now if HDC is NULL, some wine test deepness on it. 
Hopply it will take care of some program problem. 

svn path=/trunk/; revision=23899
2006-09-03 18:16:08 +00:00
Alex Ionescu
c6f105da0b - Add Ke386SetFs, Ds, Es (using Ke386SetSeg) and Ke386SetTr new inlined commands.
- Also setup an NMI Task gate after the double fault task gate. Will be useful when we hand to handle NMIs later.
- Setup FS in KiSystemStartup and initialize the TSS before the PCR. Also add a bit more support for SMP systems (To skip boot-cpu-only initialization).
- Also setup DS/ES directly in KiSystemStartup.
- Initialize KD at phase 0 in KiSystemStartup, not in KiInitializeKernel, and also check for debug break at this time.

svn path=/trunk/; revision=23898
2006-09-03 17:18:08 +00:00
Hervé Poussineau
25090facc3 Allow setup to detect extended partitions
svn path=/trunk/; revision=23896
2006-09-03 12:32:15 +00:00
Alex Ionescu
d8155f97a7 - Remove LDT initialization, LDT shouldn't be initialized at bootup.
- Move LDT-only GDT routines to ldt.c
- Cleanup formatting of GDT-related exported function stubs in gdt.c and rename file to abios.c. Those routines deal specifically with the ABIOS GDT selectors and are for ABIOS support.
- Move the lone 2 routines in fpu.c to cpu.c.

svn path=/trunk/; revision=23895
2006-09-03 07:13:02 +00:00
Alex Ionescu
6b42f391e0 - Fix KTSS definition.
- Add GetSegment inlines (ie: GetSs, GetDs, etc)
- Fix up definition of KiBootGdt to use KGDTENTRY instead of USHORT. Also define KiGdtDescriptor using KDESCRIPTOR.
- Remove GDT initialization code completely. The GDT is already initialized on boot.
- Remove tss.c and add KiInitializeTss(2) to setup a TSS and proper IOPM/Interrupt Direction map settings for V86/VDM.
- Copy the TSS code over but prettyify it to use NT/NDK structures instead of ugly USHORT typecasts.

svn path=/trunk/; revision=23894
2006-09-03 06:51:03 +00:00
Art Yerkes
3cc6a119fb Fixed, separated mmu related functions. We now get correct translations
in every case.

fat.c: workaround for now.  Need to figure out why the fs is b0rked.

svn path=/branches/powerpc/; revision=23893
2006-09-03 03:37:20 +00:00
Magnus Olsen
00f50dd922 Fixed some more wine test for NtGdiGetDIBits
FIxed so we can now create BITMAPCOREHEADER bitmap (Bugs in NtGdiGetDIBits did stop create of it) 



svn path=/trunk/; revision=23892
2006-09-02 23:58:53 +00:00
Magnus Olsen
7aa07b393c 1. Copy DIB_GetBitmapInfo from wine cvs (date 2/9-2006)
2. Bugfix NtGdiGetDIBits the BITMAPCOREHEADER is not same as BITMAPINFOHEADER
   we now separate it in if(Bits==NULL) that will allow us pass two more wine tests
   follow winetest is working now 
   1. bitmap.c 227 Test failed: GetDIBits doesn't work with a BITMAPCOREHEADER 
   2. bitmap.c 233 GetDIBits doesn't work with a BITMAPCOREHEADER 
   both of them are fixed now 

svn path=/trunk/; revision=23891
2006-09-02 21:02:03 +00:00
Aleksey Bragin
7bfe48177c Separate Device Manager code (what was left from it in hub.c) from Hub code
svn path=/trunk/; revision=23890
2006-09-02 20:32:50 +00:00
Alex Ionescu
252a2d1598 - Part 2 of 2: Implement KiDispatchInterrupt in assembly since it's 1) Perf-critical 2) Requires us to switch the stack to the DPC stack, which is unsafe (and impossible, unless inlining) in C.
svn path=/trunk/; revision=23889
2006-09-02 19:53:24 +00:00
Alex Ionescu
0f9c7bdf03 - Part 1.5 of 2: Re-factor KiDispatchInterrupt to separate DPC delivery routine (so that it can stay in C, since KiDispatch should be done in ASM so we can switch stacks).
- Use interrupt enable/disable instead of raising to HIGH_LEVEL.
  - Better use and pairing of locks.
  - Fix a lot of race conditions in DPC dispatching, due to the fact almost all data we're touching is ultra-volatile and can change at any time depending on various locks being held/released + interrupt state.
  - Add stub code/support for tick-hased table-based timer implementation and deferred threads.

svn path=/trunk/; revision=23888
2006-09-02 19:12:31 +00:00
Alex Ionescu
7802140549 - Fix a bug in RtlFillMemory.
- Fix overlap check comments.

svn path=/trunk/; revision=23887
2006-09-02 16:36:48 +00:00
Alex Ionescu
38ca1d7d77 - Add missing volatile statements to KPROCESS, KTHREAD, KPRCB and KDPC_DATA.
- Fix KDPC definition in DDK. You can always count on the w32api to get even the simplest structures wrong.
- Fix memory overwrite bug in KiInitSpinlocks.
- Part 1 of 2: Cleanup and improve DPC implementation to add partial support for Threaded DPCs and remove SMP vs non-SMP ifdefs. (At the expense of, oh God, 5 wasted CPU cycles!).

svn path=/trunk/; revision=23886
2006-09-02 16:19:00 +00:00
Aleksey Bragin
ea0c0daec0 Add forgotten "xs-native.cpp" to the MSVC project of ROS Explorer
svn path=/trunk/; revision=23885
2006-09-02 11:27:36 +00:00
The Wine Synchronizer
99b4a1d7ee Autosyncing with Wine HEAD
svn path=/trunk/; revision=23883
2006-09-02 06:27:09 +00:00
The Wine Synchronizer
8dff62e1f8 Autosyncing with Wine HEAD
svn path=/trunk/; revision=23882
2006-09-02 06:24:20 +00:00
Alex Ionescu
aa69c69afb - Move machine-specific initializations to KeInit2.
- Initialize bugcheck messages much earlier, separate clock initialization from KeInit2.
- Completely move out and isolate ROS/FREELDR PE loading hacks to KiRosPrepareForSystemStartup so that KiSystemStartup is clean of them.

svn path=/trunk/; revision=23881
2006-09-02 05:10:16 +00:00
Alex Ionescu
ea01969067 - More Initialization changes:
- Initialize bugcheck lists, timer DPC, profile list/locks, timer lists, the swap lists and syscall table as part of KiInitSystem (portable).
   - Add more initialization for the initial/idle process+thread (some code disabled due to dispatcher problems).
   - Add code to support future Timer implementation (based on tick-hashes)
   - Separate post-boostrap initialization code in KiInitializeKernel.
   - Add some support for future SMP paths.
   - Create a DPC stack.
- Changes based on WI4 and my automated parsing tool.

svn path=/trunk/; revision=23880
2006-09-02 04:40:09 +00:00
Alex Ionescu
deed4ed0d6 - More kernel initialization changes and cleanups.
- Start support for an initial boot thread.

svn path=/trunk/; revision=23879
2006-09-02 02:59:44 +00:00
Thomas Bluemel
dbf97f3b50 Fix creating the console system menu items
svn path=/trunk/; revision=23878
2006-09-01 23:18:23 +00:00
Hervé Poussineau
c2d18fb0b6 Add softpub.h header
svn path=/trunk/; revision=23877
2006-09-01 23:06:32 +00:00
The Wine Synchronizer
abb022f081 Autosyncing with Wine HEAD
svn path=/trunk/; revision=23876
2006-09-01 22:47:57 +00:00
Hervé Poussineau
e1d577c47c Add a stub sensapi.dll. This is a step to fix bug 1751
svn path=/trunk/; revision=23875
2006-09-01 22:41:31 +00:00
Hervé Poussineau
43d85c0abc Add some error codes (taken from Wine)
svn path=/trunk/; revision=23874
2006-09-01 22:10:56 +00:00
Thomas Bluemel
00c354405e Don't call BeginPaint/EndPaint while processing a WM_DRAWITEM message
svn path=/trunk/; revision=23873
2006-09-01 21:53:31 +00:00
Thomas Bluemel
c474673ac7 disable code that dereferences a random pointer
svn path=/trunk/; revision=23871
2006-09-01 18:56:06 +00:00
Thomas Bluemel
13e3041822 Don't leak a reference in NtReleaseSemaphore() in case KeReleaseSemaphore() raises and exception
svn path=/trunk/; revision=23870
2006-09-01 18:41:00 +00:00
Thomas Bluemel
4a586b2eb2 remove superfluous dereference
svn path=/trunk/; revision=23869
2006-09-01 18:20:44 +00:00
Ged Murphy
61059050bb - Use a more generic print service
- don't assign a service name at the start as it causes problems when query(ex) doesn't supply one.
- Simplify the service starting code.
- Add missing options to the print type
- rewrite the querying functionality to be cleaner, and use existing code.
- remove the braces I left, used for collapsing dbg info

svn path=/trunk/; revision=23868
2006-09-01 16:55:36 +00:00
Eric Kohl
9e843c89fc Fix indentation, no code changes.
svn path=/trunk/; revision=23867
2006-09-01 15:49:50 +00:00
Alex Ionescu
a85e942346 - More initialization cleanup.
svn path=/trunk/; revision=23866
2006-09-01 13:13:08 +00:00
Hervé Poussineau
562f8391e8 Fix build when compilation units are enabled for usetup.c
svn path=/trunk/; revision=23865
2006-09-01 12:58:56 +00:00
Alex Ionescu
5244a29dad - Fix bugs in RtlCompareMemory, RtlCompareMemoryULong
svn path=/trunk/; revision=23864
2006-09-01 12:38:57 +00:00
Eric Kohl
6b8b0b56b2 Remove trailing whitespace
svn path=/trunk/; revision=23863
2006-09-01 11:16:32 +00:00
Hervé Poussineau
f05d1bb617 Fix option selection in bootcd
Fix SetupOpenFileQueue, SetupCloseFileQueue and SetupCommitFileQueueW prototypes to match setupapi.dll ones

svn path=/trunk/; revision=23862
2006-09-01 09:53:33 +00:00
Art Yerkes
62f408e7e6 Most of an implementation of page lookup for PPC. Written for
understanding and also to provide a way to inspect virtual to phyiscal 
translations.  We should and will do this with ofw most of the time, but 
we'll have to do it ourselves in the delicate time before jumping to 
ntoskrnl.

svn path=/branches/powerpc/; revision=23861
2006-09-01 09:46:44 +00:00
Art Yerkes
f5f3faa9f2 Adding methods to inquire about virtual memory setup.
svn path=/branches/powerpc/; revision=23858
2006-09-01 06:53:49 +00:00
Alex Ionescu
30f4d83978 - Add back defines accidentaly removed.
svn path=/trunk/; revision=23854
2006-09-01 03:19:25 +00:00
Alex Ionescu
ad9fdb1ae3 - Fix bug in RtlZero, Fill, Move memory where the last 1-3 bytes weren't being copied.
svn path=/trunk/; revision=23853
2006-09-01 03:15:32 +00:00
Alex Ionescu
369f93b984 - Multiple changes to low-level Kernel initalization sequence to bring it a bit closer to Windows.
- Main difference is new CPU detection algorithms for ID, cache, etc, as well as using KF_ Kernel Feature bits instead of x86 CPU features (For portability).
- Also many many other cleanups and re-sequencing.

svn path=/trunk/; revision=23852
2006-09-01 03:05:30 +00:00
Ged Murphy
3c411c196d forgot to turn debugging off
svn path=/trunk/; revision=23850
2006-08-31 22:51:28 +00:00
Alex Ionescu
01081d279e - Some cleanups
- Add support for recovering from user-mode win32k callback fault.
- Also add support for debug register saving/reloading during user-mode callbacks and return.

svn path=/trunk/; revision=23849
2006-08-31 18:10:11 +00:00
Ged Murphy
158e4c116a first commit of an overhaul of sc.exe
- establish a connection to the SCM for each separate request, allowing the minimum privlidges required, instead of a generic (over privlidged) one.
- start to move service printing to separate functions and reduce code duplication
- make output 100% as per Windows
- fix some commands, e.g. 'interrogate'
- improve error checking
- improve code structure

svn path=/trunk/; revision=23848
2006-08-31 17:59:02 +00:00
Eric Kohl
8537a75fba Pass additional arguments to a service when it is started by a call to StartService.
svn path=/trunk/; revision=23846
2006-08-31 17:16:19 +00:00
Alex Ionescu
5a633f8fc9 - Remove some deprecated code and custom ROS exports/code.
svn path=/trunk/; revision=23845
2006-08-31 17:10:58 +00:00
Thomas Bluemel
87ab1c53a7 Add stubs for the condition variable functions
svn path=/trunk/; revision=23844
2006-08-31 16:56:49 +00:00
Aleksey Bragin
26b82125e5 Change a very ugly done DbgPrint() function to a good implementation. Now Freeldr shows all DPRINTs from e.g. cmlib correctly.
svn path=/trunk/; revision=23843
2006-08-31 16:08:17 +00:00
Aleksey Bragin
5cd8b68023 Sylvain Petreolle: Partly fix unicode build of cmd (a typo)
svn path=/trunk/; revision=23842
2006-08-31 14:14:42 +00:00
Hervé Poussineau
02d5b53e84 Add ATTACH_PARENT_PROCESS constant
svn path=/trunk/; revision=23841
2006-08-31 14:11:33 +00:00
Hervé Poussineau
1ebc320243 Remove some code duplication when calling PopupError
Add ConAttachConsole stub

svn path=/trunk/; revision=23840
2006-08-31 12:35:39 +00:00
Hervé Poussineau
8b597b0970 Fix build for Linux people, where gcc claims that it doesn't support I64 for printf. Thanks Usurp on IRC
svn path=/trunk/; revision=23839
2006-08-31 12:31:34 +00:00
Hervé Poussineau
ed70ab7f26 Fix Linux build (filename case problem...) Thanks gregj on IRC
svn path=/trunk/; revision=23837
2006-08-31 11:09:05 +00:00
Hervé Poussineau
cc2684d474 Cleanup in .inf file handling of usetup:
- Equivalent setupapi functions have the same protoype as in Win32 API
- Extra functions have the INF_* prefix

svn path=/trunk/; revision=23836
2006-08-31 09:13:03 +00:00
Art Yerkes
f6811c33e7 Some intermediate work. We start loading the kernel now.
Working on early boot memory mapping.  We'll rely heavily on open 
firmware until we're on our own page table.

svn path=/branches/powerpc/; revision=23835
2006-08-31 08:01:30 +00:00
Hervé Poussineau
f52bca045b Clean up console functions in usetup. We now have 2 categories:
- The same functions as in Win32 Console API, prefixed with Con
- The helpers (which call Con* functions) prefixed with CONSOLE_
Do according changes in other files

svn path=/trunk/; revision=23834
2006-08-31 06:14:25 +00:00
Alex Ionescu
e870b20916 - Don't do fast system calls with the wrong DS/ES selectors.
- Properly load DS/ES on system startup and GDT load
- Use proper DS/ES during deprecated IRQ handling.
- Always use GS as 0 for all of the above.
- *FINALLY* fixes the oldest bug there ever was -> DS/ES corruption noticed in VMWare (And recently in QEMU+KERNELKQEMU, since it behaves internally like vmware). Hacks in trap code have FINALLY been removed!

svn path=/trunk/; revision=23833
2006-08-31 05:25:58 +00:00
Alex Ionescu
d2ba2fdc17 - Implement more parts of the GPF Handler.
- Add support for lazy loading.
- QEMU + -kernel-qemu seems to work now.
- Hack away the Win32k bug that's been there for ages (copy to user-mode from kernel-mode failing due to probe due to incorrect previous mode). It's not the right fix, but nobody seems to be willing to fix it, and it doesn't make anything less stable, sicne the actually copy is in SEH anyway. It opens a security vuln. (wow, not like we have 15000) in exchange for fixing dozens of win32k bugs and failures.

svn path=/trunk/; revision=23832
2006-08-31 04:10:33 +00:00
Pablo Borobia
e82f58c755 Testing commit
svn path=/trunk/; revision=23831
2006-08-31 03:12:14 +00:00
Alex Ionescu
e4e58dde50 - Write new, optimized, small, working and clean functions (fixes booting, last few commits broke it for me):
- RtlCompareMemory
    - RtlCompareMemoryUlong
    - RtlFillMemory
    - RtlFillMemoryUlong
    - RtlFillMemoryUlongUlong
    - RtlMoveMemory
    - RtlZeroMemory
    - RtlPrefetchMemoryNonTemporal
    - RtlUshortByteSwap
    - RtlUlongByteSwap
    - RtlUlonglongByteSwap

svn path=/trunk/; revision=23830
2006-08-31 01:20:55 +00:00
Thomas Bluemel
5b8d955fb7 Fix difference in signedness warnings
svn path=/trunk/; revision=23829
2006-08-30 21:47:38 +00:00
Thomas Bluemel
1fcf9ceba0 Use the new ProbeForWriteIoStatusBlock macro
svn path=/trunk/; revision=23828
2006-08-30 21:45:17 +00:00
Thomas Bluemel
176e324621 - Fix some probing macros
- Add probing macros for IO_STATUS_BLOCK structures
- Added two inline functions ProbeArrayForRead() and ProbeArrayForWrite(), mainly for use in win32k as they also check for integer overflows.

svn path=/trunk/; revision=23827
2006-08-30 21:44:12 +00:00
Magnus Olsen
0d6e03c305 Wrote RtlUshotByteSwap RtlUlongByteSwap and RtlUlonglongByteSwap to asm code.
but we need a C api for header to linking it right. Put the asm version to i386 

svn path=/trunk/; revision=23826
2006-08-30 21:17:53 +00:00
Thomas Bluemel
73120d4d50 Revert r23824. This needs to go into the clipboard branch for now.
svn path=/trunk/; revision=23825
2006-08-30 20:59:32 +00:00
Pablo Borobia
0effbf25dc * added GetLayout definition
* added Clipboards definitions
* added GetLastInputInfo definition

svn path=/trunk/; revision=23824
2006-08-30 20:56:17 +00:00
Thomas Bluemel
a65807043a Revert r23810, r23811, r23813. The clipboard changes are in the clipboard branch for now.
svn path=/trunk/; revision=23823
2006-08-30 20:40:07 +00:00
Hervé Poussineau
15d6307da5 mpr.dll can now be autosynced with Wine
svn path=/trunk/; revision=23822
2006-08-30 20:37:56 +00:00
Ged Murphy
08ecb38f3b update msi wine regtest
svn path=/trunk/; revision=23821
2006-08-30 20:37:49 +00:00
Ged Murphy
0ce8d02acc update comctl32 winetest
svn path=/trunk/; revision=23818
2006-08-30 20:28:33 +00:00
Hervé Poussineau
42b655b8f9 avifil32.dll can now be autosynced with Wine
svn path=/trunk/; revision=23816
2006-08-30 20:16:11 +00:00
Hervé Poussineau
85bfb7d006 wineimport.cmd (>= r23814) is now able to handle msi.dll autosync. Mark it as such.
svn path=/trunk/; revision=23815
2006-08-30 20:01:42 +00:00
Pablo Borobia
fc86ed2df2 * Added more clipboard regression tests
svn path=/trunk/; revision=23813
2006-08-30 19:46:40 +00:00
Hervé Poussineau
4c7a515ebc Add msi_ros.diff
svn path=/trunk/; revision=23812
2006-08-30 19:41:09 +00:00
Pablo Borobia
38bee199b7 shel32.dll part:
* Clipboard implemtation in win32k and user32
* Added a clipboard system for each Window Station
* GetLastInputInfo implementation
* GetLayout in win32k Stubs
* Shell32 changes to cut/copy & paste link/paste
* Implemented ALT+PrintScreen to clipboard

svn path=/trunk/; revision=23811
2006-08-30 19:35:54 +00:00
Pablo Borobia
5a624910f1 user32.dll part:
* Clipboard implemtation in win32k and user32
* Added a clipboard system for each Window Station
* GetLastInputInfo implementation
* GetLayout in win32k Stubs
* Shell32 changes to cut/copy & paste link/paste
* Implemented ALT+PrintScreen to clipboard

svn path=/trunk/; revision=23810
2006-08-30 19:35:22 +00:00
Alex Ionescu
3d10f77c92 - It should now be safe to remove the V86 ESP0 hack, since V86 mode works fine (tested on VMWare/QEmu).
svn path=/trunk/; revision=23809
2006-08-30 19:29:16 +00:00
Hervé Poussineau
21aef1a7a7 Update MSI to current Wine version.
Autosync will be put in place very soon for this dll.

svn path=/trunk/; revision=23808
2006-08-30 19:24:26 +00:00
Ged Murphy
6d52441d10 [WINESYNC]
update comctl32 to Wine_0.9.20

svn path=/trunk/; revision=23807
2006-08-30 19:18:49 +00:00
Thomas Bluemel
900bf1a753 Implement Slim Reader/Writer (SRW) locks:
- Implement AcquireSRWLockExclusive(), AcquireSRWLockShared(), InitializeSRWLock(), ReleaseSRWLockExclusive(), ReleaseSRWLockShared()
- NOTE: Some versions of GCC have a code generation bug with specially aligned structures on the stack. If compiled with such a compiler, the code might trigger special assertions. Pushlocks are also affected by this compiler bug.
- NOTE: The algorithms are most likely not the same as in Windows. Applications are supposed to treat the lock variables as opaque data, therefore it shouldn't matter.

svn path=/trunk/; revision=23806
2006-08-30 19:02:42 +00:00
Hervé Poussineau
538082297d Fix MsiGetFeatureStateA/W and MsiGetComponentStateA/W prototypes
svn path=/trunk/; revision=23805
2006-08-30 18:08:21 +00:00
Magnus Olsen
ec839eb8e2 Kill inline asm code compete in RtlUlongByteSwap for it doing swap wrong.
we go back using the C version. Thanks Fireball  

svn path=/trunk/; revision=23804
2006-08-30 17:51:36 +00:00
Alex Ionescu
7ea78797f2 - Fix KeRaiseUserException (can't use "return" from SEH_HANDLE).
svn path=/trunk/; revision=23803
2006-08-30 17:01:58 +00:00
Alex Ionescu
5fc996c43e - Some fixes to KiDispatchException: Add support for forwarding exception back to user-mode, protect against V86 or invalid-stack faults, handle stack overflow exception while handling usermode exception (Thanks KJK for the SEH_FILTER help). Decrement EIP by one when hitting an INT3, to get the correct address.
- Remove two associated kernel fun entries.

svn path=/trunk/; revision=23802
2006-08-30 16:58:12 +00:00
Eric Kohl
99e4b3809f - fix indentation and remove trailing whitespace
- StartServiceA/W: terminate argument buffer with a double zero.

svn path=/trunk/; revision=23801
2006-08-30 10:53:37 +00:00
Hervé Poussineau
a301256472 Add missing includes in .rc file
Sort them in alphabetical order

svn path=/trunk/; revision=23800
2006-08-30 10:40:59 +00:00
Magnus Olsen
0b5c566337 Implement RtlRandomEx by copy RtlRandom code.
ms have two different implement, One random is faster that other, (in some doc I read (maybe from osr) some year ago),  the RtlRandomEx  is not document in the free ddk/sdk, but it is include in ddk/ifs kit, according the doc. 

svn path=/trunk/; revision=23799
2006-08-30 10:13:01 +00:00
Johannes Anderwald
5a487c19e7 * remove useless cast
svn path=/trunk/; revision=23798
2006-08-30 09:45:08 +00:00
Johannes Anderwald
29b76a30a2 - fix definition of FONTENUMPROC
svn path=/trunk/; revision=23797
2006-08-30 09:17:47 +00:00
Alex Ionescu
841fa5cc41 - Update kernel fun.
svn path=/trunk/; revision=23796
2006-08-30 06:56:06 +00:00
Alex Ionescu
1b0f8e7e81 - Implement RtlCaptureStackBackTrace and RtlWalkFrameChain and add definitions to ntifs.h
- Get rid of KeRosGetStackFrames and replace usage by RtlWalkFrameChain or RtlCaptureStackBackTrace, depending.
- Remove this entry from Kernel Fun.

svn path=/trunk/; revision=23795
2006-08-30 06:52:10 +00:00
Alex Ionescu
a9bb1c6668 - Add about two dozen new bugcheck codes and strings.
- Major cleanup of exp.c to move out deprecated and old code.
- Use KdDebuggerNotPresent to determine if KDBG is there or not. KdDebuggerEnable is now set whenever booting with debugging -- even if only serial port or screen debugging.
- Complete cleanup and major rewrite/improvement of bugcheck code:
  - Moved stack dump routines to bug.c and cleaned them up. Next step is to remove most of them and implement them properly as part of RtlCaptureStackBackTrace and RtlWalkFrameChain.
  - Use InbvDisplayString for everything now. BSODs will only truly show on screen. (however, part of the KeBugCheckWithTf improvements, a special "if debugger enabled" BSOD will also be displayed for debugging purposes).
  - Do checksum calculation in bugcheck callbacks.
  - Detect and display which drivers belong to which EIP.
  - Implemented code to select the proper verbose BSOD message depending on the bug check code.
  - Also implemented code to detect a variety of "known" bug check codes and to recover more data on them, and/or modify them accordingly. Sadly ROS doesn't yet make use of most of these codes.
  - Factored out and split some code into individual routines.
  - Look and functionality is now identical to Windows XP.
  - Stack trace will only be shown if KDBG isn't connected. If KDBG is connected you can do "bt" anyway (which is more powerful).

svn path=/trunk/; revision=23794
2006-08-30 05:22:56 +00:00
Alex Ionescu
655e78f3cc - Jesus Christ... will Hell freeze over before someone finally listens and implements a proper PE loader in Freeloader?
svn path=/trunk/; revision=23793
2006-08-30 01:22:41 +00:00
Hervé Poussineau
ab77204ef9 Implement RegNtPreEnumerateValueKey/RegNtPostEnumerateValueKey registry callbacks.
Add missing callbacks in some paths
Fix a few typos

svn path=/trunk/; revision=23792
2006-08-29 23:01:52 +00:00
Brandon Turner
7b27e1c573 Better rand() implementation. This should fix the problem where you get 0 every time you use rand()
svn path=/trunk/; revision=23791
2006-08-29 22:27:48 +00:00
Magnus Olsen
0a5a03e8d1 found more inline asm.
1. move all inline asm to folder i386
2. to do : seh.s should be rewrites to intel syntax 
3. to do : almost all c files in folders i386 need be convert to true asm instead using inline asm 
4. add dection for x86 arch in rbuild for each found I have done 


svn path=/trunk/; revision=23790
2006-08-29 19:14:18 +00:00
Magnus Olsen
d43aed9f5c Audult : code is from djgpp most of it, ReactOS own code is like two line long
svn path=/trunk/; revision=23789
2006-08-29 19:10:12 +00:00
Magnus Olsen
f4b5816b23 [Audut] clean, after locking at the header I can see clear they comes from wine/djgpp with small changes in some headers that is ros specify.
svn path=/trunk/; revision=23788
2006-08-29 18:31:06 +00:00
Magnus Olsen
40e426cce5 Detect i386 asm code for setjump (we only have one asm version I add arch dections for it in rbuild
svn path=/trunk/; revision=23787
2006-08-29 18:03:24 +00:00
Magnus Olsen
3c0cd4da37 1. Rewote atan.c to pure asm
2. Rewote log10 to pure asm
3. Delete unuse c/asm files like ceil, cos, fabs, flor, sin, sqrt, and tan 
4. Switch to rtl asm version of pow 
5. Follow need be convert to asm atan2, exp, fmod, ldexp
6. Follow need c version  atan2, exp, fmod, ldexp, atan, log10, pow
7. Add i386 arch dections in rbuild for asm/inline asm so we using only i386 asm on x86 cpu 
 

svn path=/trunk/; revision=23784
2006-08-29 17:51:13 +00:00
Thomas Bluemel
e0ee404d03 Make sure writes to video_mem are not optimized away
svn path=/branches/powerpc/; revision=23782
2006-08-29 15:50:53 +00:00
Alex Ionescu
8453270af7 - Implement GetSideSidFromToken. Patch by Grzegorz Jaśkiewicz.
svn path=/trunk/; revision=23781
2006-08-29 15:22:53 +00:00
Magnus Olsen
ae4f64c515 Copied remotely
svn path=/trunk/; revision=23780
2006-08-29 15:08:14 +00:00
Magnus Olsen
cbab61db9c Copied remotely
svn path=/trunk/; revision=23779
2006-08-29 15:08:10 +00:00
Magnus Olsen
2a1e87e35e Copied remotely
svn path=/trunk/; revision=23778
2006-08-29 15:08:01 +00:00
Magnus Olsen
99dfca5a2c Copied remotely
svn path=/trunk/; revision=23777
2006-08-29 15:07:57 +00:00
Magnus Olsen
aff35f6703 Copied remotely
svn path=/trunk/; revision=23776
2006-08-29 15:05:07 +00:00
Magnus Olsen
ec9e57b10e Copied remotely
svn path=/trunk/; revision=23775
2006-08-29 15:04:58 +00:00
Magnus Olsen
261a9da3bd Copied remotely
svn path=/trunk/; revision=23774
2006-08-29 15:03:41 +00:00
Magnus Olsen
9f6a6f34c0 Copied remotely ceil from rtl to crt/math/i386
svn path=/trunk/; revision=23773
2006-08-29 15:02:41 +00:00
Magnus Olsen
2934b1b61e Created folder remotely
here we prepare copy asm version of math api from rtl asm version

svn path=/trunk/; revision=23772
2006-08-29 15:01:19 +00:00
Magnus Olsen
a260e8be5d add back change long to long_ptr change did not think about it was correct thx hpussin
svn path=/trunk/; revision=23771
2006-08-29 14:25:55 +00:00
Magnus Olsen
eda0d576b0 revert 23768 for this member does not exists in psdk or ddk in windows.
and that reason is it wrong. I told the author of the patch on the irc 
this changes was wrong. 

svn path=/trunk/; revision=23770
2006-08-29 14:13:42 +00:00
Christoph von Wittich
3a3cd44034 fix indentation
svn path=/trunk/; revision=23769
2006-08-29 13:01:47 +00:00
Hervé Poussineau
4b05210f15 Add some missing SIDs. Fix bug 1772.
See http://www.msfn.org/board/lofiversion/index.php/t43597.html for the list of authorities

svn path=/trunk/; revision=23768
2006-08-29 11:27:50 +00:00
Hervé Poussineau
f4763c0ce0 Fix bug 1770. Patch by Grzegorz Jaskiewicz
svn path=/trunk/; revision=23767
2006-08-29 11:02:08 +00:00
Magnus Olsen
2cac0acc13 put in if define i386 for asm version of cos, sin, atan2, floor, ceil we do not have a C version of those commands in rbuild file
svn path=/trunk/; revision=23766
2006-08-29 08:28:50 +00:00
Art Yerkes
47acc19039 Menu displays.
Need stdin/hid objects.

svn path=/branches/powerpc/; revision=23765
2006-08-29 07:16:16 +00:00
Art Yerkes
746211fbde Fixed support for disk and filesystem. We're reading files normally.
Now working on display modes and character input.

svn path=/branches/powerpc/; revision=23764
2006-08-29 06:28:13 +00:00
Alex Ionescu
28122cd8d9 - Complete and utter reimplementation of V86 Mode for Ke386CallBios. Details below. Tested on QEMU/VMWARE. May give you a breakpoint/crash on real hardware - please let me know the V86 opcode displayed on the debug log/screen if this is the case *if you see such a message*.
- Got rid of all the previous related assembly code and implemented Ki386SetupAndExitToV86Mode and Ki386BiosCallREturnAddress.
- Implemented GPF (Trap 13) code for V86 faults (which will happen in V86 mode). Implement a generic Ki386HandleOpcodeV86 handler that increments counts and calls the right opcode handler.
- Implemented an Opcode Table Entry Index and Opcode Table array for mapping opcodes that caused a GPF to their V86 handlers/emulators.
- Implemented handlers for PUSHF, POPF, CLI, STI, IRETD and INTnn, which is what QEMU/VMWare and *most* VIDEO ROM BIOS code should use.
- Created a /vdm tree and moved all NTVDM/VDM specific code there.
- Halfplemented VdmStart/EndExecution APIs which the BIOS ROM V86 implementation is built upon. Currently don't handle VDM at all, only this V86 mode.
- Also added code for NtVdmControl and fixed up CSRSS and ACPI's calls to this API.
- Added detection and FIXMEs for support of VMEs in VMWare, Bochs and real hardware (VME is not yet supported).
- Move exp.c fixmes to krnlfun and remove kernel fun entries that this patch fixes.

svn path=/trunk/; revision=23763
2006-08-28 23:56:35 +00:00
Alex Ionescu
9d1c606794 [AUDIT] - Our CSRSS implementation is too different and incompatible for NT to have possibly been done through non-clean methods. Clean methods were probably not even used, except for reading documentation, since most of the code seems to be based on guesses and original implementations. (As a simple example, NT's CSRSS is 4kb, with all actions done by a server DLL. ROS has none of this).
svn path=/trunk/; revision=23762
2006-08-28 23:55:50 +00:00
Thomas Bluemel
d5f1f3ceca Move the __ALIGNED attribute to the correct position in the definition of EX_PUSH_LOCK_WAIT_BLOCK
svn path=/trunk/; revision=23761
2006-08-28 20:20:03 +00:00
Ged Murphy
96ff7d566c couple of minor fixes.
svn path=/trunk/; revision=23760
2006-08-28 19:33:28 +00:00
Thomas Bluemel
ca9ef93e32 "Fix" using an uninitialized variable (line 950) in lines 1334-1337. Yes I'm back, for now!
svn path=/trunk/; revision=23759
2006-08-28 18:15:46 +00:00
Johannes Anderwald
6e015da993 * fix another typo :-)
svn path=/trunk/; revision=23758
2006-08-28 07:13:40 +00:00
Magnus Olsen
c8385edeec fixing the spelling english spelling thanks mifritscher to notice it.
svn path=/trunk/; revision=23757
2006-08-27 22:20:33 +00:00
Magnus Olsen
18adfbcd79 Commit one part from big patch from Pablo Borobia (pborobia at gmail dot com) he is done the clipboard project
1. implement detail show for network. 

Magnus Olsen (me) aka GreatLord
I did review ncpa changes, he did only forget free the memory when detail propers was exit. I set erly style on file
that was not set. I also update most .rc so they contain the english res text. please translators translate this. 



svn path=/trunk/; revision=23756
2006-08-27 21:44:53 +00:00
Hervé Poussineau
becdf59777 Add French and Bengali resources to build
Sort files by alphabetical order

svn path=/trunk/; revision=23755
2006-08-27 20:56:34 +00:00
Hervé Poussineau
ffc884d4ca Add guard to prevent multiple inclusions (not used yet)
svn path=/trunk/; revision=23754
2006-08-27 20:23:26 +00:00
Johannes Anderwald
a5d8d20855 * improve error checking (by hpoussin)
* use correct CLSID -> now auto-start apps from %ALLUSERSPROFILE% can be started too

svn path=/trunk/; revision=23753
2006-08-27 20:01:14 +00:00
Johannes Anderwald
fbfe8c9245 * auto-start apps in autostart folder
* currently only works for current user
* SHGetFolderPathW CSIDL_ALTSTARTUP fails (All Users\...)

svn path=/trunk/; revision=23752
2006-08-27 19:22:48 +00:00
Christoph von Wittich
d3112a4a86 added vdmdbg.dll to bootcd
svn path=/trunk/; revision=23751
2006-08-27 19:08:20 +00:00
Johannes Anderwald
a80ab420d2 * fix warning
* set svn-eol-style native

svn path=/trunk/; revision=23750
2006-08-27 18:14:53 +00:00
Magnus Olsen
1a375085e9 reapplay rev 23614, it we have now russain letters and other contrus special letters.
The bug I experis before was reletate to ntoslnrl and is complete gone. I have now reboot and boot around 10-20 times
and run same program. But we see all unicode -> ansi problem with this change if u select russan in reactos 

svn path=/trunk/; revision=23749
2006-08-27 16:51:11 +00:00
Hervé Poussineau
43eef84aa9 Set user locale at login. User interface may now be (again) in other languages than English
svn path=/trunk/; revision=23747
2006-08-27 15:18:20 +00:00
Magnus Olsen
217e03e8e8 sorry wrong version
svn path=/trunk/; revision=23746
2006-08-27 14:55:31 +00:00
Magnus Olsen
a962c1d8c0 fix a crash in quake
svn path=/trunk/; revision=23745
2006-08-27 14:53:32 +00:00
Christoph von Wittich
0d7f6179b7 forgot to commit these files
svn path=/trunk/; revision=23744
2006-08-27 14:20:17 +00:00
Christoph von Wittich
5a6172f875 added LiveCDRegTest and BootCDRegTest targets
svn path=/trunk/; revision=23743
2006-08-27 13:28:23 +00:00
Christoph von Wittich
454bef01db renamed isoboot_regtest.asm to isobtrt.asm to comply with ISO-9660 standard
svn path=/trunk/; revision=23742
2006-08-27 13:26:43 +00:00
Klemens Friedl
b32b0a47c8 samba-tng: update the description
svn path=/trunk/; revision=23741
2006-08-27 12:28:22 +00:00
Christoph von Wittich
ec61eadeca * added bootloader which can be used for automated regression tests using buildbot
svn path=/trunk/; revision=23740
2006-08-27 11:59:01 +00:00
Christoph von Wittich
1424ff8a8c added GetSiteSidFromToken stub
svn path=/trunk/; revision=23739
2006-08-27 11:44:21 +00:00
Johannes Anderwald
c71c15d905 * make edit controls look standard
* GeT rId oF aNNoyIng DOt In EdiT cONtROl

svn path=/trunk/; revision=23738
2006-08-27 10:28:05 +00:00
Johannes Anderwald
8895520e58 * store static colors in global struct to make it thread-safe
svn path=/trunk/; revision=23737
2006-08-27 09:50:29 +00:00
Johannes Anderwald
adcaf80140 * auto-select correct radio button
* only repaint required on up/down notifications events

svn path=/trunk/; revision=23736
2006-08-27 09:42:16 +00:00
Johannes Anderwald
7a535d12d5 * dont code during night :-))))
svn path=/trunk/; revision=23735
2006-08-27 00:51:43 +00:00
Johannes Anderwald
f8feed90ce * optimize a few code paths
* add error checking in various places
* implement painting console image

svn path=/trunk/; revision=23734
2006-08-27 00:46:50 +00:00
Magnus Olsen
ab519c08f9 forget commit rbuild file for win32k
svn path=/trunk/; revision=23733
2006-08-26 23:27:49 +00:00
Magnus Olsen
6518b5361d for 24bpp
1. Remove inline asm for hline and implement a asm version of it in intel syntax. 
   (optimzeing of this version can be done better, but it for be done for now)
2. set eorly style on file I forget. 



svn path=/trunk/; revision=23732
2006-08-26 23:26:39 +00:00
Aleksey Bragin
c5edc7e6d3 - Typecast a param so that it doesn't give an error in gcc
- Make cmlib compilable as a makefile target "cmlib_host" (needed for linking with mkhive)

svn path=/trunk/; revision=23731
2006-08-26 21:19:34 +00:00
Magnus Olsen
1a6675e3d7 fpr 32bpp
1. Remove inline asm from hline and convert it to own asm file with intel syntax. 
2. Reimplement colorfill inline asm version and convert it to own asm file with intel syntax. 
   the asm code can be optimze bit more. But for done 

svn path=/trunk/; revision=23730
2006-08-26 21:18:33 +00:00
Aleksey Bragin
2857ff8136 Add testsets to building process too, so that they don't bitrot (compile time is neglectable)
svn path=/trunk/; revision=23729
2006-08-26 21:11:08 +00:00
Aleksey Bragin
0e407eb6b4 Don't crash during disconnection if a device doesn't have a driver
svn path=/trunk/; revision=23728
2006-08-26 21:09:11 +00:00
Aleksey Bragin
f0549011c0 Dmitry Philippov:
- Implement RTL_QUERY_REGISTRY_DELETE (which simply deletes the key after querying)
 - Fix REG_MULTI_SZ to actually walk through the whole data, not stopping at the first encountered 0 character. This makes the "ntdll_winetest.exe reg" test behave exactly as on Windows XP

svn path=/trunk/; revision=23727
2006-08-26 20:45:30 +00:00
Magnus Olsen
32a1a90cc7 fix a typo
svn path=/trunk/; revision=23726
2006-08-26 19:44:47 +00:00
Magnus Olsen
f73c521e7e adding 640x480x32, 800x600x32, 1024x768x32 select for vbe. accoding to VBE 2.0 spec this mode shall always be while for graphic card with vbe 2.0 or higher.
svn path=/trunk/; revision=23725
2006-08-26 19:40:24 +00:00
Klemens Friedl
b5e0a940b1 add samba-tng to the packmgr repo
svn path=/trunk/; revision=23724
2006-08-26 18:43:44 +00:00
Alex Ionescu
c5c008ec96 - Even though in assembly we return the BOOLEAN in all of EAX, HalBeginSystemInterrupt should, in theory, only use AL and we shouldn't make assumptions about any other bits. So chang ethe code to or al, al, instead of or eax, eax.
svn path=/trunk/; revision=23723
2006-08-26 16:23:59 +00:00
Alex Ionescu
1db10cc5ad - Remove useless stack operations in KiInterruptDispatch that I used for debugging.
svn path=/trunk/; revision=23722
2006-08-26 16:07:31 +00:00
Alex Ionescu
3213baa7ae - Fix some bugs in KiChainedDispatch.
svn path=/trunk/; revision=23721
2006-08-26 16:04:29 +00:00
Alex Ionescu
9e78b36f2e - Fix a bug during exceptions, thanks to W3seek, nice find.
svn path=/trunk/; revision=23720
2006-08-26 15:40:27 +00:00
Magnus Olsen
0e96db4bf5 bug 1769 : from w3seek : Implement some new functions
svn path=/trunk/; revision=23719
2006-08-26 14:28:34 +00:00
Johannes Anderwald
b4e91152db * show selected static control via DrawFocusRect
svn path=/trunk/; revision=23718
2006-08-26 13:43:15 +00:00
Magnus Olsen
a7216d7b12 do right typecast for ReadFile so it compiles on gcc 4.x
svn path=/trunk/; revision=23717
2006-08-26 10:01:03 +00:00
Magnus Olsen
def45d4b5a fixed one waring that thomas got with gcc 4.x
svn path=/trunk/; revision=23716
2006-08-26 09:57:38 +00:00
Hervé Poussineau
916f69a7cb Fix a missing referencing in PsImpersonateClient (dereferenced in PsRevertThreadToSelf)
PspWriteTebImpersonationInfo may be used to set or to clear impersonation info => remove an extra assignment

svn path=/trunk/; revision=23715
2006-08-26 08:46:18 +00:00
Alex Ionescu
617e78ebf0 - Transform TRAP_PROLOG into a GAS macro.
- Remove code in the page fault handler which was corrupting the trap frame.
- Remove some ROS hacks that dealt with the fact the trap frame was getting corrupted, since now it isn't anymore.
- Enable code that checks for Teb->GdiBatchCount during win32k system calls. The bugs that were mentionned in the #if 0 are fixed.

svn path=/trunk/; revision=23714
2006-08-26 06:14:32 +00:00
Brandon Turner
9f5f1ce315 * Implement: /low, /normal, /high, /realtime, /belownormal, and /abovenormal
* Correctly build the string used to create the process.

svn path=/trunk/; revision=23713
2006-08-25 23:12:50 +00:00
Hervé Poussineau
ec5899ca4f Implement IOCTL_SERIAL_WAIT_ON_MASK
Better implementation of IOCTL_SERIAL_SET_WAIT_MASK
Remove "Serial:" prefix on debug output

svn path=/trunk/; revision=23712
2006-08-25 22:07:10 +00:00
Alex Ionescu
3c97814afe - Hervé est un Dieu qui mérite une infinité de bières et de femmes vierges (et nues).
- This should fix booting on VMWare.

svn path=/trunk/; revision=23711
2006-08-25 20:18:34 +00:00
Magnus Olsen
bf4ff7bb94 forget this file thx christ
svn path=/trunk/; revision=23710
2006-08-25 18:26:26 +00:00
Magnus Olsen
87b9d209fd Add frist version of ReactOS net command. I finish frist step early that I calc, you need samba-tng rpcclient to use net command in your path. net command only support follow command "net start, net start serivce_display name, net stop", more will follow later.
The help text I need some help with to fill in the info how thuse command work and design the help text better. 
 


svn path=/trunk/; revision=23709
2006-08-25 17:50:26 +00:00
Hervé Poussineau
10782a0cfa Add an assert in IntEngCreateXlate
svn path=/trunk/; revision=23708
2006-08-25 15:49:31 +00:00
Alex Ionescu
397f1f88d2 - Viva la deprecation! Trunk should now boot and the installer should work.
- Basically revert the new HAL/KERNEL IRQ code by putting the old one in, but without the actual pain of svn reverting and losing all the previous code.
- The old code goes in ntoskrnl\deprecated, and we only add a comment to the .rbuild file, re-export an old function, and initialize the old code in kernel.c. All the other kernel changes stay in-place to be tested.
- Same for hal, basically replace irq.S with irql.c in the .rbuild file, and disable the call to Halpinit1. All the other changes remain.

svn path=/trunk/; revision=23707
2006-08-25 14:50:01 +00:00
Alex Ionescu
bb00cadd67 - Fix some bugs
svn path=/trunk/; revision=23706
2006-08-25 14:15:11 +00:00
Aleksey Bragin
3f4b7e4705 - Enable PIRQ when initializing UHCI, this solves the "no irq" problem on some UHC controllers (most popular type of such controller is the one emulated by VMWare)
- Fix a mistake in the source code resulting in a bugcheck
- Add _X86 to .rbuild (by Thomas)

svn path=/trunk/; revision=23705
2006-08-25 13:20:13 +00:00
Johannes Anderwald
50746a376e * share common painting code
* align static control in same way

svn path=/trunk/; revision=23704
2006-08-25 12:19:42 +00:00
Ged Murphy
a6c41b9d22 delete old dir
svn path=/trunk/; revision=23703
2006-08-25 10:12:28 +00:00
Ged Murphy
7adefa6232 move uptime to rosapps so Alex doesn't blow up into teeny weeny pieces ;)
svn path=/trunk/; revision=23702
2006-08-25 10:11:57 +00:00
Alex Ionescu
387c84f0f5 - Add some debugging code to see why trap frames are screwed up.
svn path=/trunk/; revision=23701
2006-08-25 04:11:45 +00:00
Alex Ionescu
38a0558e07 - We do not speak about the v86 hack.
- This should fix the V86 GPF error.

svn path=/trunk/; revision=23700
2006-08-25 02:23:47 +00:00
Alex Ionescu
b23894894d - Get rid of some code.
svn path=/trunk/; revision=23699
2006-08-25 02:22:50 +00:00
Alex Ionescu
35778c9f25 - If SeCaptureSubjectContextEx is called without a process, at least NULL-initialize the context to catch dereferences of invalid pointers.
svn path=/trunk/; revision=23698
2006-08-25 01:04:44 +00:00
Alex Ionescu
7d305ec8e6 - Fix compiling/linking problems.
- Remove KrnlFun entry - IRQs are now done through a typical NT/ROS trap frame and are synchronized and compatible with trap.S.
- Enable 2nd entry interrupt calls in HalBeginSystemInterrupt, since IRQs now use the right trap frame.

svn path=/trunk/; revision=23697
2006-08-25 00:46:41 +00:00
Ged Murphy
31cc308502 add an 'uptime' command.
Available in either Windows or Linux output. (defaulted to Windows)

svn path=/trunk/; revision=23696
2006-08-25 00:33:27 +00:00
Alex Ionescu
425592dd06 - The last piece of the puzzle: we had to initialize the IDR in HalInitProcessor to set it to the default of 0xFFFFFFB so that we don't get IRQ 0 and IRQ 1 until we're ready to handle them, which was causing the clock interrupt to be called too early.
- Remove irqhand.S and all other remaining pieces of deprecated code.

svn path=/trunk/; revision=23695
2006-08-25 00:30:26 +00:00
Alex Ionescu
5d9935a1fa - Got rid of the deprecated stuff left in irq.c and directly implemented it as part of irqhand.S (which is also deprecated).
- Cleaned up irq.c. Fixed file header, function prototypes, includes, etc, and moved general definitions and externs to ke.h

svn path=/trunk/; revision=23694
2006-08-24 23:25:37 +00:00
Johannes Anderwald
52f5a2cccc * handle PSN_APPLY effectively
* remove no longer used callback
* reenable PropSheet_Changed macros
* fix styles for dialog

svn path=/trunk/; revision=23693
2006-08-24 20:55:13 +00:00
Alex Ionescu
fe2d752e93 - Fix some bugs in clock.S
- Enable clock.S versions of KeUpdateSystem/RunTime and export them properly.
- Enable systimer.S to call into kernel's KeUpdateSystemTime.
- Enable Hal's Clock Interrupt during Phase 1.
- Remove most of the code that was still left in irq.c
- Only one large problem remains now, which is the spurious firing of the clock interrupt before we're ready to handle it... I will try to fix this today.

svn path=/trunk/; revision=23692
2006-08-24 19:17:14 +00:00
Andrew Munger
d43585136b DBG=0 fixes, patch by Physicus.
svn path=/trunk/; revision=23691
2006-08-24 18:48:15 +00:00
Christoph von Wittich
3dd85ba73d some more msvc warning fixes
svn path=/trunk/; revision=23690
2006-08-24 17:23:07 +00:00
Hervé Poussineau
cd01646b34 Fix all warnings detected by gcc 4.2
Patch by Thomas Weidenmueller

svn path=/trunk/; revision=23689
2006-08-24 16:58:12 +00:00
Christoph von Wittich
0c186af160 fixed some warnings (patch by w3seek)
svn path=/trunk/; revision=23688
2006-08-24 16:39:14 +00:00
Hervé Poussineau
71391c6a4f Build usbdriver without warning, at least with gcc 3.4.2
svn path=/trunk/; revision=23687
2006-08-24 16:21:16 +00:00
Christoph von Wittich
6db46bea8e fixed some warnings
svn path=/trunk/; revision=23686
2006-08-24 16:06:12 +00:00
Aleksey Bragin
342cd42b44 Fix a lot of annoying warnings, leaving basically only ehci.c and gendrv.c as big warnings providers
svn path=/trunk/; revision=23685
2006-08-24 12:58:52 +00:00
Aleksey Bragin
2036235837 Dmitry Philippov: Implement SmProcessFileRenameList()
svn path=/trunk/; revision=23684
2006-08-24 11:06:48 +00:00
Aleksey Bragin
1b82756b34 Temporary fix a call to KeUpdateSystemTime(), passing third CLOCK_INCREMENT's value (100000) as third param.
svn path=/trunk/; revision=23683
2006-08-24 09:32:32 +00:00
Aleksey Bragin
be7b345087 Fix compiling
svn path=/trunk/; revision=23682
2006-08-24 09:01:22 +00:00
Alex Ionescu
721fa0869e - Add more missing offsets to asm.h (as always, taken from ks386.inc)
- Fix incorrect KPCR_PRCB_DPC_ROUTINE_ACTIVE which was totally wrong (And could've caused a crash in the context swicher)
- Also fix the definition of KRCB which was off-by-4 after about offset ~0x500. It wasn't causing problems because assembly code only used < 0x500.
- Write the ASM implementation of KeUpdateRunTime (not used yet).

svn path=/trunk/; revision=23681
2006-08-24 07:48:50 +00:00
Alex Ionescu
065837f112 - Make KeUpdateSystemTime independent, so that it returns and exits from the current ROSterrupt by itself.
- Make KeUpdateRunTime increase the interrupt count, check for V86 as well as for user-mode by using the CS and EFLAGS (isntead of PreviousMode), also only request DPCs if DpcInterruptRequested isn't already set, and only perform Quantum End if this isn't the idle thread.
- Add clock.S which will have the clock interrupt handlers of the kernel (UpdateSystemTime and UpdateRunTime) and ultimately replace the only reason irqhand.S is still around (the clock interrupt). Implement the current version of KeUpdateSystemTime in assembly, with stack optimizations since we'll be called from the HAL later.

svn path=/trunk/; revision=23680
2006-08-24 06:52:33 +00:00
Alex Ionescu
5e7ef1d665 - Update KeUpdateSystemTime to use variable increments.
- Update KeTickCount properly instead of an ugly timecast hack.
- Also update UserSharedData->TickCount.
- Get rid of KiRawTicks.
- Properly update KiTickOffset at the end.

svn path=/trunk/; revision=23679
2006-08-24 06:27:29 +00:00
Alex Ionescu
8b82c0d641 - Write a basic Clock Interrupt handler in the HAL (doesn't deal with changing increments yet, just like current ROS). It will call KeUpdateSystemTime once ready.
- Implement KeDisconnectInterrupt with the new implementation.
- Put Clock Interrupt initialization in the right place (might still be too late: must investigate more).
- Added a debug print when unexpected interrupts are called, just noticed this happens on my checked machine, and it's a useful tracing tool.

svn path=/trunk/; revision=23678
2006-08-24 05:36:50 +00:00
Alex Ionescu
15899302f6 - Completely re-implement IRQ support (KeInitialize/Connect/Disconnect) interrupt using the same model as NT. Implementation was done by analyzing various of my systems at runtime with WinDBG and tracing through some of the code and dumping relevant objects.
- Uses new code added to trap.s for generic dispatching, as well as the NT implementation which copies a "template" into the ->DispatchCode array of every KINTERRUPT object.
- Also adds support for chained interrupts, but this hasn't been tested yet. Floating interrupts are not supported on NT it seems, so I haven't implemented those at all.
- KiDisableInterrupt not yet re-implemented, and timer code is still piggybacked on the old implementation.

svn path=/trunk/; revision=23677
2006-08-24 02:53:40 +00:00
Alex Ionescu
c8c71fcd5c - Implement Chained and Normal generic interrupt handlers.
- Make generated handlers have a proper .func symbol for symbol data.
- Make IDT writable, the page shouldn't be read-only.
- Change some symbol names.

svn path=/trunk/; revision=23676
2006-08-24 01:53:54 +00:00
Aleksey Bragin
b899ba11ba - Add a new level of debug verbosity
- Fix a bunch of warnings by Thomas and me

svn path=/trunk/; revision=23675
2006-08-23 22:17:09 +00:00
Alex Ionescu
5870fa3d6c - Enable the code in KeInitializeInterrupt that copies the Interrupt Template to the KINTERRUPT object and modifies the template pointer to point to the KINTERRUPT.
- Add the template code in trap.s.

svn path=/trunk/; revision=23674
2006-08-23 19:02:00 +00:00
Alex Ionescu
abe9e92dcf - Get rid of some large debugging functions that were called at all times, and don't manually deliver user APCs anymore, since the HAL handles it now.
svn path=/trunk/; revision=23673
2006-08-23 18:09:44 +00:00
Alex Ionescu
da725d9d30 - Fix some bugs in INT_PROLOG so that it can be used in cases like Unexepcted interrupts, where we don't want to push a fake error code, and want to use our own parameter.
svn path=/trunk/; revision=23672
2006-08-23 18:02:52 +00:00
Hervé Poussineau
daedfda3d4 Allow to change more easily the prefix of remote interface functions in services.exe
This is a step to share this file with Samba-TNG
Thanks to Elrond from Samba-TNG for help

svn path=/trunk/; revision=23671
2006-08-23 17:57:34 +00:00
Alex Ionescu
c0ad9f32d3 - [AUDIT] After spending some time looking at the current HAL, I believe it to be clean and written by authors which had knowledge of system internals and have always used clean-rooming. As well, the difference in implementation, complete and utter incompatibility with NT as well as the presence of some Linux-based code confirms this.
- Fix function definitions of HalQueryRealTimeClock, HalGetEnvironmentVariable. They were defined in the NDK in one way, but implemented another way, and since the HAL didn't include its own NDK file, the compiler didn't realize this. Calls of these functions might've experienced serious problems.
- Also fix HalHandleNmi and HalInitSystem definitions.
- Add stub code to actually setup the Clock Interrupt.

svn path=/trunk/; revision=23670
2006-08-23 17:28:39 +00:00
Alex Ionescu
8401f43ab0 - Switch PRIMARY_VECTOR_BASE to 0x30 instead of 0x40, as it should be.
svn path=/trunk/; revision=23669
2006-08-23 16:58:43 +00:00
Aleksey Bragin
7ad1947410 - Unmess header files a little - create one header file (usbdriver.h) which includes all other needed headers, also splitting a bit.
Also split out the roothub driver and device manager from hub.c (which was over 4500 SLOC)
- Enable PCH usage
- Reduced a few warnings

svn path=/trunk/; revision=23668
2006-08-23 12:36:08 +00:00
Aleksey Bragin
edaf50a0e7 Add accidentally deleted line (a call to WideCharToMultiByte() )
svn path=/trunk/; revision=23667
2006-08-23 08:24:37 +00:00
Alex Ionescu
4ade91ae66 - Kill two more hacks. IDR isn't hacked at 0xFFFFFFA on startup anymore, and the PIC is correctly set to 0xFA at startup.
svn path=/trunk/; revision=23666
2006-08-23 06:59:11 +00:00
Alex Ionescu
7fa6c080b5 - Enable 2nd entry for HalEndSystemInterrupt but not actually using the optimized 2nd entry since ROS IRQs are currently built with a completely different trap frame.
svn path=/trunk/; revision=23665
2006-08-23 06:51:54 +00:00
Alex Ionescu
9ac4b05366 - Fix some IDR->IRR bugs.
- Enable 2ndEntry for HalpEndSoftwareInterrupt (pending interrupt inside an interrupt).

svn path=/trunk/; revision=23664
2006-08-23 06:42:25 +00:00
Alex Ionescu
280da54a61 - Switch HalEndSystemInterrupt to ASM version and get completely rid of the irql.C file.
svn path=/trunk/; revision=23663
2006-08-23 06:38:46 +00:00
Alex Ionescu
a82987f860 - Switch to ASM version of KfLowerIrql
svn path=/trunk/; revision=23662
2006-08-23 06:35:33 +00:00
Alex Ionescu
de56d52a1b - Fix bugs in ASM version of KfLowerIrql (not yet used)
- Fix bugs in INT_PROLOG.
- Fix an important bug in TRAP_EPILOG which was causing register restoration to happen at all times (such as in Kei386EoiHelper/KiServiceExit2 when it shouldn't happen).
- Add DRx restoration from trap frame, if DR7 is set.
- Added and fixed some debugging assertions in TRAP_EPILOG.

svn path=/trunk/; revision=23661
2006-08-23 06:33:52 +00:00
Alex Ionescu
c30a8d1cd4 - Duplicate code between the remaining functions (KfLowerIRql and HalEndSystemInterrupt) so testing the switch to their ASM versions will be easier.
- Use same table as in ASM code.

svn path=/trunk/; revision=23660
2006-08-23 01:23:11 +00:00
Alex Ionescu
955d04b6ff - Disable interrupts while in HalpLowerIrql
- Properly handle IRR.
- Call IRR Handlers through the SWINT table.

svn path=/trunk/; revision=23659
2006-08-23 01:07:14 +00:00
Alex Ionescu
9f38dc5900 - Deliver APCs through a proper interrupt gate as well.
svn path=/trunk/; revision=23658
2006-08-23 00:51:08 +00:00
Alex Ionescu
44804d565e - Call KiDispatchInterrupt through an interrupt gate instead of directly.
svn path=/trunk/; revision=23657
2006-08-23 00:49:35 +00:00
Alex Ionescu
bbd5e3237f - Remove HalpEndSystemInterrupt since we were already doing that code in HalpLowerIrql.
svn path=/trunk/; revision=23656
2006-08-23 00:39:52 +00:00
Alex Ionescu
a2c9ae57c3 - Use the IRR to determine APC delivery.
svn path=/trunk/; revision=23655
2006-08-22 23:41:39 +00:00
Alex Ionescu
132b7c834f - Add the code necessary in the C version of KeLowerIRql to properly mask the PIC, and enable #ifed code in ASM KeRaiseIrql to mask the PIC, since it now works.
svn path=/trunk/; revision=23654
2006-08-22 22:45:45 +00:00
Alex Ionescu
fcdd76f501 - Get rid of the peculiar idea that the HAL should manually hack into ntoskrnl through a hack export and hackishly call the registered device interrupt handlers. This is why computers have a PIC in the first place...
svn path=/trunk/; revision=23653
2006-08-22 22:20:02 +00:00
Alex Ionescu
fcda0db1c6 - Switch to ASM version of HalEnableSystemInterrupt
svn path=/trunk/; revision=23652
2006-08-22 22:13:01 +00:00
Alex Ionescu
f5f0688575 - Use the IDR in the PCR intead of a local picmask.
- Use ASM version of HalBeginSystemInterrupt.

svn path=/trunk/; revision=23651
2006-08-22 22:10:52 +00:00
Aleksey Bragin
23b6ae75fb Dmitry Philippov:
- Add a test case for a multisz value which has zero-sized strings
- Add a test case for query registry delete

All tests are known to be passed on Windows XP SP2

svn path=/trunk/; revision=23650
2006-08-22 21:45:57 +00:00
Alex Ionescu
4e5173d7d0 - Commit current work on IRQ rewrite. Currently in a very ugly/dirty state of flux between the new ASM code (with tiny hacks) and the old C code (with giant hacks). I feel that this is a good/stable middle ground before continuing further with the changes.
svn path=/trunk/; revision=23649
2006-08-22 20:50:52 +00:00
Christoph von Wittich
746195690d * some msvc /W4 fixes
svn path=/trunk/; revision=23648
2006-08-22 20:06:30 +00:00
Hervé Poussineau
b7578b2c4b Fix GCC 4 build. Patch by Thomas Weidenmüller
svn path=/trunk/; revision=23647
2006-08-22 18:53:50 +00:00
Art Yerkes
acad050569 Fix elrond bug. DNS timeouts now work properly even in the absence of ICMP
destination unreachable or a proper response.

svn path=/trunk/; revision=23646
2006-08-22 06:23:00 +00:00
Alex Ionescu
67096f53f5 - Implement GENERATE_IDT_STUBS/GENERATE_INT_HANDLERS
- Generate actual Unexpected Interrupt entries in the IDT for INTs > 0x30 (basically IRQs).
- Generated all 208 Unexpected Interrupt Handlers for all INTs (using a single macro line) and implement a "Tail" function to handle them instead of bugchecking like before (they're now sent to HAL properly).
- Implement INT_PROLOG macro to create KTRAP_FRAME for interrupts (similar to traps).
- Part 1 of major changes to come....

svn path=/trunk/; revision=23645
2006-08-21 22:40:23 +00:00
Ged Murphy
9281b0c841 - Cleanup / rewrite much of the ip config code
- Move hardcoded strings into a resource file ready for translation
- Query registry data for friendly names, etc. We can remove some of this when the XP/vista API, GetAdaptersAddresses is implemented.
- tested in Windows, untested in ROS...

svn path=/trunk/; revision=23644
2006-08-21 19:28:18 +00:00
Hervé Poussineau
b8d9b16369 Fix compilation of ntoskrnl
svn path=/trunk/; revision=23643
2006-08-21 17:16:36 +00:00
Magnus Olsen
1288ce8d7c Update version number to 0.3.x
svn path=/trunk/; revision=23642
2006-08-21 15:04:20 +00:00
Johannes Anderwald
043df7bed9 * colors.c: add error checking
* console.c: add defaults
* layout: halfplement layout dialog

svn path=/trunk/; revision=23641
2006-08-21 10:57:14 +00:00
Magnus Olsen
038473fdfd revers 23614 it cause unexped regress in some api, the code need be goto thung pretty hard even try remove hardcode font in win32k, and it cause regress there and there. and cause regreess on boot time to time. sorry it took me most night figout out why. But I do not yet how to solv it.
svn path=/trunk/; revision=23640
2006-08-21 05:14:22 +00:00
Art Yerkes
58cdf1c29b Added gdi32, because we depend on CreateSolidBrush and kin.
svn path=/trunk/; revision=23639
2006-08-21 04:41:11 +00:00
Art Yerkes
ae19f2956d - Fixed timeout calculation.
- Fixed a couple of leaks.

svn path=/trunk/; revision=23638
2006-08-21 03:59:02 +00:00
Alex Ionescu
0ba60c4b62 - Delete bios.c and usertrap.c
- Add Ke entries to KernelFun!

svn path=/trunk/; revision=23637
2006-08-21 03:49:02 +00:00
Alex Ionescu
f038f4a895 - Gutted out KiTrapHandler. Now it is only a gateway for GPF/UD for V86 mode.
- Removed all the code in userptrap.c and removed KiKernelTrapHandler.
- Set Traps 11, 12, 16 and 17 as unhandled for now(Segment fault, stack fault, fpu fault and alignment fault). We weren't really "handling" them in the past either.
- I probably need to implement GPF handler for non-V86 mode to support Lazy segment loading and fix the vmware syscall bug that has been haunting me for two years.

svn path=/trunk/; revision=23636
2006-08-21 03:31:53 +00:00
Alex Ionescu
775b443831 - Call KiSystemFatalException directly instead of duplicating the code 5 times.
svn path=/trunk/; revision=23635
2006-08-21 03:03:52 +00:00
Alex Ionescu
03f23a9e0a - Convert 8, 9, 10, 15/F
svn path=/trunk/; revision=23634
2006-08-21 03:01:47 +00:00
Alex Ionescu
162d423eff - Switch 4, 5, 6 to common ASM dispatcher as well.
svn path=/trunk/; revision=23633
2006-08-21 02:32:08 +00:00
Alex Ionescu
4bb966cd9a - Implement generic exception dispatcher for traps (kind-of analogous to KiKernelTrapHandler/KiUserTrapHandler but in assembly and more generic/compact).
- Switch Traps 0, 1  to it.
- Trap 2 is NMI, bugcheck immediately since we can't handle them yet.

svn path=/trunk/; revision=23632
2006-08-21 02:01:07 +00:00
Alex Ionescu
c43ef4fb30 - Fixes to CONTEXT<->KTRAP_FRAME conversion.
svn path=/trunk/; revision=23631
2006-08-21 01:07:01 +00:00
Brandon Turner
4c9f6c31bb Label NtReadFileScatter as unimplemented.
svn path=/trunk/; revision=23630
2006-08-21 00:02:33 +00:00
Johannes Anderwald
44f2cc5731 * colors.c: implement color dialog (reading from registry is not yet supported)
* font.c/layout.c/console.c/options.c: add UNREFERENCED_PARAMETER macros, fix sharing of global struct
* console.def: fix building with MSVC

svn path=/trunk/; revision=23629
2006-08-20 23:55:08 +00:00
Alex Ionescu
74f108bb28 - Detect NPX/FPU in simple assembly and XMMI/SSE2 by using CPU Feature flags, replacing the old asm+c mess.
- Handle FPU/SSE saving in the CONTEXT<->KTRAP_FRAME routines directly, and using KiFlushNPXState assembly function.
- Implement a naive Trap 7 (FPU Fault) handler in assembly that properly does most of the work required to handle an FPU fault. Not yet complete however since it almost ignores user-mode faults (just like trunk). FPU isn't done in ctx switching yet.
- Remove all the other .c code that dealt with FPU stuff and had become incompatible since more then a year ago.

svn path=/trunk/; revision=23628
2006-08-20 23:53:07 +00:00
Michele Cicciotti
aabf06072b modified porting-tools/rdesktop-core-tester/activex.cpp
modified   porting-tools/rdesktop-core-tester/rdesktop-core-tester.cpp
    And from the chrysalis out came... the caterpillar. MissTosca stops just short of being demonstrable. I'll keep working on it, but the Google Summer of Code is, for all intent and purposes, over. The matter is in the hands of my judges now. Wish me luck

modified   rdesktop/iso.c
modified   rdesktop/proto.h
modified   rdesktop/rdesktop.h
modified   rdesktop/rdp.c
    Very minor fixes

modified   rdesktop/tcp.c
    Use asynchronous I/O and alertable waits to allow aborting the protocol thread ASAP

svn path=/trunk/; revision=23627
2006-08-20 21:02:10 +00:00
Art Yerkes
9cb66d7953 Add the ability to specify DNS servers and make adns work right in case they
are specified.

svn path=/trunk/; revision=23626
2006-08-20 20:51:54 +00:00
Alex Ionescu
43d5f7e90d - Remove some FPU deprecated constants and use the new ones.
- Deliver APCs on return from context switch with pending kernel APCs.

svn path=/trunk/; revision=23625
2006-08-20 20:27:03 +00:00
Alex Ionescu
893a8bcac6 - Don't use EFLAGS to store the Wait IRQL, just push directly, it's cleaner.
- Detect if kernel APCs are pending and request APC_LEVEL software interrupt from HAL if they are, returning with the right apc status.
- Also update INT21 VDM Descriptor handler when updating LDT descriptor.

svn path=/trunk/; revision=23624
2006-08-20 20:09:25 +00:00
Alex Ionescu
017e14551b - Damn copy/paste bug.
svn path=/trunk/; revision=23623
2006-08-20 20:02:18 +00:00
Alex Ionescu
baf87a4cfb - Fix bug 1764 reported by alexvlas.
svn path=/trunk/; revision=23622
2006-08-20 20:00:56 +00:00
Alex Ionescu
233e643648 - Add support for APC-delivery after context-switch (not yet programmed)
- Detect and crash if context switch is done inside a DPC.
- Switch kernel stack a bit earlier
- Don't switch address space if we're still in the same process, and fix some duplicated code that was mixed up together.
- Move LDT setup out-of-line.

svn path=/trunk/; revision=23621
2006-08-20 19:55:32 +00:00
Johannes Anderwald
9348f70d7d * implement debugger settings for Control Panel Applets for MSVC2005
* in order to use, start the vcproj save sln and restart && enjoy

svn path=/trunk/; revision=23620
2006-08-20 19:19:21 +00:00
Alex Ionescu
58257141b3 - Some micro-architectural changes and cleanups.
svn path=/trunk/; revision=23619
2006-08-20 19:08:57 +00:00
Aleksey Bragin
f448f3bae0 [FORMATTING]
svn path=/trunk/; revision=23616
2006-08-20 14:01:17 +00:00
Magnus Olsen
4e7aa7365f do not hard code to Bitstream Vera Sans use MS Shell Dlg instead
svn path=/trunk/; revision=23615
2006-08-20 12:46:02 +00:00
Magnus Olsen
35b13e8bb0 Fixed some hard code font name
1. Bitstream Vera Sans to MS Sans Serif
2. Bitstream Vera Sans Mono to Courier New
This fixed some problem that bug 1191 mentor but not all. 
I tested this change in ReactOS 
1. using BootCD install whole process and run some ros own program
   and tested cmd. No problem was found with this change. 

svn path=/trunk/; revision=23614
2006-08-20 12:42:30 +00:00
Michele Cicciotti
be56b5e77c modified porting-tools/rdesktop-core-tester/activex.cpp
modified   porting-tools/rdesktop-core-tester/rdesktop-core-tester.vcproj
modified   porting-tools/rdesktop-core-tester/stdafx.h
    Support acting as both the stand-alone DLL (mstscax.dll) and the redistributable (msrdp.ocx)
    Wrap the non-standard "sealed" keyword in a macro
    Almost all state now correctly passed between rdesktop-core and the ActiveX
    Some debugging aids
    Prepared a functional DllMain
    Pulled in Common Controls, needed for the full-screen titlebar

modified   rdesktop/rdesktop.h
modified   rdesktop/rdp.c
modified   rdesktop/secure.c
    Minor clean-up

svn path=/trunk/; revision=23613
2006-08-19 21:44:41 +00:00
Michele Cicciotti
efcb331e18 modified porting-tools/rdesktop-core-tester/activex.cpp
Getting closer and closer and closer yet...

modified   porting-tools/rdesktop-core-tester/mstsclib_h.h
modified   porting-tools/rdesktop-core-tester/mstsclib_i.c
modified   porting-tools/rdesktop-core-tester/mstsclib_redist_h.h
modified   porting-tools/rdesktop-core-tester/mstsclib_redist_i.c
    Regenerated, no code changes

modified   porting-tools/rdesktop-core-tester/rdesktop-core-tester.cpp
modified   rdesktop/cache.c
modified   rdesktop/iso.c
modified   rdesktop/licence.c
modified   rdesktop/mcs.c
modified   rdesktop/orders.c
modified   rdesktop/parse.h
modified   rdesktop/proto.h
modified   rdesktop/pstcache.c
modified   rdesktop/rdesktop.h
modified   rdesktop/rdp.c
modified   rdesktop/rdp5.c
modified   rdesktop/secure.c
modified   rdesktop/tcp.c
    Trimmed down rdesktop-core library to the maximum extent possible
    Handle errors gracefully
    Use actual Unicode strings
    Fixed most warnings
    Added hooks for events happening inside the protocol's main loop

modified   porting-tools/rdesktop-core-tester/stdafx.cpp
    Clean-up

svn path=/trunk/; revision=23612
2006-08-19 18:40:53 +00:00
Aleksey Bragin
10f76ae52b Fix a bit of warnings
svn path=/trunk/; revision=23611
2006-08-19 18:09:30 +00:00
Aleksey Bragin
1f4c3ee955 - Brandon Turner's warning fixing patch
- When compiled with gcc we assume that CPU can't do TSC (the function will be rewritten anyway since it's weird to use inline assembly in a driver)
- Changed to the correct .rc file, removed duplicate one (ehci.rc)
- usbdriver now compiles with reactos build system

svn path=/trunk/; revision=23610
2006-08-19 16:53:49 +00:00
Johannes Anderwald
6da011c669 * implement console resources
* based on a patch by Lohnegrim

svn path=/trunk/; revision=23609
2006-08-19 10:35:00 +00:00
Brandon Turner
cd6e6b75c6 include sndvol32 on the bootcd. this fixes bug 1754
svn path=/trunk/; revision=23606
2006-08-18 23:48:02 +00:00
Aleksey Bragin
c0f94a72fc According to Filip Navara, HCELL's structure is
1. No plans to support NT 3.x hives (thus no need for OldCell / NewCell)
2. Cmlib is a bit architecturally different from NT's implementation:
"... i don't need the UserData, because that is what i return ... i don't consider it part of the header anymore"

svn path=/trunk/; revision=23605
2006-08-18 22:03:36 +00:00
Brandon Turner
5cd8f73f12 Don't redefine HIWORD or LOWORD if they are defined already.
Make 2 new macros USE_NON_PENDING_IRQL, USE_BASIC_NON_PENDING_IRQL and use accordingly to remove warnings

svn path=/trunk/; revision=23604
2006-08-18 21:37:02 +00:00
Aleksey Bragin
9bd9265d9f Fixes:
- missing ";" at eol
 - some compatibility issues with newer WDK's files

svn path=/trunk/; revision=23603
2006-08-18 21:00:43 +00:00
Aleksey Bragin
430d3e90b8 Import "USB Driver stack project for Windows NT 4.0" by Zhiming/Woodhead (mypublic99@yahoo.com).
It supports UHCI/EHCI controllers.
Don't expect it to compile with ReactOS build environment. I intend to do some work on it, and use this place to keep my changes, before it's suitable for ReactOS.


"I would like to see it useful for ReactOS" (c) woodhead

 

svn path=/trunk/; revision=23602
2006-08-18 20:37:55 +00:00
Magnus Olsen
4fec2ff8db fixed msvs build
svn path=/trunk/; revision=23601
2006-08-18 09:15:26 +00:00
Magnus Olsen
2384d41068 fixed to error that was show in msvs when it compiles
svn path=/trunk/; revision=23600
2006-08-18 09:06:28 +00:00
Brandon Turner
4316d67743 minor grammatical / wording fixes. bug 1747
svn path=/trunk/; revision=23599
2006-08-18 01:51:44 +00:00
Ged Murphy
00a97e886c don't read the 0000 key.
stops the annoying 'Missing NetCfgInstanceId Entry' message box when running in Windows.

svn path=/trunk/; revision=23598
2006-08-17 20:23:10 +00:00
Ged Murphy
0731e09013 match up taskmgr with current icon theme
svn path=/trunk/; revision=23597
2006-08-17 19:11:17 +00:00
Ged Murphy
369176ea9d Don't allow ws2_32 access to apps with bad setup data
(commit correct version this time)

svn path=/trunk/; revision=23596
2006-08-17 16:48:36 +00:00
Ged Murphy
885da5be07 Don't allow ws2_32 access to apps with bad setup data
svn path=/trunk/; revision=23595
2006-08-17 16:44:54 +00:00
Alex Ionescu
22917c0ebe - Properly disable impersonation in PsDisableImpersonation if it was previously enabled, instead of not disabling it. (fix a wrong check). Thanks to Arty.
svn path=/trunk/; revision=23588
2006-08-16 03:17:21 +00:00
James Tabor
a2976ce0d4 Only lower word is used with dwTypeData as bitmap handle.
svn path=/trunk/; revision=23587
2006-08-15 18:05:18 +00:00
Ged Murphy
b01f9a2937 [AUDIT]
iprtprio
unimplemented

svn path=/trunk/; revision=23585
2006-08-14 21:48:55 +00:00
Ged Murphy
3eb1c6a341 Add debug print
svn path=/trunk/; revision=23584
2006-08-14 21:35:51 +00:00
Alex Ionescu
361a28608d - Get rid of "ChunkSize" through a sickening hack (however this should make the Hv* interface compatible enough for me to resume work on the cm branch).
svn path=/trunk/; revision=23583
2006-08-14 21:09:41 +00:00
Magnus Olsen
207e201632 uppdate Dejavu font from 2.7 to 2.9
svn path=/trunk/; revision=23582
2006-08-14 19:48:29 +00:00
Johannes Anderwald
b94a1c980f * create a directory "system" under %SystemRoot% to make dumb apps work
* fixes bug 879

svn path=/trunk/; revision=23581
2006-08-14 17:40:41 +00:00
Ged Murphy
546f463b79 [AUDIT]
ws2_32
- All exported functions are fully documented on MSDN
- All internal functions are clearly written with no signs of reversing
- Reformat all code to ReactOS standard

svn path=/trunk/; revision=23580
2006-08-14 17:26:36 +00:00
James Tabor
4fe1ff2259 - User32: menu, patch by Michael Kaufmann. Fix the keyboard navigation and some graphical glitches for multi-column menus.
svn path=/trunk/; revision=23579
2006-08-14 14:44:40 +00:00
Alex Ionescu
d634e929b4 - Make HHIVE part of EREGISTRY_HIVE, similarly to NT.
- Get rid of Opaque member and paramter..

svn path=/trunk/; revision=23578
2006-08-14 14:16:00 +00:00
Alex Ionescu
055aceee0e - Parameter changes to HvInitialize
svn path=/trunk/; revision=23577
2006-08-14 12:50:09 +00:00
Alex Ionescu
b25952bbc1 - CELL_HEADER -> HCELL.
svn path=/trunk/; revision=23576
2006-08-14 12:22:00 +00:00
Alex Ionescu
b2ff1d22b8 - Fix small build brekage.
- Fix HBIN definition.

svn path=/trunk/; revision=23575
2006-08-14 12:15:26 +00:00
Alex Ionescu
da51ac07a6 - VALUE_CELL => CM_KEY_VALUE
svn path=/trunk/; revision=23574
2006-08-14 12:01:20 +00:00
Alex Ionescu
aa9cca267c - KEY_CELL => CM_KEY_NODE
svn path=/trunk/; revision=23573
2006-08-14 11:57:47 +00:00
Alex Ionescu
a627f5639b - Start using some NT structures (need to get rid of "Opaque").
svn path=/trunk/; revision=23572
2006-08-14 11:35:48 +00:00
Aleksey Bragin
75b35d0b0f - Change class.c to Wine-style debugging prints, add a bit of TRACEs, WARNs and ERRs (channel-based debugging output would really help a lot...)
- Fix IntMapDesktopView() to actually store the created mapping in a global list of mappings. Previously, any operation to map an address from such heap resulted in a NULL.
As a side-effect, "user32_winetest.exe class" went from 31 to 27 failures.

svn path=/trunk/; revision=23571
2006-08-13 21:43:53 +00:00
Aleksey Bragin
48ed6cd4d0 Dmitry Philippov: In MoveFileWithProgressW()
- Change alloca() to RtlAllocateHeap() and add missing freeing of the allocated space
    - Fix incorrect FileNameLength param in call to NtSetInformationFile()
    - Add support for MOVEFILE_REPLACE_EXISTING flag

svn path=/trunk/; revision=23570
2006-08-13 19:49:34 +00:00
Aleksey Bragin
81ff664e0c Dmitry Philippov: Add more tests for delayed file operations
svn path=/trunk/; revision=23569
2006-08-13 19:12:53 +00:00
Johannes Anderwald
2d95178395 * fix registry BSOD when no value exists
* fixes bug 1750
* thnx to P43LOk for bug report

svn path=/trunk/; revision=23568
2006-08-13 18:57:28 +00:00
Johannes Anderwald
0b11700c2c * add registry test code from bug 1750 by P43LOk
svn path=/trunk/; revision=23567
2006-08-13 18:52:57 +00:00
Art Yerkes
b194f1db87 Accept a NULL ResourceList if the caller is just asking how big the result
will be, as indicated by a zero BufferSize.

svn path=/trunk/; revision=23566
2006-08-13 07:05:14 +00:00
James Tabor
4e777dcafd - User32: menu, Patch by Aric Stewart, Implement MNS_NOTIFYBYPOS. Added WM_MENUCOMMAND to winuser.h.
svn path=/trunk/; revision=23565
2006-08-13 04:48:34 +00:00
Michele Cicciotti
2c5ded9a8c modified porting-tools/mstscax/mstscax.cpp
Guard against NULL pointers in certain methods
   Append a newline to debug messages
   Support a couple forgotten VARIANT types
   Corrected implementations of IUnknown::QueryInterface
   Better debug output for IDispatch::GetIDsOfNames and IDispatch::Invoke
   Debug output for IQuickActivate

modified   porting-tools/rdesktop-core-tester/activex.cpp
   Way too many changes to list. Basically, I wrote an ActiveX control without any help from third party libraries such as ATL. It was educative, but not terribly fun. Very nearly there
   All properties of the control are now supported, aligned to the behavior of the original control, version 5.2. Parameter validation and range enforcement eveeywhere

modified   porting-tools/rdesktop-core-tester/mstsclib.idl
   Reindented
   Removed explicit __stdcall convention
   Added alternate interface ids/class ids for compatibility with the msrdp.ocx redistributable. Code does not support this yet

modified   porting-tools/rdesktop-core-tester/mstsclib.rc
added      porting-tools/rdesktop-core-tester/mstsclib_redist.idl
added      porting-tools/rdesktop-core-tester/mstsclib_redist.rc
modified   porting-tools/rdesktop-core-tester/rdesktop-core-tester.vcproj
added      porting-tools/rdesktop-core-tester/typelib.rh
   Support two type libraries for compatibility with the msrdp.ocx redistributable. Code does not support this yet

modified   porting-tools/rdesktop-core-tester/mstsclib_h.h
modified   porting-tools/rdesktop-core-tester/mstsclib_i.c
added      porting-tools/rdesktop-core-tester/mstsclib_redist_h.h
added      porting-tools/rdesktop-core-tester/mstsclib_redist_i.c
   Auto-generated files, for the poor souls without MIDL

modified   porting-tools/rdesktop-core-tester/stdafx.h
   Added missing OLE header
   Corrected typo

svn path=/trunk/; revision=23564
2006-08-12 20:40:12 +00:00
Johannes Anderwald
eb1be244ca * implement unattend switch for intl
* makes ReactOS gui setup run unattended (untill VmWare popsup)

svn path=/trunk/; revision=23563
2006-08-12 19:32:57 +00:00
Johannes Anderwald
e1dde86798 * make rundll32 work w/o kernel32 hack
* thnx to Alex_Ionescu for hint

svn path=/trunk/; revision=23562
2006-08-12 19:29:08 +00:00
Johannes Anderwald
b08d57c6a7 revert my useless code
svn path=/trunk/; revision=23561
2006-08-12 18:16:17 +00:00
Johannes Anderwald
d68fdca31f disable code for now
svn path=/trunk/; revision=23560
2006-08-12 17:41:38 +00:00
Johannes Anderwald
2d88d68e4d * handle special case
svn path=/trunk/; revision=23559
2006-08-12 17:29:38 +00:00
James Tabor
219faa9936 Remove hack for TS messages.
svn path=/trunk/; revision=23558
2006-08-12 15:55:03 +00:00
James Tabor
8d995ea23d Implement SendNotifyMessage. Needs more testing.
svn path=/trunk/; revision=23557
2006-08-12 15:50:45 +00:00
Ged Murphy
635b9fb393 fix a few resource leaks
svn path=/trunk/; revision=23556
2006-08-12 15:17:29 +00:00
Ged Murphy
7c636c8e1f [AUDIT]
smdll.dll
This is a ReactOS native library

svn path=/trunk/; revision=23555
2006-08-12 14:55:16 +00:00
Magnus Olsen
7fda8aece2 revers Revision: 23549 | * allocate a terminating zero for every parsed argument
The code cause a regress. and the old code is 100% correct. I spoken with janderwald about it
*argc can be 0 when it call to CommandLineToArgv and he did not think of it. and agrument 
agrc is always 1, but that can not be take into accunt. for u do not paraser how many argc it exists
you parser the current argv, like is it 0, is it 1 so on. 

 


svn path=/trunk/; revision=23554
2006-08-12 14:51:51 +00:00
Ged Murphy
bdea0e74a9 [AUDIT]
samlib.dll
Confirmed to be clean by Eric Kohl

svn path=/trunk/; revision=23553
2006-08-12 14:48:29 +00:00
Ged Murphy
c79e850942 revert 23551, wrong directory.
As my penance, I'll review this one next ;)

svn path=/trunk/; revision=23552
2006-08-12 14:47:31 +00:00
Ged Murphy
b386ef68c8 [AUDIT]
samlib.dll
Confirmed to be clean by Eric Kohl

svn path=/trunk/; revision=23551
2006-08-12 14:44:58 +00:00
Johannes Anderwald
2066acf1fa * remove unused export
svn path=/trunk/; revision=23550
2006-08-12 14:22:40 +00:00
Johannes Anderwald
9ab72b3399 * allocate a terminating zero for every parsed argument
svn path=/trunk/; revision=23549
2006-08-12 14:17:44 +00:00
Johannes Anderwald
c20e99d518 * unhack calling international control panel applet by using rundll32
svn path=/trunk/; revision=23548
2006-08-12 14:14:52 +00:00
Johannes Anderwald
336ae5366e * put application name in quotes when lpCommandLine is != NULL
svn path=/trunk/; revision=23547
2006-08-12 14:10:31 +00:00
Ged Murphy
4a4efbf11b [AUDIT]
packet.dll
3rd party lib from winpcap

svn path=/trunk/; revision=23546
2006-08-12 11:01:41 +00:00
Aleksey Bragin
ac3d2f0869 - Remove non-needed checks from GetClassInfoA/W, because they are performed in GetClassInfoExA/W or not performed in Windows at all
- So now GetClassInfoA/W implementations are correct and all hacks are moved to GetClassInfoExA/W. This doesn't fix Abiword, but might fix direct calls to GetClassInfoExA/W which might fail due to not set "cbSize" member of WNDCLASS struct.
I marked this as HACKHACK for further investigation and removal.


svn path=/trunk/; revision=23545
2006-08-11 21:24:11 +00:00
Aleksey Bragin
a31fa06b4d Computer name must always be uppercased, even despite it is an example
svn path=/trunk/; revision=23544
2006-08-11 09:05:24 +00:00
Aleksey Bragin
e91fadbcbd Revert one meaningless change from the previous patch
svn path=/trunk/; revision=23543
2006-08-10 20:56:48 +00:00
Art Yerkes
9834923eaf Added missing return.
svn path=/trunk/; revision=23542
2006-08-10 19:52:55 +00:00
Hervé Poussineau
65cde24d6c "Unicodify" msgina
Add stubs for locking/unlocking

svn path=/trunk/; revision=23541
2006-08-10 18:41:23 +00:00
Hervé Poussineau
e3d8854be7 Add code to start the screensaver from winlogon
This code should replace the existing one in win32k/csrss, but is not activated (yet) due to some bugs:
- Calling SetWindowsHookEx with WH_KEYBOARD_LL gives a BSOD when pressing a key
- Time field in PKBDLLHOOKSTRUCT/PMSLLHOOKSTRUCT should be in milliseconds
- Screen saver parameters can't be retrieved with SystemParametersInfoW
- Probably others...

Plus a few less important ones:
- When sending a message with HWND_BROADCAST, the invisible SAS window doesn't get the message
- When calling (NtUser)SystemParametersInfo, WM_SETTINGSCHANGE message is not sent
- desk.cpl doesn't save (some) screensaver parameters to registry

svn path=/trunk/; revision=23540
2006-08-10 18:37:03 +00:00
Martin Fuchs
3318c29301 some commentary changes
svn path=/trunk/; revision=23539
2006-08-09 21:27:05 +00:00
Martin Fuchs
f465feb351 refresh shell background in response to system color changes
svn path=/trunk/; revision=23538
2006-08-09 20:10:41 +00:00
Aleksey Bragin
ccf643d45b Dmitriy Philippov (shedon@mail.ru):
- The MOVEFILE_DELAY_UNTIL_REBOOT flag is incorrect processed in the MoveFileWithProgressW function.
- The add_boot_rename_entry function contains too many bugs, it crashes when
deleting operation is performed, it does not save old entry in registry, etc...

Fixes are based on the testing application located in reactos/base/application/testsets/smss/movefile


svn path=/trunk/; revision=23537
2006-08-09 19:46:07 +00:00
Aleksey Bragin
46d49263c2 Dmitriy Philippov (shedon@mail.ru): Add test application for move file after reboot function of smss.exe / kernel32.dll
svn path=/trunk/; revision=23536
2006-08-09 19:42:50 +00:00
Hervé Poussineau
3be6aa3601 Check if logoff succeeded before continuing
Check if shutdown succeeded before calling kernel

svn path=/trunk/; revision=23534
2006-08-09 14:29:12 +00:00
Hervé Poussineau
4419e2ce2a A thread may exit with a status code of 0.
svn path=/trunk/; revision=23533
2006-08-09 12:46:41 +00:00
Hervé Poussineau
009c9838df Fix a bug in NtQueryInformationThread, which was leading to its unusability in user mode
svn path=/trunk/; revision=23532
2006-08-09 12:15:18 +00:00
Aleksey Bragin
f253f896e7 - Add tracing to class.c
- Slightly change header to match the new style

svn path=/trunk/; revision=23531
2006-08-09 10:00:04 +00:00
Hervé Poussineau
6007fa59ce Remove HandleExitWindows, and move its code to HandleLogoff and HandleShutdown
Lots of cleanup

svn path=/trunk/; revision=23530
2006-08-09 06:31:02 +00:00
Andrew Munger
844073d973 Update the hardcoded ViewCVS URL. Now packmgr works on the bootcd.
svn path=/trunk/; revision=23529
2006-08-08 21:19:11 +00:00
James Tabor
e2f4a9bdf8 Fix build, for NDEBUG.
svn path=/trunk/; revision=23528
2006-08-08 20:51:59 +00:00
Andrew Munger
16837dffa3 Correct the path to the package.dll for packmgr.
svn path=/trunk/; revision=23526
2006-08-08 20:13:27 +00:00
James Tabor
43bcb034b6 - DrawCaption
- Patch by Saveliy Tretiakov, new NtUserDrawCaption implementation.
    See URL for more details, http://www.reactos.org/archives/public/ros-dev/2006-July/008575.html


svn path=/trunk/; revision=23525
2006-08-08 20:00:53 +00:00
Aleksey Bragin
0468c25a60 Force -fno-sibling-call-optimisation to every module's CFLAGs. This fixes *numerous* bugs (thanks to a bug in GCC itself), even in DBG=1 builds!
Just an example, comctl32.dll doesn't crash anymore in LISTVIEW_Callback().

Thanks to Dmitriy Philippov (aka Shedon) for encountering the comctl32 bug and investigating it!

svn path=/trunk/; revision=23524
2006-08-08 12:41:56 +00:00
Hervé Poussineau
cd084157bd Give a valid name to the event
svn path=/trunk/; revision=23523
2006-08-08 11:10:59 +00:00
Hervé Poussineau
6889ad333c Patch by Filip Navara: Remove the call to HvFree, as the hive was not initialized
svn path=/trunk/; revision=23522
2006-08-08 09:31:19 +00:00
Eric Kohl
4d64dd44c6 - Implement ScmStartServiceA and revert the last modification of StartServiceA.
- Fix EnumServicesStatusExW.

svn path=/trunk/; revision=23521
2006-08-07 22:13:26 +00:00
Hervé Poussineau
2f021d099e - Start lsass.exe sooner, as Gina can call LsaRegisterLogonProcess in WlxInitialize
- Check that loaded Gina has all needed functions
- Set security attributes on windowstation and desktops

svn path=/trunk/; revision=23520
2006-08-07 17:18:58 +00:00
Hervé Poussineau
30c988c9be Call ScmrStartServiceW in StartServiceA to prevent code duplicating between ScmrStartServiceA/W in services.exe
svn path=/trunk/; revision=23519
2006-08-07 17:04:48 +00:00
Johannes Anderwald
552dc71367 * GUI settings for unattended setup
svn path=/trunk/; revision=23518
2006-08-07 13:32:31 +00:00
Johannes Anderwald
1547291dcc * make 2nd stage setup semi-unattendable (locale page is missing)
* to enable add the boot\bootdata\unattend.inf                          6   optional
to boot\bootdata\packages\reactos.dff

svn path=/trunk/; revision=23517
2006-08-07 13:31:11 +00:00
Hervé Poussineau
6845ab891c Add missing svn:eol-style property
svn path=/trunk/; revision=23516
2006-08-07 11:11:15 +00:00
Hervé Poussineau
dca537db04 Skip first call to AddDevice
svn path=/trunk/; revision=23515
2006-08-07 11:03:35 +00:00
Hervé Poussineau
8fb3dbf0ac Remove extra call to SETUP_CreateDevicesList
svn path=/trunk/; revision=23514
2006-08-07 11:02:14 +00:00
Hervé Poussineau
2d8c75910e Return code is really a NTSTATUS, not an unsigned int
svn path=/trunk/; revision=23513
2006-08-07 09:56:33 +00:00
Hervé Poussineau
2d7a591549 Move some more standard types in a common header
Thanks to Elrond from Samba-TNG for help

svn path=/trunk/; revision=23512
2006-08-07 09:48:54 +00:00
The Wine Synchronizer
7c4786c712 [FORMATTING]
Fix file headers to match coding style, and include reference to all programmers.

No code change.

svn path=/trunk/; revision=23511
2006-08-07 07:54:08 +00:00
Hervé Poussineau
157b8e865c Put standard types in a common header
Thanks to Elrond from Samba-TNG for help

svn path=/trunk/; revision=23510
2006-08-06 22:45:51 +00:00
Aleksey Bragin
f792bc36a0 Relax restriction on the segment in NtSetLdtEntries(). Look into diff for details. Thanks to Myria for providing information.
There were no reasons found which can proof that this change could lead to security issues.

svn path=/trunk/; revision=23509
2006-08-06 22:02:02 +00:00
Aleksey Bragin
4a57b7984a Goodbye REGISTRY_ERROR bsod!
- Change UserMode -> KernelMode in ObReferenceObject*() calls, because that calls failed
- Remove Cm-specific hack from Ob

"advapi32_winetest.exe registry" shows 0 failures on the first run and 2 failures on further runs.
I suppose there might be a leakage in the CM. To be investigated further (or wait till complete Cm rewrite in October).

svn path=/trunk/; revision=23508
2006-08-06 21:15:55 +00:00
Hervé Poussineau
15e0dc6523 SECURITY_NT_NON_UNIQUE_RID -> SECURITY_NT_NON_UNIQUE
svn path=/trunk/; revision=23507
2006-08-06 20:33:34 +00:00
Aleksey Bragin
310cebde9f - Change DbgPrint prototype back to Alex's fix. His change was correct and my commit was wrong.
- Respectively fix all occurences of DbgPrint()'s wrong prototypes throughout the tree
- HACKHACK: Change KeNumberProcessors definition in "else" branch of NTDDI_VERSION #if. I'm not sure how to properly fix this and for now I marked this place. Probably NTDDI_VERSION should be set correctly in ntoskrnl and other modules which use this variable. 

svn path=/trunk/; revision=23506
2006-08-06 19:57:24 +00:00
Hervé Poussineau
afb2063fd3 Fix an infinite loop if environment variable is not defined
svn path=/trunk/; revision=23505
2006-08-06 18:44:27 +00:00
Hervé Poussineau
887690f26d Move code around files to be more like Wine. No code change.
svn path=/trunk/; revision=23504
2006-08-06 18:37:39 +00:00
Hervé Poussineau
918b7c6c45 Implement CreateWellKnownSid and IsWellKnownSid, by ripping the Wine implementation (created by Robert Reif)
svn path=/trunk/; revision=23503
2006-08-06 18:22:36 +00:00
Hervé Poussineau
b1079a9149 Add more SID defines
svn path=/trunk/; revision=23502
2006-08-06 18:08:16 +00:00
Hervé Poussineau
63e6cdc364 Cleanup shutdown code path. Now, the user can logoff and logon again.
svn path=/trunk/; revision=23501
2006-08-06 15:47:04 +00:00
Hervé Poussineau
b229f6fcb2 Update French translation
svn path=/trunk/; revision=23500
2006-08-06 15:40:47 +00:00
Hervé Poussineau
6d3b584805 Fix a few referencing bugs (Object type must be specified if AccessMode is UserMode)
svn path=/trunk/; revision=23499
2006-08-06 15:38:56 +00:00
Hervé Poussineau
82aec77c32 STDCALL -> NTAPI
Update my mail address

svn path=/trunk/; revision=23498
2006-08-06 15:37:21 +00:00
Hervé Poussineau
6821c84844 Fix return type in .idl file
(advapi32.dll and services.exe already agreed on a error code status as return type)

svn path=/trunk/; revision=23497
2006-08-06 14:29:19 +00:00
Hervé Poussineau
705830858c - Add dsgetdc.h header
- Add missing constants SECURITY_MIN_SID_SIZE/SECURITY_MAX_SID_SIZE
- Define FreeInheritedFromArray only when _WIN32_WINNT >= 0x0501

svn path=/trunk/; revision=23496
2006-08-06 12:03:31 +00:00
Magnus Olsen
d68102ed54 forget remove one line in DirectDraw_GetAvailableVidMem sorry
svn path=/trunk/; revision=23495
2006-08-06 10:29:56 +00:00
Magnus Olsen
803578b8bc fixing some bugs in DirectDraw_GetAvailableVidMem
svn path=/trunk/; revision=23494
2006-08-06 10:28:08 +00:00
Magnus Olsen
1df8bd39ee Bugfix DirectDraw_AddRef
svn path=/trunk/; revision=23493
2006-08-06 09:56:21 +00:00
Magnus Olsen
f5b7920569 fixing ddraw regress instead bsod or fail create surface, now it fail on attach surface
svn path=/trunk/; revision=23492
2006-08-06 08:47:18 +00:00
Aleksey Bragin
dc159816df [AUDIT]
Configuration Manager

Cm part of the kernel was developed from scratch for a long time ago, and based only on legally clean information sources. After going through the code, it doesn't have any signs of questionable origin.
Authorship information will be added during formatting of the code.

svn path=/trunk/; revision=23491
2006-08-05 21:39:29 +00:00
Aleksey Bragin
8310980ff6 Fix the last definition of DbgPrint
svn path=/trunk/; revision=23490
2006-08-05 21:17:55 +00:00
Aleksey Bragin
4a9752bbe4 Fix DbgPrint / DbgPrintEx definitions to use PCCHAR instead of PCCH (recent WDK uses PCCHAR).
This change fixes compiling.

svn path=/trunk/; revision=23489
2006-08-05 20:57:36 +00:00
Alex Ionescu
3646d0b420 - Fix another incorrect DbgPrint prototype.
svn path=/trunk/; revision=23488
2006-08-05 16:50:36 +00:00
Alex Ionescu
86e31ea51a - Fix how DDK is included.
svn path=/trunk/; revision=23487
2006-08-05 16:50:23 +00:00
Alex Ionescu
4a84399353 - mangledDDK had no idea what a const char is, now it does.
- mangledDDK had wrong prototypes of DbgPrint/Ex.
- PSEH too.
- Fixed ntoskrnl headers to build with Windows 2003 header definitions. Make handle.c force usage of Windows 2000 header definitions, because the handle code is Win2K.
- mangledDDK had wrong KeNumberProcessors definition.

svn path=/trunk/; revision=23486
2006-08-05 16:49:07 +00:00
Alex Ionescu
9d109579e3 - DDK Compatibility fixes.
svn path=/trunk/; revision=23484
2006-08-05 16:27:20 +00:00
Aleksey Bragin
7f1a5332e2 Convert \ to / path separator in .rc files (fixes linux building process)
svn path=/trunk/; revision=23482
2006-08-05 13:38:51 +00:00
Magnus Olsen
5cf9d852b7 1. move rc languages to folder lang
2. Adding rsrc.rc so u can open rc file in vs 
3. fixing sublang id for some languages  so it can be open in vs

svn path=/trunk/; revision=23481
2006-08-05 11:55:35 +00:00
Magnus Olsen
db565c34cd 1. move rc languages to folder lang
2. Adding rsrc.rc so u can open rc file in vs 
3. fixing sublang id for some languages  so it can be open in vs

svn path=/trunk/; revision=23480
2006-08-05 11:43:49 +00:00
Magnus Olsen
c196fd1221 1. move rc languages to folder lang
2. Adding rsrc.rc so u can open rc file in vs 
3. fixing sublang id for almost all languages  so it can be open in vs
ToDO
each langues have diffent menu and dialog for some have update En.rc and not the rest of the languages file 
Never only update En.rc update all other languages file same time so we have same desgin and option and dialog
box on each languages. 

svn path=/trunk/; revision=23479
2006-08-05 10:37:42 +00:00
Magnus Olsen
a86f6c873d forget this file thx fireball
svn path=/trunk/; revision=23478
2006-08-05 10:08:29 +00:00
Magnus Olsen
8c69a85ea6 1. move rc languages to folder lang
2. Adding rsrc.rc so u can open rc file in vs 
3. fixing sublang id for hu.rc so it can be open in vs

svn path=/trunk/; revision=23477
2006-08-05 09:29:13 +00:00
Magnus Olsen
812c059223 1. move rc languages to folder lang
2. Adding rsrc.rc so u can open rc file in vs 

svn path=/trunk/; revision=23476
2006-08-05 09:21:21 +00:00
Aleksey Bragin
3a9d44aa99 Change "\" to "/", so it compiles both on Linux and Windows.
svn path=/trunk/; revision=23475
2006-08-05 09:15:18 +00:00
Magnus Olsen
f5c9f4acdb 1. move rc languse to folder lang
2. Adding rsrc.rc so u can open rc file in vs 
3. Fixing Ru and Hu sublang id. so they showing in vs instead for unkown langues. 

svn path=/trunk/; revision=23474
2006-08-05 09:05:28 +00:00
Magnus Olsen
5004195fad move rc languse to folder lang
svn path=/trunk/; revision=23473
2006-08-05 09:03:04 +00:00
Magnus Olsen
60bdf62560 move the lang filr to folder lang
(do not use torstensvn to move file, torstensvn can not manger move all file at once, only command base svn)

svn path=/trunk/; revision=23472
2006-08-05 08:43:23 +00:00
Aleksey Bragin
591d64daec Moved language resource files to lang subdir.
svn path=/trunk/; revision=23471
2006-08-05 08:35:32 +00:00
Magnus Olsen
7f27d73fda Moved remotely
svn path=/trunk/; revision=23470
2006-08-05 08:30:47 +00:00
Magnus Olsen
20a0e7fdb3 Moved remotely
svn path=/trunk/; revision=23469
2006-08-05 08:30:39 +00:00
Magnus Olsen
fc71bab6eb Moved remotely
svn path=/trunk/; revision=23468
2006-08-05 08:30:26 +00:00
Magnus Olsen
055745600b Moved remotely
svn path=/trunk/; revision=23467
2006-08-05 08:30:18 +00:00
Magnus Olsen
81e2c1b0e0 Moved remotely
svn path=/trunk/; revision=23466
2006-08-05 08:30:11 +00:00
Magnus Olsen
714ccb42ca Moved remotely
svn path=/trunk/; revision=23465
2006-08-05 08:30:03 +00:00
Magnus Olsen
ac06d7203f Moved remotely
svn path=/trunk/; revision=23464
2006-08-05 08:29:58 +00:00
Magnus Olsen
0ac77c3f8c Moved remotely
svn path=/trunk/; revision=23463
2006-08-05 08:29:49 +00:00
Magnus Olsen
d2fd2cd3fa Moved remotely
svn path=/trunk/; revision=23462
2006-08-05 08:28:29 +00:00
Magnus Olsen
c24caedf13 Created folder remotely
svn path=/trunk/; revision=23461
2006-08-05 08:27:21 +00:00
Magnus Olsen
937ceea974 finsih the move of langues rc
svn path=/trunk/; revision=23460
2006-08-05 08:26:42 +00:00
Magnus Olsen
300d54c674 Moved remotely
svn path=/trunk/; revision=23459
2006-08-05 08:13:11 +00:00
Magnus Olsen
254a2e45f6 Moved remotely
svn path=/trunk/; revision=23458
2006-08-05 08:12:46 +00:00
Magnus Olsen
99db1b9c92 Moved remotely
svn path=/trunk/; revision=23457
2006-08-05 08:12:31 +00:00
Magnus Olsen
ec9f9a3f13 Moved remotely
svn path=/trunk/; revision=23456
2006-08-05 08:12:03 +00:00
Magnus Olsen
d22731eceb Moved remotely
svn path=/trunk/; revision=23455
2006-08-05 08:11:50 +00:00
Magnus Olsen
6c109b3daa Moved remotely
svn path=/trunk/; revision=23454
2006-08-05 08:11:34 +00:00
Magnus Olsen
ef91589118 Created folder remotely
we store all langues rc file to folder lang

svn path=/trunk/; revision=23453
2006-08-05 08:10:44 +00:00
James Tabor
79b9b1a431 Patch by Dan Hipschman, Call SetLastError in CreateWindowEx when WS_CHILD is set with no parent.
svn path=/trunk/; revision=23452
2006-08-05 01:48:20 +00:00
Ged Murphy
c44fecf418 change definition to ensure calling of unicode
svn path=/trunk/; revision=23449
2006-08-04 23:40:16 +00:00
Brandon Turner
4ea471d5a5 update the help for exit to include /b
svn path=/trunk/; revision=23448
2006-08-04 21:24:57 +00:00
Hervé Poussineau
56a847b2ca Implement /CMDCONS switch, which allows the user to start in text mode
Autologon should only be done once (when starting the computer, not after the user has logged out)
Remove the status message dialog only in GUI

svn path=/trunk/; revision=23447
2006-08-04 19:44:35 +00:00
Aleksey Bragin
41fb06f69a Add an entry to enable unattended 1st stage setup (commented out by default).
In order to get unattended setup working:
1. Copy unattend.inf.sample to unattend.inf, adjust as needed
2. Uncomment the line in bootdata.rbuild to include it into bootcd

svn path=/trunk/; revision=23446
2006-08-04 19:28:54 +00:00
Hervé Poussineau
3455731503 Try to implement a working shutdown.
Sorry, I had to disable some code to close user processes in subsystems/win32/csrss/win32csr/exitros.c

svn path=/trunk/; revision=23445
2006-08-04 15:39:44 +00:00
Hervé Poussineau
3008860064 We should be able to set ThreadImpersonationToken information with NtSetInformationThread
svn path=/trunk/; revision=23444
2006-08-04 13:52:16 +00:00
Hervé Poussineau
c5245d5b4b - Remove now useless entries about PCI bus, as StartService is now working in 2nd stage setup
- Add Netlogon service (lsass.exe)

svn path=/trunk/; revision=23443
2006-08-04 12:01:27 +00:00
Hervé Poussineau
06797ae112 - Specify *W at the end of function calls, and remove the need to define UNICODE
- Rename MsGina to Gina
- Start services.exe before running 2nd stage setup

svn path=/trunk/; revision=23442
2006-08-04 11:37:18 +00:00
Ged Murphy
6777e6905f fix loading of current values for ip and dhcp
svn path=/trunk/; revision=23441
2006-08-03 22:20:44 +00:00
Ged Murphy
2175834be0 - load the current IP address when switching from dhcp to manual.
- this isn't how Windows behaves, but it should be as it makes life slightly easier in most cases

svn path=/trunk/; revision=23440
2006-08-03 21:29:09 +00:00
Ged Murphy
7288929ef0 doh, rushed code leads to leaked resources.
thanks lkjasa for pointing it out.

svn path=/trunk/; revision=23439
2006-08-03 20:32:10 +00:00
Ged Murphy
728a261829 size the buffer dynamically to avoid potentially overflowing it
svn path=/trunk/; revision=23438
2006-08-03 19:06:12 +00:00
Ged Murphy
c6b0db6688 Add a header to the prop sheet and correct a variable spelling
fixes bug 1731
patch from itay.perl@gmail.com

svn path=/trunk/; revision=23437
2006-08-03 18:01:47 +00:00
Christoph von Wittich
53af48a8b2 -removed DefWindowProc from the Dialog WndProcs
svn path=/trunk/; revision=23436
2006-08-03 15:57:10 +00:00
Hervé Poussineau
5ef94aacb7 Don't try to remove a status message if none have been displayed and GINA has not been initialized
svn path=/trunk/; revision=23435
2006-08-03 15:14:14 +00:00
Hervé Poussineau
603ac11c9a Simplify management of loggedout window
Implement locking/unlocking of the workstation (only by code, not the associated dialogs)

svn path=/trunk/; revision=23434
2006-08-03 13:54:44 +00:00
Hervé Poussineau
e202c810ac Implement shutdown and unlocking
Remove some useless code
Implement Timeout for dialogs

svn path=/trunk/; revision=23433
2006-08-03 13:50:40 +00:00
James Tabor
21ea0d9494 Fix build
svn path=/trunk/; revision=23432
2006-08-03 01:30:40 +00:00
Christoph von Wittich
26dbfdec15 -splitted resource file into en.rc and msgina.rc
-prettyfied msgina a bit
-fixed line endings

svn path=/trunk/; revision=23430
2006-08-03 00:32:32 +00:00
James Tabor
a0f6dcc406 Fixed typo, btw this fixes most of the edit tests.
svn path=/trunk/; revision=23429
2006-08-03 00:01:05 +00:00
James Tabor
db09492d5f - Win32k
- CreateWindowsEx: Patch based on janderwald patch.
    1. Reading and follow wine source (user/win.c & winex11.drv/window.c), I noticed that cs->hwndParent is unmodified when passed to the children via WM_NC/CREATE.
    2. Reordered the "fine the parent" code, based on wine. I've tested this change for last two weeks.

svn path=/trunk/; revision=23428
2006-08-02 23:39:53 +00:00
Hervé Poussineau
4546ac2820 Fix compilation
svn path=/trunk/; revision=23427
2006-08-02 22:49:02 +00:00
Ged Murphy
972b814ded disable the floating toolbars by default until they are useful.
svn path=/trunk/; revision=23425
2006-08-02 21:52:20 +00:00
Hervé Poussineau
d194ee80a5 Winlogon:
- Register CTRL+ALT+DELETE notification
- Better session loop between all GINA dialogs
- Display a dialog box if GINA DLL cannot be loaded
GINA:
- Add an graphical and text interface to enter username/password
- Take care of autologon parameters in registry

svn path=/trunk/; revision=23424
2006-08-02 21:01:37 +00:00
Johannes Anderwald
d99c9b45f0 .c files are not executable files
svn path=/trunk/; revision=23423
2006-08-02 20:51:13 +00:00
Hervé Poussineau
0d5fd6cd68 - Implement INF_STYLE_OLDNT style in SetupOpenInfFileW
- Add some documentation in header file

svn path=/trunk/; revision=23422
2006-08-02 20:45:13 +00:00
Ged Murphy
5b8e3e2f5b fix MSI build warnings
svn path=/trunk/; revision=23421
2006-08-02 20:01:22 +00:00
Ged Murphy
64a6bb9b0e remove wine file. This should now be defined in our psdk
svn path=/trunk/; revision=23420
2006-08-02 20:00:45 +00:00
Johannes Anderwald
31b43700f6 add description on how to bypass MBR installation page
svn path=/trunk/; revision=23419
2006-08-02 18:59:06 +00:00
Johannes Anderwald
6c41639b61 * make ReactOS textmode setup full-unattendable
svn path=/trunk/; revision=23418
2006-08-02 18:58:07 +00:00
Michele Cicciotti
6556fec93f modified porting-tools/mstscax/mstscax.cpp
modified   porting-tools/mstscax/stdafx.h
   Added support for aggregation (ActiveX controls are expected to be aggregable)
   Added IMsRdpClientAdvancedSettings4 stub
   Added some other minor stubs

added      porting-tools/rdesktop-core-tester/activex.cpp
modified   porting-tools/rdesktop-core-tester/stdafx.h
modified   porting-tools/rdesktop-core-tester/rdesktop-core-tester.vcproj
   Full stubs for RDP client ActiveX control

added      porting-tools/rdesktop-core-tester/mstsclib.idl
added      porting-tools/rdesktop-core-tester/mstsclib.rc
added      porting-tools/rdesktop-core-tester/mstsclib_h.h
added      porting-tools/rdesktop-core-tester/mstsclib_i.c
   IDL definition file and type library resource for the ActiveX control. MIDL-generated files temporarily committed

modified   porting-tools/rdesktop-core-tester/rdesktop-core-tester.cpp
   Overall cleanup
   GDI code now uses SaveDC/RestoreDC instead of multiple calls
   Virtual Channel API stubs

modified   rdesktop/bitmap.c
   Re-enable optimizations

modified   rdesktop/channels.c
   Magic numbers are evil

modified   rdesktop/mcs.c
modified   rdesktop/rdesktop.h
   MCS channel ids were superfluous

modified   rdesktop/rdesktop-core.vcproj
modified   rdesktop/secure.c
modified   rdesktop/types.h
   Removed virtual channels implementation, preparing to replace with extensible, multithreaded, Windows-compatible implementation

svn path=/trunk/; revision=23417
2006-08-02 14:21:45 +00:00
Martin Fuchs
2a4389576a fix GCC build error "explicit qualification in declaration of MLStorage::..." for ibrowser
svn path=/trunk/; revision=23416
2006-08-02 12:20:14 +00:00
Martin Fuchs
a16732d63c fix GCC build error "explicit qualification in declaration of MLStorage::..."
svn path=/trunk/; revision=23415
2006-08-02 12:11:24 +00:00
Ged Murphy
6193e2092b - sync MSI to Wine 0.9.18
- note, it still has the swprintf warnings which I'll fix tomorrow (if someone reminds me ;) )
- MSI Wine test is now in trunk, if anyone has chance to do a before and after test ...

svn path=/trunk/; revision=23414
2006-08-01 23:12:11 +00:00
Ged Murphy
5e15912284 add msi wine regression test
svn path=/trunk/; revision=23410
2006-08-01 22:48:23 +00:00
James Tabor
1d2d013384 - User32
- Dialog.c Partial sync to wine. 
  - Add WinPosActivateOtherWindow to winpos.c, activate another window when the dialog gets hidden in EndDialog.
  - Misc fixes and changes.

svn path=/trunk/; revision=23409
2006-08-01 21:14:45 +00:00
Hervé Poussineau
963218942e Use the locally modified StartupInfo, instead of the one the caller gave us
svn path=/trunk/; revision=23407
2006-08-01 15:59:14 +00:00
The Wine Synchronizer
e184a78b53 Revert 23354 (causes a bugcheck). It will be committed when Alex has time to fix that issue.
svn path=/trunk/; revision=23405
2006-08-01 12:50:11 +00:00
Martin Fuchs
9940e41a7b fix output of XML document types
svn path=/trunk/; revision=23403
2006-08-01 09:23:41 +00:00
Filip Navara
eb035c3d8f Fix the damn detection code.
svn path=/trunk/; revision=23401
2006-08-01 03:43:51 +00:00
Martin Fuchs
2005844309 cleanup project files
svn path=/trunk/; revision=23400
2006-07-31 23:49:13 +00:00
Martin Fuchs
0887b49c1b move string constants into XMLStorage namespace
svn path=/trunk/; revision=23399
2006-07-31 23:46:20 +00:00
Martin Fuchs
8cb05b5ab7 IBrowser: update XMLStorage library and remove Expat dependency
svn path=/trunk/; revision=23398
2006-07-31 23:23:19 +00:00
Martin Fuchs
350cddb3d6 Explorer: update XMLStorage library and remove Expat dependency
svn path=/trunk/; revision=23397
2006-07-31 23:21:55 +00:00
Andrew Munger
4a89b0422d Fix the build on linux (for real). Patch from hpoussin, who checked that it didn't break the win32 build.
This also reverts 23394.

svn path=/trunk/; revision=23396
2006-07-31 22:34:55 +00:00
Martin Fuchs
56781e4522 ibrowser resources: fix norwegian sublanguage ID
svn path=/trunk/; revision=23395
2006-07-31 22:29:45 +00:00
Eric Kohl
5bcb07458e Fix missing _strnicmp on Linux.
svn path=/trunk/; revision=23394
2006-07-31 20:20:10 +00:00
Brandon Turner
899a4ac7b8 Implement the reading and writing of pagefile settings. We should not longer have to edit it by hand in regedit. This works 100% flawlessly in win2k3 but has not been tested in ros yet. Patch by Christian Wallukat (cwallukat@gmx.at) and myself.
svn path=/trunk/; revision=23381
2006-07-30 23:14:02 +00:00
The Wine Synchronizer
ad4cd97427 Autosyncing with Wine HEAD
svn path=/trunk/; revision=23380
2006-07-30 21:27:45 +00:00
Eric Kohl
1edf91632a Updated information about widl.
svn path=/trunk/; revision=23378
2006-07-30 13:39:42 +00:00
Eric Kohl
945bcdf5e8 This modification is required for use with the WINE widl.
svn path=/trunk/; revision=23377
2006-07-30 13:02:53 +00:00
Eric Kohl
9c239fd76f Synchronize with current WINE widl 20060729.
svn path=/trunk/; revision=23376
2006-07-30 12:58:24 +00:00
Hervé Poussineau
6c4f49b5cd - Create a window to receive the CTRL+ALT+DELETE event (not working yet)
- Remove support for console start (it is the role of msgina, not winlogon)
- Implement some simple functions

svn path=/trunk/; revision=23375
2006-07-30 08:38:35 +00:00
Hervé Poussineau
6b63d81fbd Implement SM_REMOTESESSION message
svn path=/trunk/; revision=23374
2006-07-29 23:55:07 +00:00
Hervé Poussineau
754546cdfc Add autologon information (not used yet)
svn path=/trunk/; revision=23373
2006-07-29 23:13:17 +00:00
Christoph von Wittich
9cff1db692 fix ASSERT in ndis, now the Realtek 8029AS (ne2000) driver is working
svn path=/trunk/; revision=23368
2006-07-29 20:23:44 +00:00
Aleksey Bragin
6698793717 Move two helper macros into cm.h, and uncomment DPRINTs using them in registry code
svn path=/trunk/; revision=23365
2006-07-29 20:01:38 +00:00
Alex Ionescu
17509fb1e5 - Added profiling for possible Nt I/O function optimizations. Booting and running Firefox gave an amazing "0 missed optimizations", so defintely, this has been moved down on the priority list. Also merged all tracing TODOs in one entry and added device.c tracing TODO.
- Fix IRP Cancellation and enable all calls to IopQueueIrpToThread and IopUnqueueIrpFromThread. This seems to work properly now and the kernel fun entry for it has been removed. All remaining Io TODOs are now low priority.

svn path=/trunk/; revision=23354
2006-07-29 19:26:13 +00:00
Hervé Poussineau
8775e940c1 Remove no longer needed hack
svn path=/trunk/; revision=23353
2006-07-29 17:59:04 +00:00
Alex Ionescu
ca2a89a457 - Add another paramter to IopCleanupFailedIrp to free an optional buffer being specified to it. This way we don't leak some allocated buffers when IRP allocation fails.
- Create inlined IopUnQueueIrpFromThread to match IopQueueIrpToThread.

svn path=/trunk/; revision=23352
2006-07-29 16:56:26 +00:00
Alex Ionescu
1c28eb66f4 - Add SEH to all iofunc.c functions that required it. (note: Some SEH might seem "useless" to have been added. This is because we don't use Pool Quotas yet, which generate exceptions which will later need to be handled).
- Implement IopExceptionCleanup as a generic cleanup handler for SEH exceptions.

svn path=/trunk/; revision=23351
2006-07-29 16:35:05 +00:00
Magnus Olsen
3d997c8dae fixing the language so it can be edit from vs, open the rsrc.rc file in vs to edit a languages.
svn path=/trunk/; revision=23350
2006-07-29 15:56:00 +00:00
Magnus Olsen
66b40e74ee rename some file from xml to rbuild.
Now all rename is done. 

svn path=/trunk/; revision=23349
2006-07-29 15:23:19 +00:00
Aleksey Bragin
bcd159805c Add 2nd half of the Filip Navara's cmlib. Now both freeldr and ntoskrnl utilise the same base library to access the registry.
Remember that you need to recreate binary hives, your old reactos registry isn't compatible (due to slight difference in the on-disk structure).

svn path=/trunk/; revision=23348
2006-07-29 14:43:32 +00:00
Magnus Olsen
677d2a40df Remove welcome from rosapps, we already it in reactos/base/....
svn path=/trunk/; revision=23347
2006-07-29 14:34:22 +00:00
Magnus Olsen
f50ffbf8c4 remove welcome from rbuild file
svn path=/trunk/; revision=23346
2006-07-29 14:33:39 +00:00
Magnus Olsen
3524699490 Remove format from rosapps, we already it in reactos/base/....
svn path=/trunk/; revision=23345
2006-07-29 14:32:05 +00:00
Magnus Olsen
ae5ead0153 Fixing some renname of xml to rbuild
svn path=/trunk/; revision=23344
2006-07-29 14:26:28 +00:00
Magnus Olsen
f909be8aaa rename some file from xml to rbuild.
svn path=/trunk/; revision=23343
2006-07-28 21:30:18 +00:00
Magnus Olsen
6b19073a39 sorry for the typo
svn path=/trunk/; revision=23342
2006-07-28 21:21:38 +00:00
Magnus Olsen
6bd161c5b8 some forgot fixing rosapps change the xml to rbuild.
fixed that in trunks

svn path=/trunk/; revision=23341
2006-07-28 21:15:46 +00:00
Magnus Olsen
3a43d2db6c adding more and find to livecd and bootcd
svn path=/trunk/; revision=23340
2006-07-28 21:05:48 +00:00
Magnus Olsen
307c8c7494 building more and find
svn path=/trunk/; revision=23339
2006-07-28 21:04:25 +00:00
Magnus Olsen
30c6b3bace making rosapps build again
svn path=/trunk/; revision=23338
2006-07-28 21:00:14 +00:00
Magnus Olsen
c8183964de copy cmdutils.rbuild
svn path=/trunk/; revision=23337
2006-07-28 20:57:04 +00:00
Aleksey Bragin
793b990edb Actually add cmlib itself
svn path=/trunk/; revision=23336
2006-07-28 20:50:05 +00:00
Magnus Olsen
d01cb10386 Moved cmdutils command more remotely
svn path=/trunk/; revision=23335
2006-07-28 20:48:20 +00:00
Magnus Olsen
397361df50 Moved cmdutils command find remotely
svn path=/trunk/; revision=23334
2006-07-28 20:47:22 +00:00
Magnus Olsen
05066fce58 prepare move for cmdutils more and find for they are necessary cmd command for allot bat files.
Fireball agrees to it. 

svn path=/trunk/; revision=23333
2006-07-28 20:43:58 +00:00
Aleksey Bragin
b6fc604db0 - Add Filip Navara's cmlib
- Use cmlib in Freeldr and Setupldr (patch by Filip Navara)
- Fix some HIVE definition and checksum calculation in mkhive and ntoskrnl (so they btoh create a compatible registry)

TODO: Apply 2nd half of the patch, which makes ntoskrnl using cmlib.

This commit is dedicated to Filip Navara's constant promises to commit cmlib and to recent small Arty vs. Alex debate on irc :)

svn path=/trunk/; revision=23332
2006-07-28 20:25:47 +00:00
Magnus Olsen
02f0e4b7ac patch from LMH1 : Bug#: 1684 : Norwegian translation
svn path=/trunk/; revision=23331
2006-07-28 20:03:29 +00:00
Aleksey Bragin
b9673c3ca0 Add message's spy into user32.dll. In order to enable, just uncomment #define YDEBUG in spy.c file and optionally set the messages you want to include / exclude in the registry (HKCU\ReactOS\Debug).
When it's turned off (YDEBUG is not defined), it doesn't provide any slow-down to the system.

DefWindowProc() functions are slightly refactored to have one exit point instead of numerous returns in a switch-case statement.

FIXME: maybe DPRINTs will be changed to DbgPrint because it's pointless to display path to the spy.c file everytime.

svn path=/trunk/; revision=23330
2006-07-28 13:52:23 +00:00
Alex Ionescu
3d97c16cd1 - Mega whammy jammy fix commit:
- Fix bootcd by fixing some bugs in CDFS (same as in VFAT).
  - Fix Broken Installers and other I/O programs that couldn't, for example, create temporary directories.
  - Fix Firefox installers and other apps crashing due to a bug in NtSetInformationFile.
  - Fix File Objects being referenced twice resulting in IRP_MJ_CLOSE/CLEANUP never being sent and several memory leaks.
  - Fix File Object Lock being incorrectly created and then misused by mm/section code.
  - Fix creation of File Object before setting up the IRP, to properly cleanup during failures.
- Add failure code if ObCreateObject fails.

svn path=/trunk/; revision=23328
2006-07-27 22:26:40 +00:00
Aleksey Bragin
27f7e69bf7 Improve a few headers by adding missing definitions and structures (taken from Wine).
Versioning might not be correct.

svn path=/trunk/; revision=23327
2006-07-27 20:34:04 +00:00
Alex Ionescu
280c7a5a59 - Add kernel fun entry:
- Find out why 7zip can't create temporary folders due to deferred I/O
    completion in IopParseDevice when creating a new File Object.. 
Thanks to encoded.

svn path=/trunk/; revision=23326
2006-07-27 20:18:22 +00:00
Alex Ionescu
48d3c8e74f - Enable IopReferenceDeviceObject in IopParseDevice (not much use for now except OS "Correctness" and identifying broken drivers). DO referencing isn't fully used in the kernel yet.
- Fix broken drivers: i8042 and videoprt. NDIS might be broken too, but downloading worked fine for me, so it's not hitting the check in IopParseDevice.

svn path=/trunk/; revision=23325
2006-07-27 20:16:48 +00:00
Alex Ionescu
bef11ebb29 - Set DRVO_INITAILIZED flag for intiailized driver objects.
- Loop the list of devices created by the driver's DriverEntry and remove the DO_DEVICE_INITIALIZING flag.

svn path=/trunk/; revision=23324
2006-07-27 19:56:38 +00:00
Alex Ionescu
6e6d9ed927 - Fix some last STDCALL->NTAPI problems.
- Generate KUSER_SHARED_DATA cookie if it doesn't already exist when a user-mode thread runs.
- Remove the last Ps entry from kernel fun.

svn path=/trunk/; revision=23323
2006-07-27 18:28:26 +00:00
Alex Ionescu
22b41d9acf - Reimplement and activate NtQueryInformationThread.
- Remove kernel fun entry.

svn path=/trunk/; revision=23322
2006-07-27 17:09:42 +00:00
Andrew Munger
306688e01b "PnPify" ne2000, patch from Filip.
This allows the ne2000 driver to work with (and without) the new qemu acpi settings.

svn path=/trunk/; revision=23320
2006-07-27 16:52:03 +00:00
Alex Ionescu
248996ff72 - Reimplement and activate NtSetInformationThread.
svn path=/trunk/; revision=23319
2006-07-27 16:43:03 +00:00
Aleksey Bragin
148bbcc210 Add sm.exe to bootcd
svn path=/trunk/; revision=23318
2006-07-27 11:37:23 +00:00
Aleksey Bragin
96c732942d Fix sm.exe's compilation
svn path=/trunk/; revision=23315
2006-07-27 11:03:36 +00:00
Magnus Olsen
e95b8ee1f2 forgot the file.
patch from LMH1  : Bug#:  1682  :  Norwegian translation
note : sm are not include in building process, the source code have got begin to be rotten, it 
       can not longer be build. shall we delete it ? or shall some look into and make it
       work again, I am not voluntary todo either of it. some else for todo that. 

svn path=/trunk/; revision=23314
2006-07-27 08:36:37 +00:00
Magnus Olsen
27f868593a patch from LMH1 : Bug#: 1682 : Norwegian translation
note : sm are not include in building process, the source code have got begin to be rotten, it 
       can not longer be build. shall we delete it ? or shall some look into and make it
       work again, I am not voluntary todo either of it. some else for todo that. 

svn path=/trunk/; revision=23313
2006-07-27 08:35:46 +00:00
Magnus Olsen
a88bf9a848 patch from LMH1 : Bug#: 1681 : Norwegian translation
svn path=/trunk/; revision=23311
2006-07-27 08:21:29 +00:00
Magnus Olsen
82d4e57ee2 patch from LMH1 : Bug#: 1680 : Norwegian translation
svn path=/trunk/; revision=23310
2006-07-27 08:17:00 +00:00
Magnus Olsen
bdcc4dd0cb patch from LMH1 : Bug#: 1687 : Norwegian translation
svn path=/trunk/; revision=23309
2006-07-27 07:59:35 +00:00
Magnus Olsen
692e79dc80 patch from LMH1 : Bug#: 1686 : Norwegian translation
svn path=/trunk/; revision=23308
2006-07-27 07:55:55 +00:00
Magnus Olsen
03b940bdba patch from LMH1 : Bug#: 1683 : Norwegian translation
svn path=/trunk/; revision=23307
2006-07-27 07:50:33 +00:00
Magnus Olsen
57404c2c93 patch from LMH1 : Bug#: 1700 : Norwegian translation
svn path=/trunk/; revision=23306
2006-07-27 07:46:08 +00:00
Alex Ionescu
29a0553ced - Remove PspGetImagePath and use the new SeLocateProcessImageName instead.
It's still not fully XP-compatible, because it should return the entire name with the \Device\HardDisk0 path, but that is easily fixable by modifying the OB Type info for the device object to also use IopQueryNameFile (TODO).
- Update kernel fun with specifics about Cc-branch dereference bug and re-prioritize an I/O Bug.

svn path=/trunk/; revision=23305
2006-07-27 05:03:03 +00:00
James Tabor
55483dc7f6 - Part 2, Menu.c, cosmetic fixes. Fixed most of all the drawing issues. One outstanding needed fix is Lazarus. There maybe some tweaking needed, over all menus look nice.
svn path=/trunk/; revision=23304
2006-07-27 01:21:21 +00:00
Alex Ionescu
de6dc70c56 - Implement XP-style process name auditing to store the full name of the process in EPROCESS instead of only the first 16 ascii characters. This is required for one of the newer Info process classes. Implemented SeInitializeProcessAuditName and SeLocateProcessImageName.
- Remove #ifed out code in PspCreateProcess which was attempting to create the name structure. Add code to MmCreateProcessAddressSpace to initialize the audit name after the 16-byte name.
- Implement some helper APIs for better code refactoring.
- TODO: Get rid of PspGetImagePath and wrap around SeLocateProcessImageName instead.

svn path=/trunk/; revision=23303
2006-07-27 00:22:36 +00:00
Alex Ionescu
f0166aaf6e - Fix multiple bugs in VfatGetNameInformation:
* Return the file name length even if the buffer is too small, that's the whole point of the "Query length before comitting a buffer" principle.
  * FSDs are not supposed to null-terminate the buffer, nor expect the caller to send a buffer large enough for null-termination.
  * Added a hack in IopQueryFile to handle another VFAT bug which makes it return the total number of bytes written in IoStatus.Information instead of the total number of bytes *left untouched*.There are probably many other broken things due to this.
- Fix some length calculation bugs in IopQueryFile.

svn path=/trunk/; revision=23302
2006-07-27 00:13:14 +00:00
Johannes Anderwald
c0e140d91b * Ukrainian translation by Temarez (bug 1713)
* fix a warning

svn path=/trunk/; revision=23301
2006-07-26 20:41:38 +00:00
Alex Ionescu
4a34b5d7b6 - More kernel fun
svn path=/trunk/; revision=23298
2006-07-26 07:18:06 +00:00
Maarten Bosma
37fbfe0d73 Added module list needed to generate the xml. It contains all Kernel, KernelModeDLL, NativeDLL and Win32DLL modules. I produced it by hacking rbuild.
svn path=/trunk/; revision=23295
2006-07-25 21:45:23 +00:00
Maarten Bosma
f83c1d1963 Copy the needed xsl file from trunk\cis to tools\rgenstat\web.
svn path=/trunk/; revision=23294
2006-07-25 21:34:21 +00:00
Ged Murphy
c4abac4743 Export CPlApplet() as stdcall
patch from Thomas Weidenmueller 

svn path=/trunk/; revision=23293
2006-07-25 21:19:31 +00:00
Alex Ionescu
986d920762 - Fix a bug in LPC creation (missing one handle) and LPC closing (was not properly closing the port). This caused LPC_PORT_CLOSED never to be sent, and thus CSRSS never received and never closed its handle of the process, meaning that all win32 processes leaked.
- As a result, processes can die again, and also be killed by Task Manager.
- And finally, "Exit" in cmd.exe as well as pressing the "x" button work.

svn path=/trunk/; revision=23292
2006-07-25 20:21:24 +00:00
Ged Murphy
fb050d7eb5 quick build fix
Code needs fixing (and formatting) correctly.

svn path=/trunk/; revision=23291
2006-07-25 20:02:26 +00:00
Alex Ionescu
a9183e6f8f - Hack FPU handler. 2nd stage installation now works if you had a crash, as well as any other crash where your trace indidicated one of the following: "CoordLpToDP", "KiHandleFpuFault".
svn path=/trunk/; revision=23290
2006-07-25 19:49:53 +00:00
Magnus Olsen
b1961cb16c Move some stuff from createsurface to startup.c
Bugfix some other stuff

svn path=/trunk/; revision=23289
2006-07-25 19:20:49 +00:00
Magnus Olsen
4ca3d3c07b rewrote Main_DDrawSurface_AddAttachedSurface lite so we are using Gdientry DdattachSurface and using wine attach code.
to keep Hal compatible. 
 

svn path=/trunk/; revision=23288
2006-07-25 17:31:07 +00:00
Magnus Olsen
21f9a961c8 Implement Main_DDrawSurface_EnumAttachedSurfaces after wine desgin of it
we need rewrite Createsurface and Implement AttahedSurface 
Thanks to wine code and some wine devloper to expain how it works

I got one more directx sdk sample working parlty with this change. 


svn path=/trunk/; revision=23287
2006-07-25 16:57:57 +00:00
Magnus Olsen
0b21a745a5 fixing bsod in GetAttachSurface when pointer is NULL
svn path=/trunk/; revision=23286
2006-07-25 16:04:10 +00:00
Maarten Bosma
2e4a553ff9 Also committed the red leds because they are way better readable.
svn path=/trunk/; revision=23285
2006-07-25 14:59:13 +00:00
Maarten Bosma
cb544d38c3 Apal (Bug 1632): "I tested winemine but I really didn't enjoy the color combination, so I decided to change it a little bit so as to appear more like classic Windows' minesweeper!"
svn path=/trunk/; revision=23284
2006-07-25 14:43:00 +00:00
Magnus Olsen
3fadd1de23 Implement Main_DDrawSurface_GetAttachedSurface after wine desgin of it
we need rewrite Createsurface and Implement AttahedSurface 
Thanks to wine code and some wine devloper to expain how it works

svn path=/trunk/; revision=23283
2006-07-25 12:21:00 +00:00
Magnus Olsen
c9bdabd39c patch from LMH1 : Bug#: 1678 : Norwegian translation
svn path=/trunk/; revision=23282
2006-07-25 09:02:45 +00:00
Magnus Olsen
23904d50da patch from LMH1 : Bug#: 1677 : Norwegian translation
svn path=/trunk/; revision=23281
2006-07-25 08:57:37 +00:00
Magnus Olsen
174722893e patch from LMH1 : Bug#: 1676 : Norwegian translation
svn path=/trunk/; revision=23280
2006-07-25 08:41:07 +00:00
Johannes Anderwald
2a6b31d0e7 Ukraianian translation by Temarez
svn path=/trunk/; revision=23279
2006-07-25 07:12:28 +00:00
Johannes Anderwald
667ed9aa18 Ukraianian translation by Temarez
svn path=/trunk/; revision=23278
2006-07-25 07:10:14 +00:00
Johannes Anderwald
0c45200a84 Ukraianian translation by Temarez
svn path=/trunk/; revision=23277
2006-07-25 07:06:38 +00:00
Johannes Anderwald
b3d053f7bd Ukraianian translation by Temarez
svn path=/trunk/; revision=23276
2006-07-25 07:03:34 +00:00
Johannes Anderwald
e42675c8e7 Ukraianian translation by Temarez
svn path=/trunk/; revision=23275
2006-07-25 07:02:51 +00:00
James Tabor
b8da24b40b Broken explorer popups with IsBadString, revert string pointer checking. Misc fix to win32k menu and removed byposition flag check and save.
svn path=/trunk/; revision=23274
2006-07-25 00:50:35 +00:00
Magnus Olsen
f1470917fa 1. Cleanup some stuff
2. Fixing the build again
3. Fixing a memory leak.

svn path=/trunk/; revision=23273
2006-07-24 22:02:13 +00:00
Magnus Olsen
6561a4a6b2 Kill more of the old design.
svn path=/trunk/; revision=23272
2006-07-24 21:51:31 +00:00
The Wine Synchronizer
0f10d5736f Alexey Minnekhanov:
- Registry keys are created if they don't exist
 - "Custom colors" are stored in the registry too now (tested to work under Windows XP)
 - Fixed a check during adding of a new wallpaper to the list. Now it will actually deny addition of the same wallpaper image more than once
 - Some TAB -> Spaces fixes

svn path=/trunk/; revision=23271
2006-07-24 21:24:10 +00:00
Magnus Olsen
36b80aa9b3 Kill more of the old design.
svn path=/trunk/; revision=23270
2006-07-24 21:00:01 +00:00
Magnus Olsen
af150158bb Kill more of the old design.
svn path=/trunk/; revision=23269
2006-07-24 19:13:31 +00:00
Magnus Olsen
44cab3a37e Sorry I have create a mess in ddraw.c
1. found why createsurface did stop working, fixed
2. Split some surface member betwin gbl and lcl struct 
3. Reimplement the revert I did, implement Revision: 23263 and Revision: 23262 again
4. Revert new createsurface code and setdisplay mode code that was intrudes 
5. Alot other changes as well. 
6. Todo Need remove the old code for HAL and HEL split. 
7. move Our ddraw working again with apps it did work with.
8. Almost complete kill the file ddraw_hal.c some api is left be kill for at moment they are in use




svn path=/trunk/; revision=23268
2006-07-24 18:29:02 +00:00
Hervé Poussineau
5b0708bb5f Entries in HKLM\SYSTEM\CurrentControlSet\Control\NLS\Locale should be of type REG_SZ, not REG_DWORD
svn path=/trunk/; revision=23267
2006-07-24 16:46:23 +00:00
Magnus Olsen
8a9ccfa7da revert Revision: 23263 and Revision: 23262 something is wrong with them
svn path=/trunk/; revision=23266
2006-07-24 15:37:03 +00:00
Hervé Poussineau
1a11ca877f Don't try to free twice a pointer.
svn path=/trunk/; revision=23264
2006-07-24 12:14:26 +00:00
Magnus Olsen
8f7ebb2923 Kill a ungly hack; I will rewrite it later
svn path=/trunk/; revision=23263
2006-07-24 08:34:18 +00:00
Magnus Olsen
836b9930a0 1. move some member from global DirectDraw struct to Surface struct.
2. Free some memory I forget
3. Move some surface code to startup.c for it is global info. 
4. Cleaning up bit more in ddraw_main.c 

Regress to createsurface for some apps that did work. 
Can not be help at moment. only 1 ms dx sdk 6 directdraw apps work, and DrFred demo apps. 
will fix this regress later. 
 

svn path=/trunk/; revision=23262
2006-07-24 08:31:22 +00:00
Magnus Olsen
a937d122c1 Revert 23251 it causing regress and it is ungly hack
svn path=/trunk/; revision=23261
2006-07-24 06:28:30 +00:00
Alex Ionescu
9b5a87cdac - Fix trace macro to print line number in decimal, not hex.
- Implement PspSetCrossThreadFlag and PspClearCrossThreadFlag and use them. Thanks to Thomas for the idea.
- Fix a bug in Fast Referencing, thanks to Thomas.

svn path=/trunk/; revision=23260
2006-07-23 21:38:31 +00:00
Magnus Olsen
5cfb6a6d48 really small change using DDSURFACEDESC2 instead of DDSURFACEDESC, for these struct basic same but DDSURFACEDESC2 have few more member at end. and it is type casted around DDSURFACEDESC when it pass down. u can found that info in msdn, ddk, sdk
svn path=/trunk/; revision=23259
2006-07-23 20:54:53 +00:00
Magnus Olsen
7b88a669e2 Forget remove ref in rosdraw.h
svn path=/trunk/; revision=23258
2006-07-23 20:39:46 +00:00
Magnus Olsen
414ef85877 1. start Cleaning up ddraw_main.c
2. Implement (not tested) CreatePalette it can use HAL or HEL 
3. change DirectDraw_Addref and DirectDraw_Release using document dwRefCnt in DDRAWI_DIRECTDRAW_LCL
4. change Palette_Addref and Palette_Release using document dwRefCnt in DDRAWI_DDRAWPALETTE_GBL

more cleanup will follow

svn path=/trunk/; revision=23257
2006-07-23 20:38:28 +00:00
Alex Ionescu
251250ad96 - Temporarly disable screensaver code. Sorry greatlord but you're creating 150 realtime threads per minute and killing the system with the code. Please fix it.
- Fix some incorrect tracing macro usage and make it add the current line.
- Re-organize I/O bugs per priority.

svn path=/trunk/; revision=23256
2006-07-23 20:12:45 +00:00
Magnus Olsen
c9ef32aff5 Forget commit some changes
svn path=/trunk/; revision=23255
2006-07-23 19:57:36 +00:00
Alex Ionescu
881a60f895 - Add tracing in process/thread.c as well.
- Add a new tracing class/macro for reference counts and add it in kill/process/thread.c.
- Remove tracing TODO from kernel fun.

svn path=/trunk/; revision=23254
2006-07-23 19:45:16 +00:00
Magnus Olsen
6cf55b644f Patch from w3seek
svn path=/trunk/; revision=23253
2006-07-23 19:14:19 +00:00
Magnus Olsen
92583a9250 1. Implement check for DDCREATE_HARDWAREONLY and DDCREATE_EMULATIONONLY in CreateDraw and CreateDrawEx
2. Implement activate of DDCREATE_HARDWAREONLY and DDCREATE_EMULATIONONLY in StartupDirectDraw
3. Fix correct return value when pUnkOuter is not NULL in CreateDraw and CreateDrawEx

Now we can activate deactive HAL or HEL and use one of thuse interface.

svn path=/trunk/; revision=23252
2006-07-23 19:03:41 +00:00
Johannes Anderwald
bef2c32a89 * use supplied parent window handle when class is of type system
* this is temp hack for getting edit controls with notification windows going
* reduces user32_winetest.exe from 43 to 2 total faults

svn path=/trunk/; revision=23251
2006-07-23 18:12:19 +00:00
Alex Ionescu
e685ced6d0 - Add ObGetObjectSecurity calls like in PspCreateProcess to check the thread's level of access towards itself.
- Add code to handle two more failure (the last, afaics) cases.
- Get rid of 2 kernel fun entries.

svn path=/trunk/; revision=23250
2006-07-23 17:56:57 +00:00
Alex Ionescu
3774a4b259 - Acquire Process lock when touching the thread list entry and incrementing the process' active threads.
- Set the Thread Create Time on creation, I had forgotten this!
- Handle failures for thread-safety/race conditions. If the process was deleted or the thread terminated behind our back, then go through a manual un-initalization code path.
- Just like previous process patch, add code to now create an access state with SeCreateAccessStateEx.
- Handle failure of ObInsertObject.

svn path=/trunk/; revision=23249
2006-07-23 17:45:30 +00:00
Alex Ionescu
78ffb6aecc - Make use of PsChangeQuantumTable on system startup to setup the raw priority separation.
- Call PspComputeQuantumAndPriority in PspCreateProcess to calculate process base priority and quantum for child threads.
- Add security code to calculate process's access rights to itself, as documented in WI II.

svn path=/trunk/; revision=23248
2006-07-23 17:01:43 +00:00
Magnus Olsen
b1bc28f878 1. Remove more dead code after all commit
2. Move Cleanup code to own file.

svn path=/trunk/; revision=23247
2006-07-23 15:37:57 +00:00
Magnus Olsen
a845d3f67d Implement HELDdSetmode
1. it is hacked, this small hack need be rewriten later. 
   But lest we got back same compatible we had with our ddraw.dll
   in windows. 

svn path=/trunk/; revision=23246
2006-07-23 15:09:06 +00:00
Magnus Olsen
5bd92faae5 Remove alot HAL and HEL split and make the split into startup.c instead.
it will save us the time to write same code twice. and it is extream 
easy to adding HEL api. U can look at ddk and sdk how Dd* api works
and write then proper HEL for it. 

1. I have break the HEL version of set display for we need it follow DdSetMode 
   and no code have been rewriten for it yet.


 

svn path=/trunk/; revision=23245
2006-07-23 13:13:07 +00:00
Eric Kohl
534e2e28c0 Implement CM_Get_Log_Conf_Priority[_Ex] and add PNP_GetLogConfPriority stub.
svn path=/trunk/; revision=23242
2006-07-23 10:35:27 +00:00
Magnus Olsen
c1ecf8175e Now is the move of all startup code complete.
Starting redesign it. and alot of files will be delete

svn path=/trunk/; revision=23241
2006-07-23 10:21:30 +00:00
Magnus Olsen
bbc166ce1d move more code into startup.c
svn path=/trunk/; revision=23240
2006-07-23 10:12:08 +00:00
Johannes Anderwald
11459c8cc4 * add ukrainian translation by Temarez
* fixes bug 1706

svn path=/trunk/; revision=23239
2006-07-23 09:59:30 +00:00
Magnus Olsen
a3842a1f4e Start cleaing up DDraw.dll I start moving all startup code for HAL and HEL to startup.c. It will kill alot of files and code
and we can adodate our ddraw to wine ddraw design, at end. 

svn path=/trunk/; revision=23238
2006-07-23 09:57:15 +00:00
Johannes Anderwald
ca4d6063a2 * add automatic powrprof diff for winesync
svn path=/trunk/; revision=23237
2006-07-23 09:56:59 +00:00
Alex Ionescu
1223ca9cab - Refactor SeCaptureSubjectContext into SeCaptureSubjectContextEx and SeCreateAccessState into SeCreateAccessStateEx. The *Ex routines allow specifying a custom process/thread which isn't the current one. This is useful when creating a new process or thread since we're not actually in it.
- Implemented a bit more security calls in PspCreateProcess as seen in WI II. We now create an AccessState.
- Also write the PID in the ObjectTable.

svn path=/trunk/; revision=23236
2006-07-23 08:20:57 +00:00
Alex Ionescu
a92eec4397 - SeAccessCheck should assume failure if no SD was passed. Also fixes bugcheck on startup since processes don't currently have SDs.
svn path=/trunk/; revision=23235
2006-07-23 07:24:20 +00:00
Alex Ionescu
a818a86bf9 - Fixup PSTRACE to print much nicer output and actually work.
- Add tracing for security.c and kill.c.

svn path=/trunk/; revision=23234
2006-07-23 07:13:19 +00:00
Alex Ionescu
90ea51a96b - ImperstionationLocale -> ImpersonationLocale.
- Implement PspWriteTebImpersonationInfo for setting the impersonation locale and impersonation status in the TEB (since User-mode needs to read this value and we don't want to NtQueryInformationThread for it each time to read the ETHERAD flag).
- Complete the implementation of PspSetPrimaryToken to recalculate a process's access rights to itself based on a new primary token.
- Reorganize ps.h header like ob.h and io.h, implement Tracing support but not the tracing itself yet.
- Get rid of some deprecated cruft.

svn path=/trunk/; revision=23233
2006-07-23 05:43:28 +00:00
Alex Ionescu
04e0d8c7bf [AUDIT] - The entire /kd directory is clear. We do not implement any Kd support in ReactOS, and I very much doubt someone implemented GDB or BOCHS support based reverse-engineering NT since NT happens not to have a GDB/BOCHS stub built-in (what a surprise!).
svn path=/trunk/; revision=23232
2006-07-23 05:43:00 +00:00
Alex Ionescu
59c6a927a2 - CT_ACTIVE_IMPERSTIONATION_INFO_BIT -> CT_ACTIVE_IMPERSONATION_INFO_BIT
- Added Process and Thread locking inlined functions for Ps Security functions.
- Thread safety is your friend! Huge rework of almost all the functions in ps/security.c to use the process/thread pushlocks and use interlocked operations when dealing with the ActiveImpersonationInfo thread flag.
- Added PAGED_CODE().
- Added checks for Processes with Jobs for the day that will happen.
- PsAssignImpersoonationToken with a NULL token handle means simply to revert to self.
- Don't ignore the HandleAttributes in NtOpenProcessTokenEx.
- Use SeTokenType to make sure the token passed is an impersonation token.
- Remove some fixed bugs in krnlfun.c, add more TODOs.

svn path=/trunk/; revision=23231
2006-07-22 22:57:42 +00:00
Klemens Friedl
0cc0655c20 Add software patent setting to build config template.
Implement the setting in freetype2 (rbuild file).

svn path=/trunk/; revision=23230
2006-07-22 19:38:18 +00:00
Alex Ionescu
7af4849812 - Implement KiRecalculateDueTime to handle cases where a timeout wait has been interupted by an APC or alerted, and it needs to be recalculated in the relative case. (This fixes the "contact alex" bugcheck).
svn path=/trunk/; revision=23229
2006-07-22 17:19:09 +00:00
Brandon Turner
d310e2ae8c Fix typo.
svn path=/trunk/; revision=23228
2006-07-22 17:03:00 +00:00
Brandon Turner
25b81049eb Partially implement:
NtUserCallHwndOpt
NtUserGetThreadState
Implement
GetProgmanWindow
GetTaskmanWindow
This is (kinda)part of bug 1668

svn path=/trunk/; revision=23227
2006-07-22 16:50:23 +00:00
Alex Ionescu
db04986dce - Give winlogon SE_ASSIGNPRIMARYTOKEN_PRIVILEGE because it was lacking it and would fail under this kernel patch.
- PspAssignPrimaryToken was good enough for actually *assigning* the token, but when NtSetInfoProcess is called with ProcessPrimaryToken, we want to do a lot more then just randomly assigning it. Added PspSetPrimaryToken which first verifies if the token being assigned is a child token and if not, checks for SeAssignPrimaryTokenPrivilege. Also added a fixme for more code that's needed, to actually re-calculate the process's granted access towards itself. Also added thread-safety.

svn path=/trunk/; revision=23226
2006-07-22 16:03:12 +00:00
Eric Kohl
e553dd4145 Implement CM_Get_Next_Log_Conf[_Ex] and add PNP_GetNextLogConf stub.
svn path=/trunk/; revision=23225
2006-07-22 14:45:14 +00:00
James Tabor
7f907bd0ac Fix for TrackMouseEvent by Dmitry Timoshkov, wine port.
svn path=/trunk/; revision=23224
2006-07-22 07:04:44 +00:00
Brandon Turner
1c87e124a6 you can thank me later jim ;)
svn path=/trunk/; revision=23223
2006-07-22 05:50:06 +00:00
James Tabor
db1b46702a Put back revision 23192
svn path=/trunk/; revision=23222
2006-07-22 05:37:33 +00:00
James Tabor
07b6ddc2b6 -Part 1
-Win32k and User32
  - Menu.c: Made set menu items selective masking. Setting masks fixed the garbage going into the item structure. Now right justify menu bar works. There are some more cosmetic issues left to do. I have those ready next week or so. Running wine menu test fail due to exception in kernel32 IsBadStringPtrA&W isbad.c. Funny? Does PSEH work in user mode? The string test is needed. Misc fixed, some restructuring and Wine ports. Please let me know if it breaks something.

svn path=/trunk/; revision=23221
2006-07-22 05:28:44 +00:00
Brandon Turner
4a6251c297 Revert my backspace patch from before. I found a better way to handle backspaces which doesnt break backspacing in ftp.exe(and some of apps) while still fixing ncftp.exe.
svn path=/trunk/; revision=23220
2006-07-22 05:16:26 +00:00
Hervé Poussineau
c1d9e2bb6c Get rid of TCHAR variables. Use WCHAR instead.
svn path=/trunk/; revision=23219
2006-07-21 22:15:21 +00:00
Brandon Turner
a6bd824e02 Fix the horribly broken SetProgramWindow implementation
svn path=/trunk/; revision=23218
2006-07-21 21:11:46 +00:00
Alex Ionescu
da390966cc - Add bugcheck CRITICAL_OBJECT_TERMINATED
- Implement PspCatchCriticalBreak and fix the 5 or so FIXMEs that depended on it.

svn path=/trunk/; revision=23216
2006-07-21 19:59:16 +00:00
Hervé Poussineau
4dfbe6ea8c Add a hack to be able to use serial mice again (IRP_MJ_CLOSE is not set after IoGetDeviceObjectPointer() + ObDereferenceObject())
svn path=/trunk/; revision=23215
2006-07-21 19:49:32 +00:00
Alex Ionescu
2f2139d851 - Implement Kernel, Memory Manager and Process Manager APIs for the following concepts (not yet used):
- Process Quantum.
  - Fixed and Variable Quantum Tables.
  - Long and Short Quantum Variability.
  - Priority Separation and Separation Masks.
  - Foreground Quantum Table.
  - Process Priority, Priority Modes and Priority Classes.
  - Virtual Memory Priority
  - Job Scheduling Classes
- Implement PsSetProcessPriorityByClass.

svn path=/trunk/; revision=23214
2006-07-21 19:28:38 +00:00
Hervé Poussineau
3ea8db48b1 Fix regression introduced in r23174, which prevented autochk to work
svn path=/trunk/; revision=23212
2006-07-21 19:00:28 +00:00
The Wine Synchronizer
9924c52e90 Autosyncing with Wine HEAD
svn path=/trunk/; revision=23211
2006-07-21 13:07:57 +00:00
The Wine Synchronizer
fb4c0e59ed Autosyncing with Wine HEAD
svn path=/trunk/; revision=23210
2006-07-21 13:07:51 +00:00
The Wine Synchronizer
6c0bd6bc60 Autosyncing with Wine HEAD
svn path=/trunk/; revision=23209
2006-07-21 13:05:13 +00:00
The Wine Synchronizer
d2f18185df Autosyncing with Wine HEAD
svn path=/trunk/; revision=23208
2006-07-21 13:05:07 +00:00
The Wine Synchronizer
9046d40509 Autosyncing with Wine HEAD
svn path=/trunk/; revision=23207
2006-07-21 13:05:00 +00:00
The Wine Synchronizer
5a5dc9a1c4 Autosyncing with Wine HEAD
svn path=/trunk/; revision=23206
2006-07-21 13:04:55 +00:00
The Wine Synchronizer
e1450f1b74 Autosyncing with Wine HEAD
svn path=/trunk/; revision=23205
2006-07-21 13:04:49 +00:00
Aleksey Bragin
c280f26aa5 Update autosyncing status of Wine-shared DLLs
svn path=/trunk/; revision=23204
2006-07-21 12:49:46 +00:00
The Wine Synchronizer
b82b5be98b Autosyncing with Wine HEAD
svn path=/trunk/; revision=23203
2006-07-21 11:30:20 +00:00
The Wine Synchronizer
4a1626a594 Autosyncing with Wine HEAD
svn path=/trunk/; revision=23202
2006-07-21 11:20:23 +00:00
The Wine Synchronizer
fb9067d427 Autosyncing with Wine HEAD
svn path=/trunk/; revision=23201
2006-07-21 11:13:18 +00:00
Magnus Olsen
74739f95d9 patch from LMH1 : Bug#: 1675 : Norwegian translation
svn path=/trunk/; revision=23200
2006-07-21 10:23:55 +00:00
Alex Ionescu
0355e26a86 - Use safe referencing.
- Fix a bug in PsGetNextProcess(Thread) since we now use safe referencing and the lookup loop can continue.

svn path=/trunk/; revision=23199
2006-07-20 18:47:35 +00:00
Alex Ionescu
5da6c3508f - Refactor NtSuspend/ResumeThread into PsSuspend/ResumeThread.
- Implement NtSuspend/ResumeProcess with PsSuspend/ResumeProcess.
- Improve the previous code to use rundown protection and be thread-safe.

svn path=/trunk/; revision=23198
2006-07-20 18:29:54 +00:00
Alex Ionescu
e9600e4c9c - Add Pushlock support for GCC (Thanks Thomas!)
- Remove a bunch of deprecated crap from ps.h
- Get rid of PsLockProcess, PsUnlockProcess. Use the process pushlock instead.
- When assigning the job, only acquiring rundown protection is enough.
- Use interlocked intrinsics for setting the ExceptionPort instead of locking the entire process object.
- Disable locking in ProcessSessionInformation for NtSetInformationProcess. The whole API seems wrong anyway, on my XP machine calling it does not change the session or change any token data. To verify later...

svn path=/trunk/; revision=23197
2006-07-20 17:44:30 +00:00
Michele Cicciotti
82aa6e1250 Too many changes to list here! just see screenshot: http://img352.imageshack.us/my.php?image=socloseta2.png (not pictured: artifacts due to sometimes-broken handling of window region refreshing)
The graphics, mouse and keyboard are virtually done. Mouse wheel works. Still some bugs in the handling of binary raster operation codes, but less than before. Fixed polyline. Fixed all cursor issues. Fully supports text output. Fixed a resource leak where all clipping region were slowly leaked. Now closes cleanly on server disconnect

Moving on to more fun things!

Many thanks to filip & WaxDragon for the code of the previous Win32 port, it was misleading at times but very useful overall!

svn path=/trunk/; revision=23196
2006-07-20 17:11:00 +00:00
Alex Ionescu
40a3a52a7b - Add some final missing annotations to kill.c
[AUDIT]
 - Most of the functions are documented at length in Windows Internals II and at a more high-level fashion in Windows Internals 4 and were based on that information. Undocumented routines were based of the operations done in the documented ones (for example, freeing buffers that we know were allocated, etc).

svn path=/trunk/; revision=23195
2006-07-20 16:30:07 +00:00
Alex Ionescu
a92681004e - Move a bunch of externs to ps.h and delete many dupped/tripped ones.
- Change FAST_MUTEX PsActiveProcessMutex to KGUARDED_MUTEX.
- Define PS Flags and use them, isntead of magic numbers. (For magic mushrooms, you'll have to wait a while, these aren't implemented yet).

svn path=/trunk/; revision=23194
2006-07-20 16:26:10 +00:00
Alex Ionescu
a74eda7fe8 - Fix Win32K thread rundown bug, fixes shutdown crash and other bugchecks where some ASSERT(Class->windows) wasn't 0.
- Close the right debug handle instead of some random value.
- Some generic formatting cleanup.

svn path=/trunk/; revision=23193
2006-07-20 15:46:10 +00:00
Alex Ionescu
502215cb1c - Simplify PsGetNextProcess so it works like PsGetNextProcessThread.
- Reformat and annotate parts of process.c
- Remove PsGetWin32Process, PsGetWin32Thread and implement/export the real functions PsGetCurrentProcessWin32Process, PsGetCurrentThreadWin32Thread, change win32k to use them.
- Initailize and use process rundown.
- Set corrent GrantedAccess.
- Remove an extra incorrect reference we were adding to processes.
- Implement PsIsProcessBeingDebugged.
- Make the same changes to NtOpenProcess that we did previously to NtOpenThread.

svn path=/trunk/; revision=23192
2006-07-20 14:53:47 +00:00
Aleksey Bragin
18726a1fac Spaces -> TABs, no contents change
svn path=/trunk/; revision=23191
2006-07-20 09:32:50 +00:00
Magnus Olsen
e0377113db start spliting up my code. I been writing
1. DD_CALLBACKS code writen by me have been move to dd.c 

2. follow DD_CALLBACKS api is working as they should 
   NtGdiDdWaitForVerticalBlank, NtGdiDdCanCreateSurface, NtGdiDdGetScanLine

3. follow api does not working as it should, is it gdi32 problem or win32k problem for it ?
   NtGdiDdCreateSurface

4. Start rewriten surf callback and cleanup some code 
   alot wrong with them.

5. start moving surface callback to ddsurf.c 
 

 

svn path=/trunk/; revision=23189
2006-07-20 07:23:21 +00:00
Hervé Poussineau
7b45b10011 Rename twain32.rbuild to twain_32.rbuild
svn path=/trunk/; revision=23188
2006-07-20 07:09:20 +00:00
Hervé Poussineau
85a4e7f1ba Delete now useless twain directory
svn path=/trunk/; revision=23186
2006-07-20 06:38:33 +00:00
Hervé Poussineau
a5440df642 Forgot to commit this file with previous commit ;)
svn path=/trunk/; revision=23185
2006-07-20 06:27:35 +00:00
Hervé Poussineau
19dabc7661 Copy twain directory to twain_32
svn path=/trunk/; revision=23184
2006-07-20 06:26:09 +00:00
Filip Navara
602677e8f5 Fix a bug in RtlMultiByteToUnicodeSize. Credits belong to whoever debugged it.
svn path=/trunk/; revision=23183
2006-07-20 06:25:51 +00:00
Hervé Poussineau
2c1a305f03 Rename twain32.rbuild to twain_32.rbuild
svn path=/trunk/; revision=23182
2006-07-20 06:15:24 +00:00
Alex Ionescu
50f095a47e - Fix for bug 1703. reported by gkrupa.
svn path=/trunk/; revision=23181
2006-07-20 05:39:40 +00:00
Alex Ionescu
d4cceffe59 [AUDIT]
- 90% of the functions in this file are 1 line functions which set or get a value from ETHREAD.
 - The other 4 functions are related to User and System Thread Startup APCs, which are documented in gruesome detail and pseudo-code in Windows Internals 4 and Windows Internals II, as well as the main Thread Creation routine (PspCreateThread) which is one of the most well documented internal routines of NT. Code was developped in conjuction with WI4 and WI II.

svn path=/trunk/; revision=23180
2006-07-20 05:37:12 +00:00
Alex Ionescu
ed65a3293e - Move ExGetPreviousMode to \ex, it's not a Ps function
- Organize thread.c into private/public functions properly.
- Do another pass of formatting fixes and function annotation.
- Fix a bug in PspSystemStartup.
- Properly hold object references towards a thread that's being created.
- Set the Thread->GrantedAccess value.
- Update NtOpenThread to use an Access State since these work now and Ob respects them, and also add a special hack present on NT: If the SeDEbugPrivilege is present, then the caller will get full thread access regardless of his rights.

svn path=/trunk/; revision=23179
2006-07-20 05:33:03 +00:00
Alex Ionescu
88aac74efb - More kernel fun.
svn path=/trunk/; revision=23178
2006-07-20 03:10:32 +00:00
Alex Ionescu
9bd4990de5 [AUDIT]
- PspGetImagePath: internal to ROS and reads the image path pretty differently from how NT does it.
 - NtQuery/Set functions: although huge in size, they are just a set of 2-10 line sub-functions which only transfer data from EPROCESS into a usermode structure or vice-versa. Fully documented in Nebett's book, and we have many test cases in the tree which show their clean implementation.
 - Also, our nice automatgic buffer validation and size checks are 100% Thomas's genius and not used in NT at all.
 - Thus, file is clean.

svn path=/trunk/; revision=23177
2006-07-20 03:09:40 +00:00
Alex Ionescu
6e8d8b5e84 - Formatting cleanup and optimizations to NtSetInformationProcess.
svn path=/trunk/; revision=23176
2006-07-20 03:05:46 +00:00
Alex Ionescu
2278c2914f - Major formatting cleanup and optimizations to NtQueryInformationProcess so that it does not burn the eyes of anyone that might attempt to read it.
svn path=/trunk/; revision=23175
2006-07-20 00:13:09 +00:00
Alex Ionescu
69995705e9 - Cleanup the mess in query.c by reformatting the code to remove tab/space confusion and 2-space identation.
- Removed the InfoClass tables and got rid of the thread semi-infoclass table. Created a real InfoClass stub table for thread information
- Moved info class tables to a new header, ps_i.h
- Simplified syntax of info class macros so that sizeof() is done automatically for the type/alignment.
- Reformatted the tables completely to present them in a plesing, ordered, readable fashion.
- Added some missing info classes.
- Added ARRAYSIZE, RTL_NUMBER_OF(V1/V2) and used them in the info code.
- *TEMPORARILY* disable NtQuery/SetThreadInformation until next patch when it can be made to work.

svn path=/trunk/; revision=23174
2006-07-19 23:21:19 +00:00
Aleksey Bragin
d78c254a8d Revert 23170, since these registry keys should not be mandatory (simple test case: delete this registry entry in Windows XP using regedit, open desk.cpl, choose your params, click apply - all registry entries will be re-created).
Fix for reactos desk.cpl will follow.

svn path=/trunk/; revision=23173
2006-07-19 19:43:55 +00:00
Maarten Bosma
6eca31ac9d - Use clipper so we can use a normal instead of a popup window
- Fix my old coding style and get rid of main.h
- Change he color to pink for alternation

svn path=/trunk/; revision=23172
2006-07-19 10:30:30 +00:00
Aleksey Bragin
d1ecea1424 Alexey Minnekhanov (minlexx@rambler.ru):
- Implement setting of desktop background color. This feature is tested to work in Windows XP, however in ReactOS the setting currently does no effect.
- Improve russian translation, also check and fix layout/placement (so that russian words actually fit)

svn path=/trunk/; revision=23171
2006-07-19 08:45:21 +00:00
Aleksey Bragin
85f58646b3 Add HKCU\Control Panel\Colors\Background key for storing desktop background color (Windows XP stores it in this key)
svn path=/trunk/; revision=23170
2006-07-19 08:40:38 +00:00
James Tabor
bf0906f9ed User32 Implement MenuTrackKbdMenuBar, it does work but, alt f works but hit alt again goes into a message loop. So hit alt f than esc esc. If hit alt f than alt v or something else the popup menu stays displayed until the program has terminated.
svn path=/trunk/; revision=23169
2006-07-19 07:10:56 +00:00
Magnus Olsen
ed119adcef hacking NtGdiDdResetVisrgn so it lest say clip have not change. for now
svn path=/trunk/; revision=23168
2006-07-19 02:14:26 +00:00
Magnus Olsen
64918dadb2 more source cleanup
svn path=/trunk/; revision=23167
2006-07-19 02:03:22 +00:00
Magnus Olsen
342b9f2cdb small cleanup of the code in this file.
and alot of callbacks working as they should if a drv support it.

svn path=/trunk/; revision=23166
2006-07-19 01:49:55 +00:00
Magnus Olsen
0353857608 Complete NtGdiDdQueryDirectDrawObject now we support all 3d callbacks.
svn path=/trunk/; revision=23165
2006-07-19 01:40:06 +00:00
Magnus Olsen
f2f19d2e9a cleanup NtGdiDdCreateSurface
we can now create a surface from DdCreateSurface. 

svn path=/trunk/; revision=23164
2006-07-19 00:41:18 +00:00
Magnus Olsen
5483a9b9dc Fixing small bug in DdCreateSurface
svn path=/trunk/; revision=23163
2006-07-19 00:39:03 +00:00
Magnus Olsen
fdcc54dc69 framebuf
Implement DdCreateSurface not tested. 
Bugfix the prototyped. 

svn path=/trunk/; revision=23162
2006-07-18 23:56:48 +00:00
Aleksey Bragin
d457403caf Add traceprints, and temporarily comment out NDEBUG
svn path=/trunk/; revision=23161
2006-07-18 19:06:30 +00:00
Magnus Olsen
8fdd3538a9 rewrote NtGdiDdQueryDirectDrawObject for I must have been drunk when I wrote it frist time.
Now we manger getting gdientry2 working more or less here is a log how far I have come 
I have not implement create surface for the drv yet. But it showing lest how far dxhaltest
comes. as u all can see it is not far before we getting dx hal working out of the box from
win32k and gdi32. I will thank all people that have been invlove in this, DrFred to helping debug betwin ddraw.dll gdi32.dll 
with his sniffer apps, Alex for GdiEntry2, and some other help, W3seek, Filip, GvG help me to understand how our win32k how it works
and some other info. to make so far posible, it is now posible to load a graphic driver directx hal support in ros. But I do not known how well it works yet, after it is the frist public version that working so far.  
 
ddraw.c:60) NtGdiDdCreateDirectDrawObject
ddraw.c:140) DirectDraw return handler 0x3b6001e4
ddraw.c:170) NtGdiDdQueryDirectDrawObject
ddraw.c:247) Found DirectDraw CallBack for 2D and 3D Hal
ddraw.c:170) NtGdiDdQueryDirectDrawObject
ddraw.c:247) Found DirectDraw CallBack for 2D and 3D Hal
ddraw.c:432) NtGdiDdCanCreateSurface
ddraw.c:348) NtGdiDdCreateSurface

svn path=/trunk/; revision=23160
2006-07-18 19:04:41 +00:00
Magnus Olsen
b1863c2944 DrvGetDirectDrawInfo
fixing a bug I did set halinfo to wrong size

svn path=/trunk/; revision=23159
2006-07-18 18:55:11 +00:00
James Tabor
83ef67c550 Little patch, help distinguish between Bitmap and Text drawing or do both. dwTypeData is a pointer going to the user not the true text pointer of the menu item and should not be used for checking if menu item has text.
svn path=/trunk/; revision=23158
2006-07-18 17:29:34 +00:00
Aleksey Bragin
8c7446addd Add two more test cases into ex timer testing
svn path=/trunk/; revision=23157
2006-07-18 16:49:11 +00:00
Magnus Olsen
97f449127c pathc from w3seek : bug 1702 : Fix BitScanReverse()
svn path=/trunk/; revision=23156
2006-07-18 16:36:54 +00:00
Magnus Olsen
55b8810a2b setup almost all info it need in DrvGetDirectDrawInfo, left todo is the rop table.
and debugging see if everything went right. it is eunght for me continue on next 
step in debugging  

svn path=/trunk/; revision=23155
2006-07-18 15:57:42 +00:00
Hervé Poussineau
353c1f9a6e Disable a few more warnings when using pshpackX.h/poppack.h
svn path=/trunk/; revision=23154
2006-07-18 15:50:13 +00:00
Hervé Poussineau
3dd1713e53 Fix headers, so MSVC can use them
svn path=/trunk/; revision=23153
2006-07-18 15:30:22 +00:00
Alex Ionescu
3d6bddb98f [AUDIT] security.c is mostly composed of trivial implementations of APIs that transfer one set of data from another, or simply wrap around complex Se* functions which do the actual work. There are one or two slightly more complex APIs (~15-20 lines), but they were written by Eric/Thomas, which are well-known for always writing clean code.
[FORMATTING] Re-formatted file properly, ordered functions and annotated them, added proper programmer credits, etc.
- Pushlocks need to be acquired in a -critical-, not -guarded- region.
- PsDisableImpersonation should return FALSE if it was already disbled.
- Don't forget to reference the token in PsReferenceEffectiveToken.
- PsImpersonateClient should still return success if it was given no token.
- PsImperstonateClient should de-reference the token if there is already active impersonation info.

svn path=/trunk/; revision=23152
2006-07-18 15:13:55 +00:00
Johannes Anderwald
fff24ee1dd add mouse properties registry keys
svn path=/trunk/; revision=23151
2006-07-18 14:48:53 +00:00
Hervé Poussineau
930a4d2351 Fix warnings detected by MSVC
svn path=/trunk/; revision=23150
2006-07-18 14:41:55 +00:00
Hervé Poussineau
b37ee32a56 Fix some 'unreferenced variable' warnings
svn path=/trunk/; revision=23149
2006-07-18 14:40:55 +00:00
Hervé Poussineau
999b44ccf2 Fix some 'unreferenced variable' warnings
svn path=/trunk/; revision=23148
2006-07-18 14:39:37 +00:00
Hervé Poussineau
c05ceaf190 Fix wrong library names in export files
svn path=/trunk/; revision=23147
2006-07-18 14:38:35 +00:00
Alex Ionescu
9170a29ef7 [AUDIT] - State.c is clean, it is merely a collection of trivial ~10 line wrappers around the actual kernel (Ke) functions which do the work.
- Rename suspend.c to state.c (since it also had resume APIs) and add alert APIs from kthread to it too.
- Fix a bug in one of the alert APIs which was probing for a valid pointer even if the caller had given NULL (which is valid if the caller doesn't want the previous state returned).

svn path=/trunk/; revision=23146
2006-07-18 14:34:06 +00:00
Hervé Poussineau
d9f7a999cf Fix some 'unreferenced variable' warnings
svn path=/trunk/; revision=23145
2006-07-18 13:56:00 +00:00
Hervé Poussineau
1a781d5bf4 Fix a warning (unused variable)
svn path=/trunk/; revision=23144
2006-07-18 13:55:22 +00:00
Johannes Anderwald
72301905a6 * check parameters
svn path=/trunk/; revision=23143
2006-07-18 13:45:37 +00:00
Johannes Anderwald
78bc2ae282 * check parameters in CreateAcceleratorTableA/W and DestroyAcceleratorTable
svn path=/trunk/; revision=23142
2006-07-18 13:44:39 +00:00
Magnus Olsen
adbc8e954a fill the DDHALINFO almost to 100% now, we are mising the rops table.
Almost all info that need be send back for frist call is done, 

svn path=/trunk/; revision=23141
2006-07-18 13:23:38 +00:00
Saveliy Tretiakov
a55aa2f49f Revert 21223 (was not good idea...)
svn path=/trunk/; revision=23140
2006-07-18 13:14:12 +00:00
Saveliy Tretiakov
5f77e6ae34 Add Andrew Munger (waxdragon) to credits.
svn path=/trunk/; revision=23139
2006-07-18 12:33:30 +00:00
Saveliy Tretiakov
ba51348c89 Add missing return value checks. Finally fix bug #1526
svn path=/trunk/; revision=23138
2006-07-18 12:19:07 +00:00
Saveliy Tretiakov
6a97df1eec Testapps for NtUserDrawCaption. (I sent the patch to ros-dev for review)
svn path=/trunk/; revision=23137
2006-07-18 11:59:22 +00:00
Hervé Poussineau
f0e080241f Correctly return information to caller
svn path=/trunk/; revision=23136
2006-07-18 11:55:40 +00:00
Saveliy Tretiakov
073eaa0b04 Make guiconsole window movable and respond to minimize and close buttons (regression caused by r22822)
svn path=/trunk/; revision=23135
2006-07-18 11:45:28 +00:00
Magnus Olsen
380d90d8a1 adding NULL pointer check for ppdev, pHalInfo, pdwNumHeaps, pdwNumFourCCCodes
fill in more info for DDHALINFO it is not complete yet.

svn path=/trunk/; revision=23134
2006-07-18 08:54:32 +00:00
Alex Ionescu
6cf95d5263 - Move ps/locale.c to ex/locale.c, since it has nothing to do with Process/Thread management (locale settings are part of the executive).
- Cleanup formatting in the file and add proper credits (Thomas and Eric).
- Create internal Exp* functions for Setting/Getting the user langid, since they need to be called 2, 3 times by other code and thus shared.
- Remove some deprecated code, make the functions themselves initialize the default ID when called for the first time (which should be done by winlogon --> it seems this isn't done yet?).
- Set default locale to 0x409 instead of 0x0.

svn path=/trunk/; revision=23133
2006-07-18 01:58:10 +00:00
Alex Ionescu
26331352ea - Kernel Fun
svn path=/trunk/; revision=23132
2006-07-18 00:51:09 +00:00
Alex Ionescu
a9bcf7b487 [AUDIT] - notify.c contains trivial (3 or 4 lines of code) implementations of adding a pointer to an array, and then looping said array and calling a pointer. Your grandmother could code this.
- Cleanup notify.c and fix the return value of PsSetCreateProcessNotifyRoutine.
- Create ps_x.h for inlined Ps routines and put the internal routines which call the registered callbacks in it.

svn path=/trunk/; revision=23131
2006-07-17 22:18:44 +00:00
Magnus Olsen
65316d9faa start implement DrvGetDirectDrawInfo it is not complete only around 1/3 is done
svn path=/trunk/; revision=23130
2006-07-17 22:14:58 +00:00
Hervé Poussineau
2c59aa9330 - kbdclass/mouclass should be able to return more than one keystroke/mouse move during a IRP_MJ_READ.
- Better cleanup in case of error in ClassAddDevice
- Registering the interface is optional. Don't fail in case of error.

svn path=/trunk/; revision=23129
2006-07-17 22:13:40 +00:00
Johannes Anderwald
de3f42794a * unlink menu object from window object on destroy
svn path=/trunk/; revision=23128
2006-07-17 19:16:30 +00:00
Alex Ionescu
7ddd4aa708 [FORMATTING] - Cleanup win32.c
[AUDIT] - Only function of interest is PsConverToGuiThread, heavily documented at:
http://www.windowsitlibrary.com/Content/356/07/1.html
http://www.osronline.com/lists_archive/ntdev/thread4614.html
http://www.i.u-tokyo.ac.jp/edu/training/ss/lecture/new-documents/Lectures/17-Win32K/Win32K.ppt

svn path=/trunk/; revision=23127
2006-07-17 17:32:58 +00:00
Magnus Olsen
d0ba1357ee more code, from alex patch I got over one year ago, thanks alex for all help and for all code he wrote.
and sorry for the mess at moment in the file. it will be pretty large update to this file, for the patch have been lying on my 
harddisk for some time. 



svn path=/trunk/; revision=23126
2006-07-17 16:27:13 +00:00
Alex Ionescu
e0dbaebab5 - Export Ps(S)GetContextThread
svn path=/trunk/; revision=23125
2006-07-17 14:31:15 +00:00
Alex Ionescu
1ee9504d8d - Factor out NtSet/GetContextThread implementation into PsGet/SetContexThread, new exported kernel APIs available to drivers, and export them.
- If the caller didn't request extended registers, don't probe the full CONTEXT structure.
- Use the proper trap frame in the kernel APC responsible for the context read/write.
- Always go through the APC instead of directly calling the Ke routine.
- Cleanup the code.
[AUDIT] - Mark file as clean. The NT APIs are stubs around the Ps APIs which simply setup an APC and stack context to an APC function that is again, merely a wrapper around the Ke function (which is not in this file).

svn path=/trunk/; revision=23124
2006-07-17 14:30:53 +00:00
Magnus Olsen
e1a8b7eeff patch from LMH1 : Bug#: 1674 : Norwegian translation
svn path=/trunk/; revision=23122
2006-07-17 08:20:16 +00:00
Magnus Olsen
445d240e4b patch from LMH1 : Bug#: 1644 : Norwegian translation
svn path=/trunk/; revision=23121
2006-07-17 08:14:27 +00:00
Magnus Olsen
1cb4e18908 patch from Apal : bug 1429 : greek translation
svn path=/trunk/; revision=23120
2006-07-17 07:53:10 +00:00
Magnus Olsen
7fef6a44ac patch from Apal : bug 1429 : greek translation
svn path=/trunk/; revision=23119
2006-07-17 07:49:42 +00:00
Magnus Olsen
00298de6bc patch from Apal : bug 1429 : greek translation
svn path=/trunk/; revision=23118
2006-07-17 07:38:53 +00:00
Magnus Olsen
5cb7a4f594 patch from Apal : bug 1429 : greek translation
svn path=/trunk/; revision=23117
2006-07-17 07:35:06 +00:00
Magnus Olsen
74bd4ace29 patch from LMH1 : Bug#: 1643 : Norwegian translation
svn path=/trunk/; revision=23116
2006-07-17 07:23:27 +00:00
Magnus Olsen
6924da266a patch from LMH1 : Bug#: 1642 : Norwegian translation
svn path=/trunk/; revision=23115
2006-07-17 07:18:36 +00:00
Alex Ionescu
8db06b0b73 - Fix two small bugs in NtQueryDirectoryObject.
- RDISK Count, Windowstation list enumeration now work on startup.
- Explorer's object viewer now works again.

svn path=/trunk/; revision=23114
2006-07-17 03:49:40 +00:00
Alex Ionescu
0957e22a49 - Finish up implementation of NtQueryDirectoryObject by doing the final conversion.
svn path=/trunk/; revision=23113
2006-07-17 03:24:41 +00:00
Alex Ionescu
96722f7c02 - Fix definition of OBJECT_DIRECTORY_INFORMATION
- Implement most of NtQueryDirectoryObject. It lacks the last step of converting the absolute buffer to a relative one. I have no idea why the old code was re-implemented in a recent commit when I clearly said I would fix this tonight.

svn path=/trunk/; revision=23112
2006-07-17 03:16:15 +00:00
Alex Ionescu
8baa71bb63 - Added another MSVC intrinsic to gcc (BitScanReverse). Thanks to Vampyre.
- Added very basic and skeletal NUMA code when creating a thread and process, currently only does some basic affinity checks and settings.
- Added a table and helper function (KeFindNextRightSetAffinity) for calculating affinity masks and sets.
- Split KeInitailizeThread into KeStartThread and KeInitThread, and modified Ps code to use the calls. Now added a failure case where Init fails, but we don't have to backout the entire effects of a "Start".
- Changes based on WI4 and Windows Internals II.

svn path=/trunk/; revision=23111
2006-07-17 01:40:10 +00:00
Magnus Olsen
7c1513c7eb patch from LMH1 : Bug#: 1641 : Norwegian translation
svn path=/trunk/; revision=23110
2006-07-17 01:15:56 +00:00
Magnus Olsen
2a8df0cc3d patch from LMH1 : Bug#: 1637 : Norwegian translation
svn path=/trunk/; revision=23109
2006-07-17 01:10:56 +00:00
Magnus Olsen
e5278ff085 patch from temarez : Bug#: 1635 : Ukrainian translation update and some new translations
svn path=/trunk/; revision=23108
2006-07-17 00:51:49 +00:00
Magnus Olsen
3774cda832 patch from temarez : Bug#: 1635 : Ukrainian translation update and some new translations
svn path=/trunk/; revision=23107
2006-07-17 00:49:43 +00:00
Magnus Olsen
d96e5ccf7b patch from temarez : Bug#: 1635 : Ukrainian translation update and some new translations
svn path=/trunk/; revision=23106
2006-07-17 00:49:01 +00:00
Magnus Olsen
61883a6c33 patch from temarez : Bug#: 1635 : Ukrainian translation update and some new translations
svn path=/trunk/; revision=23105
2006-07-17 00:48:07 +00:00
Magnus Olsen
1743dd24ee patch from temarez : Bug#: 1635 : Ukrainian translation update and some new translations
svn path=/trunk/; revision=23104
2006-07-17 00:47:19 +00:00
Magnus Olsen
2258ebff5f patch from temarez : Bug#: 1635 : Ukrainian translation update and some new translations
svn path=/trunk/; revision=23103
2006-07-17 00:46:30 +00:00
Magnus Olsen
1ffbaf7d4a patch from temarez : Bug#: 1635 : Ukrainian translation update and some new translations
svn path=/trunk/; revision=23102
2006-07-17 00:45:10 +00:00
Magnus Olsen
539e91e037 patch from temarez : Bug#: 1635 : Ukrainian translation update and some new translations
svn path=/trunk/; revision=23101
2006-07-17 00:42:34 +00:00
Magnus Olsen
69c0fb3bfc patch from : Fork : Bug#: 1633 : Norwegian translation
svn path=/trunk/; revision=23100
2006-07-17 00:36:20 +00:00
Magnus Olsen
5b8262fc5d patch from : Fork : Bug#: 1633 : Norwegian translation
svn path=/trunk/; revision=23099
2006-07-17 00:33:59 +00:00
Magnus Olsen
243cd7fe80 patch from : Fork : Bug#: 1633 : Norwegian translation
svn path=/trunk/; revision=23098
2006-07-17 00:31:16 +00:00
Magnus Olsen
c1bf3efbbe patch from : Fork : Bug#: 1633 : Norwegian translation
svn path=/trunk/; revision=23097
2006-07-17 00:27:59 +00:00
Magnus Olsen
fddc4b77ba patch from Apal : Bug#: 1630 : Greek Translation files for explorer
svn path=/trunk/; revision=23096
2006-07-17 00:04:45 +00:00
Magnus Olsen
85afb97623 more code, from alex patch I got over one year ago, thanks alex for all help and for all code he wrote.
and sorry for the mess at moment in the file. it will be pretty large update to this file, for the patch have been lying on my 
harddisk for some time. 

+ remove dead code same time, almost whole alex big patch are in. 
+ clean up need 
+ Gdientry2 need some bugfix, but lest we got one now. 
+ vbe drv framebuf interface need some more dx hal api before it functions.


svn path=/trunk/; revision=23095
2006-07-16 23:32:57 +00:00
Aleksey Bragin
cb979df177 - Fix "ret 0" to "ret 4" in a fastcall function taking 3 parameters.
- Fix some prototypes in comments, so they correspond to reality

svn path=/trunk/; revision=23094
2006-07-16 21:40:11 +00:00
Hervé Poussineau
e66f23066f Implement NtQueryDirectoryObject, based on code which was deleted in revision 20004
svn path=/trunk/; revision=23093
2006-07-16 21:15:16 +00:00
Magnus Olsen
b4d66b0066 more code, from alex patch I got over one year ago, thanks alex for all help and for all code he wrote.
and sorry for the mess at moment in the file. it will be pretty large update to this file, for the patch have been lying on my 
harddisk for some time. 

1. Cleanup GdiEntry1 and optimze it by alex
    

svn path=/trunk/; revision=23092
2006-07-16 21:10:13 +00:00
Magnus Olsen
63acffc926 more code, from alex patch I got over one year ago, thanks alex for all help and for all code he wrote.
and sorry for the mess at moment in the file. it will be pretty large update to this file, for the patch have been lying on my 
harddisk for some time. 

svn path=/trunk/; revision=23091
2006-07-16 20:35:25 +00:00
Aleksey Bragin
edcb8de7a6 Alexey Minnekhanov: Improve monitor.bmp for desk.cpl
svn path=/trunk/; revision=23090
2006-07-16 20:10:48 +00:00
Aleksey Bragin
359a5de1ec Slightly improve debug prints in IoInvalidateDeviceRelations()
svn path=/trunk/; revision=23089
2006-07-16 20:05:18 +00:00
Magnus Olsen
7601691d1b Start implement code that alex for one year ago, thanks alex for all help and for all code he wrote.
and sorry for the mess at moment in the file. it will be pretty large update to this file, for the patch have been lying on my 
harddisk for some time. 

svn path=/trunk/; revision=23088
2006-07-16 19:03:46 +00:00
Magnus Olsen
3e29a1f5b1 start implement of gdientry2, for moment it return incorrect info. and does not fill some stuff right.
we are return alot of kernel pointer and does not setup alot stuff right, see it as start ground.
I do not want lose this start code again. it will be add in modifcate alot.   

svn path=/trunk/; revision=23087
2006-07-16 18:12:13 +00:00
Aleksey Bragin
3cf55b986d [AUDIT]
fmifs.dll

It is completely clean, because it's only stubs without any code. The only pair of coded functions are trivial "pass-through"/wrappers.

svn path=/trunk/; revision=23086
2006-07-16 17:38:03 +00:00
Alex Ionescu
03d4c9af39 - Added constants for all the ETHREAD flags so when we use Interlocked operations to edit them, a nice symbolic name is there isntead of a magic hex value.
- Fixed a bug in PspUserThreadStartup which was causing us to notify the debugger for system threads or hidden threads, instead of vice-versa.
- Documented cookie generation for Thomas.
- Threads were incorrectly created with KernelMode access instead of PreviousMode.
- Initialize the thread's rundown protection and use the process's.
- Handle failure when TEB = NULL.
- The LPC Semaphore has a limit of 1, not 0x7FFF.

svn path=/trunk/; revision=23085
2006-07-16 17:19:21 +00:00
Hervé Poussineau
72185bb72b [FORMATTING] Replace tabs by spaces
Replace some DPRINT1 by DPRINT

svn path=/trunk/; revision=23084
2006-07-16 17:00:39 +00:00
Ged Murphy
2f8950ce51 {AUDIT]
rossym
ROS specific lib

svn path=/trunk/; revision=23083
2006-07-16 15:32:42 +00:00
Johannes Anderwald
63a3c06ea0 * check return value of RtlDeleteAtomFromAtomTable
* simply, optimize, bugfix UserRegisterClass 
* allow de-registration for system classes
* set ERROR_CLASS_DOES_NOT_EXIST in case of errors
* reduces user32_winetest.exe class errors to 31 failures

svn path=/trunk/; revision=23082
2006-07-16 15:16:55 +00:00
Johannes Anderwald
6a8b5b1b25 * GetClassInfo should return NULL for hInst when hInst is UserHInstance
* fixes one bug found by user32_winetest.exe class.c

svn path=/trunk/; revision=23081
2006-07-16 14:57:34 +00:00
Magnus Olsen
0d759ca707 Framebuf drv
Implement : DdCanCreateSurface
Stub : DdCreateSurface
adding struct ddpfDisplay and dxHalInfo
ddpfDisplay are being filld but not use
dxHalInfo are not fill it is rater large work getting it right 


svn path=/trunk/; revision=23080
2006-07-16 14:54:59 +00:00
Ged Murphy
4b2f6b62b4 add Wine cabinet regression tests
svn path=/trunk/; revision=23079
2006-07-16 14:24:37 +00:00
Aleksey Bragin
61938c2ebc [AUDIT]
- Doxyfile: not a code file at all
- ntdll.h / ntdllp.h: nothing copyrightable or reversengineerable in these files, it's a few functions prototypes only. Thus clean.

svn path=/trunk/; revision=23078
2006-07-16 13:55:11 +00:00
Aleksey Bragin
de67bf2622 [AUDIT]
- setup.c: This is a fully ReactOS-specific code, thus clean

svn path=/trunk/; revision=23077
2006-07-16 13:51:13 +00:00
Aleksey Bragin
e7729711e5 [AUDIT]
- setup.rc / lsass.rc: nothing copyrightable exists in this files
- lsass.c: some partly #if 0...#endif'ed stub. Doesn't implement any functionality, thus clean (and useless probably)
- win32err.c: a small error-printing function taken from Mark Russinovich's chkdskx source code. Contains nothing which could be thought as copyright-infringement, and the function overall is a few lines only

svn path=/trunk/; revision=23076
2006-07-16 13:46:47 +00:00
Johannes Anderwald
a4b70302ef * dont succeed if found Class is local and hInstance is NULL
* set hInstance to input value given when nonzero, zero for global classes and to the actual value of class when its local
* reduces the user32_winetest.exe failures by 20 error to 44

svn path=/trunk/; revision=23075
2006-07-16 12:24:09 +00:00
Eric Kohl
8135ef1f04 Implement CM_Get_First_Log_Conf[_Ex] and add PNP_GetFirstLogConf stub.
svn path=/trunk/; revision=23074
2006-07-16 12:11:26 +00:00
Magnus Olsen
fc29d1edf0 Clean up NtGdiDdCreateDirectDrawObject and confirm it working.
1. Fix create hdc when it is NULL that is need to get ms windows xp d3dx.dll working in ReactOS, if some want try it. 

 

svn path=/trunk/; revision=23073
2006-07-16 12:03:41 +00:00
Magnus Olsen
d16a694b91 Start adding basic directdraw hal 2d interface, so we have a directdraw hal interface to test with, for vmware server does not come with directdraw interface for the the driver. for now everthing is stubed.
svn path=/trunk/; revision=23072
2006-07-16 11:46:30 +00:00
James Tabor
0a02efc6e2 Fix typo
svn path=/trunk/; revision=23071
2006-07-16 01:40:36 +00:00
James Tabor
c1685e75b7 User32: Menu.c I found a small problem with drawing menu popups. This fixes the problem.
svn path=/trunk/; revision=23070
2006-07-16 00:33:50 +00:00
Magnus Olsen
a7dcf72d50 disable the screensaver from bootcd and livecd
reason : qemu and vmware 5.0 / 5.5 is afacted by same bug, it does not reading the timeout value right. 
         I need figout why, it is working in vmware server as it should 

svn path=/trunk/; revision=23069
2006-07-15 23:50:51 +00:00
Magnus Olsen
64e3f510fe Tempary fixing kbdclass and mouse class u can not call on IoDeleteDevice before disabler the keyboard or mouse driver other wise it will bsod at shoutdown of ReactOS, create the frist boot problem. that we have seen on BootCD; Hpoussin I have comment out iodevice for now, please look at it when u got time.
svn path=/trunk/; revision=23068
2006-07-15 20:14:44 +00:00
Alex Ionescu
78874d1548 - Remove some debug prints that are not needed anymore
- NtCurrentTeb now returns the TEB instead of the KCPR, so re-enable the codepath that set the CurrentLocale and IdealProcessor in the TEB from the KTHREAD.

svn path=/trunk/; revision=23067
2006-07-15 20:10:13 +00:00
Magnus Olsen
1af6dae1c1 reverting : patch from w3seek :Bug #: 1669 : Probing macros improvements and fixes
reason    : it break second boot, at when u press on finsh buttom 
            with the mouse or wait until auto rest kick in,
            but we still have one more regress to found for 
            second boot when u leave from vmware at center 
            point the setup will crash (when u toch the keyboard)
            lest the mouse does not cause the bsod any longer.
            I will inform w3seek about it when he comes online

 

svn path=/trunk/; revision=23066
2006-07-15 19:10:07 +00:00
James Tabor
d61db42063 -User32: Fixed GetMenuItemInfoA so it should work closely to spec and reimplemented GetMenuItemInfoW so it should do the same. Added a string flag to GetMenuStringW. Tested with explorer, winefile, VIDE, Lazarus (nochg) and Miranda. Wine menu test 1178 failures now.
svn path=/trunk/; revision=23065
2006-07-15 01:40:10 +00:00
Alex Ionescu
1d5f17dc97 - Add IN/OUT annotations for KeWaitForSIngleObject
- Set the wait block outside the loop, small optimization in case we get alerted by an APC and have to loop again.
- Set the wait block pointer in the KTHREAD structure only *after* checking if a wait is actually needed. That way, if the object is already signaled, we don't set anything in the WaitBlockList.
- Small optimization: only set the caller's WAitBlock as the next wait block if a timer wasn't specificed, else we ended up overwriting the value.
- Small optimziation: don't write the thread in the wait block, this is a wait for a signle object so this isn't needed.

svn path=/trunk/; revision=23063
2006-07-14 21:45:27 +00:00
Aleksey Bragin
7e51a54974 Add tests for Create/Open/Set/Cancel Timer in Executive. Under Win2003 SP1 works perfectly, however ReactOS hangs.
svn path=/trunk/; revision=23062
2006-07-14 21:04:31 +00:00
Magnus Olsen
8c3ad7c90d [AUDLT] This code are clean and written by filip.
svn path=/trunk/; revision=23061
2006-07-14 17:20:21 +00:00
Alex Ionescu
891d788fca - Implement Safe Referencing (an internal method for referencing objects when race conditions are possible)
- Implement two Vista APIs and export them: ObIsKernelHandle and ObDeleteObjectDeferDelete. ZOMG! Vista APIs in the kernel!

svn path=/trunk/; revision=23060
2006-07-14 15:26:19 +00:00
Alex Ionescu
514aa8290f - Fix a serious bug in Kernel Queues. A condition existed where an inserted kernel queue with a timeout would crash the system once the thread waiting on it had its wait aborted or completed.
- Thanks a lot to Thomas for his brutal test application which allowed me to discover this bug and the bugs addressed in the previous commits (related to the wait list and thread scheduler list corruption).

svn path=/trunk/; revision=23057
2006-07-14 02:26:44 +00:00
Alex Ionescu
1f1857f96d - Add KiCheckThreadStackSwap and KiAddThreadToWaitList macros
- Initialize PRCBs' Wait Lists
- Fix a ghastly implementation fault where the the queue code was correctly removing the thread from its wait list, but where this wait list was actually connected to the _SCHEDULER_ and ended up removing a thread behind its back, causing bizarre issues and w3seek's ASSERT(State == Ready) bug. Fixed this by using the macros above and PRCB Wait List and properly inserting a waiting thread into that list, and then removing it when unblocking it or removing a queue.

svn path=/trunk/; revision=23056
2006-07-14 01:03:27 +00:00
Alex Ionescu
8d372c2271 - Fix utterly messed up unblocking/readying thread logic.
- KiUnblockThread becomes KiReadyThread and doesn't perform priority modifications anymore. Also removed a large block of code that was #if 0ed out.
- KiAbortWaitThread now does priority modifications (and better then before), then calls KiReadyThread.
- Inserting a queue now *READIES A THREAD ONLY* instead of removing all its waits!

svn path=/trunk/; revision=23055
2006-07-13 22:52:18 +00:00
Magnus Olsen
eab221b08b Activate screensaver for bootcd
rember fullpath should be c:\reactos\system32\matrix.scr but we use matrix.scr as key path for getting this working on livecd.
But the desk.cpl apps should save full path to it. (and it does it in windows and reactos before ros cm broken it did in ros). 

svn path=/trunk/; revision=23054
2006-07-13 22:42:40 +00:00
Magnus Olsen
85a2492f52 last fix for getting screensaver working on livecd it is rugh hack
svn path=/trunk/; revision=23053
2006-07-13 22:38:30 +00:00
Hervé Poussineau
d0bbf9199b In case of error, free the input data buffer only if we just allocated it.
svn path=/trunk/; revision=23052
2006-07-13 22:20:54 +00:00
Alex Ionescu
19ff9cb593 - More cleanup of wait.c
- Set the right wait status in KiAbortWaitThread.
- Don't ignore priority boost (increments) when aborting waits.
- When satisfying a mutant, insert if into the the head of the back-link, not the forward-link.

svn path=/trunk/; revision=23051
2006-07-13 22:19:57 +00:00
Alex Ionescu
fc546e804a - Cleanup + formatting fixes for wait.c
- Move some inlined functions from ke.h to ke_x.h
- Add checks for special apc disabled (guarded regions) in wait code.

svn path=/trunk/; revision=23050
2006-07-13 21:48:45 +00:00
Eric Kohl
b41eb98534 Implement CM_Free_Log_Conf[_Ex] and add PNP_FreeLogConf stub.
svn path=/trunk/; revision=23049
2006-07-13 21:28:01 +00:00
Magnus Olsen
20ce435a3b 1. Fixing so the screensaver only start one time when ReactOS starting.
2. Fixing so the screensaver do not restart it self. 
Alesky here is the bugfix I promies, it will not longer see alot start screen msg. 
One bug remains before the reg key will be adding as defualt for matrix.scr so it 
can run from livecd as well



svn path=/trunk/; revision=23047
2006-07-13 21:21:30 +00:00
Aleksey Bragin
9d2f75b905 Added a check for a non-null WndProc into IntCallWndProcA/W. Instead of bugchecking, it shows a DPRINT1 now to inform about a bug.
As a side effect, mIRC now works in ReactOS.

svn path=/trunk/; revision=23046
2006-07-13 20:47:59 +00:00
Alex Ionescu
d7e7bd087e [FORMATTING] - Cleanup timer.c
svn path=/trunk/; revision=23045
2006-07-13 19:43:10 +00:00
Alex Ionescu
bdde4622cc - Don't make the timer signaled in KeSetTimerEx if it already expired.
- Only call KiWaitTest on timers if they have waiters.
- Fix list looping in KiExpireTimers.

svn path=/trunk/; revision=23044
2006-07-13 19:04:39 +00:00
Magnus Olsen
07eacf79df 1. Remove guithreadinfo from the make file. for it not longer builds.
2. Adding a test apps for starting directdraw hal interface, that I have keep within few ros devs, and one wine devs, 
   it also being using in 2-3 diffent company same code. I known which company that using it with my written premitions 
   I give them on icq or email. But u need a document how to use kernel, d3d, mocomp interface,and some more how to access
   them. I only show how to start dx hal the interface and using so call IDrawDraw interface. in this apps. 
  

svn path=/trunk/; revision=23043
2006-07-13 19:00:05 +00:00
Magnus Olsen
e862b8b461 patch from w3seek :Bug #: 1667 : NTOSKRNL: Fix GCC4 warning and return correct error code in NtSignalAndWaitForSingleObject
svn path=/trunk/; revision=23041
2006-07-13 12:30:56 +00:00
Aleksey Bragin
d5f8964338 Free the buffer as MSDN says
svn path=/trunk/; revision=23040
2006-07-13 07:17:13 +00:00
Alex Ionescu
77203d0406 - Add some TIMER values to the ddk.
- Add DPC Settings (Queue Depths, Rates, etc)
- Cleanup System/Run Time Update code.
- Always increase kernel time in PRCB when inside kernel-mode code.
- Get rid of superflous interlocked commands when not needed.
- Improve detection of DPC vs non-DPC time.
- Respect and apply DPC queue/rate rules.
- Allow future use of non-fulltick time increments.

svn path=/trunk/; revision=23039
2006-07-13 06:23:34 +00:00
Alex Ionescu
e037b1c36b - Add ASSERT_QUEUE macro.
- Cleanup queue.c
- Add some ASSERTs
- Properly check for SPecialApcDisable before aborting a wait.
- Fix a bug in KiWaitQueue which was causing us not to remove the queue from the thread's wait list.

svn path=/trunk/; revision=23038
2006-07-13 05:20:43 +00:00
Alex Ionescu
5ecb728b0e - Fix KiAcquireMutexContended, it was broken in contended cases.
- Inline Acquiring/Leaving guarded regions and the gmutex code, instead of going through 3-4 indirect calls.
- Add a mountain of ASSERTs to detect incorrect usage/state.
- Set ->SpecialApcDisable in the Guarded Mutex.
- Fix broken KTHREAD definition. SpecialApcDisable and KernelApcDisable were incorrectly marked as USHORT instead of SHORT, which could cause severe trouble under optimized builds (At least under MSVC, since MSVC wouldn't allow a negative number in an unsigned short).
- Use GM_LOCK_BIT_V.
- Fix broken KeTryToAcquireGuardedMutex prototype.
- Fix broken KGUARDED_MUTEX typedef and add bit values.
- Fix broken Interlocked* prototypes in regards to volatileness.

svn path=/trunk/; revision=23037
2006-07-13 04:20:18 +00:00
James Tabor
b71f24ddc1 -User32: Consolidated InsertMenu and ModifyMenu A&W flags processing. Misc changes too, some based on wine.
svn path=/trunk/; revision=23036
2006-07-12 22:43:45 +00:00
Ged Murphy
f13b4799a6 DIALOG -> DIALOGEX to correctly handle MS Shell Dlg
svn path=/trunk/; revision=23035
2006-07-12 21:52:08 +00:00
Magnus Olsen
7611f8028a patch from w3seek :Bug #: 1669 : Probing macros improvements and fixes
svn path=/trunk/; revision=23034
2006-07-12 21:42:08 +00:00
Magnus Olsen
c80f9e7cea patch from w3seek : Bug#: 1671 : RTL: Fix checking the SACL data area in the Win64 version of RtlSelfRelativeToAbsoluteSD2
svn path=/trunk/; revision=23033
2006-07-12 21:36:05 +00:00
Aleksey Bragin
1d5bff3624 - Fix a mistake with outputting always non-initialized buffer in a DPRINT1
- Add a branch for stopping the screensaver
- Prettify the tracing debug message (it shows now if it's a start or a stop request)
- Add a success-check for RegOpenKeyExW too

svn path=/trunk/; revision=23032
2006-07-12 21:33:14 +00:00
Johannes Anderwald
d94f7c6e2b conio.c:
* create a CSRSS_SCREEN_BUFFER object before TuiInit/GuiInit 
  -> required for variable screen buffer sizes
* improve error handling in CsrCreateScreenBuffer

guiconsole.c:
* directly store WindowSize in CSRSS_CONSOLE struct
* read ScreenBufferSize value from registry and store result in CSRSS_SCREEN_BUFFER 
* use default values for ScreenBufferSize / WindowSize

tuiconsole.c:
* set screenbuffer size to size of physical console size in init

svn path=/trunk/; revision=23031
2006-07-12 21:06:21 +00:00
Hervé Poussineau
b06a110bee Symbolic link should start with \??\, to be able to open the object from kernel mode
svn path=/trunk/; revision=23030
2006-07-12 20:41:28 +00:00
Johannes Anderwald
c19c207f4e * set FontName array to max of LF_FACESIZE
* read WindowSize from registry
* create GUI_CONSOLE_DATA directly in GuiInitConsole
* wait untill GuiWindow has been created (needed for synchronization with variable window sizes)

svn path=/trunk/; revision=23028
2006-07-12 16:48:58 +00:00
Hervé Poussineau
b042f11818 Implement the 'You need to reboot' wizard page, and use it instead of the network message box.
Main advantage is that the message box doesn't appear anymore during second stage setup.

svn path=/trunk/; revision=23027
2006-07-12 15:30:09 +00:00
Aleksey Bragin
fe866c5c43 Stub one more WMI api used by drivers. Kernel just ignores WMI information for now, but drivers are happy since they successfully submit it.
svn path=/trunk/; revision=23026
2006-07-12 14:00:21 +00:00
The Wine Synchronizer
a7e2f91d3f Autosyncing with Wine HEAD
svn path=/trunk/; revision=23024
2006-07-12 12:40:40 +00:00
Johannes Anderwald
48786b8392 revert prev commit
svn path=/trunk/; revision=23023
2006-07-12 12:36:31 +00:00
Aleksey Bragin
8008e440cd Add flags for CryptAcquireCertificatePrivateKey() API
svn path=/trunk/; revision=23022
2006-07-12 12:27:46 +00:00
Johannes Anderwald
e2ff912acc * remove unused/unimplemented clb library
* you need to delete Makefile.auto after this commit

svn path=/trunk/; revision=23021
2006-07-12 12:27:26 +00:00
Johannes Anderwald
9d114d7b18 * norwegian translation by LMH1 from bug(1645)
svn path=/trunk/; revision=23020
2006-07-12 12:08:39 +00:00
Johannes Anderwald
484c24fda3 * set svn:eolstyle native
svn path=/trunk/; revision=23019
2006-07-12 12:00:34 +00:00
Johannes Anderwald
50b81c4cb2 * fix a typo
* fix identation
* bugreport & patch by Jones111
* fixes bug 1656

svn path=/trunk/; revision=23018
2006-07-12 11:55:14 +00:00
Hervé Poussineau
2c576de1f1 Enable plug and play manager in livecd.
svn path=/trunk/; revision=23017
2006-07-12 11:54:04 +00:00
Hervé Poussineau
604e593d4d LiveCD change: don't directly name the shell executable in SYSTEM\Setup key, but run setup.exe, which then loads syssetup.dll, which then runs the selected shell.
This is the first step to do custom operations when running the livecd.

svn path=/trunk/; revision=23016
2006-07-12 11:30:17 +00:00
Filip Navara
7a738ccc46 Fix the RET insns for @InterlockedCompareExchange@12. Spotted by Alex & Aleksey.
svn path=/trunk/; revision=23015
2006-07-11 22:45:45 +00:00
Alex Ionescu
d2e356eda6 - Implement Fast Referencing and fix EX_FAST_REF definition.
- Implement ObReferenceEx and ObDereferenceEx.
- Split off ObpDeferObjectCompletion. A new win2003/vista API requires direct acess to being able to defer deletes.
- Fix some bugs in Process Token management and make it all properly use Fast Referencing.
- When duplicating a token in a new process, don't de-reference it before it's even created, and also insert it.
- Change ExpChangeRundown macro to fix warnings in msvc.

svn path=/trunk/; revision=23013
2006-07-11 19:45:16 +00:00
Johannes Anderwald
f8aab41375 * fix typo
* patch & bug report by Coviti
* fixes bug 1663
* set svn:eol-style native for other resource files

svn path=/trunk/; revision=23012
2006-07-11 17:52:38 +00:00
Alex Ionescu
59a0d277ae - Fix up some stuff in Kernel Gates support.
- Fix up some implementation bugs in Executive Rundown support.

svn path=/trunk/; revision=23011
2006-07-11 15:36:44 +00:00
Hervé Poussineau
05917e3fee Don't change PortData pointer, as it is allocated memory, and so, it is easier to free it when needed.
svn path=/trunk/; revision=23010
2006-07-11 13:38:59 +00:00
Hervé Poussineau
9976565e9f [FORMATTING] Replace tabs by spaces.
No code change

svn path=/trunk/; revision=23009
2006-07-11 13:01:00 +00:00
The Wine Synchronizer
e00e9c842b Autosyncing with Wine HEAD
svn path=/trunk/; revision=23008
2006-07-10 21:39:10 +00:00
The Wine Synchronizer
2a02dd2d72 Autosyncing with Wine HEAD
svn path=/trunk/; revision=23007
2006-07-10 21:32:49 +00:00
The Wine Synchronizer
ca1ba81a06 Autosyncing with Wine HEAD
svn path=/trunk/; revision=23006
2006-07-10 21:25:32 +00:00
Aleksey Bragin
9afe9c3b5c [FORMATTING] / [AUDIT]
- Cleanup a big coding-style mess
- Add UNIMPLEMENTED macro in empty functions (otherwise we will never know if they are being called by a 3rd-party driver)
- Add proper debug headers inclusion in every file
- Add documentation headers into almost every file (except mcb.c and context.c - will be added later)
- Standardize per-file headers (some files still lack contributors names, they will be added later too)

No code change except for adding UNIMPLEMENTED macros in the code. Name.c unlocked because the implementations of functions are trivial and in fact could be derived from their names. Not documented functions will be further reviewed.

svn path=/trunk/; revision=23005
2006-07-10 21:03:26 +00:00
Magnus Olsen
5dd17c2315 fixing broken asm code.
tcslen, wsclen did not check if the string was null or not. 
Adding a NULL pointer check. This make user32 test working and alot other apps. 
  

svn path=/trunk/; revision=23004
2006-07-10 20:02:12 +00:00
Magnus Olsen
06f4494f85 Fixing two user mode crash for menu.
Do not try reading from NULL pointer and compare the value. 
This let me come bit futer with user32_winetest.exe, but we still have some user mode crash with menu. 
  


svn path=/trunk/; revision=23003
2006-07-10 19:32:24 +00:00
Christoph von Wittich
fa1e866a00 -get rid of DllMain@12 because MSVC defaults to_DllMainCRTStartup@12 when using CRT
svn path=/trunk/; revision=23001
2006-07-10 18:16:28 +00:00
Johannes Anderwald
5cfd59e722 * make resources compilable with msvc
svn path=/trunk/; revision=23000
2006-07-10 16:22:03 +00:00
Magnus Olsen
ebb0cc9c2b Fixing a small bug, value where never devliver from SPI and that did make screensaver start direcky and start mulitetimes.
svn path=/trunk/; revision=22998
2006-07-10 15:02:43 +00:00
Johannes Anderwald
a1586aefb1 * set svn:eol-style native
svn path=/trunk/; revision=22997
2006-07-10 14:11:12 +00:00
Johannes Anderwald
c9130e29e7 * fix a few msvc compilation errors (MS powercfg.h does not use include guards)
svn path=/trunk/; revision=22996
2006-07-10 13:47:11 +00:00
Johannes Anderwald
71b51f58d6 * make resource files msvc compilable
* fix size of text in various languages

svn path=/trunk/; revision=22995
2006-07-10 13:30:17 +00:00
Aleksey Bragin
98e2bc66e5 Add DPRINT1s for failures, and added UNIMPLEMENTED macro in the unimplemented export function
svn path=/trunk/; revision=22994
2006-07-10 13:10:22 +00:00
Aleksey Bragin
6f20e7b31b Thomas Weidenmueller: Fix GCC4 warnings
svn path=/trunk/; revision=22993
2006-07-10 11:42:28 +00:00
Aleksey Bragin
c3ecaa36f1 - Remove IopGetLowestDevice() call from IoRegisterDeviceInterface() (hpoussin approved this change)
- Add a few DPRINTs to easier see failures of exported APIs

svn path=/trunk/; revision=22992
2006-07-10 09:54:50 +00:00
Aleksey Bragin
645a3280f5 Sync with Wine: Update EDIT_EM_SetMargins in EDIT control.
svn path=/trunk/; revision=22991
2006-07-10 08:56:02 +00:00
Aleksey Bragin
e11e4547e1 Dmitry Philippov: Fix a bug with firstly overwriting the value, and then trying to use variable for comparation (should be vice-versa: firstly compared what was passed, then overwrite with a new value)
svn path=/trunk/; revision=22990
2006-07-10 08:33:02 +00:00
James Tabor
496f31dce3 - User32 menu
- Fixed and modified MenuDrawBitmapItem, MenuGetBitmapItemSize and MenuCalcItemSize. Based on Wine ports.
 - Fixed menu bar drawing and maintained most callback changes (for Miranda). Implemented flat menu support. Some other misc changes. Owner drawing is still broken (Free pascal project Lazarus). Run user32_crosstest from Wine, still more rewriting is needed.

svn path=/trunk/; revision=22989
2006-07-10 05:52:41 +00:00
Magnus Olsen
7ad01239f2 Implement SPI_GETFLATMENU and SPI_SETFLATMENU after jimtabor request not tested if it work
svn path=/trunk/; revision=22988
2006-07-10 01:48:46 +00:00
Magnus Olsen
b38fbf4730 putting back Christoph_vW patch that was revert by me
svn path=/trunk/; revision=22987
2006-07-10 01:45:03 +00:00
Magnus Olsen
92751bd955 putting back Christoph_vW patch that was revert by me
svn path=/trunk/; revision=22986
2006-07-10 01:33:10 +00:00
Magnus Olsen
52c172d21e Changes for Screen saver And implement
1. Time value can be changes use SPI_SETSCREENSAVETIMEOUT to set the new value, current insate value are set to 30sec
2. SPI_GETSCREENSAVETIMEOUT Get the screen saver timeout value.
3. Dectect if screen saver is running with SPI_GETSCREENSAVERRUNNING
4. Set the state of screen saver with  SPI_SETSCREENSAVERRUNNING <- this is internal api see msdn 
 
Implement for mouse
1. SPI_GETWHEELSCROLLLINES I am but unsure if win32k need more changes it seam like it is only a counter that should be set/get a value and user apps take care of the rest. Implement it for jimtabor did request it. 
2. SPI_GETWHEELSCROLLCHARS  I am but unsure if win32k need more changes it seam like it is only a counter that should be set/get a value and user apps take care of the rest.

svn path=/trunk/; revision=22985
2006-07-10 00:26:56 +00:00
Magnus Olsen
f89c0df588 adding #define SPI_GETWHEELSCROLLCHARS thanks alex for the value
svn path=/trunk/; revision=22984
2006-07-10 00:11:12 +00:00
Michele Cicciotti
9cb9eef811 modified rdesktop/channels.c
modified   rdesktop/constants.h
modified   rdesktop/types.h
   Commented out definitions of standard Windows constants and types

modified   rdesktop/licence.c
modified   rdesktop/secure.c
   TODO annotations

modified   rdesktop/proto.h
   Commented out prototypes for rdpdr, rdpsnd, cliprdr, etc. functions that will be rewritten *and* use a new API

modified   rdesktop/rdesktop.h
modified   rdesktop/rdp.c
modified   rdesktop/tcp.c
   Big big mess, many temporary modifications to have a working prototype ASAP

added      MissTosca.sln
added      mstsc/mstsc.cpp
added      mstsc/mstsc.vcproj
added      mstsc/stdafx.cpp
added      mstsc/stdafx.h
added      mstscax/mstscax.cpp
added      mstscax/mstscax.vcproj
added      mstscax/stdafx.cpp
added      mstscax/stdafx.h
   Created skeleton project files for Visual C++ 2005

added      rdesktop/rdesktop-core.vcproj
   Isolated the bare core of rdesktop. Required little to no porting

added      porting-tools/rdesktop-core-tester
added      porting-tools/rdesktop-core-tester/rdesktop-core-tester.cpp
added      porting-tools/rdesktop-core-tester/rdesktop-core-tester.vcproj
added      porting-tools/rdesktop-core-tester/stdafx.cpp
added      porting-tools/rdesktop-core-tester/stdafx.h
   Tester application. The screenshots were made with this. Partial (buggy!) implementation of GUI and keyboard input

svn path=/trunk/; revision=22983
2006-07-09 23:57:54 +00:00
Hervé Poussineau
aea3ddc7c8 First argument doesn't need to be a physical device object, it only needs to be in a PDO driver stack.
svn path=/trunk/; revision=22982
2006-07-09 22:08:24 +00:00
Aleksey Bragin
8892a1ea62 Implement proper error-handling in IoRegisterDeviceInterface() (based on testing and MSDN documentation)
svn path=/trunk/; revision=22981
2006-07-09 22:02:03 +00:00
Aleksey Bragin
b77e8f5145 Add two simple tests for IoRegisterDeviceInterface() explaining which fields IoRegisterDeviceInterface() checks for mandatory presence (WDK is not clear about this)
svn path=/trunk/; revision=22980
2006-07-09 21:39:49 +00:00
Aleksey Bragin
2948f5ecdf Re-apply fixes to CPL accidentally reverted by Magnus's reverting commit
svn path=/trunk/; revision=22979
2006-07-09 21:10:40 +00:00
Magnus Olsen
beeb6f5df2 Thanks for x person found a bug, he did not be mentor with name. One of our helper with dx stuff that want be anonymous for now
svn path=/trunk/; revision=22978
2006-07-09 20:28:30 +00:00
Maarten Bosma
555c9d0ec0 Add comments from cc-branch headers to trunk to make the header patch smaller.
svn path=/trunk/; revision=22977
2006-07-09 19:37:39 +00:00
Alex Ionescu
f4539b7037 - Massive re-write of some parts of Ps, based on a patch I wrote almost a year ago and peer-reviewed with Thomas and Filip. Causes some shutdown regressions and process leaks (will fix). Needs more work. Changelog:
- Architectural changes to match information in Windows Internals 4 and other documented sources of information (Windows Internals II by Probert). Code should match Win2003 layout.
    - Handle almost any possible process/thread sub structure and add its cleanup code stubs, so that when we actually implement them, we won't forget to clean them up in the process code.
    - Add interlocked usage of process and thread flags in order to make everything more thread-safe.
    - Better handle cases where threads die instantly, race conditions, and other weird issues.
    - Better handle process termination and thread termination.
    - Implement NtCreateProcessEx and update PspCreateProcess/NtCreateProcess.
    - Improve cleanup of process object in PspProcessDelete.
    - Optimize some things like User Thread startup.
    - Add some extra asserts, paged_code checks and also user-mode security check.
    - Implement helper API PsGetNextProcessThread
    - Optimize thread reaper (thanks Filip)
    - Do proper referencing/dereferencing of thread/processes (thanks Thomas)
    - Document FIXMEs needed for Ps code to be up to standards and complete.

svn path=/trunk/; revision=22976
2006-07-09 18:54:13 +00:00
Magnus Olsen
d5dbbd1211 reverting : revison 22930 to 22932, 22938 to 22940, 22943, 22945, 22950, 22953 to 22954, 22959 to 22961, 22965
Reason : CRT/RTL/STRING are being static linkend into evething and cause CSR crash when it booting to GUI
         and some of the changes are wrong in rbuild as well. Do not hardcode example mingw32-ld name 
         keep it to ld for it is the make file detmer the name of ld when it is building. and some other 
         changes are also question about. It also fix so we can build ReactOS with MinGW 3.4.2 again and
         BinUtils 2.15.91, it was also other problem with this changes.  

svn path=/trunk/; revision=22973
2006-07-09 16:25:25 +00:00
Ged Murphy
ab8a344656 check reg for NTP setting
fix a few typos and msvc warnings

svn path=/trunk/; revision=22972
2006-07-09 16:19:39 +00:00
Magnus Olsen
ae1a33083a last patch Alex ask for this be revert for it should be fixed in another place.
svn path=/trunk/; revision=22971
2006-07-09 15:33:33 +00:00
Alex Ionescu
450d11e3f1 - Small build fix
svn path=/trunk/; revision=22970
2006-07-09 15:25:14 +00:00
Aleksey Bragin
a814cbbe42 Fix the build, thanks to Magnus Olsen
svn path=/trunk/; revision=22969
2006-07-09 12:33:47 +00:00
Alex Ionescu
ee67c24dce - Separate functions that deal with driver-related registry code, grouping, tagging, indexing, sorting into drvrlist.c... this code should eventually become part of Cm instead.
svn path=/trunk/; revision=22968
2006-07-09 02:34:32 +00:00
Alex Ionescu
9b422ef6c6 - Simplify IopReinitializeBootDrivers and IopReinitializeDrivers.
- For some strange reason, boot drivers were re-initailized *after* system drivers.

svn path=/trunk/; revision=22967
2006-07-09 02:21:13 +00:00
Alex Ionescu
2eaab734d7 - Add a typedef for PFS_FILTER_CALLBACKS when the IFS isn't included.
svn path=/trunk/; revision=22966
2006-07-09 01:03:37 +00:00
Christoph von Wittich
c6931157dd -remove nostdlib from KernelModeDlls to fix linking of bzip2
svn path=/trunk/; revision=22965
2006-07-09 00:56:23 +00:00
Magnus Olsen
df8822f30d patch from Vassily Tarasov bug 1658 : Implement GetUserObjectSecurity()and SetUserObjectSecurity()
svn path=/trunk/; revision=22964
2006-07-09 00:16:51 +00:00
Johannes Anderwald
9656ee1e85 * use font properties from registry when available
svn path=/trunk/; revision=22963
2006-07-09 00:13:40 +00:00
Alex Ionescu
17c27b70cd - Allocate Re-Init entries with a tag
- Fix IoAllocateDriverObjectExtension and IoGetDriverObjectExtension:
  - They were using the wrong structure (a made up one).
  - They were saving the extension where the Driver Object's base address should be.
  - Memory leaks.
  - Sometimes holding the lock too long.
- Created EXTENDED_DRIVER_OBJECT structure in NDK, since parts of the documented one are hidden (much like EXTENDED_DEVICE_OBJECT).
- Fixed IopDeleteDriver to free what it should.
- Fixed IoCreateDriver to handle more failure cases.

svn path=/trunk/; revision=22962
2006-07-09 00:01:31 +00:00
Christoph von Wittich
2849b81889 -removed -nostdlib from kernel32
-fixed some msvc errors

svn path=/trunk/; revision=22961
2006-07-08 23:32:03 +00:00
Christoph von Wittich
79a5eee6f5 -use /noentry flag when entrypoint is set to "0"
svn path=/trunk/; revision=22960
2006-07-08 23:23:08 +00:00
Christoph von Wittich
dd81cc1343 fix compilation with msvc
svn path=/trunk/; revision=22959
2006-07-08 23:12:51 +00:00
Alex Ionescu
e7e794c543 - A long long time ago there was a stupid kernel that created MDLs for R/W requests even when the length of the buffer was 0. He had another stupid friend called CDFS which attempted to read the MDL before checking if the buffer size is also 0. When cdfs's friend, the kernel, grew smarter and stopped allocating MDLs, cdfs didn't catch on and cried every time this happened. CDFS now caught up. (thanks to Greatlord for finding the regression).
svn path=/trunk/; revision=22958
2006-07-08 23:02:50 +00:00
Christoph von Wittich
1058843806 remove -nostdlib
svn path=/trunk/; revision=22957
2006-07-08 22:15:41 +00:00
Eric Kohl
1c1c562871 Implement CM_Free_Log_Conf_Handle.
svn path=/trunk/; revision=22956
2006-07-08 22:15:16 +00:00
Magnus Olsen
63d0c1d55a Revert : small part from 22849 wine sync
Reason : put back ReactOS specify code, to make icon transplant. 


svn path=/trunk/; revision=22955
2006-07-08 22:14:37 +00:00
Christoph von Wittich
43800d3c90 remove -nostdlib
svn path=/trunk/; revision=22954
2006-07-08 22:13:10 +00:00
Christoph von Wittich
513463d73f -remove -nostdlib to fix build of msvcrt
-don't set --enable-stdcall-fixup twice

svn path=/trunk/; revision=22953
2006-07-08 22:07:34 +00:00
Johannes Anderwald
3f6c1f228c * add missing string to stringtable -> now the menu fully works
* spotted by Greatlord

svn path=/trunk/; revision=22952
2006-07-08 22:06:54 +00:00
Christoph von Wittich
45153f58c7 -link to opengl32 to fix build of glu32
svn path=/trunk/; revision=22951
2006-07-08 22:04:57 +00:00
Christoph von Wittich
81bdd493c9 -removed -nostdlib to fix build
svn path=/trunk/; revision=22950
2006-07-08 21:39:22 +00:00
Eric Kohl
42c3759b94 Implement CM_Add_Empty_Log_Conf[_Ex] and add PNP_AddEmptyLogConf stub.
svn path=/trunk/; revision=22949
2006-07-08 21:37:32 +00:00
Aleksey Bragin
b9ed9b1450 [AUDIT] + [FORMATTING]
- Coding style applied (make file's header proper, add headers for every function)
- All functions except one are documented in MSDN
- One undocumented function will undergo further examination and documentation

svn path=/trunk/; revision=22948
2006-07-08 21:33:25 +00:00
Magnus Olsen
d22007aa7c Install dejavu font on livecd and bootcd and
change everthing to dejavu fonts. Rember console apps can not use dejavu font for it will regress. 
that is the reasson we keep old bitstream fonts for now. and another problem is bitstream font is
hardcode into console apps (example cmd), it have been hard code in csrss and maybe some more place. 

svn path=/trunk/; revision=22947
2006-07-08 20:49:55 +00:00
Magnus Olsen
998ca67436 fixing last bug for jolite file names. now we can use so long file name we like.
I was force fixing this bug for getting dejavu font to be install on livecd
I was hopping some else have fixing this long standing bug. 

svn path=/trunk/; revision=22946
2006-07-08 20:45:33 +00:00
Christoph von Wittich
512a5f6cd8 -fixed msvc errors
svn path=/trunk/; revision=22945
2006-07-08 20:32:22 +00:00
Magnus Olsen
6366fa9ddc commit import Dejavu font to ReactOS, we need keep bitstream font for Console apps for it is hard code there and there, for console apps, example let cmd working without regress. Now we need change the reactos reg and to the packages.diff.
svn path=/trunk/; revision=22944
2006-07-08 20:05:44 +00:00
Christoph von Wittich
2a83771501 -don't use PROJECT_LFLAGS for freeldr because ld != mingw32-ld
svn path=/trunk/; revision=22943
2006-07-08 19:44:36 +00:00
Alex Ionescu
58695ec272 - Write some TODOs. I'm now done with I/O IRP APIs and File Object handling. Let me know of regressions.
- Next up... driver loading.

svn path=/trunk/; revision=22942
2006-07-08 19:41:20 +00:00
Alex Ionescu
8395aae6a0 - Zero out the OPEN_PACKET and only set non-zero members in functions that use it.
- NtCancelIoFile:
  - Don't use macro-based list looping.
  - Update operation counts.
  - Wait 10ms instead of 100ms.

svn path=/trunk/; revision=22941
2006-07-08 19:28:08 +00:00
Christoph von Wittich
0535c5d920 -fixed some msvc /W4 warnings
svn path=/trunk/; revision=22940
2006-07-08 19:14:12 +00:00
Christoph von Wittich
c742e77e3b -don't use an entrypoint when entrypoint is set to "0"
svn path=/trunk/; revision=22939
2006-07-08 19:13:39 +00:00
Christoph von Wittich
0c95e11038 -fixed some msvc /W4 warnings and errors
svn path=/trunk/; revision=22938
2006-07-08 19:00:35 +00:00
Alex Ionescu
bc388c2ea3 - Don't use FILE_ATTRIBUTE_NORMAL for mailslots/namedpipes.
svn path=/trunk/; revision=22937
2006-07-08 18:59:18 +00:00
Alex Ionescu
b256a775b7 [FORMATTING] - STDCALL->NTAPI changes, tab->Spaces, name decoration, etc.
- Add Eric's name since when I copied security.c into file.c, I forgot to add his name as well for that code.

svn path=/trunk/; revision=22936
2006-07-08 18:57:51 +00:00
Alex Ionescu
909fdbdc9c - Implemented NtDeleteFile, also a piece of cake now that we have IopParseDevice done.
svn path=/trunk/; revision=22935
2006-07-08 18:47:26 +00:00
Alex Ionescu
c4cfd65ad0 - Implement IoFastQueryNetworkAttributes which is now a piece of cake thanks to a properly implemented IopParseDevice.
svn path=/trunk/; revision=22934
2006-07-08 18:35:17 +00:00
Alex Ionescu
0a2769494f - Add support for cases when the FSD that actually did the FO create wasn't the one to whom we went the IRP.
- Also add support for detecting volume opens and setting the FO_VOLUME_OPEN flag.

svn path=/trunk/; revision=22933
2006-07-08 18:30:59 +00:00
Christoph von Wittich
884482b6aa -fixed msvc /W4 warnings and errors
svn path=/trunk/; revision=22932
2006-07-08 18:30:34 +00:00
Christoph von Wittich
a9a4a3d059 -use msvc compatible def files
svn path=/trunk/; revision=22931
2006-07-08 18:25:19 +00:00
Christoph von Wittich
3e7b4d7fc2 -fix msvc dll entrypoint
-fix PROJECT_LFLAGS
-added --enable-stdcall-fixup to PROJECT_LFLAGS

svn path=/trunk/; revision=22930
2006-07-08 18:24:11 +00:00
Alex Ionescu
2002b5b96a - Remove a ROS hack in IopCloseFile.
svn path=/trunk/; revision=22929
2006-07-08 18:19:39 +00:00
Alex Ionescu
6555616bb6 - Uber-optimize IopQueryAttributesFile by using the OPEN_PACKET mechanism to query file attributes, instead of doing lots of slow native calls.
- Modify IopParseDevice to detect when OPEN_PACKET optimizations are in use (query or deletion (deletion not yet implemented)) and have some codepaths be slightly different and use DUMMY_FILE_OBJECT.
- Implement QueryOnly case in IopParseDevice to handle attribute queries.
- Add a missing dereference, and remove an extra DO reference.

svn path=/trunk/; revision=22928
2006-07-08 18:17:26 +00:00
Aleksey Bragin
8ac94d67d0 - Remove extern (I don't see a reason to use it in function declarations)
- Add co_CsrNotifyScreenSaver(), so win32k builds properly
- Make style better

svn path=/trunk/; revision=22927
2006-07-08 18:05:06 +00:00
Alex Ionescu
12e1a16066 - Massively improve File I/O by using deferred I/O completion for MJ_(MAILSLOT/FILE/NAMEDPIPE)CREATE and manually completing the IRP.
svn path=/trunk/; revision=22926
2006-07-08 17:07:24 +00:00
Alex Ionescu
a49990d5ac - Add proper failure case for IRP allocation failure
- Only initialize the FO's lock for Synch I/O
- Add some missing comments
- Fixup some formatting

svn path=/trunk/; revision=22925
2006-07-08 16:45:53 +00:00
Christoph von Wittich
536df67dff -fixed some msvc /W4 warnings
svn path=/trunk/; revision=22924
2006-07-08 16:45:13 +00:00
Christoph von Wittich
c40550a8ca -revert 22909
-take care of ModuleDefinitionFile

svn path=/trunk/; revision=22923
2006-07-08 16:44:38 +00:00
Johannes Anderwald
56fd6ce005 * halfplement reading console properties
* thnx to Alex_Ionescu for advice on how get HKCU path

svn path=/trunk/; revision=22922
2006-07-08 16:00:08 +00:00
Christoph von Wittich
386a355fb8 -get rid of wine headers in Debug/Release/Speed configurations
svn path=/trunk/; revision=22916
2006-07-08 12:09:50 +00:00
Christoph von Wittich
cf82ae7be8 -remove winsock2.h which is causing errors when building with msvc
svn path=/trunk/; revision=22915
2006-07-08 12:08:56 +00:00
Ged Murphy
757901f02a revert r22910
there are a few issues with both the resource files and the code.
I suggest working on intl_new however as intl is soon to be deleted.

svn path=/trunk/; revision=22912
2006-07-08 10:37:37 +00:00
Christoph von Wittich
551d3ecaaa -fixed some msvc /W4 warnings
svn path=/trunk/; revision=22911
2006-07-08 10:22:35 +00:00
Ged Murphy
b6ec400d02 apply patch from bug 1653.
patch by Mrkaras.
unfortunately, this applet is soon the be replaced.

svn path=/trunk/; revision=22910
2006-07-08 10:20:35 +00:00
Christoph von Wittich
4a0cb7579d -use correct RuntimeLibrary for DLLs
svn path=/trunk/; revision=22909
2006-07-08 10:12:57 +00:00
Christoph von Wittich
1cfcb1d9f5 -fixed msvc /W4 warnings
-removed ntdll dependency

svn path=/trunk/; revision=22908
2006-07-08 10:00:15 +00:00
Alex Ionescu
1b176ca010 - Fix boot.
svn path=/trunk/; revision=22907
2006-07-08 04:13:50 +00:00
Magnus Olsen
c693aa7a2b remove a miss use assert in ProtocolReceive, I have talk with arty about it.
svn path=/trunk/; revision=22906
2006-07-07 21:43:49 +00:00
Alex Ionescu
045ca1dd86 - Add some more proper handling of ref/dereferencing in IopParseDevice.
svn path=/trunk/; revision=22905
2006-07-07 17:53:34 +00:00
Alex Ionescu
aa2513791b - Make an I/O Tagged copy of the file name and properly handle failure.
svn path=/trunk/; revision=22904
2006-07-07 17:29:12 +00:00
Alex Ionescu
d6e384ce39 - Implement IopCheckVpbMounted and use it in IopParseDevice as documented in NT File System Internals.
- Add some missing ref/deref calls for DOs and VPBs.

svn path=/trunk/; revision=22903
2006-07-07 17:18:52 +00:00
Alex Ionescu
979b777dd5 - Use a simpler and more robust way to detect direct device opens and save it in a variable that's read when needed, instead of having multiple large code paths.
svn path=/trunk/; revision=22902
2006-07-07 16:26:05 +00:00
Andrew Munger
70cd383c59 Add a \n so the output under linux looks correct. Every other printf had a \n, no idea why this one didn't.
svn path=/trunk/; revision=22901
2006-07-07 16:23:44 +00:00
Magnus Olsen
be4f6702f4 Change in the auto screen saver startup code in win32k
1. Fixing allot better sync for the timeout counter 
2. Change the hard code value to 30 sec instead for 15 sec
3. The start of screen saver are 30.0 sec to 30.9 sec for 
   we can not start on exactly on the x.0 sec but betwin  

svn path=/trunk/; revision=22900
2006-07-07 16:22:46 +00:00
Andrew Munger
6f734d6123 Convert sequence number to network byte order before sending it on the wire.
svn path=/trunk/; revision=22898
2006-07-07 13:23:10 +00:00
Hervé Poussineau
51cb8f8eac Fix typo (UNICODE -> _UNICODE)
svn path=/trunk/; revision=22897
2006-07-06 21:58:48 +00:00
Magnus Olsen
49ac5c3e0e Commit my autostart code for screen saver for now it is hardcode to 15 sec timeout
svn path=/trunk/; revision=22896
2006-07-06 20:42:45 +00:00
Aleksey Bragin
9135556ab7 Imitate success in WMI registration, so that drivers depending on it won't fail. (However DPRINT1 is inserted, so that devs notice the driver wants WMI)
svn path=/trunk/; revision=22895
2006-07-06 20:31:17 +00:00
Magnus Olsen
52d8aae119 Screen Saver win32csr part
1. Clean up the code
2. Adding FIXME text
3. Fixing a bug cause screen saver was autostart whole time after timeout accord.


svn path=/trunk/; revision=22894
2006-07-06 19:35:16 +00:00
Christoph von Wittich
69ac6cf7f8 fixed some warnings (msvc /W4)
svn path=/trunk/; revision=22893
2006-07-06 16:26:40 +00:00
Christoph von Wittich
305978e29e fixed about 70 warnings (msvc /W4)
svn path=/trunk/; revision=22892
2006-07-06 16:25:42 +00:00
Christoph von Wittich
e0f209d6c1 added winver back to build
svn path=/trunk/; revision=22891
2006-07-06 16:24:51 +00:00
Maarten Bosma
b8990f331f [FORMATING] Replace Tabs with spaces to uniform the code.
svn path=/trunk/; revision=22890
2006-07-06 15:14:06 +00:00
The Wine Synchronizer
ad50c49167 Update Wine-syncing doc
svn path=/trunk/; revision=22888
2006-07-06 11:23:09 +00:00
The Wine Synchronizer
51e37a94c6 Autosyncing with Wine HEAD
svn path=/trunk/; revision=22887
2006-07-06 11:22:04 +00:00
The Wine Synchronizer
532c10cebd Delete unneeded makefile
svn path=/trunk/; revision=22886
2006-07-06 11:18:46 +00:00
The Wine Synchronizer
04d864f341 Autosyncing with Wine HEAD
svn path=/trunk/; revision=22885
2006-07-06 11:10:26 +00:00
The Wine Synchronizer
fa1bcb1434 Autosyncing with Wine HEAD
svn path=/trunk/; revision=22884
2006-07-06 10:52:10 +00:00
The Wine Synchronizer
03475ee8e9 Autosyncing with Wine HEAD
svn path=/trunk/; revision=22883
2006-07-06 10:19:03 +00:00
Alex Ionescu
790e2352f2 - Allocate a copy of the EA buffer even for kernel-mode requests, also make the call use a tagged buffer.
- Document call to ObOpenObjectByName
- Properly handle and document all possible cases (parse failures vs I/o failures vs both), and handle dereferencing and status codes nicely.
- Detect if the FSD is reparsing, which we don't support now (we'll bugcheck for now, so we can quickly detect this later instead of handling it wrong).

svn path=/trunk/; revision=22882
2006-07-06 03:40:16 +00:00
Magnus Olsen
4bbd216eab Save Screen Saver you select with right value to the system register when u select apply or ok
svn path=/trunk/; revision=22881
2006-07-06 02:29:16 +00:00
Magnus Olsen
7339d03e09 Fixing one bug, do not list current screensaver twice.
svn path=/trunk/; revision=22880
2006-07-06 01:55:53 +00:00
Magnus Olsen
393a276f68 Commit initiate work of implement of autostart of screen saver.
svn path=/trunk/; revision=22879
2006-07-06 01:44:01 +00:00
Alex Ionescu
0f2c6e474b - Move the code in IoCreateFile inside IopParseDevice where it belongs. Currently only a raw move and hacks to make it not regress anything, but in the future we can now finally start applying some important fixes for proper communication with FSDs and setting a myriad of flags and settings required. Will also allow for some nice optimizations in the future.
svn path=/trunk/; revision=22878
2006-07-05 23:55:45 +00:00
Ged Murphy
51cd8da6b7 update Wine file.
svn path=/trunk/; revision=22877
2006-07-05 22:52:42 +00:00
Ged Murphy
b20974cc24 Sync to Wine-0_9_16:
*no changes since 0.9.11 ...

Sync to Wine-0_9_11:
Byeong-Sik Jeon <wjsqudtlr@gmail.com>
- commdlg: Updated Korean translation.
Ulrich Czekalla <ulrich@codeweavers.com>
- commdlg: Properly set and retrieve colour value from combo box .
Mike McCormack <mike@codeweavers.com>
- commdlg: Malformed filters are still added to the filter combo box.
 
Sync to Wine-0_9_10:
Mike McCormack <mike@codeweavers.com>
- comdlg32: Use a property for the color dialog's information.
- comdlg32: Remove the property when destroy the dialog box.
 
Sync to Wine-0_9_8:
Vitaliy Margolen <wine-patch@kievinfo.com>
- commdlg: Add font sizes 6 and 7 to font select dialog.
Henning Gerhardt <henning.gerhardt@web.de>
- commdlg: Update German resource.
Petr Tesarik <hat@tesarici.cz>
- commdlg: Czech language resources encoding fix.
Dmitry Timoshkov <dmitry@codeweavers.com>
- Add support for CDM_HIDECONTROL message in the file open dialog.
Andrey Turkin <pancha@mail.nnov.ru>
- commdlg: IShellBrowser sets IShellView window's control id to 5002.
Fatih Ac <fasici@linux-sevenler.org>
- commdlg: Turkish translation.
 
Sync to Wine-0_9_7:
Michael Kaufmann <hallo@michael-kaufmann.ch>
- commdlg: File open dialog: Use the specified instance handle for
  custom dialog templates.
 
Sync to Wine-0_9_6:
YunSong Hwang <hys545@dreamwiz.com>
- commdlg: Updated Korean translation.
Ulrich Czekalla <ulrich@codeweavers.com>
- commdlg: If provided use and update hDevMode in the PAGESETUPDLG struct.
  Update the dmDefaultSourcea return value inside hDevMode.
Stefan Br¹ns <stefan.bruens@rwth-aachen.de>
- commdlg: Makes return value of FILEDLG95_SendFileOK dependent of
  return value, not of DWL_MSGRESULT.
 
Sync to Wine-0_9_5:
Dan Kegel <dank@kegel.com>
- commdlg: Let the color picker respond properly to keystrokes.

svn path=/trunk/; revision=22876
2006-07-05 22:48:31 +00:00
Alex Ionescu
9307b5a3b7 - Begin attempt at usage of the OPEN_PACKET for I/O Create operations. Currently we only build it and verify it, and I've fixed up IopCreateFile.
svn path=/trunk/; revision=22871
2006-07-05 20:56:03 +00:00
Alex Ionescu
0e84e0e3c1 - Silence TCP/IP.
- Prototye fix.

svn path=/trunk/; revision=22870
2006-07-05 20:36:56 +00:00
Alex Ionescu
cca46c3214 - Simplify IopParseDevice by removing duplicate code.
svn path=/trunk/; revision=22869
2006-07-05 20:08:08 +00:00
Alex Ionescu
54c6ba2513 [FORMATTING] - Fix formatting in IoCreateFile
svn path=/trunk/; revision=22868
2006-07-05 19:55:25 +00:00
Magnus Olsen
284101e016 [AUDIT] after looking through code no signs of reverse engineering were found. Almost ever thing is almost complete from djgpp, few funcion is writen by us
svn path=/trunk/; revision=22867
2006-07-05 19:09:29 +00:00
Magnus Olsen
bea2e9174e [AUDIT] after looking through code no signs of reverse engineering were found.
1. Follow fix need be done remove hardcode exe, cmd extions in wstart* use PATHEXT to found right excutions.


svn path=/trunk/; revision=22866
2006-07-05 18:57:25 +00:00
Magnus Olsen
2711a8c0ae [AUDIT] after looking through code no signs of reverse engineering were found. Alot stuff taken from wine, it contain hard code string like date, contry names, that need to move to msvcrt dll rc file
svn path=/trunk/; revision=22865
2006-07-05 18:49:03 +00:00
Magnus Olsen
dffe30bd96 [AUDIT] after looking through code no signs of reverse engineering were found. Almost all code is from djgpp, few functions is from us.
svn path=/trunk/; revision=22864
2006-07-05 18:43:17 +00:00
Magnus Olsen
adfdf54371 [AUDIT] after looking through code no signs of reverse engineering were found.
svn path=/trunk/; revision=22863
2006-07-05 18:36:44 +00:00
Magnus Olsen
016d44f812 [AUDIT] after looking through code no signs of reverse engineering were found, and most code is base on djgpp
svn path=/trunk/; revision=22862
2006-07-05 18:34:01 +00:00
Ged Murphy
a976fc233e clean up code and use HeapAlloc + fix memory leaks
svn path=/trunk/; revision=22861
2006-07-05 15:29:37 +00:00
Alex Ionescu
ce56d2bf07 - Make IoCreateFile use deferred I/O completion.
- Fixed a bug in TCP/IP that was making it complete IRP_MJ_CREATE with STATUS_SUCCESS yet with the IRP marked as pending.

svn path=/trunk/; revision=22859
2006-07-05 06:45:00 +00:00
Alex Ionescu
5338d133b3 [AUDIT] - Almost all the functions are stubs, except for some LSA functions which merely seem to be wrappers that build LPC messages for the actual LSA Server to implement (which isn't part of these files).
- Add some stubs during my attempt to load Google Talk (forget about it!). However WINE implements all these functions entirely so maybe we should just sync with them?

svn path=/trunk/; revision=22858
2006-07-05 06:43:46 +00:00
Alex Ionescu
32472d9eff - Ongoing IoCreateFile fixes:
- Start with empty object
  - Set the type/size in the object header
  - Don't rudely ignore the following flags: FILE_WRITE_THROUGH, FILE_SEQUENTIAL_ONLY, FILE_RANDOM_ACCESS, OBJ_CASE_INSENSITIVE; they are not merely decorative.
  - Set correct IRP flags for IRP_CREATE_OPERATION so that the I/O manager knows how to deal with the request (also set SYNCH_API flag).
  - Deferred mode not yet enabled.
  - Simplify the way we set the parameters for pipes/mailslots/files.
  - Don't close the handle of an invalid FO.

svn path=/trunk/; revision=22857
2006-07-05 04:16:37 +00:00
Alex Ionescu
cea9a8ea57 - Fix IopcloseFile... I'm not sure it was working right after the Ob changes, so it's possible some devices weren't getting IRP_MJ_CLEANUP... also made it lock the FO and detect malformed FOs (more spam for you on the debug logs!) -- but this is one problem I'm planning on fixing.
svn path=/trunk/; revision=22856
2006-07-05 02:02:44 +00:00
Alex Ionescu
6fc8c860f1 - The FO's lock is a Synch event, not a notification event!
svn path=/trunk/; revision=22855
2006-07-05 00:22:09 +00:00
Alex Ionescu
b450016579 - Finally fix IoCreateStreamFileObject. I had fixed it a long time ago but back then it was causing regressions. It now properly creates a handle for the FO and sets the right flags.
svn path=/trunk/; revision=22854
2006-07-05 00:17:34 +00:00
Alex Ionescu
ef41fc2623 - Fix IopQueryNameFile to properly validate and calculate lengths at each step of the way and to support incomplete buffers. Previously, dangerous assumptions were made about the buffers and the actual required length was never returned.
svn path=/trunk/; revision=22853
2006-07-04 23:31:42 +00:00
Alex Ionescu
0342a00bde - Fix and combine the creation of I/O Object Types, it was a complete mess with missing attributes and dangerous bugs (Adapters and Controllers had IopParseDevice as a parse routine and the same pool charge as a deivice object, etc.)
svn path=/trunk/; revision=22852
2006-07-04 22:41:47 +00:00
Alex Ionescu
9ed248e63a - Add locking in IopDeleteFile, and only check for completion context or name if the file has a DO, otherwise those shouldn't exist.
- Added support for device objects as well in IopSecurityFile, since the code is similar. Also fixed sync semantics for file objects, and made other little small fixes.

svn path=/trunk/; revision=22851
2006-07-04 22:28:23 +00:00
Ged Murphy
f1260d7115 update Wine doc
svn path=/trunk/; revision=22850
2006-07-04 21:45:05 +00:00
Ged Murphy
94384e8058 Sync to Wine-0_9_16:
Alexandre Julliard <julliard@winehq.org>
- comctl32: Don't use sizeof in traces to avoid printf format warnings.
Dmitry Timoshkov <dmitry@codeweavers.com>
- comctl32: Return FALSE in the WM_CLOSE PROPSHEET_DialogProc handler.
Mike McCormack <mike@codeweavers.com>
- comctl32: Use the listview's background colour when drawing with imagelist.
- comctl32: Arrange the listview after deleting all items so we will place iconsat the top again.

svn path=/trunk/; revision=22849
2006-07-04 21:33:34 +00:00
Ged Murphy
21d56df85d update ROS code to call new tests
svn path=/trunk/; revision=22848
2006-07-04 21:05:16 +00:00
Ged Murphy
df1bfe81ba update comctl32 regression tests to Wine-0_9_16, which now includes listview testing
svn path=/trunk/; revision=22847
2006-07-04 20:58:29 +00:00
Ged Murphy
4334d625a1 revert r22824 as requested by Fireball.
The auto sync didn't work as expected.

svn path=/trunk/; revision=22843
2006-07-04 19:27:14 +00:00
Aleksey Bragin
762103b6c0 Revert netapi and mpr winesyncs (needs to be re-applied correctly next time)
svn path=/trunk/; revision=22842
2006-07-04 19:22:00 +00:00
Aleksey Bragin
04bed5affc Revert cards.dll and crypt32.dll autowinesync.
svn path=/trunk/; revision=22841
2006-07-04 19:14:19 +00:00
James Tabor
e27f4b8e40 - CreateWindowExa/W
svn path=/trunk/; revision=22840
2006-07-04 18:26:49 +00:00
Aleksey Bragin
4f0a4cd681 ROS-specific patch for autosyncing with Wine
svn path=/trunk/; revision=22839
2006-07-04 17:33:54 +00:00
Alex Ionescu
fbfa3c8507 - Misc formatting fixes.
svn path=/trunk/; revision=22838
2006-07-04 16:53:29 +00:00
Alex Ionescu
cd3a5651b9 - Fix NtSetInformationFile to use correct sync/async semantics and use deferred I/O completion. This routine doesn't use IopSyncronous/Asyncronous helper routines because it can be optimized to handle some Information classes in-line (not currently being done except for Completion Ports, like the previous code).
svn path=/trunk/; revision=22837
2006-07-04 16:50:56 +00:00
Alex Ionescu
e5d57b0b41 - Fix NtQueryInformationFile to use correct sync/async semantics and use deferred I/O completion. This routine doesn't use IopSyncronous/Asyncronous helper routines because it can be optimized to handle some Information classes in-line (not currently being done).
svn path=/trunk/; revision=22836
2006-07-04 15:36:55 +00:00
Johannes Anderwald
e325f17cb8 fix build
svn path=/trunk/; revision=22835
2006-07-04 15:15:45 +00:00
The Wine Synchronizer
ba0d1ad833 Autosyncing with Wine
svn path=/trunk/; revision=22834
2006-07-04 14:20:20 +00:00
The Wine Synchronizer
17984c4182 Autosyncing with Wine
svn path=/trunk/; revision=22833
2006-07-04 14:17:14 +00:00
The Wine Synchronizer
a40ef44f44 Autosyncing with Wine
svn path=/trunk/; revision=22832
2006-07-04 14:14:41 +00:00
The Wine Synchronizer
238674ba55 Autosyncing with Wine
svn path=/trunk/; revision=22831
2006-07-04 14:12:07 +00:00
The Wine Synchronizer
0cb90dcf00 Autosyncing with Wine
svn path=/trunk/; revision=22830
2006-07-04 14:09:35 +00:00
The Wine Synchronizer
263c708067 Autosyncing with Wine
svn path=/trunk/; revision=22829
2006-07-04 14:04:07 +00:00
The Wine Synchronizer
a70872436e Autosyncing with Wine
svn path=/trunk/; revision=22828
2006-07-04 13:58:40 +00:00
The Wine Synchronizer
c7b8d82ee6 Autosyncing with Wine
svn path=/trunk/; revision=22827
2006-07-04 13:55:42 +00:00
The Wine Synchronizer
8405953e75 Autosyncing with Wine
svn path=/trunk/; revision=22826
2006-07-04 13:51:21 +00:00
The Wine Synchronizer
bed42ce391 Autosyncing with Wine
svn path=/trunk/; revision=22824
2006-07-04 13:46:00 +00:00
The Wine Synchronizer
1bdd35fc6e Autosyncing with Wine
svn path=/trunk/; revision=22823
2006-07-04 13:41:25 +00:00
Johannes Anderwald
6b7b808d5a * halfplemented console system menu
svn path=/trunk/; revision=22822
2006-07-04 13:36:57 +00:00
The Wine Synchronizer
bb69f46634 Autosyncing with Wine
svn path=/trunk/; revision=22821
2006-07-04 13:33:18 +00:00
Johannes Anderwald
2cb63fcb9b * remove unreferenced parameters warning in font.c layout.c colors.c
* remove global structure g_ConsoleInfo
* implemented reading/writing of options dialog settings
* added apply dialog
* thnx to w3seek for help

svn path=/trunk/; revision=22820
2006-07-04 13:22:05 +00:00
The Wine Synchronizer
4b35b55e7a Autosyncing with Wine
svn path=/trunk/; revision=22819
2006-07-04 12:05:13 +00:00
James Tabor
979f9f7d1a - NtUser/CreateWindowExA/W:
- During testing I found one application not working with the new mdi support changes. VIDE from the Vgui C++ project was creating a bugcheck trying to access kernel space. Just for precautions I moved the kernel code back into user32. After testing the application, it worked fine. So, I'm reordering the execution of CreateWindowEx. Keeping a small part in kernel space and the rest in user. This has caused code duplication in user32, but I want to set this straight first. I will sort out the code duplication later. Sorry for the mess.

svn path=/trunk/; revision=22818
2006-07-04 05:56:25 +00:00
James Tabor
b43b9aa85e Restore tinus patches.
svn path=/trunk/; revision=22817
2006-07-04 02:32:33 +00:00
James Tabor
bc28737725 Wine port for DefWindowProcAW WM_NCCREATE help SetText.
svn path=/trunk/; revision=22816
2006-07-03 22:36:09 +00:00
Magnus Olsen
cb6818f2df patch from LMH1 : see bug 1606
NORWEGIAN translations

svn path=/trunk/; revision=22815
2006-07-03 22:28:49 +00:00
Johannes Anderwald
fc2be1d1ce [AUDIT]
* unlock win32csr
* win32csr is totally different implemented from NT Version 
* audit reviewed by Alex_Ionescu

svn path=/trunk/; revision=22814
2006-07-03 22:08:47 +00:00
James Tabor
f985e4b908 Move hBmpClose to the MDICLIENTINFO structure and modified MDI_RestoreFrameMenu to support the change.
svn path=/trunk/; revision=22813
2006-07-03 22:04:42 +00:00
Magnus Olsen
6d2332c2fb Commit bug 1347, patch from w3seek
This patch implements the function TreeResetNamedSecurityInfoA. However, as it's not even implemented in windows, the code is disabled by default.


svn path=/trunk/; revision=22812
2006-07-03 21:43:04 +00:00
Magnus Olsen
3292d82ef6 forget this file sorry
svn path=/trunk/; revision=22811
2006-07-03 21:40:20 +00:00
Magnus Olsen
3bd0205d06 test case for QueueUserWorkItem from bug 1609
by w3seek

svn path=/trunk/; revision=22810
2006-07-03 21:29:32 +00:00
Johannes Anderwald
ac9badbafc set svn:eol-style:native
svn path=/trunk/; revision=22809
2006-07-03 20:27:46 +00:00
Magnus Olsen
76db5b581b 5 of 4 commit (sorry my svn clinet is crazy for moment)
Commit w3seek patch from bug 1609 : file attachment (id=910) 
The attached patch implements QueueUserWorkItem()/RtlQueueWorkItem() (lacks
optimizations!!!). WINE's latest rpcrt4 relies on it.

1. Implement QueueUserWorkItem()/RtlQueueWorkItem() :
2. A slightly optimized 
3. Supports WT_TRANSFER_IMPERSONATION
4. Slightly improved handling of growing/shrinking the pool by assuming work items with WT_EXECUTELONGFUNCTION run longer
5. Fixes a hack that made a worker thread always terminate if there were at least one more thread available




svn path=/trunk/; revision=22808
2006-07-03 20:27:38 +00:00
Magnus Olsen
ae94c696ac 4 of 4 commit (sorry my svn clinet is crazy for moment)
Commit w3seek patch from bug 1609 : file attachment (id=910) 
The attached patch implements QueueUserWorkItem()/RtlQueueWorkItem() (lacks
optimizations!!!). WINE's latest rpcrt4 relies on it.

1. Implement QueueUserWorkItem()/RtlQueueWorkItem() :
2. A slightly optimized 
3. Supports WT_TRANSFER_IMPERSONATION
4. Slightly improved handling of growing/shrinking the pool by assuming work items with WT_EXECUTELONGFUNCTION run longer
5. Fixes a hack that made a worker thread always terminate if there were at least one more thread available




svn path=/trunk/; revision=22807
2006-07-03 20:26:58 +00:00
Magnus Olsen
34861fa5e2 3 of 4 commit (sorry my svn clinet is crazy for moment)
Commit w3seek patch from bug 1609 : file attachment (id=910) 
The attached patch implements QueueUserWorkItem()/RtlQueueWorkItem() (lacks
optimizations!!!). WINE's latest rpcrt4 relies on it.

1. Implement QueueUserWorkItem()/RtlQueueWorkItem() :
2. A slightly optimized 
3. Supports WT_TRANSFER_IMPERSONATION
4. Slightly improved handling of growing/shrinking the pool by assuming work items with WT_EXECUTELONGFUNCTION run longer
5. Fixes a hack that made a worker thread always terminate if there were at least one more thread available




svn path=/trunk/; revision=22806
2006-07-03 20:24:46 +00:00
Magnus Olsen
f9fa435673 2 of 4 commit (sorry my svn clinet is crazy for moment)
Commit w3seek patch from bug 1609 : file attachment (id=910) 
The attached patch implements QueueUserWorkItem()/RtlQueueWorkItem() (lacks
optimizations!!!). WINE's latest rpcrt4 relies on it.

1. Implement QueueUserWorkItem()/RtlQueueWorkItem() :
2. A slightly optimized 
3. Supports WT_TRANSFER_IMPERSONATION
4. Slightly improved handling of growing/shrinking the pool by assuming work items with WT_EXECUTELONGFUNCTION run longer
5. Fixes a hack that made a worker thread always terminate if there were at least one more thread available




svn path=/trunk/; revision=22805
2006-07-03 20:23:48 +00:00
Magnus Olsen
d2bab053ae 1 of 4 commit (sorry my svn clinet is crazy for moment)
Commit w3seek patch from bug 1609 : file attachment (id=910) 
The attached patch implements QueueUserWorkItem()/RtlQueueWorkItem() (lacks
optimizations!!!). WINE's latest rpcrt4 relies on it.

1. Implement QueueUserWorkItem()/RtlQueueWorkItem() :
2. A slightly optimized 
3. Supports WT_TRANSFER_IMPERSONATION
4. Slightly improved handling of growing/shrinking the pool by assuming work items with WT_EXECUTELONGFUNCTION run longer
5. Fixes a hack that made a worker thread always terminate if there were at least one more thread available




svn path=/trunk/; revision=22804
2006-07-03 20:23:10 +00:00
James Tabor
abedc7b76b Restored sequence for setting WindowObject and callers styles.
svn path=/trunk/; revision=22803
2006-07-03 20:04:17 +00:00
Magnus Olsen
a0e5355f01 wrong propyty on inlcude file it is not a executable format
svn path=/trunk/; revision=22802
2006-07-03 19:59:50 +00:00
Johannes Anderwald
7b888e6f12 * dont perform IntValidateWindowStationHandle in UserCreateMenu when current process is CsrProcess
* this makes system menu for cmd.exe display
* patch reviewed by w3seek and tested by me

svn path=/trunk/; revision=22801
2006-07-03 19:25:48 +00:00
Aleksey Bragin
65045dfa79 Fix a typo (should have been commented from the beginning) in autochk: this removes UM exception in autochk during bootup
svn path=/trunk/; revision=22800
2006-07-03 16:51:19 +00:00
Hervé Poussineau
2bd2be9797 Add a big warning about installing custom drivers
svn path=/trunk/; revision=22799
2006-07-03 15:04:46 +00:00
Hervé Poussineau
41badff137 Define DLL_WINE_PREATTACH constant
svn path=/trunk/; revision=22798
2006-07-03 14:00:16 +00:00
Hervé Poussineau
19c1803cbb Add missing constants
svn path=/trunk/; revision=22796
2006-07-03 10:19:42 +00:00
James Tabor
afe9ebf1f4 -NtUserCreateWindowEx: Removed not about setting WS_CHILD.
svn path=/trunk/; revision=22795
2006-07-03 07:54:45 +00:00
James Tabor
f638f11734 -NtUserCreateWindowEx: Don't force WS_CHILD set, it could be WS_POPUP.
svn path=/trunk/; revision=22794
2006-07-03 07:52:22 +00:00
Hervé Poussineau
5167c901d3 Add more defines for anonymous structure/union names
svn path=/trunk/; revision=22793
2006-07-03 07:43:28 +00:00
James Tabor
8307280bc9 - NtUser/CreateWindowExA/W:
- Add support for WS_EX_MDICHILD. Reordered sequence for setting WindowObject and callers styles.
  - Synced mdi.c from Wine. Added support function MDI_GetId help return IDMenu.
  - Thanks to GreatLord for helping.

svn path=/trunk/; revision=22792
2006-07-03 04:33:29 +00:00
Alex Ionescu
0ffb1da110 - NtQueryDirectoryFile:
- Setup a buffer/MDL and the correct IRP flags so that that I/O manager can handle allocation, copy, free for us.
  - Setup the search pattern as an auxiliary buffer so that the I/O Mgr can track that one for us as well.
  - Update to use the correct sync semantics/routines.
  - Use deferred I/O completion.
- Outline TODOs and workplan for iofunc.c

svn path=/trunk/; revision=22791
2006-07-03 02:50:16 +00:00
Alex Ionescu
933ef1952d - NtWriteFile:
- Allow async i/o access on mailslots, without a byte offset.
  - Fix sync semantics just like for the other functions until now.
  - Fix a potential object leak in  a failure case.
  - Don't call IoBuildSyncronousFsdRequest since we want to build the IRP ourselves.
  - Use deferred I/O as an optimization.

svn path=/trunk/; revision=22790
2006-07-03 01:17:14 +00:00
Alex Ionescu
c4bc69cfd7 - NtReadFile:
- Allow async i/o access on mailslots, without a byte offset.
  - Fix sync semantics just like for the other functions until now.
  - Fix a potential object leak in  a failure case.
  - Don't call IoBuildSyncronousFsdRequest since we want to build the IRP ourselves.
  - Use deferred I/O as an optimization.

svn path=/trunk/; revision=22789
2006-07-02 23:02:38 +00:00
Alex Ionescu
2ea73a1428 - Same sort of changes for NtSetVolumeInformationFile.
svn path=/trunk/; revision=22788
2006-07-02 22:19:29 +00:00
Alex Ionescu
b17492f448 - Fix sync usage in NtQueryVolumeInformationFile, set the right IRP flags so that the I/O manager can handle copying the data back and freeing the buffer, and enable deferred completion.
svn path=/trunk/; revision=22787
2006-07-02 22:14:20 +00:00
Alex Ionescu
7dc0e5e4e8 - Add proper sync handling to NtUnlockFile.
svn path=/trunk/; revision=22786
2006-07-02 22:07:20 +00:00
Aleksey Bragin
d063cd0281 Mikhail Zvyozdochkin: Fix compiling on linux (adding missing headers inclusion)
svn path=/trunk/; revision=22785
2006-07-02 22:03:40 +00:00
Aleksey Bragin
feaabba4dc Mikhail Zvyozdochkin: Fix compiling on linux (adding proper include path for halxbox)
svn path=/trunk/; revision=22784
2006-07-02 21:59:04 +00:00
Hervé Poussineau
ff2f32e1fc Delete now useless code
svn path=/trunk/; revision=22782
2006-07-02 21:35:31 +00:00
Hervé Poussineau
6213ba017a Delete now useless code
svn path=/trunk/; revision=22781
2006-07-02 21:35:06 +00:00
Hervé Poussineau
b4a471a78a Rename richedit to riched32 and lzexpand to lz32
svn path=/trunk/; revision=22780
2006-07-02 21:33:02 +00:00
Eric Kohl
327a05db0f Implement CM_Open_DevNode_Key and add CM_Open_DevNode_Key_Ex stub.
svn path=/trunk/; revision=22777
2006-07-02 19:20:45 +00:00
Alex Ionescu
8a2e062765 - More of the same for NtNotifyChangeDirectoryFile.
svn path=/trunk/; revision=22776
2006-07-02 19:11:26 +00:00
Alex Ionescu
363f94ff5d - NtLockFile:
- Add proper sync operation.
  - Set the APC Routine/Context in the IRP instead of ignoring them.
  - Dereference the event on failure.
  - Set the allocated buffer as AuxiliaryBuffer so the I/O manager fres it.

svn path=/trunk/; revision=22775
2006-07-02 19:01:17 +00:00
Alex Ionescu
125c2ebaac - Temporarily disable queueing IRPs to their threads, since raising to APC_LEVEL seems to cause some weird user-mode exceptions.
svn path=/trunk/; revision=22774
2006-07-02 18:47:54 +00:00
Hervé Poussineau
1dc3c727a1 Implement IopReinitializeBootDrivers, on the model of IopReinitializeDrivers
svn path=/trunk/; revision=22773
2006-07-02 18:34:21 +00:00
Alex Ionescu
bd7e79620d - Move NtCancelIoFile and NtDeleteFile to file.c, they don't deal with IRPs.
- Create IopFinalizeAsynchronousIo to deal with Sync APIs working on Async file objects, which need to be waited on differently and have the IOSB copied manually.
- Update NtFlushBuffersFile to new semantics (ie, usage of the new implemented functions).

svn path=/trunk/; revision=22772
2006-07-02 18:20:37 +00:00
Alex Ionescu
a6a473a94d - Same changes for IoSertInformation: Lock the FO, queue the IRP, support alerted I/O, etc...
svn path=/trunk/; revision=22771
2006-07-02 16:41:49 +00:00
Alex Ionescu
588b81a0ba - Combine IoQueryVolumeInformation and IoQueryFileInformation
- Fix them to lock the fileobject for synch operations, use IopCleanupFailedIrp, queue the IRP in the thread's list, support aborting the I/o operation through IopAbortInterruptedIrp, and properly wait for comlpetion.

svn path=/trunk/; revision=22770
2006-07-02 16:35:05 +00:00
Alex Ionescu
13ef11ff23 - Start of heavy work on iofunc.c:
- Created our new friends: IopCleanupFailedIrp, IopAbortInterruptedIrp, IopPerformSynchronousRequest, IopLockFileObject, IopUnlockFileObject, IopQueueIrpToThread, IopUpdateOperationCount.
  - What does this mean: We actually queue IRPs to their thread! We actually respect I/O transfers being interrupted/alerted! We actually respect I/O operation counts! We actually LOCK FILE OBJECTS instead of randomly using them! We now support Deferred (read: MUCH faster) I/O completion.
- First function blessed: IopDeviceFsIoControl.
- Also simplified access rights check and fixedup some formatting.

svn path=/trunk/; revision=22769
2006-07-02 16:20:10 +00:00
Alex Ionescu
fbddf0d1ac - Fix formatting of some newly added functions before starting heavy work.
svn path=/trunk/; revision=22768
2006-07-02 14:26:25 +00:00
Alex Ionescu
fcb77c4c3d - Move IoGetBaseFileSystemDeviceObject to device.c and make it check for FO_DIRECT_DEVICE_OPEN, which it wasn't before (and also code it in a less confusing way like the other IoGetXxxDeviceObject APIs)
- Mask out the DO_VERIFY_VOLUME flag when mounting a device.

svn path=/trunk/; revision=22767
2006-07-02 06:28:29 +00:00
Alex Ionescu
130980ccde - Small optimization: don't bother to get the File System Listhead we'll parse if we're going to fail because of wrong VPB flags later... get the list only after we're sure we need it.
svn path=/trunk/; revision=22766
2006-07-02 06:18:55 +00:00
Alex Ionescu
ff429eb9f3 - Use IoIsErrorUserInoduced to check if we couldn't mount the device because it was not actually inserted, was unrocognized, write-protected, etc... and completely break out of the mounting procedure if so.
- Also use FsRtlIsTotalDeviceFailure to check if the error was a fatal device error (like a CRC error) and abandon mounting in this case as well.

svn path=/trunk/; revision=22765
2006-07-02 06:15:52 +00:00
Alex Ionescu
23be4d46c6 - Implement IopInitailizeVpbForMount for the purpose of setting up the VPB for a newly mounted DO. It properly references the VPB and sets up its stack size and flags, adding support for VPB_RAW_MOUNT. Also sets the VPB pointer in the DevObjExtension.
- Fix a bug which was causing us to incorrectly unlock the device if it was already locked by the caller isntead of by IopMountVolume.
- When loading the file system, make sure to unlock the device object if we had locked it in IopMountVolume, as well as to re-lock it afterwards. Also handle a potential race condition due to this unloacking, in which the VPB might've become mounted behind our back, and simply return success if this happened.

svn path=/trunk/; revision=22764
2006-07-02 06:11:19 +00:00
Alex Ionescu
93454acf2b - Improve list looping to remove gotos.
- Dereference the device object in case of failure.
- Add some optimizations to quickly skip invalid raw mounting.
- Add support for VPB_RAW_MOUNT.
- Allow raw mount if this is the only device on the list.
- Make the success case go through shared exit, otherwise the device wasn't getting unlocked previously.

svn path=/trunk/; revision=22763
2006-07-02 05:52:47 +00:00
Alex Ionescu
320000e093 - If the device to be mounted is an attachee, find the base device object
- Reference the device object being mounted.
- If the file system being mounted is an atachee, find its base device object too, and increase the IRP Stack for each attached FSD.
- Fix IRP parameters with this new information.

svn path=/trunk/; revision=22762
2006-07-02 05:44:27 +00:00
Alex Ionescu
e5811a1b35 - Mount the FS inline to avoid sending 6 parameters to a function only called once.
- Set the right IRP flags for a mount operation.
- Don't ignore AllowRawMount flag.
- Don't waste time passing or clearing unused flags/data on the IRP/Io Stack.

svn path=/trunk/; revision=22761
2006-07-02 05:37:55 +00:00
Alex Ionescu
2dfe23b2f6 - Respect DeviceIsLocked flag and Alertable in IopMountVolume
- Don't mount if the VPB is alread ymoutned or being removed
- Bugcheck the system if we failed to mount the boot partition.

svn path=/trunk/; revision=22760
2006-07-02 05:30:45 +00:00
Alex Ionescu
e3ec87ef6d - Fix the hack in the previous commit which broke FS support.
svn path=/trunk/; revision=22759
2006-07-02 04:33:45 +00:00
Alex Ionescu
8da2913330 - Simplify/modularize FS registration by using distinct lists for each type of FS (Tape/Disk/Network/Cdrom).
- Optimize by using directly the device queue instead of allocating a structure for each FS registered.
- Hack IopMountVolume to manage this new model. Improved version coming in next patch to deal with some bugs.

svn path=/trunk/; revision=22758
2006-07-02 02:04:04 +00:00
Alex Ionescu
23e06403c7 - Get rid of the stupid LIST_FOR_EACH macros in FS Notifcation APIs.
- Each new change request should be queued at the end of the list, not at the head.
- Also, reference the device object for each registration, since one more object is holding a pointer to it, likewise, dereference the object on deregistration.
- IopLoadFileSystem should use the base FSD in case the device object is an attachee. Also, use IoBuildDEviceIoControlRequest to minimize the IRP setup to only a couple of lines.

svn path=/trunk/; revision=22757
2006-07-02 01:44:53 +00:00
Alex Ionescu
fe8b3cfda1 - Implement some functions to handle VPB Referencing/Dereferencing.
- IoVerifyVolume:
  - Send the IRP to the base FSD, in case the current FSD is an attachee
  - Set correct flags in the IRP to notify that this is a mount operation using PAGING I/O semantics.
  - Don't ignore AllowRawMount parameter.
  - We want to mount the File System on *FAILURE*, not on SUCCESS!
  - Add reference/dereferencing to the VPB.

svn path=/trunk/; revision=22756
2006-07-02 01:35:45 +00:00
Alex Ionescu
042e74885b - Some small changes to some prototypes/names for upcoming functionality.
svn path=/trunk/; revision=22755
2006-07-02 01:29:12 +00:00
Alex Ionescu
bc0260bc30 - Correct function name
svn path=/trunk/; revision=22754
2006-07-02 01:23:18 +00:00
Magnus Olsen
b5cc6d65cd remove STYLEX DS_SHELLFONT
svn path=/trunk/; revision=22753
2006-07-02 01:11:07 +00:00
Magnus Olsen
573f5162e1 revert Revision: 22668 this change is also incorrect. now the rc file is more less okay again
svn path=/trunk/; revision=22752
2006-07-02 00:45:08 +00:00
Magnus Olsen
7d6b93dd57 revert complete wrong changes 22742
svn path=/trunk/; revision=22751
2006-07-02 00:10:13 +00:00
Magnus Olsen
766a36d23a Adding langues type (LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US) to en.rc some forget adding it. it is wrong type as well fixing it later. it should be LANG_NETURAL.
svn path=/trunk/; revision=22750
2006-07-01 23:59:33 +00:00
Alex Ionescu
e7423e0ba3 [FORMATTING] - Cleanup formatting before starting to work on the file.
svn path=/trunk/; revision=22749
2006-07-01 22:47:52 +00:00
Alex Ionescu
3ea25ef417 - Add some more functions that just build IRPs to send to devices into iofunc.c from vpb.c
- Add IoCheckQuerySetvolumeInformation to util.c from vpb.c with other similar functions
- Add the actual VPB functions in vpc.c to fs.c, and rename fs.c to volume.c, because it already contained Volume APIs, and now with VPB, even more so. It also still contains the FileSystem stuff, which is of course also generically part of "volumes".
- Delete vpb.c, rename fs.c to volume.c.

svn path=/trunk/; revision=22748
2006-07-01 21:58:29 +00:00
Alex Ionescu
9bb57a0fc7 - Move efi.c to \ex, because the functions are related to environmental variables, not I/O.
- Create \wmi directory and put wmi.c, since it's the start of a large chunk of the XP+ kernel dedicated to WMI support.
- Separate \io into \iomgr and \pnpmgr

svn path=/trunk/; revision=22747
2006-07-01 21:51:06 +00:00
Alex Ionescu
6446e5f7e9 - Add definitions for additional DOE flags to NDK.
- I/O Packet APIs improvements Part 2:
  - Implement IoSetStartIoAttributes
  - Obey StartIo Flags set by IoSetStartIoAttributes and change Packet functions to Windows XP/2003 semantics by supporting non-cancelable packets and deferred Start I/O calling.

svn path=/trunk/; revision=22746
2006-07-01 21:29:50 +00:00
Eric Kohl
e61c9cc0d7 Enable CM_Connect_MachineW to connect to the local machine.
svn path=/trunk/; revision=22745
2006-07-01 21:01:59 +00:00
Alex Ionescu
51989fa847 - Move IopInitialize/StartDevice to PnP Manager
- I/O Packet APIs fixes Part 1:
  - Clear the current IRP before parsing the Device Queues
  - Respect Cancelable parameter in IoStartNextPacket(ByKey) instead of ignoring it (acquire the cancel lock when it's requested)
  - Raise IRQL to DISPATCH_LEVEL in IoStartPacket instead of expecting the caller to do it and crashing. Also only use Cancel Lock if a Cancel Function was specified.
  - Actually handle the case where the IRP Was cancelled right after insert and the Cancel Routine has to be called.

svn path=/trunk/; revision=22744
2006-07-01 18:56:09 +00:00
Alex Ionescu
036139907e - Implement IoRegisterLastchanceShutdownNotification based on IoRegisterShutdownNotification
- Modify IoUnregisterShudownNotification to loop both lists now.
- Used the lock in IoShutdownREgisteredDevices when looping the list, and changed it to send IRP_MJ_SHUTDOWN to the attached DO. Also fixed a memory leak where the shutdown entry wasn't being freed, and optimized the function only to initialize the event once (And simply clear it each time).
- Moved IoSynchronousInvalidateDeviceRelations to PnP

svn path=/trunk/; revision=22743
2006-07-01 18:26:22 +00:00
Johannes Anderwald
f39240e913 * DS_SHELLFONT is an style not an EXSTYLE.
svn path=/trunk/; revision=22742
2006-07-01 18:04:00 +00:00
Alex Ionescu
fcb5f1cfb6 - Use IoGetDevObjExtension and STDCALL->NTAPI.
- Fix some bugs in IoGetRelatedDeviceObject: We should make sure that FO_DIRECT_DEVICE_OPEN isn't set when reading from the VPB's DO, otherwise we return the FO's DO directly. Also check for attachment before trying to get any attached device.

svn path=/trunk/; revision=22741
2006-07-01 17:51:45 +00:00
Alex Ionescu
28692c3bed - Add IoGetDevObjExtension for getting the PEXTENDED_DEVOBJ_EXTENSION from a device object instead of always doing a huge typecast.
- Implement device unloading through IopUnloadDevice and device referencing through IopReferenceDeviceObject and IopDereferenceDeviceObject, and make IoDeleteDevice and IoDetachDevice unload the device on 0 reference count. Doesn't fully work yet.
- Simplify IoGetAttachedDEvice/IoGetAttachedDeviceReference not to use an extra stack variable.

svn path=/trunk/; revision=22740
2006-07-01 17:40:03 +00:00
Magnus Olsen
903f298c70 No change in the source code. It if only to test if new slave build server works or not
svn path=/trunk/; revision=22739
2006-07-01 12:08:35 +00:00
Johannes Anderwald
c5ca23f46b move english resource code into own file
svn path=/trunk/; revision=22738
2006-07-01 09:59:38 +00:00
Saveliy Tretiakov
36e0982b7e Reduce code dublication
svn path=/trunk/; revision=22737
2006-07-01 06:52:41 +00:00
Alex Ionescu
ff6b13eb13 - IopGetDevicePointer: Close the handle if we were able to acquire it.
- IoAttachDevice/IoAttachDeviceByPointer: Fail with STATUS_NO_SUCH_DEVICE if we couldn't attach.
- IoAttachDEviceTodEviceStackSafe: VPBs don't get inherited.
- IoCreateDevice: Only set OBJ_PERMAMENT if the caller requested it.
- IoCreateDevice: Return a NULL Device object if we failed to create it.
- IoCreateDevice: Set alignment requirement to 0, x86 doesn't need it.

svn path=/trunk/; revision=22736
2006-07-01 04:21:19 +00:00
Alex Ionescu
7a5dbe8152 [FORMATTING] - Fix STDCALL->NTAPI and some other commenting/formatting issues.
[AUDIT] - File doesn't even have a function over 3 lines long, no reason to lock it.

svn path=/trunk/; revision=22735
2006-07-01 03:45:00 +00:00
Alex Ionescu
c31f4054ec - Add some missing IO_ERROR definitions to the DDK and add some tags
- Fix IoSetThreadHardErrorMode... it was reading the TEB instead of the PETHREAD.
- Optimize Error Logging: Use a static work item instead of allocating one each time, and don't use a spinlock for the buffer count, when we can use interlocked functions instead.
- Log Entries can have Device AND/OR Driver Objects, not just a single one. They must also be referenced/dereferenced on allocation/free.
- Rewrite IopLogWorker to properly deal with Device/Driver objects and querying their names, as well as with additional strings that the caller might be sending.

svn path=/trunk/; revision=22734
2006-07-01 03:36:15 +00:00
Magnus Olsen
3f9f57f91e 1. revert my last changes to this file
2. Did solv the heapfree null check with if statement

svn path=/trunk/; revision=22733
2006-06-30 22:26:19 +00:00
Magnus Olsen
11963867d1 CreateServiceA
1. Do not try todo HeapFree when pointer is NULL in cleanup:
2. Remove goto cleanup code
3. Rewrote the code so it does not need goto 

 

svn path=/trunk/; revision=22732
2006-06-30 22:07:54 +00:00
Hervé Poussineau
a05350a500 - Simplify GetFileExt
svn path=/trunk/; revision=22731
2006-06-30 21:54:25 +00:00
Hervé Poussineau
1d4a994372 Pass the correct object type and desired access to ObOpenObjectByName
svn path=/trunk/; revision=22730
2006-06-30 21:49:12 +00:00
Hervé Poussineau
5179858da1 Use ObOpenObjectByPointer instead of creating ourselves the IRP_MJ_CREATE/CLEANUP/CLOSE IRPs
svn path=/trunk/; revision=22729
2006-06-30 21:47:42 +00:00
Hervé Poussineau
f8b990739a In ObOpenObjectByPointer, always pass right mapping to SeCreateAccessState, instead of relying on a optional/incorrect parameter
svn path=/trunk/; revision=22728
2006-06-30 21:34:53 +00:00
Alex Ionescu
d3ccc7eb41 - Better organize some APIs that were a bit all over the place. No code/formatting changes.
svn path=/trunk/; revision=22727
2006-06-30 19:37:45 +00:00
Alex Ionescu
dec64724df [AUDIT] - These are yet more < 10 line wrappers.
[FORMATTING] - Fixup file headers, formatting and some comments.

svn path=/trunk/; revision=22726
2006-06-30 19:09:39 +00:00
Alex Ionescu
f5270b0105 [FORMATTING] - Tabs->spaces and proper prototype formatting.
svn path=/trunk/; revision=22725
2006-06-30 19:01:01 +00:00
Alex Ionescu
991efbb62a [AUDIT] - Irq.c is another lame wrapper.
- Remlock's code was written by Filip Navara and is clean. My additions are based on wdm.h and only add size checks and fix two visible bugs.
- Add basic support/detection for debug I/O remove blocks (we bugcheck if we identify one though).
- Simplify IoReleaseRemoveLockAndWaitEx
- Remove locks are SYNCH events, not Notification events!
- Make sure IoConnectInterrupt returns NULL to the caller on failure.

svn path=/trunk/; revision=22724
2006-06-30 18:54:34 +00:00
Alex Ionescu
ea4351d9bd [AUDIT] - iocomp.c, event.c, iowork.c, mdl.c, timer.c, symlink.c are all simple wrappers around either executive, kernel or object manager code, and they are trivial implementations usually less then 10 lines and heavily documented in public sources.
svn path=/trunk/; revision=22723
2006-06-30 18:16:27 +00:00
Alex Ionescu
d1ebf29520 - Io*SymbolicLink should use OBJ_CASE_INSENSITIVE
- Use DELETE instead of SYMBOLIC_LINK_ALL_ACCESS when deleting.
- Fix formatting in timer.c
- Clear the IO_TIMER structure when creating it.

svn path=/trunk/; revision=22722
2006-06-30 18:14:54 +00:00
Alex Ionescu
b42accc93a - Fix formatting/function order
- Use only one SEH block in NtRemoveIoCompletion
- Get the completion status from the IRP, not from the Mini-Packet, if the completion came from an IRP and not a Mini-Packet.

svn path=/trunk/; revision=22721
2006-06-30 17:53:00 +00:00
Hervé Poussineau
cabeb71d14 Don't try to allocate 0 byte (spotted by Alex Ionescu)
svn path=/trunk/; revision=22720
2006-06-30 17:38:12 +00:00
Alex Ionescu
ed3df3667f - Refactor Io*Event APIs to call an internal worker function instead of duplicating the same code twice.
- Optimize Io*Work APIs and initialize the event on allocation, not on queue!!

svn path=/trunk/; revision=22719
2006-06-30 16:56:18 +00:00
Magnus Olsen
2e185ea41a Small clean up
1. Remove goto in the code, goto is slow and should be avoid.
2. reformat for adding {} around some code.
3. remove some NULL check after I did remove goto that is not longer need it.  
 

svn path=/trunk/; revision=22718
2006-06-30 16:42:21 +00:00
Alex Ionescu
f13cb8709c - Fix IRP/Completion packet lookaside allocation. We weren't setting a zone size, and I/O Completion packets were also using the wrong size.
- Rewrite I/O MDl support to use lookaside lists for allocations below 23 pages (same as on NT). This is is an incredible performance optimization because MDLs are often allocated and de-allocated during I/O operations, and using the lookaside list decreases pool fragmentation and slowdown.
- Rewrite IoBuildPartialMdl. It did not work like documented in the DDK and also had a bug documented by Microsoft as being in XP.

svn path=/trunk/; revision=22717
2006-06-30 15:59:06 +00:00
Magnus Olsen
77aa2de357 sorry I did broke the comping some typo
svn path=/trunk/; revision=22716
2006-06-30 15:53:57 +00:00
Magnus Olsen
0432c7ee70 fixing strip working right strip -sx does not working u must type strip -s -x not togther as -sx, I did add -X direcly after it will strip away local informations as well
svn path=/trunk/; revision=22715
2006-06-30 15:38:30 +00:00
Saveliy Tretiakov
90f398225a Alex Ionescu said that check for Expanded==NULL must stay...
svn path=/trunk/; revision=22714
2006-06-30 15:12:55 +00:00
Saveliy Tretiakov
e6a334b469 Silence debug messages.
Check for Expanded==NULL is useless, because it's done in HeapFree (thx hpoussin).


svn path=/trunk/; revision=22713
2006-06-30 15:07:23 +00:00
Saveliy Tretiakov
df5296300e Read configuration from registry
svn path=/trunk/; revision=22712
2006-06-30 14:53:24 +00:00
Saveliy Tretiakov
5d1d716b06 Add some registry settings for eventlog
svn path=/trunk/; revision=22711
2006-06-30 14:52:01 +00:00
Alex Ionescu
81ba9a4b08 - Name decorate and fix some formatting snafus.
svn path=/trunk/; revision=22709
2006-06-30 05:58:23 +00:00
Alex Ionescu
f39a0e3e68 - Create iofunc.c and put all functions that ultimately create a system IRP to send to a device in it, thus clearing up irp.c and file.c and making the code base more modular.
- File.c now includes only functions dealing with the FILE_OBJECT itself.

svn path=/trunk/; revision=22708
2006-06-30 05:45:02 +00:00
Alex Ionescu
c41f64ebf3 - More name-decoration, tracing, comments, etc.
- Handle cases where we ran out of memory while trying to allocate the IRP
- Make sure the IRP can be re-used in IoReuseIrp.

svn path=/trunk/; revision=22707
2006-06-30 04:46:53 +00:00
Alex Ionescu
caaa87bbdc - Add more tracing/name decoration/comments.
- Bugcheck if cancelling and IRP that's already been completed.
- Bugcheck if attempting to call a driver with an IRP that's already past its maximum stack size.
- Make sure that when we free an IRP, it's not associated to a thread anymore, nor having any drivers that think it's valid.

svn path=/trunk/; revision=22706
2006-06-30 04:29:32 +00:00
Alex Ionescu
78277ca08f - Add more name/prototype decoration and API tracing.
- Don't handle IRP_MJ_POWER in IoBuildAsyncronousFsdRequest.
- Use IoAllocateMdl instead of being a cowboy and using MmCreateMdl.
- Handle failure/out-of-memory cases in IoBuildAsyncronousFsdRequest
- Free the input buffer on failure in IoBuildDeviceIoControlRequest
- Handle failure in IoBuildSyncronousFsdREquest.

svn path=/trunk/; revision=22705
2006-06-30 03:48:03 +00:00
Alex Ionescu
8d2254b37e - Fix I/O Completion (IopCompleteRequest/IofCompleteRequest) for the first time after the 40-thread long flame war last year:
- Don't read pointers from the file object or IRP before they are actually used, because in some parts of the code, these pointers could change before we actually use them.
  - Get rid of the #if 1/#if 0 nonsense hbirr had added.
  - Properly check for success/warning/failure cases (thanks to Filip for checking this out with me last year)
  - Handle scenarios when the IRP is marked IRP_CREATE_OPERATION
  - Bugcheck if IofCompleteRequest is called twice on the same IRP
  - Copy the master IRP's thread to the associated IRP
  - Free the Auxiliary Buffer if there is one.
  - Some formatting fixes, and majorly recomment the code to make it a lot clearer and more verbose on some of the more intricate details.
  - Remove some hacks which I don't think are needed anymore. If you notice regressions due to this patch let me know ASAP.

svn path=/trunk/; revision=22704
2006-06-30 03:15:56 +00:00
Alex Ionescu
14f7e184f3 - Completely reformat io.h to same style as ob.h and add I/O Tracing.
- Fix irp.c file header
- IopRemoveThreadIrp:
  - Get the DeviceObject and I/O Stack *before* going back to dispatch, otherwise race conditions will happen.
  - Don't complete and IRP if it's already been through two stacks.
  - Remove the IRP from the thread's IRP list before re-initializing the list, or else the IRP was lost.
  - Make sure we have an error log entry before writing to it.

svn path=/trunk/; revision=22703
2006-06-29 23:52:45 +00:00
Alex Ionescu
72dd9f4111 [FORMATTING] - Cleanup before I start working on it... there were lots of weird formatting errors caused by my old IDE back when I was working on it.
[AUDIT] - The routines in this file mostly come from documented information in "NT File System Internals" by Rajeev Nagar which has pseudo-code for a lot of them, and other WDM Books and information.

svn path=/trunk/; revision=22702
2006-06-29 23:01:09 +00:00
Christoph von Wittich
99c66c095c fixed some warnings (msvc)
svn path=/trunk/; revision=22701
2006-06-29 22:32:06 +00:00
Christoph von Wittich
23b77e8fd7 fixed some warnings (msvc)
svn path=/trunk/; revision=22700
2006-06-29 22:12:40 +00:00
Johannes Anderwald
cbfccc50b9 * finished reading console options.c
* thnx for everyone helping with this commit (you know who you are)

svn path=/trunk/; revision=22699
2006-06-29 21:40:22 +00:00
Johannes Anderwald
e7fdae5613 * fix resource inconsistency (pointed out by Lohnegrim)
* halfplemented reading console options

svn path=/trunk/; revision=22698
2006-06-29 20:19:26 +00:00
Alex Ionescu
9478fc9049 - Activate the Grim Reaper and remove a hard-coded bugcheck. This fixes random bugchecks and especially bugchecks on shutdown.
svn path=/trunk/; revision=22697
2006-06-29 19:24:10 +00:00
Alex Ionescu
4c630fdc31 - Fixes in ObCreateObjectType to pass Fireball's (and some of my own local) ob tests:
- Fix a check in ObpFreeObject which was causing a bugcheck if the object had a handle database (fixes another kmtest failure/crash).
  - Verify parameters passed to ObCreateObjectType based on behaviour seen on Windows 2003 (I might've missed some, these are the ones I tested for). This fixes 2 of the kmtest failures.
  - Also make sure the object type's name doesn't have a slash in the name.
  - Also make sure we don't allow creating two object types with the same name.
  - Also use our own local copy of the object name and copy it.

svn path=/trunk/; revision=22696
2006-06-29 19:03:24 +00:00
Johannes Anderwald
3dd2bff814 * compile console with pch support
svn path=/trunk/; revision=22695
2006-06-29 18:19:51 +00:00
Johannes Anderwald
de285c4081 * add ReactOS Console configuration DLL
svn path=/trunk/; revision=22693
2006-06-29 18:10:15 +00:00
Alex Ionescu
ec719832c0 - Fix the last two Ob reference counting bugs:
- Don't de-reference the object when duplicating it (not sure why this was left there). This fixes all the "misbehaving object: Event" messages in the console and fixes those regressions.
  - Don't reference the object when doing a lookup (not sure why this was there either). This made it impossible to kill named objects, since ObpDeleteNameCheck did a lookup before killing them, and the lookup ended up adding a reference.
- Cm still needs fixing!

svn path=/trunk/; revision=22692
2006-06-29 18:07:53 +00:00
Saveliy Tretiakov
0e79c3011a Fix thread synchronization, use critical sections.
Rewrite some functions (optimize).


svn path=/trunk/; revision=22691
2006-06-29 17:36:04 +00:00
Brandon Turner
410ae9c26b Unicode fixes and error checking.
svn path=/trunk/; revision=22690
2006-06-29 15:08:10 +00:00
Johannes Anderwald
cdbfb24b12 * fix building of win32k_test
svn path=/trunk/; revision=22689
2006-06-29 14:39:53 +00:00
Johannes Anderwald
92f587b398 * auto select items which are started automatically
* read disabled autostart items

svn path=/trunk/; revision=22688
2006-06-29 13:33:59 +00:00
Art Yerkes
f04af18b2a Added method call interface, mmu translation methods.
svn path=/branches/powerpc/; revision=22687
2006-06-29 11:07:46 +00:00
Alex Ionescu
1c69156be9 - Cleanup the checks for mishbeaving objects a bit, and now quit the Dereference routine instead of doing the dereference. This has the advantage making console applications work again (note: this is NOT a fix. I'm just making the situation less bad until I fix ObDuplicateObject since that seems to be messing Events up, and until Cm gets fixed).
svn path=/trunk/; revision=22686
2006-06-29 05:20:16 +00:00
Alex Ionescu
d02a403c94 - This patch finally enables closing handles for real, when NtClose is called. This means that File handles, processes, and all other NT Objects finally die (no more "file in use" and unkillable processes). On the other hand, this makes the registry code unhappy and unravelled a bug in ObDuplicateObject.
- Booting/installing still works, but the system will possibly be unstable. However I'm choosing to commit this because it shows correct Ob behavior and will allow Art to fix Cm's referencing properly.
- Implement ObCheckObjectAccess and call it to perform access verification checks.
- Properly create devices, processes and controllers with an extra reference count, so that when the code closes their handle they don't die.
- Check for invalid uses of ObfDereferenceObject for our current debugging purposes.
- Add SEH to NtQueryObject.

svn path=/trunk/; revision=22685
2006-06-29 05:05:27 +00:00
Art Yerkes
61cb74d018 Fixed reference counting in CmiConnectHive and CmiDisconnectHive.
No longer need hacks to check reference counts.
Deleted a ton of wierd code.
Fixed bug where we allocated uninitialized memory for child nodes we never
populated.
Now reference counting mirrors pointers exactly:
 - Hold one reference for the parent key pointer
 - Hold one reference for the list entry in the connected hive list

svn path=/trunk/; revision=22684
2006-06-29 03:48:43 +00:00
Brandon Turner
c6661f1f9e expand %* to batch file params.
bug: #1629

svn path=/trunk/; revision=22683
2006-06-29 02:48:52 +00:00
Alex Ionescu
bbfd29210c - Add some hacks to Cm to allow creating registry keys that finish with a backslash (this works under NT).
- Also add a REALLY nasty hack that forces OBJ_CASE_INSENSITIVE on all Registry APIs... this is needed because we seem to completely mess up case sensitivity otherwise and any user-mode caller that doesn't specify that flag will fail.
- These two fixes fix all the WINE failures for the "ntdll reg" test and should increase compatibility with some applications.
- Runtime Library Registry Wrappers Fixes and Optimizations:
  - Use an array of registry paths instead of duplicating them
  - Fix implenmentation of RTL_REGISTRY_HANDLE.
  - Verify all Appends for failure before continuing.
  - Use the strict minimum key permissions isntead of KEY_ALL_ACCESS.
  - Don't use OBJ_OPENIF
  - Use CAPS for \\REGISTRY\\USER (required to match a Windows quirk exposed by a WINE test)
  - Use the correct length in RtlpNtQueryValueKey
  - Generic cleanups, formatting and commenting.

svn path=/trunk/; revision=22682
2006-06-29 00:30:36 +00:00
Art Yerkes
d763a47abc Claim a workspace using openfirmware.
svn path=/branches/powerpc/; revision=22681
2006-06-28 22:55:52 +00:00
Art Yerkes
6fa7ef7aec Fixed actual bug in freeldr printf. Probably used to depend on a bug in
_itoa, which was later made compliant.  I'm guessing that this went 
unnoticed because nobody used freeldr's printf very often.

svn path=/branches/powerpc/; revision=22680
2006-06-28 22:26:04 +00:00
Alex Ionescu
96c859e6a6 - Sync RtlBitmap* implementation with WINE: Fixes 278 regression failures (for a total of 0 now).
- Also adds implementations for RtlFindMostSignificantBit , RtlFindLeastSignificantBit, RtlFindNextForwardRunClear, RtlFindClearRuns.
- The RtlBitmap* package is essential for compatibility with NTFS.SYS and other File System Drivers, but these fixes should not really improve user-mode app. compat.

svn path=/trunk/; revision=22679
2006-06-28 20:51:51 +00:00
Aleksey Bragin
81f5e26099 Mikhail Zvyozdochkin: Fix compilation of msafd without precompiled header (also fixes compilation process on linux)
svn path=/trunk/; revision=22678
2006-06-28 20:27:41 +00:00
Alex Ionescu
78a7bd2051 [AUDIT] - Unlock these files, they're just lame wrappers around the NT Kernel APIs that handle them and they're tested by WINE tests.
svn path=/trunk/; revision=22677
2006-06-28 19:52:45 +00:00
Alex Ionescu
abee505e57 - Rewrite all synch object wrappers in kernel32 to use a single unified method of implementation:
- A->W converstion through static TEB buffer.
  - Failure if opening without a name.
  - Special warning code for objects that already exist (fixes some WINE test failures and probably makes a myriad of applications work).
  - Use BasepConvertObjectAttributes when creating an object to remove code duplication.
- InitializeCrticalSectionAndSpinCount shouldn't raise an exception on failure.
- Optimize WaitForMultipleObjects to cache 8 objects on the stack instead of only 3.
- Reformat and comment all the files to ROS standards.

svn path=/trunk/; revision=22676
2006-06-28 17:08:35 +00:00
Alex Ionescu
561c27e0d3 - Implement, export and NDKize: DbgUiGetThreadDebugObject, DbgUiDebugActiveProcess, DbgUiStopDebugging, NtSetInformationDebugObject.
- Make CheckRemoteDebuggerPresent fail if no process was specified.
- Implement DebugActiveProcess, DebugActiveProcessStop, DebugBreakProcess, DebugSetProcessKillOnExit.
- Add *.vcproj to ignore lists.

svn path=/trunk/; revision=22675
2006-06-28 17:02:37 +00:00
Aleksey Bragin
1a65517f18 [FORMATTING]
- Amend file header slightly
- Add functions headers

svn path=/trunk/; revision=22674
2006-06-28 15:56:09 +00:00
Aleksey Bragin
76b7211579 [FORMATTING]
- Amend file header slightly
- Add function header
- STDCALL -> NTAPI

svn path=/trunk/; revision=22673
2006-06-28 14:02:39 +00:00
Aleksey Bragin
981fde0f9f [AUDIT]
- Add proper function headers, including links to publically-available documentation
- One internal function is subject to further review/audit

svn path=/trunk/; revision=22672
2006-06-28 13:53:30 +00:00
Aleksey Bragin
6ef4e4d9d4 [AUDIT]
- Add proper function headers, including links to documentation
- All exported functions have publically-available information sources
- The only internal function is actually quite self-explanatory by its name
- Implementation is partly wrong as pointed by Gunnar

svn path=/trunk/; revision=22671
2006-06-28 12:52:08 +00:00
Art Yerkes
87b0390e55 Woot. We're deep into freeldr. Printf is working, etc.
Forgot .bss.  TODO: retrieve .bss size in build step.

svn path=/branches/powerpc/; revision=22670
2006-06-28 01:14:23 +00:00
Art Yerkes
ada2c0684c Working up to it. We get the first banner.
svn path=/branches/powerpc/; revision=22669
2006-06-27 23:47:38 +00:00
Johannes Anderwald
de2a826959 * add EXSTYLE DS_SHELLFONT for dialogs having "MS Shell Dlg"
* fix typos 
* change sublang identifiers to SUBLANG_NEUTRAL
* patch by EmuandCo

svn path=/trunk/; revision=22668
2006-06-27 22:01:50 +00:00
Johannes Anderwald
bd7821cda6 our friends using case sensitive filesystems should also play with International Control panel applet
svn path=/trunk/; revision=22667
2006-06-27 16:11:57 +00:00
Art Yerkes
df179d3111 - LE Stubs fully correct and we can move freely between freeldr and ofwboot.
- Small tweaking.
- Added build for ppc-le2be, cause it's needed to mangle freeldr into a
  correct ofwboot payload.
- Some cleaning in ofwboot.

svn path=/branches/powerpc/; revision=22666
2006-06-27 13:03:35 +00:00
Hervé Poussineau
e66e011656 Fix case of resource files, so our friends using case sensitive filesystems will be able to play Solitaire ;)
svn path=/trunk/; revision=22665
2006-06-27 11:56:44 +00:00
Hervé Poussineau
1a5e9cdfd8 Don't be so aggressive in debug messages.
svn path=/trunk/; revision=22664
2006-06-27 11:09:23 +00:00
Johannes Anderwald
29c3268f4e add ukrainian translation by temarez bug (1628)
svn path=/trunk/; revision=22663
2006-06-27 10:40:01 +00:00
Johannes Anderwald
0e72e420b1 add ukraiain translation by temarez bug (1628)
svn path=/trunk/; revision=22662
2006-06-27 10:38:36 +00:00
Art Yerkes
d2af61537f Fix some sillyness. Remove some cruft.
svn path=/branches/powerpc/; revision=22661
2006-06-27 10:02:42 +00:00
Johannes Anderwald
94ad288b3c fix displaying status bar when notepad was resized
bug report by Apal
patch by Apal && w3seek
fixes bug 1625

svn path=/trunk/; revision=22660
2006-06-27 10:02:33 +00:00
Art Yerkes
5ac23d52a3 Utility functions separated, simple test (register dump)
svn path=/branches/powerpc/; revision=22659
2006-06-27 08:56:20 +00:00
Art Yerkes
0b3ce78bbe Forward functions verified working.
svn path=/branches/powerpc/; revision=22658
2006-06-27 08:51:04 +00:00
Art Yerkes
15c645139d Add ofw generated object file.
svn path=/branches/powerpc/; revision=22657
2006-06-27 08:15:06 +00:00
Art Yerkes
d91cff1ae8 Regularize with generated interfaces.
svn path=/branches/powerpc/; revision=22656
2006-06-27 08:01:08 +00:00
Art Yerkes
67f4a8ac0f Small tweaks.
svn path=/branches/powerpc/; revision=22655
2006-06-27 07:46:47 +00:00
Art Yerkes
511258568b Add ofw interface generator. It's a bit like mig is for mach. Just
does some convenience stuff, since we're an unusual OS, and we have 
special needs wrt OF.

svn path=/branches/powerpc/; revision=22654
2006-06-27 07:32:56 +00:00
Alex Ionescu
4903b28f61 - Fix all the failures in the RTLSTR Wine test by merging our old rtl string routines with Wine's. We now pass all 2300 something tests.
svn path=/trunk/; revision=22653
2006-06-27 04:09:03 +00:00
Alex Ionescu
bc5d1b0581 - Catch illegal call to Ob functions when ObjectAttributes == NULL and return distinguished status code for this situation (STATUS_INVALID_PARAMETER), instead of failing due to access violation.
- Create the BNO Global and Local symbolic links in kernel32.
- We pass all the Ob+Native tests in ntdll_winetest om now (we fail some named pipe ones, but I have no idea why WINE calls them "Object Manager" related...)

svn path=/trunk/; revision=22652
2006-06-27 03:06:26 +00:00
Alex Ionescu
7c3d15c5f9 - Fix another critical bug in ObInsertObject: don't overwrite the lookup status with the handle creation status. If the lookup returned something like OBJECT_NAME_EXISTS (which is a success + warning), we don't want to overwrite it with ObpCreateHandle's STATUS_SUCCESS. This should fix a large number of regressions (and also fixes many WINE ntdll "om" tests).
- We also now correctly dereference the object in ObInsertObject, which should reduce one source of leaks (But there is still one). OTOH, this makes the Cm code crash at shutdown (I'll fix this ASAP, this fix is worth having atm.)

svn path=/trunk/; revision=22651
2006-06-27 01:52:16 +00:00
Alex Ionescu
e498da59d9 - ObpCreateUnnamedHandle/ObpCreateHandle => Reference the object before calling ExCreateHandle.
- Fix two critical bugs in ObInsertObject: We were creating a handle for the wrong object (in ObInsertObject) and we were not passing the ReferencedObject parameter to ObpCreateHandle, so that object was never being returned properly to the caller.
- ObfDereferenceObject shouldn't check for the OB_FLAG_PERMANENT flag, or else it would never be possible to kill permanent objects while in kernel mode (permanent objects only apply to user-mode handles).

svn path=/trunk/; revision=22650
2006-06-27 01:16:17 +00:00
Alex Ionescu
71dda51555 - Lesson One: Don't revert commits because your eyes are inventing the word "copyright". I tried really hard, I really did, but I could not find even the word "copy", much less "copyright".
- Lesson Two: What do you know! En and De.rc actually *are* our files, not James Brown's (his is sol.rc, which hasn't been altered with a ROS Header).
- Lesson Three: It is official (voted) ROS Policy that all ROS files have a header. Reverting this header violated it.

svn path=/trunk/; revision=22649
2006-06-26 23:50:03 +00:00
Ged Murphy
93eae33135 You can't really claim copyright for translating a resource file.
Secondly, it's not even our code to put headers in. It's James Browns from catch22.net

svn path=/trunk/; revision=22648
2006-06-26 23:02:54 +00:00
Alex Ionescu
12156b1e8e - Same fixes for LocalAlloc/LocalReAlloc
- We now pass all 278+49 WINE Regression Tests related to Heap/Memory.

svn path=/trunk/; revision=22647
2006-06-26 22:50:02 +00:00
Alex Ionescu
2410073dc4 - Fix a typo in a comparison (& vs &&) which was breaking GlobalReAlloc in some cases.
- Fix a missing | (OR) in GlobalAlloc which created an invalid handle if the first allocation was of size 0.

svn path=/trunk/; revision=22646
2006-06-26 22:48:12 +00:00
Johannes Anderwald
2eddc82aca add missing includes
svn path=/trunk/; revision=22645
2006-06-26 20:18:52 +00:00
Johannes Anderwald
e18611f0ad add missing include
svn path=/trunk/; revision=22644
2006-06-26 20:15:58 +00:00
Johannes Anderwald
fe9c547879 * move english resource file to own file
* add german translation
* patch provided by Daniel "EmuandCo" Reimer

svn path=/trunk/; revision=22643
2006-06-26 20:14:36 +00:00
Johannes Anderwald
721b8ace94 fix include
svn path=/trunk/; revision=22642
2006-06-26 19:37:26 +00:00
Johannes Anderwald
926eca70dc remove unecessary include
svn path=/trunk/; revision=22641
2006-06-26 19:30:49 +00:00
Alex Ionescu
0a68278291 - Fix the build...I hope/think
svn path=/trunk/; revision=22640
2006-06-26 17:18:20 +00:00
Alex Ionescu
23321b6dc3 - Sync with WINE's latest Heap implementation and try to remove some of the differences we had, and also document the ones which must be kept (our support for RTL_HEAP_COMMIT_ROUTINE and usage of user/kernel-mode lock APIs, etc). This reduces the heap/alloc regression tests to only 1 issue (which I'm working on fixing).
svn path=/trunk/; revision=22639
2006-06-26 17:03:17 +00:00
Maarten Bosma
3654e13467 Remove all curses except 'semprini'.
svn path=/trunk/; revision=22638
2006-06-26 16:39:23 +00:00
Alex Ionescu
47326ac113 - Move the SDK to /PSDK or else we'll never get MSVC compiling right.
svn path=/trunk/; revision=22637
2006-06-26 15:32:53 +00:00
Alex Ionescu
f110fe92c5 - STDCALL -> NTAPI
svn path=/trunk/; revision=22636
2006-06-26 14:23:44 +00:00
Alex Ionescu
b0459692fe - Minor header fixes
svn path=/trunk/; revision=22635
2006-06-26 14:10:10 +00:00
Aleksey Bragin
baaaee3af6 - Change user32 to Wine-compatible debug-print messages system. TRACE/FIXME/ERR and DPRINT/DPRINT1 are supported now in every file, however they are turned on in a different way: you have to place "#define YDEBUG" before #include <wine/debug.h> in order to get debug messages coming from this file
- Give more space to user32.dll by changing preferred loading base

svn path=/trunk/; revision=22634
2006-06-26 13:16:43 +00:00
Aleksey Bragin
9cc30a5902 - Sort the list by address
- Lowercase addresses

svn path=/trunk/; revision=22633
2006-06-26 12:51:18 +00:00
Aleksey Bragin
afa9b4e4e7 Add baseaddress into dhcpcsvc.dll, removing relocation during startup
svn path=/trunk/; revision=22632
2006-06-26 09:41:51 +00:00
Aleksey Bragin
7f0a19c743 - Sync edit control with Wine code
- Add imm32 dependency to user32, which is needed for edit control. This may not be a good solution, since Windows XP's user32.dll doesn't import imm32.dll. So maybe in future this should change to dynamic binding instead. But for now it works
- Update Wine-sync doc

This update reduces number of failing "user32_winetest.exe edit" tests from 44 to 43.

svn path=/trunk/; revision=22631
2006-06-26 09:20:47 +00:00
Magnus Olsen
16240136f4 revert Revision: 22614 w3seek told it was complete wrong for search path is not working as they should. that reason it does not work.
svn path=/trunk/; revision=22630
2006-06-26 00:44:25 +00:00
Michele Cicciotti
b25bd32027 mstscax.dll sniffer: loads between mstsc.exe and the real mstscax.dll (renamed to mstscax_.dll) and dumps on debug output as much as possible of the interaction between the two. Not complete yet (doesn't sniff events) but good enough
svn path=/trunk/; revision=22629
2006-06-26 00:28:15 +00:00
Michele Cicciotti
aba8c10e53 Directory for a number of tools I'll write and use as a porting aid
svn path=/trunk/; revision=22628
2006-06-26 00:19:36 +00:00
Michele Cicciotti
4a780802f4 Small fix for debugging purposes under Cygwin: keymaps must have UNIX line endings because of a limitation in how rdesktop parses them
svn path=/trunk/; revision=22627
2006-06-26 00:17:10 +00:00
Michele Cicciotti
e6ead68fae First step of the rdesktop port: make code re-entrant
Most of the code (minus sound support) has been made re-entrant. All global variables have been turned into fields of a huge (huge!) structure passed around as a pointer argument (think C++ "this"). Changes have been tested in Cygwin, works perfectly

svn path=/trunk/; revision=22626
2006-06-26 00:07:25 +00:00
Michele Cicciotti
92f97021f6 See above
svn path=/trunk/; revision=22625
2006-06-26 00:02:44 +00:00
Michele Cicciotti
032c061628 Making room for future expansions to the family...
svn path=/trunk/; revision=22624
2006-06-26 00:02:23 +00:00
Michele Cicciotti
8d68848605 There! Hello rdesktop, please lie down on that table, don't worry, this won't hurt in the slightest!
svn path=/trunk/; revision=22623
2006-06-26 00:01:49 +00:00
Michele Cicciotti
ec3cd438bb Almost there...
svn path=/trunk/; revision=22622
2006-06-26 00:01:08 +00:00
Michele Cicciotti
f71e429edf Not quite there...
svn path=/trunk/; revision=22621
2006-06-26 00:00:48 +00:00
Michele Cicciotti
01f3e24360 Welcome rdesktop!
svn path=/trunk/; revision=22620
2006-06-26 00:00:00 +00:00
Michele Cicciotti
fb2aaa54a0 Make room for the rdesktop port/cannibalization
svn path=/trunk/; revision=22619
2006-06-25 23:56:15 +00:00
Michele Cicciotti
4404007712 Creating base directory for the Remote Desktop client - mstsc.exe, mstscax.dll, rdesktop port, etc.
svn path=/trunk/; revision=22618
2006-06-25 23:54:39 +00:00
Magnus Olsen
e7b2d710ef fixing link for explorer and regedit thanks apal for the patch see bug 1626
svn path=/trunk/; revision=22614
2006-06-25 22:34:49 +00:00
Eric Kohl
1378d2051b Add missing prototypes and definitions.
svn path=/trunk/; revision=22613
2006-06-25 22:16:43 +00:00
Art Yerkes
9ae023f477 Get at least the basics working and make regdump output a little nicer.
svn path=/branches/powerpc/; revision=22612
2006-06-25 18:12:29 +00:00
Ged Murphy
ac845a0b7f give rpcss a group name
stops exception being raised when debugging services.exe

svn path=/trunk/; revision=22611
2006-06-25 11:19:59 +00:00
Aleksey Bragin
8a4d747fe3 Sync wsprintf.c with Wine: very minor changes(STDCALL->WINAPI, CDECL->WINAPIV), no changes in code logic.
svn path=/trunk/; revision=22610
2006-06-25 10:54:32 +00:00
Aleksey Bragin
1263dd0ee5 Update Wine-syncs doc
svn path=/trunk/; revision=22609
2006-06-25 10:39:21 +00:00
Aleksey Bragin
e17e93569f Sync DDE with Wine
svn path=/trunk/; revision=22608
2006-06-25 10:38:48 +00:00
Hervé Poussineau
4721afc693 Let StartService really start the service.
This enables the plug and play manager during second stage setup

svn path=/trunk/; revision=22607
2006-06-25 00:52:40 +00:00
Hervé Poussineau
2a008d3e8b StartServiceCtrlDispatcher must be called during main, and does return only at service stop.
svn path=/trunk/; revision=22606
2006-06-25 00:51:28 +00:00
Christoph von Wittich
beca141ae2 export LsaLookupNames2 - now pcsx2 starts up
svn path=/trunk/; revision=22605
2006-06-25 00:18:24 +00:00
Art Yerkes
3ea4c44cda Small update to WIP.
svn path=/branches/powerpc/; revision=22604
2006-06-24 23:53:21 +00:00
Hervé Poussineau
4fde697f9d I forgot the ! when committing revision 22589.
svn path=/trunk/; revision=22603
2006-06-24 23:12:31 +00:00
Hervé Poussineau
5fcea60cd1 Fix the build
svn path=/trunk/; revision=22602
2006-06-24 23:04:22 +00:00
Eric Kohl
92d62b0f19 Implement CM_Set_HW_Prof_Flags[_Ex]A/W.
svn path=/trunk/; revision=22600
2006-06-24 22:57:53 +00:00
Hervé Poussineau
78baad6812 Update msiquery.h header (sync with Wine)
svn path=/trunk/; revision=22599
2006-06-24 22:34:49 +00:00
Art Yerkes
b0ae60eb7d Added link for freeldr.
svn path=/branches/powerpc/; revision=22598
2006-06-24 22:21:34 +00:00
Art Yerkes
61239b654c WIP Stragglers.
svn path=/branches/powerpc/; revision=22597
2006-06-24 22:10:40 +00:00
Art Yerkes
1ef3e5d464 Added simple main function for powerpc.
svn path=/branches/powerpc/; revision=22596
2006-06-24 22:07:06 +00:00
Art Yerkes
fc38707bc0 WIP straggler.
svn path=/branches/powerpc/; revision=22595
2006-06-24 22:03:20 +00:00
Art Yerkes
f55d60a183 PowerPC wip stragglers.
svn path=/branches/powerpc/; revision=22594
2006-06-24 21:56:05 +00:00
Art Yerkes
8d033e5f1b Add ARCH=powerpc, for initial build.
svn path=/branches/powerpc/; revision=22593
2006-06-24 21:52:03 +00:00
Art Yerkes
771a05678e ReactOS PowerPC WIP. This will be edited and merged, and likely shrunk.
Hacks will be removed and indeed your favorite assembly snippet will 
eventually not be just 'blr', so please *don't panic*.

svn path=/branches/powerpc/; revision=22592
2006-06-24 21:34:12 +00:00
Art Yerkes
e1850b5ee7 PowerPC WIP. Some of this is indeed hacky and will be changed.
svn path=/branches/powerpc/; revision=22591
2006-06-24 21:27:06 +00:00
Magnus Olsen
b9782f4327 fix some problem to edit main.cpl rc with vc but not all
svn path=/trunk/; revision=22590
2006-06-24 21:19:34 +00:00
Hervé Poussineau
aa481c7afb Don't redefine UNICODE_STRING/STRING (may happen if winternl.h is already included)
svn path=/trunk/; revision=22589
2006-06-24 21:14:41 +00:00
Hervé Poussineau
6d736e0d3a Update wincrypt.h header (sync with Wine)
svn path=/trunk/; revision=22588
2006-06-24 20:59:20 +00:00
Hervé Poussineau
1f7943c579 Fix MLLoadLibraryA/W prototypes
svn path=/trunk/; revision=22585
2006-06-24 20:40:55 +00:00
Alex Ionescu
d2ced73e52 - Reformat heap.c to ROS standards
- HeapCreate should mask out NT flags and tag allocations with CLASS 1.
- Implemented HeapCreateTagsW, HeapExtend, HeapQueryTagW, HeapSummary, HeapUsage.
- Stubbed RtlUsageHeap, RtlQueryTagHeap, RtlExtendHeap, RtlCreateTagHeap.

svn path=/trunk/; revision=22583
2006-06-24 19:49:28 +00:00
Alex Ionescu
8ec0cfcce6 - Fixup Local* Heap implementation so that calls which have different semantics don't call the Global APIs (ie: LocalAlloc/LocalReAlloc and LocalFlags). The rest can be shared beteween them. Also fix some prototypes.
- Rename all the defintions to BASE_HEAP instead of GLOBAL_HEAP, since they apply just as well to the Local Heap.

svn path=/trunk/; revision=22582
2006-06-24 19:00:07 +00:00
Hervé Poussineau
aa75a24d24 Fix prototype of WritePwrScheme. Prototypes shouldn't have LPTSTR in their parameter list!
svn path=/trunk/; revision=22581
2006-06-24 18:47:50 +00:00
Hervé Poussineau
fec0bf98d0 Fix definition of NtGdiAlphaBlend
svn path=/trunk/; revision=22580
2006-06-24 18:26:28 +00:00
Alex Ionescu
5940727077 - Rewrote Base Heap implementation nearly from scratch, currently only for Global Heap (Local Heap is as broken as before, since it still calls the Global Heap APIs). For detailed implementation notes, see baseheap.h
- Main changes include using the RtlHandle package instead of duplicating an internal implementation, as well as using the RtlHeap* APIs that allow for setting User Flags/Values for associating Base Heap Flags/Handles with the actual RTL-managed block.
- Regression-tested with WINE tests and basic ROS apps.

svn path=/trunk/; revision=22579
2006-06-24 18:11:57 +00:00
Alex Ionescu
37e7a63e8a - There are more then only the 3 or 4 heap flags WINE's Windows 95 code supports(there are about 18), so it's a bit stupid to mask them all out, especially since that breaks settable/tag flags.
svn path=/trunk/; revision=22578
2006-06-24 18:01:53 +00:00
Alex Ionescu
74216f856e - Silence debug message
svn path=/trunk/; revision=22577
2006-06-24 17:07:15 +00:00
Alex Ionescu
ccde4e5475 - Fix implementation of RtlSetUserValueHeap and RtlGetUserInfoHeap to write their flags to the subheap and not the actual main heap structure (since those flags are valid for each allocation).
- Make heap allocations 8-byte aligned again.

svn path=/trunk/; revision=22576
2006-06-24 17:05:05 +00:00
Magnus Olsen
d3cd587e70 fixing so u can edit rsrc.rc again with vs
svn path=/trunk/; revision=22575
2006-06-24 16:51:12 +00:00
Magnus Olsen
3e7c39f7d2 1. Fix the russain rc to be open with VS
2. move all langues rc to rsrc.rc so we can open
   them in VS without genrate project file for VS
   we already doing it on few other dll/exe


svn path=/trunk/; revision=22574
2006-06-24 16:44:30 +00:00
Magnus Olsen
8c39926c96 Ukrainian translation from temarez see bug 1624
svn path=/trunk/; revision=22573
2006-06-24 16:24:25 +00:00
Magnus Olsen
eb501c405f Ukrainian translation from temarez see bug 1624
svn path=/trunk/; revision=22572
2006-06-24 16:21:53 +00:00
Magnus Olsen
253288305e Update Ukrainian translation from temarez see bug 1624
svn path=/trunk/; revision=22571
2006-06-24 16:18:32 +00:00
Magnus Olsen
707e38adcb Update Ukrainian translation from temarez see bug 1624
svn path=/trunk/; revision=22570
2006-06-24 16:15:22 +00:00
Alex Ionescu
142dbcc0b4 - Fix boot
svn path=/trunk/; revision=22569
2006-06-24 16:05:37 +00:00
Alex Ionescu
01a0c11c80 fix build
svn path=/trunk/; revision=22568
2006-06-24 15:53:30 +00:00
Magnus Olsen
2063f88ebb Update Ukrainian translation from temarez see bug 1624
svn path=/trunk/; revision=22567
2006-06-24 15:38:28 +00:00
Magnus Olsen
96ca5a8191 Ukrainian translation from temarez see bug 1624
svn path=/trunk/; revision=22566
2006-06-24 15:37:31 +00:00
Magnus Olsen
49ddaf959d Update Ukrainian translation by temarez see bug 1624
svn path=/trunk/; revision=22565
2006-06-24 15:33:10 +00:00
Magnus Olsen
6125919b36 Ukrainian translation by temarez see bug 1624
svn path=/trunk/; revision=22564
2006-06-24 15:30:44 +00:00
Magnus Olsen
7948806a51 french translation by ggcom see bug 1370
svn path=/trunk/; revision=22563
2006-06-24 14:09:01 +00:00
Magnus Olsen
f34a044635 Finnish translation by arzi see bug 1367
svn path=/trunk/; revision=22562
2006-06-24 14:03:51 +00:00
Magnus Olsen
d8783369ec Finnish translation by arzi see bug 1367
svn path=/trunk/; revision=22561
2006-06-24 14:01:30 +00:00
Magnus Olsen
cd9e7418ae Polish translation see bug 1315 by RealSzopen
svn path=/trunk/; revision=22560
2006-06-24 13:44:28 +00:00
Magnus Olsen
de18b10b10 french translation by ggcom see bug 1312
svn path=/trunk/; revision=22559
2006-06-24 13:39:16 +00:00
Magnus Olsen
cd5fc8f8ad greek translation from Apal : bug 1509
svn path=/trunk/; revision=22556
2006-06-24 12:07:54 +00:00
Magnus Olsen
7447fad94e greak translation from Apal : bug 1509
svn path=/trunk/; revision=22555
2006-06-24 12:00:57 +00:00
Magnus Olsen
889b1803ff greak translation from Apal : bug 1509
svn path=/trunk/; revision=22554
2006-06-24 11:58:13 +00:00
Saveliy Tretiakov
260c2762d2 Oops :) forget sizeof(WCHAR)
svn path=/trunk/; revision=22553
2006-06-24 10:37:55 +00:00
Alex Ionescu
6f34173bc0 - Hackplement RtlSetUserValueHeap and RtlGetUserInfoHeap, they are needed for being able to build higher-level heap management around the Heap APIs (either for developers or the OS). Case in point, needed for my Global* rewrite in kernel32. The current APIs are utter hacks, but they work (eventually we should get rid of the Wine Windows 95 heap implementation and replace it).
svn path=/trunk/; revision=22552
2006-06-23 23:10:58 +00:00
Alex Ionescu
8cd72eb3cd - Fixes in source code required for the NDK update.
svn path=/trunk/; revision=22551
2006-06-23 21:25:11 +00:00
Alex Ionescu
b3653a9abd - Update the NDK to the current vendor import.
svn path=/trunk/; revision=22550
2006-06-23 21:21:45 +00:00
Christoph von Wittich
4de9cf5a44 -fixed some warnings (msvc)
svn path=/trunk/; revision=22549
2006-06-23 21:19:01 +00:00
Aleksey Bragin
5b29a7494b Andrey Korotaev: Fix errors and typos in Russian translation, change Wine-specific parts to ReactOS.
svn path=/trunk/; revision=22548
2006-06-23 21:12:32 +00:00
Christoph von Wittich
25a5623442 -fixed some warnings (msvc)
svn path=/trunk/; revision=22547
2006-06-23 20:49:21 +00:00
Christoph von Wittich
78076d665a -fixed some warnings (msvc)
svn path=/trunk/; revision=22546
2006-06-23 20:08:52 +00:00
Christoph von Wittich
308147d6d3 -fixed some warnings (msvc)
svn path=/trunk/; revision=22545
2006-06-23 20:01:20 +00:00
Magnus Olsen
aaa109e28c norwigen translation from lars_martin4 at hotmail.com, please use LANG_NORWEGIAN, SUBLANG_NEUTRAL when u doing a translation. bug 1607
svn path=/trunk/; revision=22544
2006-06-23 19:55:19 +00:00
Johannes Anderwald
bf89f3f457 restore old targets
svn path=/trunk/; revision=22543
2006-06-23 19:36:23 +00:00
Johannes Anderwald
a245ed3386 parse -vo option
svn path=/trunk/; revision=22542
2006-06-23 19:36:01 +00:00
Magnus Olsen
0673ba6430 rewrite janderwald patch for NULL, I see it as pointless using static const WCHAR szNullString[] =
{ '\0' }; to return a null termentate string when u can simple replace it with L'\0' 

svn path=/trunk/; revision=22541
2006-06-23 18:54:53 +00:00
Johannes Anderwald
f4ef526c52 oops
thnx Greatlord

svn path=/trunk/; revision=22540
2006-06-23 18:48:57 +00:00
Christoph von Wittich
c709176c48 -fixed some warnings (msvc)
svn path=/trunk/; revision=22539
2006-06-23 18:44:57 +00:00
Johannes Anderwald
0a3f114ae2 fix duplicate control id
spotted by msvc :-)

svn path=/trunk/; revision=22538
2006-06-23 18:35:15 +00:00
Johannes Anderwald
ec5b7e38c0 include wingdi before winuser.h
replace nice construct with static const WCHAR :)

svn path=/trunk/; revision=22537
2006-06-23 18:27:08 +00:00
Johannes Anderwald
98b5733eb2 yet another msvc fix inline -> __inline
svn path=/trunk/; revision=22536
2006-06-23 18:07:10 +00:00
Johannes Anderwald
d2f6e25680 include wingdi.h before winuser.h
fixes last compile prob with msvc

svn path=/trunk/; revision=22534
2006-06-23 17:57:19 +00:00
Johannes Anderwald
a37b36dfc4 replace DECL_WINELIB_TYPE_AW macros with typedefs
thnx to Greatlord for reviewing patch

svn path=/trunk/; revision=22528
2006-06-23 17:39:04 +00:00
Johannes Anderwald
3a721c0824 fix TCHAR/WCHAR mixtures
spotted by Christoph_vW

svn path=/trunk/; revision=22527
2006-06-23 17:14:29 +00:00
Johannes Anderwald
06cb1d0c38 msvc fix (remove obsolete semicolon)
svn path=/trunk/; revision=22526
2006-06-23 16:30:22 +00:00
Saveliy Tretiakov
abb09e14a3 Fix buffer overflow vulnerability (bug 1528)
svn path=/trunk/; revision=22525
2006-06-23 14:55:52 +00:00
Magnus Olsen
1cca440e58 bugfix : patch from w3seek bug 1620 : RTL: Fix a locking bug in the vectored exception handling
svn path=/trunk/; revision=22524
2006-06-23 14:42:14 +00:00
James Tabor
5a3635d248 GetGlyphOutline, large wine port. Still testing.
svn path=/trunk/; revision=22523
2006-06-23 12:29:38 +00:00
Hervé Poussineau
9151c56146 Fix retrieving of NTP server from registry
Set svn:eol-style and svn:keywords properties

svn path=/trunk/; revision=22522
2006-06-23 08:13:50 +00:00
Alex Ionescu
2c010d69e8 - Cache system static information, such as PAGE_SIZE at kernel32 startup, so we can reference it in our code without always quertying the system for it.
svn path=/trunk/; revision=22521
2006-06-22 23:44:17 +00:00
Alex Ionescu
8727a1f7ff [AUDIT] - Unlock Thomas's low resource notification code, since it's clean.
- Entirely rewrite Kernel32 Probe functions to um, actually probe (ported Thomas's code in the kernel and adjusted for user-mode and then checked with WINE's code). I can't begin to fathom what the previous routines were supposed to be doing.

svn path=/trunk/; revision=22520
2006-06-22 23:40:50 +00:00
Alex Ionescu
3b350f6972 [AUDIT] These files are clean and simple stubs around NT apis and/or WINE code.
- Reformat the files.
- Fix A->W calling.
- Simpliy WriteProcessMemory to use NtProtectVirtualMemory to query the current state.
- Call some APIs with the right DesiredAccess instead of allways sending _ALL_ACCESS. (for example, only use SECTION_MAP_READ | QUERY unless the caller wants r/w.
- Flush ITLB when writing to process memory.

svn path=/trunk/; revision=22519
2006-06-22 23:06:14 +00:00
Hervé Poussineau
b1d543c345 Don't enumerate the serial port used for debugging
svn path=/trunk/; revision=22518
2006-06-22 22:57:32 +00:00
Ged Murphy
803efa1716 [AUDIT]
timedate.cpl
For some reason, this had been unlocked but not had it's svn:needs-lock props removed.
I've been working on this for the past few days and can verify it's clean.

svn path=/trunk/; revision=22517
2006-06-22 22:37:10 +00:00
Hervé Poussineau
e57648e8e2 Fail start of the serial port currently used for debugging, according to http://blogs.msdn.com/doronh/archive/2006/06/07/621604.aspx
svn path=/trunk/; revision=22516
2006-06-22 22:14:51 +00:00
Hervé Poussineau
6c6b0189cf [AUDIT]
serial.sys is clean. I wrote it myself and I didn't use unclean methods.

svn path=/trunk/; revision=22515
2006-06-22 22:13:27 +00:00
James Tabor
7f2ffb8b76 Update wine sync info.
svn path=/trunk/; revision=22514
2006-06-22 22:12:19 +00:00
Aleksey Bragin
59570aa6d0 Sync with Wine. Based on James Tabor's patch, with little modifications.
svn path=/trunk/; revision=22513
2006-06-22 22:00:24 +00:00
Hervé Poussineau
37ac31e89d Export KdComPortInUse
Print a header when debugging to serial port

svn path=/trunk/; revision=22512
2006-06-22 21:26:31 +00:00
Hervé Poussineau
f1df497132 Fix exports of device object types.
svn path=/trunk/; revision=22511
2006-06-22 21:16:55 +00:00
Johannes Anderwald
7f6da8f1fc msvc compilation fix
svn path=/trunk/; revision=22510
2006-06-22 21:16:28 +00:00
Hervé Poussineau
26836826ef Last 4 parameters of GetDiskFreeSpaceW are optional.
Fix bug 1608.

svn path=/trunk/; revision=22509
2006-06-22 20:50:53 +00:00
Johannes Anderwald
2e30a9b979 implement IDL compilation, generation of client/server stubs and creating import library of it
hurray :-)

svn path=/trunk/; revision=22508
2006-06-22 20:49:18 +00:00
Magnus Olsen
ec48d01285 bugfix from w3seek : bug 1474 : NTMARTA: GetExplicitEntriesFromAcl should return valid information for NULL-ACLs
svn path=/trunk/; revision=22507
2006-06-22 20:34:23 +00:00
Magnus Olsen
1e42e69d3d Bugfix from w3seek : bug 1614 Fix resource leak in NtRemoveIoCompletion
svn path=/trunk/; revision=22506
2006-06-22 20:30:49 +00:00
Johannes Anderwald
8579c127f7 remove targets
svn path=/trunk/; revision=22505
2006-06-22 19:15:37 +00:00
Johannes Anderwald
2ee2575f20 apply changes to msvc_clean target
svn path=/trunk/; revision=22504
2006-06-22 19:09:46 +00:00
Johannes Anderwald
bbc1c1a111 * make intermediate / outpath optional
* if u want to continue using vc specific path / configuration add flag -vo{version|configuration}

svn path=/trunk/; revision=22503
2006-06-22 18:50:00 +00:00
Ged Murphy
7d91409d48 - split the code up into logical files and reformat
- more code for NTP time setting
- many other code improvements

svn path=/trunk/; revision=22502
2006-06-22 17:13:29 +00:00
James Tabor
cccec459d0 Wine port WM_SETREDRAW.
svn path=/trunk/; revision=22500
2006-06-22 12:32:52 +00:00
Filip Navara
2b5ee06b1a Fix bug introduced in r21635.
svn path=/trunk/; revision=22499
2006-06-22 12:14:41 +00:00
Johannes Anderwald
eba80981e5 * fix idl build command
* generate client/server headers/sources in intermediate directory

svn path=/trunk/; revision=22497
2006-06-22 12:00:51 +00:00
Alex Ionescu
5831981241 - Sorry... was suffering from post-REcon-where-the-frell-am-I disorder.
svn path=/trunk/; revision=22495
2006-06-22 03:08:09 +00:00
Alex Ionescu
c8ff157406 - Rename obwait/obsecure
- Check for valid access in NtSignalAndWaitForSingleObject and don't check if ResultLength isn't NULL in NtQueryObject, because it's not optional.
- Add Thomas's name to a file where it wasn't.
- Reformatting (only code change is #2 above)

svn path=/trunk/; revision=22494
2006-06-22 02:20:34 +00:00
James Tabor
f92175d5fa Missed one line for sync to Wine.
svn path=/trunk/; revision=22493
2006-06-21 21:31:53 +00:00
Ged Murphy
eac2be9ab7 header changes for r22491
svn path=/trunk/; revision=22492
2006-06-21 21:20:28 +00:00
Ged Murphy
2747b47c79 Port RegGetValue() from WINE
patch by Thomas Weidenmueller


svn path=/trunk/; revision=22491
2006-06-21 21:19:47 +00:00
Ged Murphy
6c16a39783 load correct entry from registry
svn path=/trunk/; revision=22489
2006-06-21 20:46:37 +00:00
Ged Murphy
087d49dc73 oops, I can be so selfish sometimes ;)
svn path=/trunk/; revision=22487
2006-06-21 20:14:11 +00:00
Ged Murphy
4f99e0c714 - Add more code for NTP server selection.
- draw clock window from resource file to fix dialog unit / pixel anomaly ;)
- Do a bit of work on the NTP client. Still untested and may change to tcp.
All untested and I'm no where near finished yet, but there are a few bug fixes in here, and I'm running short on time ;)

svn path=/trunk/; revision=22486
2006-06-21 19:57:58 +00:00
Ged Murphy
25e24d88df missed this little blighter when fixing the DateTime.. macro
svn path=/trunk/; revision=22485
2006-06-21 19:44:06 +00:00
James Tabor
721c53105a I've synced most of the User32 control files. Edit, I looked at and saw very little needing synced in. Scrollbar has custom code and Static sync needs more testing.
svn path=/trunk/; revision=22484
2006-06-21 19:43:02 +00:00
Ged Murphy
6067cdbbef change macros to call correct version
svn path=/trunk/; revision=22480
2006-06-21 18:46:46 +00:00
Ged Murphy
a14bed3e15 fix incorrect macro
svn path=/trunk/; revision=22479
2006-06-21 18:43:14 +00:00
Aleksey Bragin
ca9d44a4a4 Update the doc to include all user32.dll's source code files which are shared one way or another with Wine. Makes syncing easier.
svn path=/trunk/; revision=22473
2006-06-21 17:03:20 +00:00
Aleksey Bragin
e291e62bf9 - Sync user32/buttons.c with Wine
- Update wine-syncs doc

svn path=/trunk/; revision=22459
2006-06-21 14:16:50 +00:00
Hervé Poussineau
4c5a1e73e8 Fix compilation
svn path=/trunk/; revision=22452
2006-06-21 11:45:11 +00:00
Saveliy Tretiakov
1dc7bde5fb Fix potential buffer overflow and unchecked return (bug 1527).
Update headers.


svn path=/trunk/; revision=22451
2006-06-21 11:25:22 +00:00
Aleksey Bragin
b04736c21a Thomas Weidenmueller: Remove rtl dependency
svn path=/trunk/; revision=22450
2006-06-21 10:03:33 +00:00
Hervé Poussineau
67950a1150 Handle MachineName parameter in SetupDiCreateDeviceInfoListExW
Eric, can you take care of the change in CM_Connect_MachineW?

svn path=/trunk/; revision=22449
2006-06-21 09:00:17 +00:00
Filip Navara
521b9caad9 Implement the isometric mapping mode and call the mapping functions for Ellipse and Polygon drawing. Thanks MgW from IRC for testing. :)
svn path=/trunk/; revision=22448
2006-06-21 08:33:27 +00:00
Filip Navara
d930a6123d Fix the millimeter calculation and assume 96DPI to be consistent with win32k.
svn path=/trunk/; revision=22447
2006-06-21 08:25:25 +00:00
Hervé Poussineau
d5e40a314e Fix indentation in SetupDiCreateDeviceInfoListExW
Fix 2 architecture extension constants

svn path=/trunk/; revision=22446
2006-06-21 07:52:19 +00:00
Hervé Poussineau
9bea18dd04 Fix some bugs according to test suite
Delete unused files

svn path=/trunk/; revision=22445
2006-06-21 06:40:02 +00:00
Art Yerkes
c517aab41d Fix small annoyance. Misplaced comma ftw.
svn path=/trunk/; revision=22444
2006-06-21 03:30:54 +00:00
James Tabor
cc6f45970b Sync to wine, User32. Tested with winefile, explorer with out any problems and no real improvements.
svn path=/trunk/; revision=22443
2006-06-21 02:14:09 +00:00
Magnus Olsen
12a01a7706 move back packmgr did move it by mistake
svn path=/trunk/; revision=22441
2006-06-20 21:12:15 +00:00
Magnus Olsen
f9764bff93 move qemu gui to tools
svn path=/trunk/; revision=22440
2006-06-20 21:11:39 +00:00
Magnus Olsen
3c8c07593b Moved remotely
svn path=/trunk/; revision=22439
2006-06-20 21:11:04 +00:00
Magnus Olsen
2ce269f075 Qemu GUI written in C# visual studio 2003. This is the source code of preview 6 I have done. The code have not been cleanup I commit a binary version of it as well. for not every one can compile it, and we should only include it with qemu when we are doing a release. so people with very lite knowlegws can config qemu as they like. I did speak with fireball he did think it was good idea to commit it to rosapps. See the todo.txt what left be done.
svn path=/trunk/; revision=22438
2006-06-20 21:05:59 +00:00
Hervé Poussineau
cee03bff64 Fix a cast
svn path=/trunk/; revision=22437
2006-06-20 18:56:41 +00:00
James Tabor
9945135514 Remove unimplemented debug print from CheckMenuRadioItem.
svn path=/trunk/; revision=22436
2006-06-20 01:42:02 +00:00
Aleksey Bragin
b48f3fc981 GCC 4 fixes, thanks to w3seek
svn path=/trunk/; revision=22434
2006-06-19 21:05:33 +00:00
Johannes Anderwald
3f201b3fd2 german translation by EmuandCo
svn path=/trunk/; revision=22433
2006-06-19 21:05:06 +00:00
Johannes Anderwald
b75fcdaa52 revert 22430
svn path=/trunk/; revision=22432
2006-06-19 20:32:10 +00:00
Johannes Anderwald
f8c1c6903d change SUBLANG_NEUTRAL to language specific code
patch by Brezenbak (he's back)

svn path=/trunk/; revision=22430
2006-06-19 20:01:26 +00:00
Johannes Anderwald
45c3f05329 add a few sublang constants
svn path=/trunk/; revision=22429
2006-06-19 20:01:01 +00:00
Johannes Anderwald
434759908d italien translation done by Speekix & small fixes by Brezenbak
svn path=/trunk/; revision=22428
2006-06-19 18:16:56 +00:00
Johannes Anderwald
6ad59cd7dc change to dialog font to MS Shell Dlg
patch by EmuandCo

svn path=/trunk/; revision=22426
2006-06-19 17:47:11 +00:00
Johannes Anderwald
9aa6f94c3d change to dialog font to MS Shell Dlg
patch by EmuandCo

svn path=/trunk/; revision=22425
2006-06-19 17:31:18 +00:00
Aleksey Bragin
99c69dbca9 Simple OpenGL screensaver by Andrey Korotaev. This is a good app to test opengl regressions.
svn path=/trunk/; revision=22424
2006-06-19 17:19:04 +00:00
Art Yerkes
b8bbec3796 Endian neutrality.
svn path=/trunk/; revision=22423
2006-06-19 16:38:27 +00:00
Ged Murphy
a63d7b03cf [AUDIT]
userinit 
userinit functionality is documented in Windows Internals. Our userinit is a trimmed version of that.
I suspect Thomas would also confirm this as clean if anyone asks him ;)

svn path=/trunk/; revision=22422
2006-06-19 16:06:35 +00:00
Art Yerkes
07565e3067 Fixed rare block end overwrite.
svn path=/trunk/; revision=22421
2006-06-19 15:55:17 +00:00
Ged Murphy
71463053fb [AUDIT]
dnsapi
Confirmed to be clean by Art Yerkes

svn path=/trunk/; revision=22420
2006-06-19 15:31:55 +00:00
Ged Murphy
f5028b62ff [AUDIT]
dhcpcsvc
Confirmed to be clean by Art Yerkes

svn path=/trunk/; revision=22419
2006-06-19 15:29:23 +00:00
Ged Murphy
bc29d4256f [AUDIT]
slayer
Confirmed to be clean by Thomas Weidenmueller

svn path=/trunk/; revision=22418
2006-06-19 13:59:22 +00:00
Ged Murphy
8eb5c17e99 [AUDIT]
utils
ReactOS utilities, not based on Windows components

svn path=/trunk/; revision=22417
2006-06-19 13:55:51 +00:00
Ged Murphy
8428b9d16f [AUDIT]
hid
mostly wrappers and stubs.
Confirmed to be clean by Thomas Weidenmueller

svn path=/trunk/; revision=22416
2006-06-19 13:49:29 +00:00
Ged Murphy
09f1c65b39 [AUDIT]
devmgr
Confirmed to be clean by Thomas Weidenmueller
"devmgr is built from the ground up, probably completely differently. It only has undocumented apis which Thomas wrote test apps for, they were mostly based on guessing and corrected several times."

svn path=/trunk/; revision=22415
2006-06-19 13:27:06 +00:00
Ged Murphy
58217251fd [AUDIT]
winsta
only contains stubs

svn path=/trunk/; revision=22414
2006-06-19 12:45:44 +00:00
Ged Murphy
4420b05a12 [AUDIT]
winscard
only contains stubs

svn path=/trunk/; revision=22413
2006-06-19 12:43:39 +00:00
Aleksey Bragin
f2f67e344c Alexey Zavyalov: Start implementing new International Settings applet (Windows XP-alike style, and eventually will work in Windows XP).
I keep the old intl.cpl in our tree since it contains some hacks to switch languages/locales/layouts, which will soon be gone (along with the old intl.cpl logically)

svn path=/trunk/; revision=22412
2006-06-19 12:43:29 +00:00
Ged Murphy
c9099e06c5 [AUDIT]
vdmdbg
only contains stubs

svn path=/trunk/; revision=22411
2006-06-19 12:36:40 +00:00
Ged Murphy
dd4f9423a7 [AUDIT]
snmpapi
only contains stubs

svn path=/trunk/; revision=22410
2006-06-19 12:34:31 +00:00
Ged Murphy
aa2e6e3de0 [AUDIT]
samsrv
only contains stubs

svn path=/trunk/; revision=22409
2006-06-19 12:22:44 +00:00
Ged Murphy
38bb456ef3 [AUDIT]
authz 
Confirmed to be clean by Thomas Weidenmueller

svn path=/trunk/; revision=22408
2006-06-19 12:14:39 +00:00
Ged Murphy
5551537d5f [AUDIT]
opengl32 
Confirmed to be clean by Anich Gregor (blight)

svn path=/trunk/; revision=22407
2006-06-19 12:09:56 +00:00
Ged Murphy
ccc9dab877 [AUDIT]
mswsock
All stubs with the exception of TransmitFile, which is a simple wrapper

svn path=/trunk/; revision=22406
2006-06-19 11:49:15 +00:00
Aleksey Bragin
9b0d10bbbc Change entrypoint to be a get-style method of class Module, having a boolean param which define if the entrypoint is to be returned with or without the leading underscore. Internal entrypoint string holds entrypoint without leading underscore.
This makes both mingw and msvc backend happy about entry point names.

svn path=/trunk/; revision=22405
2006-06-18 20:30:52 +00:00
Magnus Olsen
7985065a7a rename .xml to rbuild forget we using .rbuild as ext
svn path=/trunk/; revision=22404
2006-06-18 20:14:40 +00:00
Aleksey Bragin
21aed7ec4f Revert r22396: I will provide a better fix
svn path=/trunk/; revision=22403
2006-06-18 20:01:13 +00:00
Magnus Olsen
cebe4f85fa 1. Restore hardware wiz cpl, fix the comping error. Do not delete rbuild file when some thing does not build.
2. fixing the comping problem for hardware wiz cpl 
3. Langues Nl.rc patch from i386dx see wiki how have done the translate

svn path=/trunk/; revision=22402
2006-06-18 19:56:12 +00:00
Magnus Olsen
75da9a2f7c Langues Nl.rc patch from i386dx see wiki how have done the translate
svn path=/trunk/; revision=22401
2006-06-18 19:39:41 +00:00
Aleksey Bragin
f618cc855d Thomas Weidenmueller: RBUILD: Support generating headers from .idl files (Patch 1592)
svn path=/trunk/; revision=22400
2006-06-18 19:39:13 +00:00
Magnus Olsen
427b21b076 Langues Nl.rc patch from i386dx see wiki how have done the translate
svn path=/trunk/; revision=22399
2006-06-18 19:37:05 +00:00
Magnus Olsen
4c2229b4c9 Langues Nl.rc patch from i386dx see wiki how have done the translate
svn path=/trunk/; revision=22398
2006-06-18 19:32:03 +00:00
Magnus Olsen
1e95708d53 Langues Nl.rc patch from i386dx see wiki how have done the translate
svn path=/trunk/; revision=22397
2006-06-18 19:29:44 +00:00
Aleksey Bragin
8f8e389d3e Remove "_" decoration from module entries, since MSVC doesn't need them
svn path=/trunk/; revision=22396
2006-06-18 19:28:54 +00:00
Johannes Anderwald
28ab213634 update resource file
patch by EmuandCo

svn path=/trunk/; revision=22395
2006-06-18 19:25:41 +00:00
Magnus Olsen
4e70b68cd2 Langues Nl.rc patch from i386dx see wiki how have done the translate
svn path=/trunk/; revision=22394
2006-06-18 19:25:18 +00:00
Johannes Anderwald
cf1da8dd66 [AUDIT]
unlock resource file

svn path=/trunk/; revision=22393
2006-06-18 19:23:03 +00:00
Johannes Anderwald
e8da9219d1 fix typos, use correct sub languages, update resource files, change dialog font to "MS Shell Dlg"
patch by EmuandCo

svn path=/trunk/; revision=22392
2006-06-18 19:01:48 +00:00
Eric Kohl
1c0c7413bd Implement CM_Get_HW_Prof_Flags[_Ex]A/W and add PNP_HwProfFlags stub.
svn path=/trunk/; revision=22391
2006-06-18 14:36:42 +00:00
Johannes Anderwald
aabda4b500 specify CF_INITTOLOGFONTSTRUCT flag to auto-select current font in font selection dialog.c
bug report by tsg1zzn fixes bug 1561

svn path=/trunk/; revision=22390
2006-06-18 14:13:03 +00:00
Aleksey Bragin
d33d5d5251 Patch by Mikhail Y. Zvyozdochkin (mzvyozd at narod dot ru): Simplify compilation under Linux.
svn path=/trunk/; revision=22389
2006-06-17 20:28:53 +00:00
Aleksey Bragin
5499eac485 Translation of cacls to Russian language, based on patch by Alexey Minnekhanov (minlexx at rambler dot ru)
svn path=/trunk/; revision=22388
2006-06-17 19:54:00 +00:00
Ged Murphy
9f9c084af1 - fix build issues reported by some users
- move definition into root resource file
- fix msvc warnings

svn path=/trunk/; revision=22387
2006-06-17 19:21:25 +00:00
Ged Murphy
5a05448343 {AUDIT]
TaskManager
Brian Palmer confirms this to be clean

svn path=/trunk/; revision=22386
2006-06-17 18:23:19 +00:00
Ged Murphy
45b7239931 [AUDIT]
sdkparse
ReactOS utility. 

svn path=/trunk/; revision=22385
2006-06-17 16:45:48 +00:00
Ged Murphy
6d058a9607 [AUDIT]
gdiplus
only contains stubs

svn path=/trunk/; revision=22384
2006-06-17 14:31:04 +00:00
Ged Murphy
77b50520e4 [AUDIT]
cards.dll
Filip confirms this code is clean.

svn path=/trunk/; revision=22383
2006-06-17 14:21:37 +00:00
Aleksey Bragin
10eda3917c - Add 2 more Ob Methods (currently turned off in testing)
- Add Open method to tests
- Make debug output of Ob Methods more informative
- Add Ob Methods counting tests

svn path=/trunk/; revision=22381
2006-06-17 12:18:08 +00:00
James Tabor
12647707d7 Add two static control styles, SS_EDITCONTROL and SS_REALSIZECONTROL.
svn path=/trunk/; revision=22380
2006-06-17 05:18:49 +00:00
James Tabor
e61b53b59e Missed removing unused variables during manual patching.
svn path=/trunk/; revision=22379
2006-06-17 05:04:51 +00:00
James Tabor
3c7fc29628 Sync with wine.
svn path=/trunk/; revision=22378
2006-06-17 05:02:55 +00:00
James Tabor
35135e5ddb Vitaly Lipatov : Fix character conversion in combo box. Which needed to be synced to wine.
svn path=/trunk/; revision=22377
2006-06-16 15:33:59 +00:00
James Tabor
35c60c75a7 qingdoa daoo : Fix selection handling for listboxes with LBS_EXTENDEDSEL style. Also synced to wine.
svn path=/trunk/; revision=22376
2006-06-16 15:32:06 +00:00
Johannes Anderwald
6ebdd68cac french translation by Usurp
svn path=/trunk/; revision=22375
2006-06-15 20:50:47 +00:00
Johannes Anderwald
e21026c441 add powercfg, powerprof to bootcd
svn path=/trunk/; revision=22374
2006-06-15 18:29:23 +00:00
James Tabor
755b2442b4 Fix functionality in WM_SHOWWINDOW. Part II of last nights patch for TWOPARAM_ROUTINE_ROS_SHOWWINDOW.
svn path=/trunk/; revision=22373
2006-06-15 16:23:24 +00:00
Aleksey Bragin
f391668cb0 - Add russian translation by Andrey Korotaev
- Fix small typo in german resources

svn path=/trunk/; revision=22372
2006-06-15 16:08:32 +00:00
Johannes Anderwald
269c18e151 use SUBLANG_ENGLISH_US
spotted by Usurp

svn path=/trunk/; revision=22371
2006-06-15 15:53:52 +00:00
Aleksey Bragin
9bf8d5dcc2 Add code to query volume for its filesystem type
svn path=/trunk/; revision=22370
2006-06-15 15:00:37 +00:00
Johannes Anderwald
69d2fdc763 * add powrprof regression tests
* developed by Alex Wurzinger, Johannes Anderwald & Martin Rottensteiner

svn path=/trunk/; revision=22369
2006-06-15 14:50:42 +00:00
Johannes Anderwald
a526193b42 fix typo
spotted by Christoph_vW

svn path=/trunk/; revision=22368
2006-06-15 14:44:11 +00:00
Johannes Anderwald
c2321de544 * remove warning
* return true in ValidatePowerPolicy

svn path=/trunk/; revision=22367
2006-06-15 14:36:17 +00:00
Johannes Anderwald
cd64dfb6ea add missing export
svn path=/trunk/; revision=22366
2006-06-15 14:28:46 +00:00
Johannes Anderwald
1df30c5515 forgot to add powercfg baseaddress
svn path=/trunk/; revision=22365
2006-06-15 14:19:29 +00:00
Johannes Anderwald
f5ec853692 set eol-style:native
set keywords:author date id revision

svn path=/trunk/; revision=22364
2006-06-15 14:16:29 +00:00
Johannes Anderwald
9ebe93b22d add powercfg to build
svn path=/trunk/; revision=22363
2006-06-15 14:10:11 +00:00
Johannes Anderwald
98ecae1afe * implementation of Power Panel Control Applet
* developed by Alex Wurzinger, Johannes Anderwald & Martin Rottensteiner 

svn path=/trunk/; revision=22362
2006-06-15 14:07:08 +00:00
Maarten Bosma
4337de626c Fix sweeping the handle table on process shutdown. Patch by w3seek.
svn path=/trunk/; revision=22361
2006-06-15 13:16:29 +00:00
Andrew Munger
bedfaa39ea Remove gradient change committed by frik85.
svn path=/trunk/; revision=22360
2006-06-15 13:16:12 +00:00
Hervé Poussineau
3949820944 Cast size_t to long, before applying the unary - operator
svn path=/trunk/; revision=22359
2006-06-15 12:54:31 +00:00
Hervé Poussineau
78fce8752c Add some unit tests for setupapi
svn path=/trunk/; revision=22358
2006-06-15 12:49:04 +00:00
Hervé Poussineau
c1cdbae22d Set svn:eol-style to native
svn path=/trunk/; revision=22357
2006-06-15 12:41:57 +00:00
Hervé Poussineau
709fc5a971 Create configuration list only once (in MSVCBackend::Process) and use it everywhere.
Remove dead code

svn path=/trunk/; revision=22356
2006-06-15 12:33:47 +00:00
Johannes Anderwald
5c7452010e remove endless loop
svn path=/trunk/; revision=22355
2006-06-15 11:12:22 +00:00
Aleksey Bragin
bd98cae02e [FORMATTING]
Generalize formatting a bit, normalize file's header

svn path=/trunk/; revision=22354
2006-06-15 08:33:38 +00:00
James Tabor
7436b68377 Fix functionality in TWOPARAM_ROUTINE_ROS_SHOWWINDOW. Use one PWINDOW_OBJECT Window in NtUserCallTwoParam to help with cleanup.
svn path=/trunk/; revision=22353
2006-06-15 07:07:54 +00:00
Aleksey Bragin
3309c9266d - Johannes Anderwald and Thomas Weidenmueller: WIN32K: window class fixes (bug 1570)
- Reduces user32_winetest class failures from 85 to 64
- The patch doesn't introduce obvious regressions (reactos boots, explorer works, miranda and mirc loads)

svn path=/trunk/; revision=22349
2006-06-14 21:03:34 +00:00
Klemens Friedl
a87ee338d2 german translation update
patch created by EmuandCo and DangerGround

svn path=/trunk/; revision=22348
2006-06-14 20:07:20 +00:00
Hervé Poussineau
2aa4dc8052 Fix SESSION5_INITIALIZATION_ERROR by reverting part of 22219. The code is the same as in pre-22219 era, but separated in different files
Thanks Alex for reporting the faulty revision

svn path=/trunk/; revision=22347
2006-06-14 09:36:15 +00:00
Alex Ionescu
30c84451ef - Handle mount failure (such as when a CDROM isn't actually inside the drive) instead of assuming success and setting a NULL device object. Fixes regression seen by Arty/James when winefiling, dir d:-ing or hardware device wizarding.
svn path=/trunk/; revision=22346
2006-06-14 06:48:28 +00:00
Alex Ionescu
afee678695 - Fix some referencing/bugs in Ob functions that I wrote which were known fixmes.
- Remove every instance of ObDereferenceObject after an ObInsertObject that I could find. This temporarily will make the object leaks even worse, but it's better to increase leaks and then fix the ref bug, then to decrease references while missing spots that forgot to reference them (you'd end up with hard to debug randomly dying objects).

svn path=/trunk/; revision=22345
2006-06-14 04:02:02 +00:00
Ged Murphy
f45c3a82e8 fix checking of the properties dialog to see if it's open before sending messages to it. Stops the crash when starting or stopping services
svn path=/trunk/; revision=22344
2006-06-13 21:30:54 +00:00
Hervé Poussineau
d3f58e5415 - Add a MSVCConfiguration class, to keep trace of parameters instead of parsing each time the configuration name
- When building with MSVC headers, win32api and Wine directories are omitted and some defines are added

svn path=/trunk/; revision=22343
2006-06-13 21:23:25 +00:00
Hervé Poussineau
8add7c477f Add files to project only if the "If" condition is true.
svn path=/trunk/; revision=22342
2006-06-13 17:39:17 +00:00
Hervé Poussineau
d1346a4edc Fix formatting. No code change
svn path=/trunk/; revision=22341
2006-06-13 17:37:27 +00:00
James Tabor
be83be8f50 Adding future DefWnd calls to win32k.
svn path=/trunk/; revision=22340
2006-06-13 15:13:02 +00:00
Alex Ionescu
322d8b7398 - Enable ROS_LEAN_AND_MEAN if you want 50% smaller binaries and a 20MB reduction in memory usage.
- Create a new module type: exportdriver for drivers which also export files. Not supremely useful right now, but it helps us decrease compilation time of normal drivers by not running useless commands on them. Later we'll also strip out their export table. We can also make exportdrivers automatically read their .def file instead of specfiygone one.

svn path=/trunk/; revision=22339
2006-06-13 04:50:14 +00:00
Brandon Turner
1aeb0661d4 * When comparing two strings, you do not need to check what comes after them.
* You do not need to look for the next space in the "command" to run on if success, that will be handled later on, and causes it to skip over to much if it done in both spots

svn path=/trunk/; revision=22334
2006-06-13 00:26:08 +00:00
James Tabor
fb2ac07e08 Wine patch by Thomas Kho: Fix behavior when selecting disabled menu items.
svn path=/trunk/; revision=22333
2006-06-12 23:23:50 +00:00
Ged Murphy
f3025b54e9 missed this little blighter ....
svn path=/trunk/; revision=22331
2006-06-12 22:40:56 +00:00
Ged Murphy
5c4e6cbf06 - sync from Wine-0_9_5 to Wine-0_9_15
- there are a few small differences between ROS comctl32 and Wine comctl32, in listview.c and treeview.c. I've dropped the Wine versions in for now, as they appear to be trivial. I'll insert our small alterations after testing, if required. For now, we are using 100% Wine code.
- We are failing some comctl32 Wine tests in ROS, but passing more than previous.


Sync to Wine-0_9_15:
Mikoaj Zalewski <mikolaj@zalewski.pl>
- comctl32: header: Put the new item in place of the hot divider instead of swapping.
- comctl32: header: Draw the drag image and hot dividers while dragging an item.
- comctl32: header: Fix an order-related bug in HEADER_InternalHitTest.
- comctl32: header: Implement HDM_SETHOTDIVIDER.
- comctl32: header: Implement HDM_CREATEDRAGIMAGE.
- comctl32: listview: Apply the HDS_DRAGDROP header style if needed.
- comctl32: header: Update the rects in HEADER_Refresh if needed.
- comctl32: header: Ignore out-of-range iOrder in SetItemT.
Paul Vriens <Paul.Vriens@xs4all.nl>
- comctl32/header: Check Null before accessing struct member.
Alexandre Julliard <julliard@winehq.org>
- comctl32: Dialog procedures should be called with CallWindowProc.
 
Sync to Wine-0_9_14:
Mikoaj Zalewski <mikolaj@zalewski.pl>
- comctl32: header: Don't try to draw items outside the clipping rect.
- comctl32: header: Make the column resizing smooth in full drag mode.
Jonathan Ernst <jonathan@ernstfamily.ch>
- Update the address of the Free Software Foundation.
- Uniformization of French main menu accelerators.
 
Sync to Wine-0_9_13:
Mikoaj Zalewski <mikolaj@zalewski.pl>
- comctl32: Add Str_SetPtrWtoA analogue to Str_SetPtrAtoW.
qingdoa daoo <qingdao33122@yahoo.com>
- comctl32: Change return code comparison in AVI control.
- comctl32: Fix an unsigned comparison to zero.
- comctl32: Update first visible when appropiate in the TVI_SORT case.
Saulius Krasuckas <saulius2@ar.fi.lt>
- comctl32: Increase FILEVERSION up to 5.81.4704.1100.
 
Sync to Wine-0_9_12:
Mike Hearn <mike@plan99.net>
- comctl32: Add OOM codepath in imagelist control.
Antonio Codazzi <f_sophia@libero.it>
- comctl32: Italian language updates.
- comctl32: Esperanto language support.
 
Sync to Wine-0_9_11:
Rein Klazes <wijn@wanadoo.nl>
- comctl32: Do not free LPSTR_TEXTCALLBACK tooltip texts.
James Hawkins <truiken@gmail.com>
- comctl32: A couple fixes for tab icon offsets.
Thomas Weidenmueller <wine-patches@reactsoft.com>
- comctl32: Rebar size fix.
Mike McCormack <mike@codeweavers.com>
- comctl32: Having an MRU list without a compare function works in Windows.
 
Sync to Wine-0_9_10:
Andrñs Kovñcs <andras@csevego.net>
- comctl32: Added Hungarian translation.
Mike McCormack <mike@codeweavers.com>
- comctl32: Fix some gcc 4.1 warnings caused by windowsx.h macros.
 
Sync to Wine-0_9_9:
Vitaliy Margolen <wine-patch@kievinfo.com>
- comctl32: Remove/swap limits if min > max in MCM_SETRANGE.
  We should swap min & max only when both limits are being
  set. Otherwise limit that being set should invalidate other limit
  (remove it).
- comctl32: Don't change month range in MCM_SETRANGE. Add tests for this.
 
Sync to Wine-0_9_8:
Vitaliy Margolen <wine-patch@kievinfo.com>
- comctl32: Fix invalid date/time check in MCM_SETRANGE: ignore time and fail on bad date.
Francois Gouget <fgouget@free.fr>
- Assorted spelling fixes.
Petr Tesarik <hat@tesarici.cz>
- comctl32: Czech language resources encoding fix.
Fatih Ac <fasici@linux-sevenler.org>
- comctl32: Turkish translation.
 
Sync to Wine-0_9_7:
Alexandre Julliard <julliard@winehq.org>
- Fixed creation of PS_ALTERNATE pens.
 
Sync to Wine-0_9_6:
Phil Krylov <phil@newstar.rinet.ru>
- comctl32: Call UpdateWindow() after changing statusbar text.
Thomas Weidenmueller <wine-patches@reactsoft.com>
- comctl32: Reduce memory usage of the syslink control.
- comctl32: Some painting fixes for the syslink control.
Mike McCormack <mike@codeweavers.com>
- comctl32: Invalidate the entire progress bar any time it changes.

svn path=/trunk/; revision=22329
2006-06-12 22:35:32 +00:00
Ged Murphy
f921860cdc enable all tests
svn path=/trunk/; revision=22328
2006-06-12 20:26:30 +00:00
Johannes Anderwald
5eae6f4526 fix build prob #take one
svn path=/trunk/; revision=22327
2006-06-12 18:09:47 +00:00
Ged Murphy
ef4faef9dd fix build
svn path=/trunk/; revision=22326
2006-06-12 17:58:59 +00:00
Johannes Anderwald
f4176159a9 fix typo in solitaire.cpp
patch by Wildcat (bug 1555)

svn path=/trunk/; revision=22325
2006-06-12 17:51:03 +00:00
Johannes Anderwald
2424761624 set focus back after messagebox
fix formating of previous commit

svn path=/trunk/; revision=22324
2006-06-12 17:44:57 +00:00
Johannes Anderwald
e522810b81 set focus back to computer name when invalid name was entered
bug report by keytotime (bug 1569)

svn path=/trunk/; revision=22323
2006-06-12 17:40:35 +00:00
Johannes Anderwald
b0338a0f3f add freeldr_fdebug rbuild
svn path=/trunk/; revision=22322
2006-06-12 17:30:21 +00:00
Johannes Anderwald
9f9d9a1613 add norwegian translation
patch by LMH1 (bug 1575)

svn path=/trunk/; revision=22321
2006-06-12 17:28:08 +00:00
Johannes Anderwald
89a00d9caf add rbuild file
svn path=/trunk/; revision=22320
2006-06-12 17:26:41 +00:00
Alex Ionescu
8d3f5096fd - Pretty much the last Ob implementation/optimization patch (Except for a minor fix by Thomas to fix handle sweeping), re-implemented the ObFindObject routine by using some code that I had written almost 2 years ago with help from Thomas and Filip, plus some fixes discovered today while testing.
- Fixed symbolic link and desktop/winsta parse procedures to become NT-compatible now that ObFindObject is as well. Also fixed file/device parse routine for these changes.
- ObFindObject now supports STATUS_REPARSE_OBJECT, and has an optimized path for parsing when a root directory is given, as well as is entirely unicode_string-based.
- Cleaned up ob.h and added ob_x.h for the inlined functions.
- Implemented new Ob tracing system.

svn path=/trunk/; revision=22319
2006-06-12 05:58:08 +00:00
Alex Ionescu
119738339b - Fix a typo that had broken the build -- sorry.
svn path=/trunk/; revision=22318
2006-06-11 22:32:12 +00:00
Alex Ionescu
b0dc37752d - Bring out the champagne... one of my first-ever and most ancient ReactOS TODOs: the IopCreateFile hack has been totally removed and we now have a file/device parse routine. It's still nothing like NT's but it's not a hack anymore, and actually works like it should.
svn path=/trunk/; revision=22317
2006-06-11 22:26:54 +00:00
Eric Kohl
bc297b2f4b Implement CM_Delete_DevNode_Key and add CM_Delete_DevNode_Key_Ex stub.
svn path=/trunk/; revision=22316
2006-06-11 21:56:08 +00:00
Aleksey Bragin
c08140a104 Slightly update the doc to make it correspond to nowadays reality
svn path=/trunk/; revision=22315
2006-06-11 21:05:25 +00:00
Ged Murphy
0262a2684c update the comctl32 wine tests
svn path=/trunk/; revision=22314
2006-06-11 15:51:13 +00:00
Maarten Bosma
64471203f9 Fix size of the startmenu (e.g. Start->Programs) when there are very much entries. Tested under Windows. Fix by slawek from the German forum.
svn path=/trunk/; revision=22313
2006-06-11 15:16:48 +00:00
Eric Kohl
47a7900e91 Implement PNP_AddID.
svn path=/trunk/; revision=22310
2006-06-11 13:20:46 +00:00
Hervé Poussineau
b9bcb95e37 Fix non-optimized versions of InterlockedIncrement/InterlockedDecrement.
Fixes bug 916

svn path=/trunk/; revision=22309
2006-06-11 13:00:47 +00:00
Hervé Poussineau
f08c410f39 Move Interlocked* functions to architecture-relative directories. This prevents use of inlined assembler.
svn path=/trunk/; revision=22308
2006-06-11 12:27:27 +00:00
Hervé Poussineau
198f03e34b [AUDIT]
According to Fireball, this file is clean because it contains only well-known interlocked operations taking up a few asm instructions

svn path=/trunk/; revision=22307
2006-06-11 12:15:43 +00:00
Hervé Poussineau
df7f875767 Add some tests for interlocked functions
svn path=/trunk/; revision=22306
2006-06-11 12:02:04 +00:00
Alex Ionescu
57dc67574c * Significant improve boot speed and debug log neatness:
- Get rid of a dozen of debug prints that have been straying along for a long time (some for years), most of which I must shamefully admit I am responsible for.
- Fix a critical bug subsystem bug in smss and don't hang the system 15 seconds on boot-up.
- Rebase some problematic modules (and fix wshtcpip's rbuild file) to avoid relocations on bootup and some process startup. 
- Enable lsass startup in winlogon and the registry.
- Only show debug log header when actually debugging to a file.

svn path=/trunk/; revision=22305
2006-06-11 08:25:10 +00:00
Hervé Poussineau
ab794adf1d - Support more than one child
- vbemp shouldn't parse the EDID, so return it to videoprt

svn path=/trunk/; revision=22304
2006-06-11 07:57:37 +00:00
Alex Ionescu
259db9be47 - Fix definitions of OB_QUERYNAME_METHOD and OB_OKAYTOCLOSE_METHOD. Add fixme for OB_SECURITY_METHOD, will change it later.
- Simplified NtDuplicateObject to a simple stub around ObDuplicateObject, there is no need to have lengthy hacks for NtCurrentProcess/NtCurrentThread().
- Cleanup ObDuplicateObject to use normal Ob routines instead of grovelling through handle table structures and manually touching the handle count: It now calls ObpIncrementHandleCount and all the underlying operations are done on the duplicated handle. Also access state creation is done if the duplicated handle has different desired access.

svn path=/trunk/; revision=22303
2006-06-11 06:52:56 +00:00
Aleksey Bragin
d6a84751c7 - Further improvements to Ob tests (fixing obvious mistakes/etc), however reference tests still cause bugcheck, so they are disabled
- Clean-up is enabled now, so basically it's possible to run the test a number of times in win2k3, and every time it will go from scratch by creating everything. But I have a feeling that deleting object-types causes some type of corruption. To be investigated later.

svn path=/trunk/; revision=22302
2006-06-10 22:39:14 +00:00
Aleksey Bragin
325be5eb8d Alex finally paid attention to my code, so I'm fixing a few things...
svn path=/trunk/; revision=22301
2006-06-10 21:17:43 +00:00
Hervé Poussineau
3e3f927b36 After some tests, change SetupDiClassNameFromGuidExW and SetupDiGetClassDescriptionExW to match Windows XP behavior
svn path=/trunk/; revision=22300
2006-06-10 20:51:18 +00:00
Hervé Poussineau
b76c5a1315 Cleanup:
- Check that mandatory arguments are provided
- Better tracing system
- Prepend private function names with SETUP_
- Use MultiByteToUnicode instead of MultiByteToUnicode + HeapAlloc
- ...

svn path=/trunk/; revision=22299
2006-06-10 20:48:17 +00:00
Aleksey Bragin
ac6a23b01f [FORMATTING]
Very small cleanup, formatting and typecasting change

svn path=/trunk/; revision=22298
2006-06-10 20:41:54 +00:00
Aleksey Bragin
4b2ae8cc64 Revert accidental change of ntfs.sys driver's Start value made in last commit
svn path=/trunk/; revision=22297
2006-06-10 20:32:25 +00:00
Aleksey Bragin
c87c9cee4a Add loading of kernel-mode regression testing driver into hivesys.inf (it's commented out of course by default).
To run km regression tests under windows, one should use kmtloader.exe app
To run them on reactos, one should copy kmtest.sys to reactos\system32\drivers, and uncomment entries in hivesys.inf

svn path=/trunk/; revision=22296
2006-06-10 18:05:44 +00:00
Aleksey Bragin
e5502d72f8 - Add create/insert object tests
- Add simple referencing tests (now disabled)
- All tests pass currently on Windows 2003

svn path=/trunk/; revision=22295
2006-06-10 16:37:34 +00:00
Alex Ionescu
51b80d64e3 - Update sweep callback to send the handle number. Patch by Thomas Weidenmueller (w3seek@reactos.org)
- Export ObCloseHandle since it's implemented now
- Implement ObpCreateUnnamedHandle and ObpIncrementUnnamedHandleCount as optimizations for ObInsertObject with unnamed objects.

svn path=/trunk/; revision=22294
2006-06-10 00:41:16 +00:00
Brandon Turner
911fec4841 eol-style:native and some TCHAR fixes
svn path=/trunk/; revision=22293
2006-06-09 15:59:56 +00:00
Hervé Poussineau
6b4f2e1649 Add documentation to SetupDiBuildClassInfoList/SetupDiBuildClassInfoListExA/W
Patch by Christian Gmeiner on wine-patches ML

svn path=/trunk/; revision=22292
2006-06-09 14:16:39 +00:00
Alex Ionescu
b9375052c5 - Fix the CmpObjectDelete bugcheck by hacking away some code reponsible for it. The bugcheck is probably the result of the current ref-count bug.
- Remove some more code in IoCreateFile/IopCreateFile to help with deprecating it later.

svn path=/trunk/; revision=22291
2006-06-09 08:49:03 +00:00
Alex Ionescu
dc1e926987 - Add the OPEN_PACKET structure to internal headers. Used for the I/O Parse Routine.
- Gut down IopCreateFile to the strict minimum so that only the critical parts remain.
- NT Compatiblity fix in ObFindObject: stop parsing if remaining path is null, this means that the parse routine is done parsing and that -this- is the final object.

svn path=/trunk/; revision=22290
2006-06-09 07:28:26 +00:00
Aleksey Bragin
c07a24b350 - Added DPRINT logic in all files (to be used as "TRACE" to aid in debugging of tests)
- Added initial part of Ob tests which uses ObCreateObjectType, NtCreateDirectoryObject, ObCreateObject exported APIs.

svn path=/trunk/; revision=22289
2006-06-08 21:39:51 +00:00
Alex Ionescu
63e1686915 - Remove the heart (but not the brain) of the IopCreateFile hack. A much 'nicer' hack now detects if a filename can't be found, and instead of inserting it into the object directory (wrong!), calling IopCreateFile (wrong!), then having it fail, only to then remove the newly inserted object entry (wrong wrong wrong!), IopCreateFile is now *only* called for real files, otherwise Ob detects the invalid name and fails nicely and quickly.
svn path=/trunk/; revision=22288
2006-06-08 21:36:44 +00:00
Alex Ionescu
d7c17c883d - Add Object Header Quota structure/define
- Give Files/Devices a parse routine and currently stubplement it for debugging purposes and trying to figure out a way to kill the IopCreateFile hack.
- Implement ObpChargeQuotaForObject. Using a memory breakpoint in WinDBG I've finally found where the OB_FLAG_CREATE_INFO flag gets masked out. Also attempted a very naive quota charging implementation, but it's a guess and probably wrong (but at least it does...something.)

svn path=/trunk/; revision=22287
2006-06-08 20:58:21 +00:00
Alex Ionescu
1c378756d0 - Kill a bunch of deprecated hacks, because removing hacks is always cool!
svn path=/trunk/; revision=22286
2006-06-08 19:00:22 +00:00
Alex Ionescu
1891e7787c - [FORMATTING]:
- Get rid of ObpGetHandleCountByHandleTable and ObpGetNextHandleByProcessCount.
  - Add some function comment headers.
  - Move ObMakeTemporaryObject, NtMakeTemporaryObject, NtMakePermanentObject to oblife.c
  - Move ObpDeleteNameCheck to obname.c

svn path=/trunk/; revision=22285
2006-06-08 18:24:37 +00:00
Alex Ionescu
1f896561d9 - Rename ObpDeleteHandle to ObpCloseHandleTableEntry and change semantics so that it deals directly with the entry and table. This re-factoring optimizes the case where we already have the entry and don't want to use the handle to get the kernel table and then attach/detach/enter/exit critcal regions (such as when sweeping).
- Implement ObCloseHandle, a new XP Export
- Take old NtClose code and write it in ObpCloseHandle, which is the master function that Ntclose/ObCloseHandle share.
- Complete patch requires ExSweepHandleTable to be modified to return the Handle instead of the entry, so that sweeping can be fixed to properly destroy handles and call their OkayToClose, instead of just decrementing a count.

svn path=/trunk/; revision=22284
2006-06-08 18:09:01 +00:00
Brandon Turner
d372aa6165 If treat a backspace more like a normal char.
svn path=/trunk/; revision=22283
2006-06-08 13:07:05 +00:00
Brandon Turner
3545fe53f7 ReadConsole test to show how backspaces should be handled.
svn path=/trunk/; revision=22282
2006-06-08 12:59:32 +00:00
Alex Ionescu
c872f735ba - [FORMATTING] Add function comment headers.
svn path=/trunk/; revision=22281
2006-06-08 06:31:16 +00:00
Alex Ionescu
028c1dff32 - ObFindObject should return the actual object being inserted, in the insert case (otherwise it always returns the root-directory instead...)
- Add check for optimized case for objects with no name and no security, but not implemented (ObpIncrementUnnamedHandleCount in Gl00my docs), since I need a better translation then babelfish's.
- Fix ObInsertObject to save the Security Descriptor in the Access State structure. Gl00my mentions this isn't absorbed by SeCreateAccessCheck and I just noticed that too.
- We only need to perform security checks for a new object, in ObInsertObject, not if the object already existed.
- Added proper backout+failure code in ObInsertObject if lookup failed, and also look out for mismatch/exists/collision cases (implemented using simple logic).

svn path=/trunk/; revision=22280
2006-06-08 06:17:46 +00:00
Alex Ionescu
2173f9e4aa - Fix ObGetObjectSecurity to use the object type's pool type instead of assuming PagedPool.
- Re-wrote the way ObInsertObject handles security as described in Chapters 6 and 9 of Gl00my (ie: made it use ObGetObjectSecurity and ObAssignObjectSecurity; ironically, these functions already existed/are exported and could've been used since the start instead of duplicating code).
- Fix ObpReferenceCachedSecurityDescriptor only to touch the cached entry if it actually gets a non-NULL descriptor. Also improved it to return the referenced SD, instead of requiring the caller to do it manually.

svn path=/trunk/; revision=22279
2006-06-08 05:41:39 +00:00
Alex Ionescu
f96e25891f - I just noticed that ObInsertObject never got updated to deal with the improvements in ObFindObject and ACCESS_STATE usage, so made the following fixes:
* Create the ACCESS_STATE structure much earlier.
  * Actually send the access state and parse context to ObFindObject, when called from ObInsertObject (this should fix some hidden regressions, since they finally get an access state with access masks now).
  * Remove some deprecated hacks.
  * If inserting the handle failed, cleanup the name and remove it from the directory entry.
  * Fix a memory leak because we weren't deleting the access state.

svn path=/trunk/; revision=22278
2006-06-08 02:56:59 +00:00
Alex Ionescu
0b1df199e3 - Fixup some comments and add Eric Kohl's name to this file, since he had worked on some of the original calls.
- Minor/trivial fixes to some Object Security APIs that were left in the dark:
  * Use PagedPool instead of NonPagedPool memory, and also tag the allocation for debugging.
  * Send needed data to the security procedure instead of NULL/0, including the Generic Mapping, and the actual Security Decriptor.
  * Only un-assign the descriptor in case of failure, not all the time (the whole point of the API is to assign it!)
  * Tell the caller that memory was NOT allocated if we failed to get the security descriptor.

svn path=/trunk/; revision=22277
2006-06-08 02:36:12 +00:00
Alex Ionescu
d11bb11784 - Split ObpCreateHandle into two distinct operations: Incrementing and Creating (like we have Delete/Decrement). No code additions, just splitting.
- Because of the split, we can now directly only do an Increment when duplicating the handle, since we don't need to create a brand new one. Also, when inheriting, we can now properly do an increment as well, instead of simply manually increasing the handle count (because for each inherited handle, access checks and openprocedure should've still been called).

svn path=/trunk/; revision=22276
2006-06-07 23:59:15 +00:00
Hervé Poussineau
47b12f6d7d Some 64 fixes
svn path=/trunk/; revision=22275
2006-06-07 17:33:57 +00:00
Hervé Poussineau
9a844e2247 Replace STDCALL by NTAPI
Some 64 bits fixes

svn path=/trunk/; revision=22274
2006-06-07 17:31:43 +00:00
Hervé Poussineau
7e07a60d3a Allocate buffer for system directory on heap instead of stack
svn path=/trunk/; revision=22273
2006-06-07 17:30:06 +00:00
Hervé Poussineau
9d4e17c705 - Implement DecryptFileA
- Fix some stubs
- Remove dead code

svn path=/trunk/; revision=22272
2006-06-07 17:26:25 +00:00
Hervé Poussineau
f326c55403 - Implement FileEncryptionStatusA
- Fix FileEncryptionStatusW prototype
- Fix EncryptionDisable stub

svn path=/trunk/; revision=22271
2006-06-07 17:24:49 +00:00
Aleksey Bragin
69778e9422 Add missing debug.h/NDEBUG construction, fixes compiling without CU
svn path=/trunk/; revision=22270
2006-06-07 13:08:28 +00:00
Aleksey Bragin
e20a9c6ec4 [AUDIT]
base/system/smss.exe

- Unlock simple and trivial functions
- Unlock unimplemented funcs and non-code things

svn path=/trunk/; revision=22269
2006-06-07 13:06:40 +00:00
Aleksey Bragin
d090a2d035 Fix a typo in Internet Time tab. Spotted by hand.of.omega@gmail.com. Fixes bug 1562
svn path=/trunk/; revision=22268
2006-06-07 10:57:40 +00:00
Alex Ionescu
da2029d89e - Final fixes to ObpCreateHandle that I can think of before splitting Create/Increment (might be lacking some security checks or trace/database functionality, but I haven't found any info on the latter, while the former I will stub, but I don't have the skills to imlement (ObAssignObjectSecurity)):
* Honour ObjectType passed to the function and fail if it doesn't match.
  * Use table-based logic instead of process-based logic for Kernel vs User-mode handles (same change that's been done all over the place, since it requires only one dereference of the process object).
  * Do the GENERIC/MAXIMUM_ALLOWED logic directly inside the ACCESS_STATE structure.
  * This is where we should call the OpenProcedure (acc. to Gl00my), but this kills win32k -- investigate, #ifed out for now.
  * Increase the object type's number of handles as well.
  * Set the handle table entry's ObAttributes correctly; the old code seems to have been messing that up.
  * Honour the AdditionalReferences parameter and do referencing bias if requested.
  * Honour the ReturnedObject parameter to return the object pointer back to the caller.
  * Add OBTRACEing to the function.
  * If we failed because a handle couldn't be allocated, use the distinguied STATUS_INSUFFICIENT_RESOURCES error code instead of the generic STATUS_UNSCUCESFFUL, and backout all the changes we made by calling ObpDecrementHandleCount.

svn path=/trunk/; revision=22267
2006-06-07 06:15:59 +00:00
Alex Ionescu
39bf2b48c2 - Change ObpCreateHandle to the one documented and explained in the Gl00my documentation. It also fits the re-factored split create/increment model better, supports open reasons, and allows to do type-checking and extra object referencing from within one routine.
- Add code to ObOpenObjectByName to detect the OpenReason. Experimental, since I'm not sure when to clear the flag.

svn path=/trunk/; revision=22266
2006-06-07 05:37:04 +00:00
Alex Ionescu
f36b5d1f3b - Add some trace macros to monitor handle/pointer counts for fixing regressions/bugs later.
- Change ObpCreateHandle to use an ACCESS_STATE structure instead of DesiredAccess. This is to help moving to an updated model where creating and incrementing a handle are 2 operations, so that code can be refactored (similarly to how we now have Delete/Decrement as 2 operations).
- Fix functions that were not creating an ACCESS_STATE Structure to create one locally now, or use the one passed as a parameter, if available.

svn path=/trunk/; revision=22265
2006-06-07 05:04:43 +00:00
Alex Ionescu
d2e5bfabe5 - Clone ObpCreateHandle to CmpCreateHandle. I am about to fix its implementation and since Cm* currently abuses Ob I feel it safer to give its own internal function.
- Make ObpCreateHandle internal to Ob as it should be. Change NtCreateProcessTokenEx to use ObOpenObjectByPointer, it has no business manually trying to create a handle. Same goes for ExpLoadInitialProcess.

svn path=/trunk/; revision=22264
2006-06-07 01:47:33 +00:00
James Tabor
2097dade2d Quick patch.
svn path=/trunk/; revision=22263
2006-06-07 01:45:18 +00:00
James Tabor
c537a6efb8 Cleanup coding of IntGdiPolyPolygon and IntGdiPolygon.
svn path=/trunk/; revision=22262
2006-06-07 01:28:44 +00:00
James Tabor
fb9a28f2b5 Implement Get & SetTextCharacterExtra. Does nothing ATM.
svn path=/trunk/; revision=22261
2006-06-07 01:22:47 +00:00
Magnus Olsen
8fcbc86a16 Implement %Fp now we have 25 fails with wine test for string version of *printf api
svn path=/trunk/; revision=22260
2006-06-07 00:04:51 +00:00
Magnus Olsen
00d62df5ab using uppercaps for %p instead lowercaps when it format the string, that make passing one more of wine test
27 fails now

svn path=/trunk/; revision=22259
2006-06-06 23:22:11 +00:00
Johannes Anderwald
f0bb911d21 add Wine's powrprof to build
svn path=/trunk/; revision=22258
2006-06-06 23:14:09 +00:00
Magnus Olsen
9c696e1c9e fixing some bugs for %c in the string version of printf
svn path=/trunk/; revision=22257
2006-06-06 23:01:44 +00:00
Johannes Anderwald
dd221de709 small compilation fix
svn path=/trunk/; revision=22256
2006-06-06 22:54:18 +00:00
Magnus Olsen
26cd015421 fixing two more bugs in *printf strings version.
this make we pass one more of wine test

svn path=/trunk/; revision=22255
2006-06-06 22:43:41 +00:00
Johannes Anderwald
6c2296718e import Wine 0.9.14 powrprof
svn path=/trunk/; revision=22254
2006-06-06 21:54:39 +00:00
Johannes Anderwald
fe1606b3ed prepare wine 0.9.14. powrprof import
svn path=/trunk/; revision=22253
2006-06-06 21:51:40 +00:00
Magnus Olsen
4f6d8e38f4 implement datatype I32 for *printf string version we have a *printf for files as well
now 29 fails in wine test msvcrt printf
 

svn path=/trunk/; revision=22252
2006-06-06 21:42:42 +00:00
Alex Ionescu
a25a59160d - Formatting/name/comment/declaration/calling convention changes.
- Make ObpCreateHandleTable return NTSTATUS instead of VOID, so that it can return STATUS_INSUFFIENT_RESOURCES if the handle table couldn't be allocated.

svn path=/trunk/; revision=22249
2006-06-06 21:02:55 +00:00
Johannes Anderwald
7fff40f524 add missing NtPowerInformation to def
svn path=/trunk/; revision=22248
2006-06-06 21:02:30 +00:00
Magnus Olsen
7894ff05b8 fixing 2 more fualt in msvcrt *printf api
svn path=/trunk/; revision=22247
2006-06-06 12:45:05 +00:00
Alex Ionescu
21baa4ddb6 - Add function documentation header to ObpDeleteHandle, comment and re-format the function, and simplify the code to reduce some code duplication.
- Call the OkayToClose Procedure, if one is present, to allow the object owner a chance to disallow closing this handle. I believe this is required for properly protecting Winsta/Desktop handles (instead of using the regular protection mode, since that one can be bypassed). Thomas, get to work!

svn path=/trunk/; revision=22246
2006-06-06 06:12:09 +00:00
Alex Ionescu
18ed42b8a4 - Documented ObpDeleteNameCheck and ObpSetPermanentObject
- Added function documentation header for ObpDecrementHandleCount and ObpSetHandleAttributes
- Modified ObpDecrementHandleCount to accept Process and GrantedAccess paraemters since the definition for the Close Procedure Callback requires them (and we were currently sending NULL). Also send 0 for process handle count, since we don't yet parse/support per-process handle databases.
- Minor optimization: All objects have an object type, don't actually check if the object has one when decrementing a handle.
- Minor accounting fix: Decrement the total number of handles for the object type whose handle count is being decreased.

svn path=/trunk/; revision=22245
2006-06-06 05:49:28 +00:00
Alex Ionescu
afea80bbe4 - Make sure callers of NtMakeTemporaryObject have DELETE privileges, otherwise they could end up illegaly killing objects (in certain situations)
- Make sure callers of NtMakePermanentObject have SeCreatePermanentPrivilege.
- Implement ObpDeleteNameCheck as described in Gl00my's Ob Documentation (using such documentation falls under US Reverse Engineering Law - Clean rooming).
- Remove duplicated code in ObpDecrementHandleCount and ObpSetPermanentObject and have them use ObpDeleteNameCheck instead.
- Fixes thanks to using this routine:
  * Name-check is now properly done.
  * The keep-alive reference is now deleted when going from permanent->temporary object.
  * The parent directory is now dereferenced and cleared when deleting the object.
  * The security procedure is now called to delete the SD, and the name buffer is freed. 
- Remove ObGetObjectHandleCount, it's not a public function.


svn path=/trunk/; revision=22244
2006-06-06 04:52:08 +00:00
Alex Ionescu
50224a4d55 - Fix bug in IoCreateFile which my (correct) ObReferenceObjectByHandle bugfix patch uncovered. Bootcd/installation works again.
svn path=/trunk/; revision=22243
2006-06-06 02:07:55 +00:00
Hervé Poussineau
b3f2b879b0 Set libraries as project dependencies
svn path=/trunk/; revision=22242
2006-06-05 21:46:14 +00:00
Ged Murphy
485867fdaf silence some rather annoying alignment errors when building with msvc
svn path=/trunk/; revision=22240
2006-06-05 19:00:52 +00:00
Hervé Poussineau
67189b431d Change some DPRINT1 to DPRINT, as they were prior revision 21880.
svn path=/trunk/; revision=22239
2006-06-05 16:41:03 +00:00
Ged Murphy
a10b3f2380 - implement menu hints
- load separate 24bit bitmaps for the icons
- fix image list loading
- lots of other little tweaks and changes

svn path=/trunk/; revision=22238
2006-06-05 16:34:38 +00:00
Hervé Poussineau
2a685bbbfe Read EDID information from screen (if possible) in HwGetVideoChildDescriptor.
Still doesn't do anything useful with it, but that's a start ;)

svn path=/trunk/; revision=22237
2006-06-05 16:31:24 +00:00
Saveliy Tretiakov
56f9a0a548 add missing check for null return
svn path=/trunk/; revision=22236
2006-06-05 15:38:04 +00:00
Saveliy Tretiakov
b1e6b788ce Add Johannes Anderwald to credits.
svn path=/trunk/; revision=22235
2006-06-05 14:39:09 +00:00
Saveliy Tretiakov
c43a77ea7d [AUDIT]
\trunk\reactos\dll\win32\lzexpand (unlocked)
No code.


svn path=/trunk/; revision=22234
2006-06-05 14:35:31 +00:00
Saveliy Tretiakov
8177ebd451 [AUDIT]
\trunk\reactos\base\applications\shutdown (unlocked)
I looked through code and found no signs of reverse engeneering.


svn path=/trunk/; revision=22233
2006-06-05 14:32:28 +00:00
Alex Ionescu
a46ee938fa - Rename ObpCreateTypeObject to ObCreateObjectType and fix definition. The latter is actually exported in NT, and there's no reason not to export it while having our own internally renamed version.
- Added stub exports for ObCloseHandle, ObReferenceSecurityDesciptor, ObSetHandleAttributes, ObSetSecurityObjectByPointer so that someday someone can know what needs to be implemented.
- Removed ObGetObjectPointerCount. It is not exported in newer OSes and was always undocumented.
- Move ObQueryObjecctAuditingByHandle to security.c and optimized it not to attach to the system process, as well as to cache the handle table instead of dereferencing the owner process all the time.

svn path=/trunk/; revision=22232
2006-06-05 06:31:42 +00:00
Alex Ionescu
0aeaea0fb7 - Fixed formatting/commented/annotated ObReferenceObjectByHandle.
- Bug fixes:
  * Remove MAXIMUM_ALLOWED<->GENERIC_ALL conversion, I could find no mention of this in the docs.
  * Remove GENERIC_ACCESS <-> RtlMapGenericMask conversion, I could find no mention of this in the docs, and this mapping is only required when creating handles, not when referencing pointers.
- Optimizations:
  * Restructure code and remove code which was sometimes duplicated up to 5 times.
  * Do not attach/detach from the system process, this isn't required since we're merely getting a kernel pointer from the handle netry.
  * Directly increase the pointer count instead of calling ObReferenceObject, since we already have the object header in a variable.
  * Cache ObpKernelHandleTable/Process->ObjectTable and use those directly instead of always de-referencing the process.

svn path=/trunk/; revision=22231
2006-06-05 05:07:44 +00:00
Alex Ionescu
36f116cdd8 - Simplify ObGetObjectPointerCode and ObfReferenceObject.
- Fix ObReferenceObjectByPointer to actually work like documented instead of doing random incorrect checks. Also add special case for Symbolic Link objects as documented by Caz Yokoyama at Microsoft.

svn path=/trunk/; revision=22230
2006-06-05 00:32:26 +00:00
Alex Ionescu
137f145eb6 - Formatting/comment fixes.
svn path=/trunk/; revision=22229
2006-06-05 00:16:14 +00:00
Alex Ionescu
02d0bb9dbd - Fix ExChangeHandle not to send NULL but the actual context to the callback function (fix by Thomas Weidenmueller <w3seek@reactos.org>)
- Re-implement NtSetInformationObject based on ExChangeHandle and using ObpSetHandleAttributes as a callback.
- Re-implement NtQueryObject's ObjectHandleInformation case to simply return the information that's already in HandleAttributes; there is no point in querying for it all over again.
- Fix NtSetInformationObject not to allow a user-mode call to modify kernel-mdoe handle attributes. Add FIXME for Inheritance permissions check.
- Fix NtQueryObject to properly return OBJ_PERMANENT and OBJ_EXCLUSIVE; these flags are not stored in Handle Attributes.
- Fix NtQueryObject not to attempt referencing the handle if the caller specified AllTypesInformation, because then a handle is not needed.

svn path=/trunk/; revision=22228
2006-06-05 00:04:36 +00:00
Art Yerkes
7c2e312093 Sorry reverted. GreatLord says this is fixed in the wrong place.
svn path=/trunk/; revision=22227
2006-06-04 23:33:27 +00:00
Art Yerkes
6d676e6e95 Fix one wine test. Don't accept an option string that starts with =.
svn path=/trunk/; revision=22226
2006-06-04 23:30:29 +00:00
Eric Kohl
de5ef123ee Fix indentation
svn path=/trunk/; revision=22225
2006-06-04 21:34:02 +00:00
Martin Fuchs
48badfaf22 fix language constant to LANG_BENGALI
svn path=/trunk/; revision=22224
2006-06-04 21:07:01 +00:00
Martin Fuchs
93fafae8ff set eol-style to native
svn path=/trunk/; revision=22223
2006-06-04 20:57:51 +00:00
Hervé Poussineau
da27830782 Fix little spelling mistakes
Set svn:eol-style to native

svn path=/trunk/; revision=22222
2006-06-04 20:31:42 +00:00
Hervé Poussineau
df3e3981c8 Fix DPFLTR_IHVVIDEO_ID constant value
svn path=/trunk/; revision=22221
2006-06-04 20:10:02 +00:00
Martin Fuchs
bf3af9216b Patch of Coviti: change "Reactos" texts to "ReactOS"
svn path=/trunk/; revision=22220
2006-06-04 20:07:56 +00:00
Magnus Olsen
b2c2d86a42 fixing one more of wine msvcrt printf test
svn path=/trunk/; revision=22219
2006-06-04 19:20:20 +00:00
Eric Kohl
0c13f30550 Add PNP_AddID stub and implement CM_Add_ID_ExW.
svn path=/trunk/; revision=22218
2006-06-04 19:12:58 +00:00
Aleksey Bragin
39635013ab Add a little more tests for Mdl testing, only 1 failes in ReactOS currently
svn path=/trunk/; revision=22217
2006-06-04 18:27:48 +00:00
Art Yerkes
eac8defeed Fix four winetests from msvcrt:file.c
- The winetests show that the pointer never moves after calling chsize.
- Using SetEndOfFile is the best way to do this.  I wrote a test case that 
  uses WriteFile as we did before and it did not expand the file past eof.

svn path=/trunk/; revision=22216
2006-06-04 17:24:37 +00:00
Magnus Olsen
36329fccb0 [AUDIT] this code is clean, for it is from DJGPP
svn path=/trunk/; revision=22215
2006-06-04 17:22:12 +00:00
Magnus Olsen
5f286cc809 fixing 24 bugs in *printf string version. we are failing 34 test in wine_test msvcrt printf
svn path=/trunk/; revision=22214
2006-06-04 17:15:47 +00:00
Hervé Poussineau
1988057885 Fix call to IOCTL_SERIAL_PURGE
svn path=/trunk/; revision=22213
2006-06-04 16:32:54 +00:00
Hervé Poussineau
bfa0a5c6e1 Display an error message only if we're not in the "load only boot drivers" phase
svn path=/trunk/; revision=22212
2006-06-04 16:30:27 +00:00
Johannes Anderwald
18fbc81749 revert _strdate modifications
svn path=/trunk/; revision=22211
2006-06-04 14:24:45 +00:00
Aleksey Bragin
c4dded32e8 Fix some warnings
svn path=/trunk/; revision=22210
2006-06-04 14:24:08 +00:00
Aleksey Bragin
5eb09b8ac5 Delete unneeded makefile
svn path=/trunk/; revision=22209
2006-06-04 14:19:48 +00:00
Aleksey Bragin
42f34ff7ba - Add csqtest to build-system
- Add initial Kernel-Mode regression testing framework (thanks to Filip Navara for his PnPTest, thanks to Alexandre Julliard for Wine regression testing framework). Framework consists of: the driver (kmtest.sys) and the loader (kmtloader.exe).

svn path=/trunk/; revision=22208
2006-06-04 14:18:24 +00:00
Hervé Poussineau
b5d6466d79 Convert result struct only if NtUserEnumDisplaySettings returned success
svn path=/trunk/; revision=22207
2006-06-04 14:10:21 +00:00
Hervé Poussineau
c373b8ba66 Don't crash when no working display adapter is present
svn path=/trunk/; revision=22206
2006-06-04 14:09:29 +00:00
Hervé Poussineau
cc12e88784 Convert result struct only if NtUserEnumDisplayDevices returned success
svn path=/trunk/; revision=22205
2006-06-04 13:36:39 +00:00
Johannes Anderwald
36c9262fd0 _strdate should return maximum 8 chars
does not work yet

svn path=/trunk/; revision=22204
2006-06-04 13:20:09 +00:00
Hervé Poussineau
8d494b3a7b IntEnumDisplaySettings returns a BOOL, not a NTSTATUS
svn path=/trunk/; revision=22203
2006-06-04 13:09:25 +00:00
Johannes Anderwald
5c8fb36ad3 make _tfullpath pass all msvcrt_winetest dir tests
svn path=/trunk/; revision=22202
2006-06-04 10:23:28 +00:00
Magnus Olsen
9f044aa4d8 [AUDIT] this code is clear, no signs of revers is found it is only around 3-4 line of one function
svn path=/trunk/; revision=22201
2006-06-04 10:14:45 +00:00
Magnus Olsen
c92839403a do not cuase crash in dhcp when no networkcard is found
svn path=/trunk/; revision=22200
2006-06-03 20:29:26 +00:00
Magnus Olsen
dd6d911c37 sorrry I did break the build
svn path=/trunk/; revision=22198
2006-06-03 17:45:07 +00:00
Magnus Olsen
4eada6f8bd fixing malloc and realloc so it return right value
do not mix the doc over malloc and realloc. Thanks filip
<filip2307> malloc(0) -> valid buffer
<GreatLord> then I revert that change
<filip2307> realloc(<non-null pointer>, 0) -> NULL
<filip2307> realloc(NULL, 0) -> valid buffer

svn path=/trunk/; revision=22197
2006-06-03 17:40:23 +00:00
Magnus Olsen
f895d5ab82 Fix overflow caltions bugs in varus memmory functions, Thanks irc : Elrond (from TNG) for fixing calloc overflow bug.
svn path=/trunk/; revision=22196
2006-06-03 17:18:09 +00:00
Magnus Olsen
3b3b7ad5fd make malloc, calloc and some other function return NULL if size is 0
svn path=/trunk/; revision=22195
2006-06-03 13:22:11 +00:00
Magnus Olsen
19a69b58d8 [AUDIT] this code is clear, no signs of revers is found it is only around 2-3 line of each functions
svn path=/trunk/; revision=22194
2006-06-03 13:20:03 +00:00
Johannes Anderwald
e475b7f360 re-enable lock
svn path=/trunk/; revision=22193
2006-06-03 12:53:45 +00:00
Johannes Anderwald
9bd26230dd fix bug in CmiCreateHiveFreeCellList when a cell has size 0 which leads to inifite loop
fix bug in CmiCreateTempHive where only a pointer was allocated for the first cell but not object itself

svn path=/trunk/; revision=22192
2006-06-03 12:48:09 +00:00
Hervé Poussineau
21d98cbddd Fix some little bugs
svn path=/trunk/; revision=22191
2006-06-03 11:47:04 +00:00
Ged Murphy
97b1971025 [AUDIT]
umpnpmgr
Eric Kohl and Hervé Poussineau have both confirmed their contributions are clean. 
Eric also stated it was developed using information from the Samba project.

svn path=/trunk/; revision=22190
2006-06-03 11:30:13 +00:00
Ged Murphy
e018f1a8e1 [AUDIT]
services.exe
Eric Kohl and Filip Navara have both confirmed their contributions are clean. 
Public documentation, like "Inside Microsoft Windows 2000", and tests were used to implement it

svn path=/trunk/; revision=22189
2006-06-03 11:25:47 +00:00
James Tabor
3f8be13959 Fix compiling. Well for me anyway.
svn path=/trunk/; revision=22188
2006-06-03 07:00:09 +00:00
Aleksey Bragin
5e792878e0 Add forgotten KeAcquire/ReleaseQueuedSpinLock exported funcs to hal.def
svn path=/trunk/; revision=22187
2006-06-02 20:15:54 +00:00
Aleksey Bragin
43ac9dd900 [AUDIT]
halmp.dll
- Most functions are 2 lines
- And other funcs are simply UNIMPLEMENTED

svn path=/trunk/; revision=22186
2006-06-02 20:14:40 +00:00
Johannes Anderwald
404b530e5b return ERROR_INVALID_HANDLE when hKey is invalid
ReactOS passes now 88 of 89 advapi32_winetest registry tests

svn path=/trunk/; revision=22185
2006-06-02 19:02:21 +00:00
Ged Murphy
72af90afdf - remove all reliance on 'extern' data, using abstraction.
- store pointer to currently selected service in info struct so we don't have to keep calling it
- rewrite create.c making it more modular. Still has some missing features.
- lots of bugfixes and small improvements

svn path=/trunk/; revision=22184
2006-06-02 16:47:39 +00:00
Johannes Anderwald
01c01fafcd fix apps depending on INVALID_HANDLE_VALUE
bug report & patch by w3seek

svn path=/trunk/; revision=22179
2006-06-02 14:37:25 +00:00
Johannes Anderwald
449a2042e7 forgot header in last commit
bug report(1455) & patch by w3seek

svn path=/trunk/; revision=22178
2006-06-02 14:08:22 +00:00
Johannes Anderwald
42de812e46 always zero handle on return
ros now passes 87/89 advapi32_winetest registry tests
bug report & patch by w3seek

svn path=/trunk/; revision=22177
2006-06-02 14:05:38 +00:00
Hervé Poussineau
8410eccf06 By default, don't search a driver on removable media.
Do it only when choosing automatic install or selecting "Include removable media" in new hardware wizard

svn path=/trunk/; revision=22175
2006-06-02 13:43:02 +00:00
Hervé Poussineau
0e5ee8026d Implement CM_Add_IDA, CM_Add_IDW, CM_Add_ID_ExA
Add stub for CM_Add_ID_ExW

svn path=/trunk/; revision=22174
2006-06-02 11:17:37 +00:00
Johannes Anderwald
ee29d1d56c disable timer when user wants to set an alternative date -
enables setting time and fixes bug 1398
bug report by Coviti

svn path=/trunk/; revision=22173
2006-06-02 10:13:17 +00:00
Hervé Poussineau
7b66dbbc92 Extract some code from devinst.c to new files: devclass.c (device class functions), driver.c (Driver install/enumeration functions), interface.c (Interface install/enumeration functions)
devinst.c is now 123 Kb instead of 285 Kb.
No code change.

svn path=/trunk/; revision=22172
2006-06-02 09:06:05 +00:00
Hervé Poussineau
5049e0ee8f Change registry settings (related to revision 22169)
I'm not sure if this change is correct or if win32k has to be fixed.

svn path=/trunk/; revision=22170
2006-06-01 22:00:43 +00:00
Hervé Poussineau
9e908fc097 Store real parameters registry key in DEVICEMAP\VIDEO
Use it in win32k when loading and storing settings (SetupDevMode and IntChangeDisplaySettings)

svn path=/trunk/; revision=22169
2006-06-01 21:45:50 +00:00
Christoph von Wittich
e4c46fec65 -fix copy paste error (crypt32->cryptdll)
svn path=/trunk/; revision=22168
2006-06-01 21:38:07 +00:00
Christoph von Wittich
87a4f43e92 -added cryptdll to build
-added cryptdll.dll and usb.inf to bootcd

svn path=/trunk/; revision=22167
2006-06-01 21:36:42 +00:00
Ged Murphy
120aca25f3 First time import from wine-0.9.14
svn path=/trunk/; revision=22166
2006-06-01 21:30:02 +00:00
Magnus Olsen
a4014404b7 redirect __p__tzname to _tzname, I copy the idea from wine, for they are doing same
svn path=/trunk/; revision=22164
2006-06-01 21:26:10 +00:00
Magnus Olsen
9391845416 redirect __p__mbctype to _mbctype, I copy the idea from wine, for they are doing same
svn path=/trunk/; revision=22162
2006-06-01 21:21:16 +00:00
Ged Murphy
21d8349b92 more gcc 4.1 fixes
svn path=/trunk/; revision=22161
2006-06-01 21:18:22 +00:00
Ged Murphy
2c1f99e2c2 fix build for w3seek and his gcc 4.1 crew ;)
svn path=/trunk/; revision=22160
2006-06-01 21:12:55 +00:00
Magnus Olsen
f5276cb1a9 remove stub for _wenviron we already have it implement in crt.a
svn path=/trunk/; revision=22159
2006-06-01 21:05:53 +00:00
Hervé Poussineau
fdd161b84d Don't free the string, as it is not ours
svn path=/trunk/; revision=22158
2006-06-01 19:55:28 +00:00
Ged Murphy
e5a6d9a2cc - Temperarly add the screenshot app to the start menu
- Remove the existance checks for the games as they're part of ROS now.

svn path=/trunk/; revision=22157
2006-06-01 19:34:33 +00:00
Hervé Poussineau
4ac695afb3 Fix calculation of loss percentage
svn path=/trunk/; revision=22156
2006-06-01 18:27:08 +00:00
Magnus Olsen
b1fe06cdfe fix so fread return right value of bytes/chars it reads
make one more wine test pass in msvcrt file

svn path=/trunk/; revision=22155
2006-06-01 18:20:34 +00:00
Christoph von Wittich
20c6fb757f -don't update the time in the DTP control when the user is about to change it
svn path=/trunk/; revision=22154
2006-06-01 18:06:25 +00:00
Magnus Olsen
c82b31ff55 [AUDIT] this code is clear, if u look at djgpp fread u will see it base directly of it same struct and line out.
svn path=/trunk/; revision=22153
2006-06-01 17:42:00 +00:00
Ged Murphy
8e82082d2a add a really dodgy delete button. I'll replace all these buttons in due course.
svn path=/trunk/; revision=22152
2006-06-01 17:29:05 +00:00
Christoph von Wittich
99fea34218 -forgot to add world.bmp
svn path=/trunk/; revision=22151
2006-06-01 17:26:49 +00:00
Hervé Poussineau
4123274547 If the section name contained a dot, sometimes the right section to install was not found
svn path=/trunk/; revision=22150
2006-06-01 17:08:28 +00:00
Ged Murphy
68f041d222 hmm, tortoise is messing me about ;)
svn path=/trunk/; revision=22149
2006-06-01 16:47:11 +00:00
Ged Murphy
520bbfd043 - Start a complete overhaul of servman, using abstraction instead of the old messy way.
- Far to many changes to list, so I'm not even gonna even try ;)

svn path=/trunk/; revision=22148
2006-06-01 16:42:08 +00:00
Christoph von Wittich
130257e46c -forgot to check lpDrawItem->CtlID
svn path=/trunk/; revision=22147
2006-06-01 16:34:53 +00:00
Hervé Poussineau
bf90c28bb1 Amovible devices should be checked when doing automatic install
svn path=/trunk/; revision=22146
2006-06-01 16:25:15 +00:00
Christoph von Wittich
76aa2a4fa3 -added a worldmap picture (source: http://en.wikipedia.org/wiki/Image:Earth_satellite_plane.jpg)
svn path=/trunk/; revision=22145
2006-06-01 16:25:13 +00:00
Magnus Olsen
f1fe768fa8 Sorry I did wrong calc of the position of ungetc did not think of TCHAR size.
svn path=/trunk/; revision=22144
2006-06-01 09:38:11 +00:00
Magnus Olsen
fe3478c70d small rewrite by me, pass wine test and no bugs in ungetc accroing wine test of msvcrt.
svn path=/trunk/; revision=22143
2006-06-01 09:26:32 +00:00
Magnus Olsen
2ac0c98f88 [AUDIT] this code is clear base from djgpp with small modifcation, and bugs as hell. Bugfix will folllow in next commit
svn path=/trunk/; revision=22142
2006-06-01 09:23:00 +00:00
Ged Murphy
53d25231b3 fix possible memory leak
svn path=/trunk/; revision=22136
2006-05-31 22:39:51 +00:00
Christoph von Wittich
5db3f178ac -fixed bug 1513
-some changes to De.rc

svn path=/trunk/; revision=22129
2006-05-31 15:28:43 +00:00
Magnus Olsen
d16253dfa8 recommit french translatoins : patch from bug 1539 : the patch are provide by usurp
svn path=/trunk/; revision=22128
2006-05-31 15:18:02 +00:00
Johannes Anderwald
7325ddd1a4 add french translation
svn path=/trunk/; revision=22127
2006-05-31 15:04:01 +00:00
Hervé Poussineau
b22255488e Fix BSOD in IntPrepareDriver (bug 1321)
svn path=/trunk/; revision=22126
2006-05-31 14:26:56 +00:00
Christoph von Wittich
d91dbeb60b show Cancel button
svn path=/trunk/; revision=22125
2006-05-31 14:26:46 +00:00
Hervé Poussineau
c2f4c7bb97 Remove useless cast
svn path=/trunk/; revision=22124
2006-05-31 12:28:30 +00:00
Magnus Olsen
e6d8bd06e1 start implement WSHGetSockaddrType, it missing error code at return, and handling other struct and sockeradr_in.
Code was done by me and irc : Elrond (from TNG), Arty please check this, Other people test see if it works for u. 


svn path=/trunk/; revision=22123
2006-05-31 07:56:39 +00:00
Ged Murphy
169ddbd12e add screenshot app to bootcd
svn path=/trunk/; revision=22122
2006-05-30 21:12:31 +00:00
Ged Murphy
ec3eb0a18a add a temp screenshot app in case I don't get time to stick it in win32k before 0.3.0 FF.
svn path=/trunk/; revision=22121
2006-05-30 21:11:41 +00:00
Aleksey Bragin
5c0154378a - Unlock *.def file (it doesn't need to be audited)
- Patch by Andrey Korotaev: Fix wgl* function definitions

svn path=/trunk/; revision=22120
2006-05-30 21:01:24 +00:00
Hervé Poussineau
db04a303ee Fix indentation by replacing tabs by spaces. No code change
svn path=/trunk/; revision=22119
2006-05-30 19:40:52 +00:00
Hervé Poussineau
e7b716926f Fix installation from default directory (%SYSTEMROOT%\Inf).
Thanks WaxDragon for reporting.

svn path=/trunk/; revision=22118
2006-05-30 16:05:27 +00:00
Hervé Poussineau
862db2b603 Implement the Browse button, but it is not working well :(
svn path=/trunk/; revision=22117
2006-05-30 13:39:21 +00:00
Hervé Poussineau
c4c3ebf0ef Remember custom paths entered in wizard
svn path=/trunk/; revision=22116
2006-05-30 10:13:47 +00:00
James Tabor
4c8a553e26 Implement NtGdiGetCharABCWidths. Not sure if the math is right. Tested with Lazarus IDE. It is completely based on Filip Navara work on NtGdiGetCharWidth32.
svn path=/trunk/; revision=22115
2006-05-30 06:50:03 +00:00
Ged Murphy
5e2e227e4a change version text in line with new svn version
svn path=/trunk/; revision=22112
2006-05-29 16:20:45 +00:00
Hervé Poussineau
05875a2c6d - Implement SetupCopyOEMInfW
- Correctly sort drivers by rank and by date
- Fix memory corruption if %SYSTEMROOT% was longer than 128 chars

svn path=/trunk/; revision=22109
2006-05-29 13:32:51 +00:00
Hervé Poussineau
d599ad5c78 Fix typo ("SetupDiGetDeviceRegistryProperty" -> "SetupDiInstallDevice" in debug message)
svn path=/trunk/; revision=22108
2006-05-29 13:30:50 +00:00
Magnus Olsen
e1e331508a Hidden bug in our tcp/ip stack, at shutdown api the so can be NULL if that happen, ReactOS will bsod the tcp/ip stack.
Arty can u look if this changes is right if not revert it. This changes was tested in fireforx at http://www.mirc.com/get.html and try d/l mirc. This patch do not make firefox bsod, instead it genrate a long crash log at serial debug. 

svn path=/trunk/; revision=22106
2006-05-29 12:43:01 +00:00
Magnus Olsen
f18d9585c3 revers r22073 and r22075 bugfix for envinmert for it break firefox, not tested in trunk, I tested to revers this change in r22075
svn path=/trunk/; revision=22105
2006-05-29 11:28:55 +00:00
Hervé Poussineau
64664422f4 Do the normal install before custom install actions.
So, we should get the right .inf filename in SP_DRVINFO_DETAIL_DATA.InfFileName, as it is modified if the file is copied to %SYSTEMROOT%/Inf

svn path=/trunk/; revision=22104
2006-05-29 11:09:54 +00:00
Hervé Poussineau
9d5ecbef5d SP_DRVINFO_DETAIL_DATA_W.InfFileName must contain the full file name
Add SetupDiSelectDevice stub

svn path=/trunk/; revision=22103
2006-05-29 11:03:24 +00:00
Hervé Poussineau
427cba82bd Don't stop the search after the first driver found. Next ones may be better
svn path=/trunk/; revision=22102
2006-05-29 09:36:26 +00:00
Hervé Poussineau
e798908f7e Fix some whitespaces
Change swprintf by sprintfW

svn path=/trunk/; revision=22101
2006-05-29 08:55:08 +00:00
Alex Ionescu
a12050c789 - Object Manager Improvements (3 of 3):
* Implement Per-Processor Lookaside List based allocation and de-allocation of the Object Create Information (object attributes capture) and of the object name. I counted over 4000 allocations for only 30 seconds of runtime, so this change greatly reduces pool fragmentation and increases speed. (Implementation is similar to the IRP lookaside list implementation, but inlined for speed).
  * Fix some cases where we weren't freeing captured information properly. This patch should also decrease memory leaks/usage.
  * Comment/formatting fixes.

svn path=/trunk/; revision=22100
2006-05-29 03:32:43 +00:00
Alex Ionescu
453c3d0af0 - Object Manager Fixes (2 of 3):
* Remove superflous debug prints used a long time ago while debugging
  * Set the CreatorUniqueProcess 
  * Align code to 80 chars
  * Do a privilege check of OB_FLAG_PERMANENT is being used, and de-allocate the object if this failed.
  * Send the PreviousMode to ObpAllocateObject so that it can honor it and set the OB_FLAG_KERNEL_MODE flag.
  * Use OBJECT_TYPE accounting to increase TotalNumberOfObjects.
  * Fail ObCreateObject in low-memory situations instead of ignoring it.
  * Respect OBJECT_TYPE.TypeInfo.InvalidAttributes if an attempt is to create an object with invalid attributes is detected.
  * Respect PagedPoolCharge and NonPagedPoolCharge parameters and save them in the OBJECT_CREATE_INFORMATION strucutre.

svn path=/trunk/; revision=22099
2006-05-29 00:18:36 +00:00
Alex Ionescu
0817ba9198 - Object Manager Improvement Patch 1/3:
- Re-implement delayed object deletion by using an optimized Object Reaper based on OBJECT_HEADER->NextToFree. Thanks to Thomas for the algorithm.
  - Refactor object deletion into two operations: Removal and de-allocation (this is needed for failure during allocation, which we don't do yet).
  - BugFixes:
    * After freeing an object header structure, also clear the pointer so we don't attempt it again. 
    * Clear the handle database if there is one
    * Make sure the create info flag is set before deleting captured attributes.
    * Use the allocation pool tag when de-allocating.
    * Use OBJECT_TYPE accounting for tracking the numbef of objects.
    * Remove the object from it's typelist if it has creator information.
    * Call the security procedure to delete the security descriptor.

svn path=/trunk/; revision=22098
2006-05-29 00:05:07 +00:00
James Tabor
8a8feb3718 Fix build. Missing chg for GetOutlineTextMetrics.
svn path=/trunk/; revision=22097
2006-05-28 23:11:56 +00:00
James Tabor
1b601af92f Implement NtGdiGetOutlineTextMetrics and GetOutlineTextMetricsA/W.
GetOutlineTextMetricsA is from Wine. Tested with Mozilla 1.7.12.


svn path=/trunk/; revision=22096
2006-05-28 22:49:52 +00:00
Hervé Poussineau
57ae379676 Better handling of errors/special cases
svn path=/trunk/; revision=22095
2006-05-28 21:43:45 +00:00
Hervé Poussineau
10052376c0 Add newdev.h of the w32api package
svn path=/trunk/; revision=22094
2006-05-28 21:24:28 +00:00
Hervé Poussineau
0dd973573a Fix the build
svn path=/trunk/; revision=22093
2006-05-28 20:33:20 +00:00
Hervé Poussineau
f342328b5c - Display install page when installing the device, instead of search page
- Add "install failed" page

svn path=/trunk/; revision=22092
2006-05-28 20:21:43 +00:00
Hervé Poussineau
2a99309f16 Keep minimal amount of differences with Wine code
Remove useless files

svn path=/trunk/; revision=22091
2006-05-28 19:20:19 +00:00
Alex Ionescu
0dd1e9a2af - Add SecurityQoS and PreviousMode parameters to ObFindObject, so that these can be sent to the parse routine. Also don't send OBJECT_CREATE_INFORMATION to it, but each needed member separately. This avoids having to create a "Fake" structure in some calls which don't actually use capture the information.
- Also remove RemainingPath and stop exposing it to public APIs. Move all ObInsertObject/ObOpen,ReferenceByName hacks to ObFindObject, and add a small one there. We basically trade 4 hacks for 1.

svn path=/trunk/; revision=22090
2006-05-28 19:05:19 +00:00
Hervé Poussineau
19daffae13 Forward more functions to setupapi
svn path=/trunk/; revision=22089
2006-05-28 18:36:57 +00:00
Hervé Poussineau
808a1edb01 [AUDIT]
No code in cfgmgr32. All exported functions are redirected to setupapi

svn path=/trunk/; revision=22088
2006-05-28 18:36:34 +00:00
Hervé Poussineau
3b00b0a2fe Rewrite SetupDiGetActualSectionToInstallExW:
- Do less lookups in section names list
- Take care of possible ProductType and SuiteMask fields in section names 

svn path=/trunk/; revision=22087
2006-05-28 16:44:52 +00:00
Hervé Poussineau
ed2b9d396c Search driver files in the same directory as the .inf file
svn path=/trunk/; revision=22086
2006-05-28 12:35:20 +00:00
Magnus Olsen
1afe898112 copy number to numberf so people can bugfix it/rewrite it
svn path=/trunk/; revision=22085
2006-05-28 05:59:33 +00:00
Magnus Olsen
e73250fdc7 almost last commit for full support of %e %E %f %g %G, left todo is write the numberf function
svn path=/trunk/; revision=22084
2006-05-28 05:17:19 +00:00
Magnus Olsen
d62e9d48be starteted implement float into sprintf, snprintf and alot other printf api. this is more like a start how to implement it. This commit is more market for me. so I do not forget where string functions of *printf api (the main api functions) are. One more thing if u change on sprintf.c same change must be done in swprintf.c or changes into swprintf.c same changes must be done in swprintf.c, other wise the efect of bugfix or change will not be excutected in reactos, for u do not know if program pic the ansi or unicode version.
svn path=/trunk/; revision=22083
2006-05-28 04:58:27 +00:00
Magnus Olsen
b254c4649e making one more wine msvcrt printf test pass
now it is 62 fails instead of 63 fails

svn path=/trunk/; revision=22082
2006-05-28 01:32:32 +00:00
Magnus Olsen
6999a6bc5c fixing two hiden bug in reactos, null termante the string right at end, code tested in vs, but it seam no affact on wine test mscvrt printf test. What hell is the snprintf function call to ??
svn path=/trunk/; revision=22081
2006-05-28 00:51:16 +00:00
Aleksey Bragin
f07bc589f6 Fix an incorrect HalBeginSystemInterrupt() prototype
svn path=/trunk/; revision=22080
2006-05-27 15:38:37 +00:00
Magnus Olsen
d17fff2969 [AUDIT] this file is clean, and well document where it comes from, so no sign of trace was notice in this file
svn path=/trunk/; revision=22079
2006-05-27 15:32:22 +00:00
Ged Murphy
ae25dcdf0f Fix possible memory leak in ProbeAndCaptureUnicodeString
Patch from Thomas Weidenmueller

svn path=/trunk/; revision=22078
2006-05-27 15:06:51 +00:00
Magnus Olsen
dcc771fae1 patch from w3seek : <w3seek> btw here's a (temporary) fix for the missing buttons bug: because it's not entirely thread-safe. filip will take care of it (i think)
svn path=/trunk/; revision=22077
2006-05-27 14:15:04 +00:00
Hervé Poussineau
721ef792f3 Small fixes by w3seek
svn path=/trunk/; revision=22076
2006-05-27 14:04:08 +00:00
Magnus Olsen
ddeed65c6f sorry for breaking the build, I did put in wrong version I should have retested it
svn path=/trunk/; revision=22075
2006-05-27 13:05:24 +00:00
Hervé Poussineau
2708096c09 Fix search of driver on removable media
svn path=/trunk/; revision=22074
2006-05-27 13:03:04 +00:00
Magnus Olsen
979f267d03 Bugfix environ so it does not allown = in environ name not even as frist char
svn path=/trunk/; revision=22073
2006-05-27 13:00:39 +00:00
Magnus Olsen
ce582d62b8 [AUDIT] after looking through code no signs of reverse engineering were found.
svn path=/trunk/; revision=22072
2006-05-27 12:59:10 +00:00
Magnus Olsen
8114bf89bb [AUDIT] after looking through code no signs of reverse engineering were found.
svn path=/trunk/; revision=22071
2006-05-27 12:20:10 +00:00
Magnus Olsen
16e5818815 replacing _swab with wine cvs 2006-05-11 version, this will take care of our problem with overlapped memory problem with swab, and this make also two more wine test pass in wine msvcrt test. 100% pass okay now with wine msvcrt string test.
svn path=/trunk/; revision=22070
2006-05-27 11:37:44 +00:00
Magnus Olsen
a904d9f723 [AUDIT] after looking through code no signs of reverse engineering were found. This swap can not handling overlapped of memory, replace of this will follow in next commit.
svn path=/trunk/; revision=22069
2006-05-27 10:55:35 +00:00
Ged Murphy
2d0587fef2 - fixes the definitions of PostQueuedCompletionStatus() and RaiseException()
- adds the definitions of AddAccessAllowedObjectAce(),
AddAccessDeniedObjectAce() and AddAuditAccessObjectAce() to w32api
- prototypes in line with previous r22066 mods
- fixes bug 1473

svn path=/trunk/; revision=22068
2006-05-27 09:18:10 +00:00
Ged Murphy
5b5ec1b029 [AUDIT]
kernel32 - except.c, iocompl.c
most of the code is from Wine. 
All non wine specific functions are documented on MSDN

svn path=/trunk/; revision=22067
2006-05-27 09:15:33 +00:00
Ged Murphy
02d5b02191 add some function definitions I've had floating about in my headers for a while.
svn path=/trunk/; revision=22066
2006-05-27 09:01:39 +00:00
Ged Murphy
21371fa12d [AUDIT]
cat isn't a windows tool

svn path=/trunk/; revision=22065
2006-05-27 08:33:58 +00:00
Magnus Olsen
6734ad1c89 [AUDIT] after looking through code no signs of reverse engineering were found.
svn path=/trunk/; revision=22064
2006-05-26 22:48:25 +00:00
Magnus Olsen
4ab617ebb9 replace djgpp hell bugs fcvtbuf with project http://www.jbox.dk/sanos/source/lib/fcvt.c.html with small modification's to match ReactOS arch. Floating point to string conversion routines Copyright (C) 2002 Michael Ringgaard. All rights reserved.
Make wine test for fcvt shut up we are failing 64 of wine test in msvrt printf, but we pass all fcvt test. before we did fail 75 test in wine test of msvrt printf test. Before we did fail almost all test case for fcvt in wine test 

svn path=/trunk/; revision=22062
2006-05-26 19:23:34 +00:00
Magnus Olsen
1948e81384 fixing linux build
svn path=/trunk/; revision=22061
2006-05-26 19:10:33 +00:00
Magnus Olsen
2bc0dcfa46 [AUDIT] clean imported/ported from DJGPP, djgpp fcvt is bugs as hell, most case does not working, bug will come later
svn path=/trunk/; revision=22060
2006-05-26 18:51:58 +00:00
Steven Edwards
ff2ef467c0 sync lz32 winetest to 0.9.14
svn path=/trunk/; revision=22059
2006-05-26 18:14:28 +00:00
Steven Edwards
7ed8d3e325 added my own icmp test...this cannot possibly fail
svn path=/trunk/; revision=22058
2006-05-26 18:07:12 +00:00
Ged Murphy
672c492a1d [AUDIT]
sndvol32. 
declared clean by Thomas Weidenmueller
"It's not even functional" said Thomas. ;)

svn path=/trunk/; revision=22057
2006-05-26 18:02:20 +00:00
Steven Edwards
93ee7df2aa sync ntdll tests to 0.9.14
svn path=/trunk/; revision=22056
2006-05-26 17:54:55 +00:00
Steven Edwards
6dcf87a3d9 remove another dud, sync psapi test to 0.9.14
svn path=/trunk/; revision=22055
2006-05-26 17:35:11 +00:00
Steven Edwards
0cdda064ca sync the setupapi test to wine 0.9.14 and remove some files commited to the wrong folder
svn path=/trunk/; revision=22054
2006-05-26 17:30:43 +00:00
Steven Edwards
a8373ada71 update the winetest framework to 0.9.14 and sync some tests. Untested on ReactOS but at least it builds. More tests will come later. Fsck subversion
svn path=/trunk/; revision=22053
2006-05-26 16:20:53 +00:00
Andrew Munger
6e538fae59 Bump trunk to 0.4.0, no turning back now.
svn path=/trunk/; revision=22052
2006-05-26 15:14:13 +00:00
Hervé Poussineau
57404cf7cf Allow the user to specify a custom path for the driver when installing a new device
svn path=/trunk/; revision=22051
2006-05-26 10:16:27 +00:00
Hervé Poussineau
a10d9d8b2b Of course, I forgot to commit the new file in revision 22049...
svn path=/trunk/; revision=22050
2006-05-25 23:34:41 +00:00
Hervé Poussineau
dd411b3aa0 - Move new hardware wizard code to wizard.c
- Disable non working buttons
- Improve navigation between pages
- Prepare room for an install page

svn path=/trunk/; revision=22049
2006-05-25 22:55:13 +00:00
Andrew Munger
8dd3dc564a Fix green, it just needed it's ObOpenObjectByName params shuffled. Hope I did it correctly.
svn path=/trunk/; revision=22048
2006-05-25 21:39:49 +00:00
Alex Ionescu
340a5ed71a - Get rid of the intriguing idea that exported/public APIs should have prototypes with inversed parameters (fix ObOpenObjectByName and all its callers).
- Isolate ObFindObject into CmFindObject for the registry routines. Because of their well-known abuse of Ob, it's better to give them their internal routine so that when/if Ob ever gets fixed to parse properly, it won't force a re-write of Cm's object routines.

svn path=/trunk/; revision=22047
2006-05-25 20:50:58 +00:00
Steven Edwards
facb8f26f0 add directories for the comming wine tests
svn path=/trunk/; revision=22046
2006-05-25 20:24:16 +00:00
Alex Ionescu
c97cf6645c - Remove ROS-internal object macros and use the public ones in obtypes.h instead.
svn path=/trunk/; revision=22045
2006-05-25 20:14:09 +00:00
Alex Ionescu
3a9bdc8cf4 - Convert all Win32k Object callback functions to the correct NT prototypes.
- Get rid of ROS-internal WIN32_CALLOUT_DATA and use the real WIN32_CALLOUTS_FPNS type.
- Get rid of the callout.h hack.

svn path=/trunk/; revision=22044
2006-05-25 20:03:13 +00:00
Aleksey Bragin
b0f84fadf3 [AUDIT]
kernel32.dll
- Remove locks from Wine code, and from simple stub or forward type of functions
- Add file headers to all files (except shared completely with Wine)
- Mark a pair of functions as shared with Wine (to be changed later when adding correct function headers)

svn path=/trunk/; revision=22043
2006-05-25 19:50:19 +00:00
Steven Edwards
8943cd0ea8 started syncing to Wine-0.9.14
svn path=/trunk/; revision=22042
2006-05-25 19:43:52 +00:00
Alex Ionescu
cf356e801d - Rewrite Desktop/WindowsStation parsing to follow the NT Object Model, with some minor hacks to respect ROS's current parsing semantics.
- Thanks to this, the long-lasting ExpDesktopCreate hack is gone, and so is OB_ROS_FIND_METHOD and OB_ROS_CREATE_METHOD in win32k. Next patch can fully remove WIN32_CALLOUT_DATA and use the NT type instead.
- Add official OBJECT_ macros in obtypes.h

svn path=/trunk/; revision=22041
2006-05-25 19:30:09 +00:00
Johannes Anderwald
befa307429 italian explorer translation patch by folle_invasato (bug 1292)
svn path=/trunk/; revision=22040
2006-05-25 16:59:15 +00:00
Magnus Olsen
2d39a0cf6f revert this chnage for filip told me it is complete wrong rtl should never link to mscvrt
svn path=/trunk/; revision=22039
2006-05-25 16:34:02 +00:00
Magnus Olsen
026a7562cb Adding rtl to msvcrt.rbuild for it is only one that contain the *printf stuff.
svn path=/trunk/; revision=22038
2006-05-25 16:28:44 +00:00
Alex Ionescu
93db306b0e - Fix ObReferenceObjectByName and ObOpenObjectByName not to blissfully ignore the AccessState and ParseContext parameters.
- Change ObFindObject's prototype to be able to accomodate these two parameters so that they can be sent to the parse routine.

svn path=/trunk/; revision=22037
2006-05-25 04:17:29 +00:00
Alex Ionescu
1bb8f22330 - Get rid of OB_ROS_PARSE_METHOD and use OB_PARSE_METHOD instead. Hacked the current parse methods to keep using a PWSTR, however they should be modified to use the UNICODE_STRING instead...
svn path=/trunk/; revision=22036
2006-05-25 01:18:31 +00:00
Magnus Olsen
c5b6c41bf9 delete empty folder
svn path=/trunk/; revision=22035
2006-05-25 00:06:36 +00:00
Magnus Olsen
fa4b36b46f Did foregt the translate file we try one more time for bug : 1279 : patch from : user temarez : adding Ukrainian translations
svn path=/trunk/; revision=22034
2006-05-24 23:44:44 +00:00
Magnus Olsen
90d1f854c5 Swedish translation of getfirefox by Andreas Bjerkeholt
svn path=/trunk/; revision=22033
2006-05-24 23:43:26 +00:00
Magnus Olsen
32474f1622 bug : 1279 : patch from : user temarez : adding Ukrainian translations
svn path=/trunk/; revision=22032
2006-05-24 23:35:52 +00:00
Magnus Olsen
c693223778 bug : 1279 : patch from : user temarez : updating Ukrainian translations
svn path=/trunk/; revision=22031
2006-05-24 23:33:36 +00:00
Magnus Olsen
56046e1541 bug : 1279 : patch from : user temarez : adding Ukrainian translations to taskmgr
svn path=/trunk/; revision=22030
2006-05-24 23:25:40 +00:00
Alex Ionescu
766bb1c7a8 - Cleanup profiling and debugging code, add function comment headers and comment the functions in obdir.c
- Remove directory object parsing. Directory objects don't have parse routines. Instead, inline the lookup in ObFindObject (this hasn't been optimized yet, a lot of the code is now setting a = b, c = a, c = b.

svn path=/trunk/; revision=22029
2006-05-24 23:20:50 +00:00
Alex Ionescu
ab775b4798 Forgot to commit this change
svn path=/trunk/; revision=22028
2006-05-24 22:56:46 +00:00
Magnus Olsen
cdacf2d2bd [AUDIT] clean seam be imported/ported/base/inspered from DJGPP source code for everything look simulare to djgpp
svn path=/trunk/; revision=22027
2006-05-24 22:34:14 +00:00
Aleksey Bragin
b2f8544935 [AUDIT]
kernel32.dll
- Unlock files shared with Wine
- Unlock stubs
- Add programmers name into file header

svn path=/trunk/; revision=22026
2006-05-24 22:17:05 +00:00
James Tabor
945ca8d68e svn propset svn:eol-style native foo.py
svn path=/trunk/; revision=22025
2006-05-24 22:07:11 +00:00
Alex Ionescu
901bb3dc40 - Reorganize most of /ob so that functions inside each module actually follow some sort of cohesive model instead of complete randomness.
svn path=/trunk/; revision=22024
2006-05-24 21:44:59 +00:00
Magnus Olsen
5c92d07c04 [AUDIT] clean from wine
svn path=/trunk/; revision=22023
2006-05-24 20:53:10 +00:00
Magnus Olsen
5434555fb4 [AUDIT] clean seam be imported/ported from DJGPP for everything look simulare to djgpp
svn path=/trunk/; revision=22022
2006-05-24 20:50:55 +00:00
Magnus Olsen
70f6440451 clean up the getch.c remove unsused code.
svn path=/trunk/; revision=22021
2006-05-24 20:44:37 +00:00
Magnus Olsen
f9e014a9a7 [AUDIT] after looking through code no signs of reverse engineering were found. some of these api contain also bugs and they are document in the files.
svn path=/trunk/; revision=22020
2006-05-24 20:43:05 +00:00
Magnus Olsen
a63feb98f1 [AUDIT] clean imported/ported from DJGPP
svn path=/trunk/; revision=22019
2006-05-24 20:39:56 +00:00
Alex Ionescu
c9ae7e2e5f [AUDIT] namespc.c: The namespace functions are publically document and wrap around a ROS-internal ObFindObject function which is very different from the way NT handles parsing. The capture of attribute information was based off a public structure, and the function used does not seem to exist in NT (based on a google search). Object Manager Initialization is internal to ROS and performs generic/trivial intialization tasks, which seem to match the description present in Windows Internals as well as Windows NT File System Internals. Finally, Object Type creation is a ROS-internal function based off documentation found in Gl00my's object manager article as well as local debugging done with WinDBG which helped define the purpose of DefaultObject.
svn path=/trunk/; revision=22018
2006-05-24 20:29:02 +00:00
Alex Ionescu
c9a14c3a3b [AUDIT] security.c: All these functions are simply wrappers around the SecurityProcedure callback, which actually does all the work (and is located in /se). Their implementation is trivial and could not have been done another way (it may likely differ from the 100% NT implementation (which I am not aware of), but the current implementation seems obvious to me and I don't see anything missing.
svn path=/trunk/; revision=22017
2006-05-24 20:16:09 +00:00
Alex Ionescu
68121865ba - Wipe out PROS_OBJECT_HEADER and use OBJECT_HEADER since we are now compatible.
svn path=/trunk/; revision=22016
2006-05-24 20:13:47 +00:00
Alex Ionescu
3ccc97c6c4 - Rewrote the Object Directory implementation to follow the NT Structures in the NDK. This got rid of the last remaining OBJECT_HEADER difference and switched over to OBJECT_DIRECTORY.
- The low-level implementation is based on information from "Undocumented Windows 2000 Internals: A Programmer's Cookbook", with some modifications done by myself to match the updated 2003 structures. This implementation was hackishly stuck into our messed up high-level object lookup implementation, which now has 4 more band-aids. Still needs a lot of work done to the upper echelons of object lookup, but at least this gets rid of ROS-internal stuff.

svn path=/trunk/; revision=22015
2006-05-24 20:06:13 +00:00
Magnus Olsen
238be0b59c Do not create crash/bsod log when u logoff or shutdown of ReactOS.
svn path=/trunk/; revision=22014
2006-05-24 19:34:53 +00:00
Magnus Olsen
fc40c38034 sorry forget cleanup after me ;)
svn path=/trunk/; revision=22013
2006-05-24 19:03:01 +00:00
Magnus Olsen
68f59759a3 import cprintf from wine cvs 2006-05-23 as bug 1529 suggested, I was looking for this bug before it was reported.
it make most of msvcrt string test work, only one fail left to fix.

svn path=/trunk/; revision=22012
2006-05-24 18:56:29 +00:00
Magnus Olsen
983091eda8 [AUDIT] clean from DJGPP
svn path=/trunk/; revision=22011
2006-05-24 18:48:00 +00:00
Magnus Olsen
050efa1da2 Fixing two fail from wine gdi32 test, When HDC is NULL to NtGdiCreateDIBitmap we need create a hdc and delete the hdc when we are done.
svn path=/trunk/; revision=22010
2006-05-24 16:54:51 +00:00
Magnus Olsen
8954d82145 revert my change from bootvid.c now, after w3seek patch it works again for bootcd
svn path=/trunk/; revision=22009
2006-05-24 15:07:28 +00:00
Magnus Olsen
80770b053a Patch from w3seek: patch to fix a couple of argument probing bugs in NtQuerySymbolicLinkObject and NtCreateSymbolicLinkObject:
svn path=/trunk/; revision=22008
2006-05-24 14:41:53 +00:00
Johannes Anderwald
fbb73a8f5e fix a few typos and display issuses in german resource file
patch by ThePhysicist (bug 1518) and a few additional fixes by me

svn path=/trunk/; revision=22007
2006-05-24 12:17:49 +00:00
Magnus Olsen
bf04d0ad97 Fix the regress of livecd, it works now again, some how the palette color are being bigger that 256 color and then the bootvid.sys crash
svn path=/trunk/; revision=22006
2006-05-24 06:35:59 +00:00
Alex Ionescu
7619400890 [AUDIT] ntobj.c : The Temporary/Permanent object routines are 5-line generic wrappers which call an internal kernel function, which in itself is only a wrapper to set an internal, documented flag. The implementation is therefore trivial. NtQueryObject is only 10% complete.
wait.c: These are simple wrapper routines around the KeWaitForXxx functions which reference the objects and get their pointers, just like any other Nt* function does. Some parts are non-trivial, such as: various failures: these can be tested with the wait regression test however; The usage of THREAD_WAIT_OBJECTS is documented in the DDK; The failure for WaitAll with duplicated objects is documented on MSDN; The check for SYNCHRONIZE object is documented on MSDN. 

svn path=/trunk/; revision=22005
2006-05-24 04:43:50 +00:00
Alex Ionescu
0b30ce7700 [AUDIT] symlink.c : The symbolic link implementation was generic, used different structures from NT (which meant some large NT features of symlinks were unimplemented) and had several bugs which gave different results from NT, so it was most certainly cleanly developed. The most recent update added the NT structure (which is documented) but did not add any functionality, except for fixing bugs which were revealed through a test app called SymlLinkTest.
dirobj.c: The directory object implementation is also generic and currently uses different structures from NT. Object lookup/parsing is entirely different and has nothing in common with NT. The actual Nt* APIs which expose the interface are ultra-generic and trivial.

svn path=/trunk/; revision=22004
2006-05-24 04:33:18 +00:00
Alex Ionescu
5a2f6e7faa - Move all object directory stuff in dirobj.c and implement a simple profiler to measure the time spent in those functions until the desktop appears. Enable with #define OBP_PROFILE.
svn path=/trunk/; revision=22003
2006-05-24 04:28:57 +00:00
Alex Ionescu
2143c80c39 This should fix the build.
svn path=/trunk/; revision=22002
2006-05-24 04:19:04 +00:00
Alex Ionescu
ee3fddd2d7 - Thomas Weidenmueller (w3seek@reactos.org)
- Use SEH in Atom functions
  - Only use result length if the caller gave one, in NtQuerySecurityObject.

svn path=/trunk/; revision=22001
2006-05-24 02:48:51 +00:00
Alex Ionescu
8a80070849 - Fix Symbolic Link implementation:
- Use OBJECT_SYMBOLIC_LINK structure as used by Windows NT (and added the structure to the NDK)
  - Changed code to use the new names in the structure
  - Only free the symlink's name if it has one, to avoid a bugcheck.
  - Optimize parsing: if the new name is actually shorter then the target name, then don't allocate from pool, but re-use the buffer. This improves symlink parsing speed. Also fix a bug which made it depend on the incorrect implementation of NtCreateSymbolicLinkObject
  - Re-align the link target maximum length in NtCreateSymbolicLinkObject if it's odd, and fail if the length is odd, smaller then the maximum, or if the maximum is zero.
  - Originally allocate the symlink name in Paged Pool.
  - Initialize new members of the structure.
  - Fail in no-memory case, instead of continuing.
  - Properly probe the LinkTarget in NtQuerySymbolicLinkObject.
  - Properly handle which length is chosen for the copy and for the return in NtQuerySymbolicObject.
  - Lock the symbolic link object type while querying it. Eventually many more parts of Ob need to do this kind of locking.
  - SymLinkTest now only gives 2 failures.
- Fix some NDK bugs

svn path=/trunk/; revision=22000
2006-05-24 02:45:06 +00:00
Alex Ionescu
4b6154cfbf - SymTest: The Symbolic Link kernel implementation tester. Tests for really wacky symlink API properties. 8 failures on ROS.
svn path=/trunk/; revision=21999
2006-05-24 02:01:32 +00:00
Alex Ionescu
a98a1b99c4 - Cleanup the formatting, code and function headers of most of the Object Manager interfaces.
svn path=/trunk/; revision=21998
2006-05-23 21:42:28 +00:00
Aleksey Bragin
632f9f99ec - Fix build (forgot to add file) to msvcrt test
svn path=/trunk/; revision=21997
2006-05-23 21:32:04 +00:00
Art Yerkes
05fd384ab4 Recompute broadcast address upon ip change (spotted by elrond)
svn path=/trunk/; revision=21996
2006-05-23 21:24:01 +00:00
Magnus Olsen
b3edee282e Fixing strechblt dib16 and dib32 can be compile with -O2 (gcc) reporeted by jimtalor, it did not work on real hardware with -O2 when it was run with winqauke with some setting see bug 1520
svn path=/trunk/; revision=21995
2006-05-23 21:18:08 +00:00
Aleksey Bragin
b6a61aafb6 Update msvcrt_winetest to Wine-23052006
svn path=/trunk/; revision=21994
2006-05-23 20:16:57 +00:00
Aleksey Bragin
69713a9bc1 Update ntdll_winetest to Wine-23052006
svn path=/trunk/; revision=21992
2006-05-23 20:05:14 +00:00
Aleksey Bragin
f2725683f8 - Update user32_winetest to Wine-23052006. Update includes changes in the following subtests: edit, winstation. Evereything else is just compilation
svn path=/trunk/; revision=21991
2006-05-23 19:55:45 +00:00
Johannes Anderwald
9eda943d76 prevent ncpa from crashing when no component is selected. patch & bug report by ThePhysicist (bug 1519)
svn path=/trunk/; revision=21990
2006-05-23 19:27:27 +00:00
Aleksey Bragin
da398bc3c0 - Thomas Weidenmuller: Fix calculating the string offset.
- Fixes bug 1475: Taskmanager shows mumbojumbo in the process name column

svn path=/trunk/; revision=21989
2006-05-23 16:52:51 +00:00
Magnus Olsen
de8db05f3a [AUDIT] after looking through code no signs of reverse engineering were found. It look as the Arthur was inspired of DJGPP ansi functions. for it is alot simulare
svn path=/trunk/; revision=21987
2006-05-23 04:53:31 +00:00
James Tabor
eb5473a846 Add TT_PRIM_CSPLINE, from wine.
svn path=/trunk/; revision=21986
2006-05-23 02:14:46 +00:00
Aleksey Bragin
13df4844a7 - Update text-outputting routines in user32.dll to Wine's trunk (22052006). May fix some layout and text-placement issues.
- "user32_winetest.exe text" gives only 1 failure now
- Silence debug messages in win32k.sys

svn path=/trunk/; revision=21985
2006-05-22 22:05:40 +00:00
Johannes Anderwald
5d2d31ac0c increase mouse thread priority - patch by w3seek
should fix 1427

svn path=/trunk/; revision=21984
2006-05-22 21:57:38 +00:00
Johannes Anderwald
caac5ed1fc french translation by Usurp from bug 1492 :-)
svn path=/trunk/; revision=21983
2006-05-22 21:40:29 +00:00
Johannes Anderwald
60f50769ff french translation by Usurp from bug 1416
svn path=/trunk/; revision=21982
2006-05-22 21:33:22 +00:00
Aleksey Bragin
96f2c584d0 - Update TEXT_TabbedTextOut from Wine's trunk. Reduces number of failures in "user32_winetest.exe text" from 64 to 4.
svn path=/trunk/; revision=21981
2006-05-22 20:12:29 +00:00
Aleksey Bragin
612e2ff4df - Implement GetTabbedTextExtentA(), based on implementation from Wine (trunk). Reduces number of failures in "user32_winetest.exe text" from 84 to 64.
svn path=/trunk/; revision=21978
2006-05-22 19:07:59 +00:00
Aleksey Bragin
d778de3578 - Fix compiling of win32k without compilation units
svn path=/trunk/; revision=21977
2006-05-22 14:46:31 +00:00
Magnus Olsen
a28ea653f5 replace follow _wtol, _wtoi, _i64tow, _ui64tow, _ltow, _ultow, _ui64toa, _itow, _ltow, ultow with wine from wine cvs 2006-05-21
for we did fail on wine test on all these. In windows 2000 wine test ntdll string did not fail. 

svn path=/trunk/; revision=21976
2006-05-21 22:41:35 +00:00
Johannes Anderwald
d4aaeed1ff dont allow '=' in the environmental name in the set command
svn path=/trunk/; revision=21975
2006-05-21 21:31:20 +00:00
Magnus Olsen
06847e4576 [AUDIT] clean from DJGPP
svn path=/trunk/; revision=21974
2006-05-21 20:49:53 +00:00
Magnus Olsen
f340ab0a45 Fixing a i64ltoa bug, replacing both version with wine, copy the code from wine cvs 2005-05-21, bug report by wine test
svn path=/trunk/; revision=21973
2006-05-21 20:26:51 +00:00
Aleksey Bragin
c94db29865 - Fix GDIOBJ_* prototypes so win32k compiles with GDI_DEBUG compile option
svn path=/trunk/; revision=21972
2006-05-21 20:22:54 +00:00
Johannes Anderwald
e68cea0212 msvc compiling fix
svn path=/trunk/; revision=21971
2006-05-21 20:20:07 +00:00
Magnus Olsen
704b3a0362 [AUDIT] clean from DJGPP
svn path=/trunk/; revision=21970
2006-05-21 20:15:15 +00:00
Magnus Olsen
231155791c [AUDIT] clean this file are clean after I look at them
svn path=/trunk/; revision=21969
2006-05-21 20:11:27 +00:00
Eric Kohl
c7c5cd045d Add FSRTL_COMMON_FCB_HEADER to the beginning of the FCB.
svn path=/trunk/; revision=21968
2006-05-21 19:38:35 +00:00
Magnus Olsen
eebf35125d Fixing a ultoa bug, replacing both version with wine, copy the code from wine 0.9.0; I did add a NULL check for the string so it can not bsod. wine ntdll string only report one error, left to fix, I run wine test on windows 2000 and reactos to compare the result. Fireball report wine_ntdll_test string crach on windows xp, but it does not crash in windows 2000.
svn path=/trunk/; revision=21967
2006-05-21 18:54:21 +00:00
Magnus Olsen
80022e3b3d [AUDIT] clean from DJGPP
svn path=/trunk/; revision=21965
2006-05-21 15:41:50 +00:00
Magnus Olsen
c79c53d3b3 reporting djgpp fgets to fgetws, with wine test the old version did fail on reading string, it did to far.
now we do not have a any bug in fgetws, acoding wine test, I ran the test in win2k and reactos to be 100% sure it was not wine test fualt.

svn path=/trunk/; revision=21964
2006-05-21 13:38:45 +00:00
Magnus Olsen
2ef8f0fea0 [AUDIT] clean it is base on DJGPP fgets
svn path=/trunk/; revision=21963
2006-05-21 13:31:38 +00:00
Eric Kohl
99e8a7e6cb The MSFS_PIPE struct is actually an FCB (File Control Block). Rename it accordingly and store pointers to it in FileObject->FsContext.
svn path=/trunk/; revision=21962
2006-05-21 13:19:10 +00:00
Magnus Olsen
b3460406ae [AUDIT] after looking through code no signs of reverse engineering were found. Only code exists is to dllmain api rest is warper to crt.a
svn path=/trunk/; revision=21961
2006-05-21 11:49:34 +00:00
Magnus Olsen
0e3e95794f patch from w3seek : optimize FindWindowEx and fix passing a NULL window class
svn path=/trunk/; revision=21960
2006-05-21 09:21:38 +00:00
Magnus Olsen
2d54ed6453 revert r21958
svn path=/trunk/; revision=21959
2006-05-21 08:41:16 +00:00
Magnus Olsen
6a818caf88 patch from w3seek : Another fix for NtUserFindWindowEx
svn path=/trunk/; revision=21958
2006-05-21 08:39:42 +00:00
Magnus Olsen
7ece217a3e patch from w3seek : Another fix for NtUserFindWindowEx
svn path=/trunk/; revision=21957
2006-05-21 06:17:25 +00:00
Magnus Olsen
3e649bb0dc Bug 1507 patch from w3seek : This patch fixes more issues with NtUserFindWindowEx. (one example of bugs have been fixed with this patch is the tray icon)
svn path=/trunk/; revision=21956
2006-05-20 22:09:42 +00:00
Aleksey Bragin
6e418a0fd9 - Slightly update heap-related routines to wine's routines. Doesn't fix regression tests really, but just in case.
svn path=/trunk/; revision=21955
2006-05-20 20:42:26 +00:00
Aleksey Bragin
0159a46c3c [AUDIT]
- Based on Wine -> clean

svn path=/trunk/; revision=21954
2006-05-20 20:40:16 +00:00
Aleksey Bragin
001c217f07 - Update kernel32_winetest to the Wine's CVS head
svn path=/trunk/; revision=21953
2006-05-20 18:29:16 +00:00
Aleksey Bragin
591a910611 - Add programmers list for this file
- Replace silent failures with proper STUB

svn path=/trunk/; revision=21952
2006-05-20 17:30:42 +00:00
Aleksey Bragin
9c87128331 [AUDIT]
kernel32.dll

- Unlock files shared with Wine
- Unlock really obvious implementations
- Unlock files which are mostly stubs
- Fix programmer's name in one file

svn path=/trunk/; revision=21951
2006-05-20 17:21:53 +00:00
Aleksey Bragin
d7f687486e - Update ActiveContext functions in kernel32.dll, implementing them as "smart stubs". Implementation taken from Wine's kernel32 (helps Adobe Photoshop 7.0 according to Wine)
svn path=/trunk/; revision=21949
2006-05-20 14:31:38 +00:00
Aleksey Bragin
75b9927111 [AUDIT]
kernel32.dll

- No reason for stubs to be locked
- actctx.c is nothing more than A->W wrappers, thus clean too

svn path=/trunk/; revision=21948
2006-05-20 14:29:21 +00:00
Aleksey Bragin
2c24488614 [AUDIT]
subsystems
- Unlock headers, non-source code files, art (unique to reactos)
- Unlock one-function file (pretty obvious) and add a missing programmer's name to it
- Unlock files containing stubs

svn path=/trunk/; revision=21947
2006-05-20 10:49:56 +00:00
Aleksey Bragin
ac09ff8aba [AUDIT]
- Unlock source code files containing only stubs
- Add missing programmers name to the file headers
- SVN properties maintenance

svn path=/trunk/; revision=21946
2006-05-20 10:39:53 +00:00
Maarten Bosma
6012daa521 Only stubs
svn path=/trunk/; revision=21945
2006-05-20 08:59:59 +00:00
Maarten Bosma
bcd4428cb5 [AUDIT]
Does just contain one stub.

svn path=/trunk/; revision=21944
2006-05-20 08:50:42 +00:00
Magnus Olsen
7017eaae95 patch from w3seek make the kdbg build again
svn path=/trunk/; revision=21943
2006-05-19 12:31:19 +00:00
Alex Ionescu
907b271b84 - Use the proper HANDLE_TABLE and HANDLE_TABLE_ENTRY structures.
svn path=/trunk/; revision=21942
2006-05-19 00:32:50 +00:00
Magnus Olsen
13cc9dd150 forget this file
svn path=/trunk/; revision=21941
2006-05-19 00:14:05 +00:00
Magnus Olsen
aa195e970d fix the build after me
svn path=/trunk/; revision=21940
2006-05-19 00:13:28 +00:00
Magnus Olsen
83940cb028 [AUDIT] The code is from Sun that is free to use. checked in djgpp, djgpp contain same code.
svn path=/trunk/; revision=21939
2006-05-19 00:12:11 +00:00
Magnus Olsen
95b3109a94 did delete wrong file sorry
svn path=/trunk/; revision=21938
2006-05-18 23:53:42 +00:00
Magnus Olsen
0dc484382c Fix the calc bug, modf is compelete wrong, replace it with DJGPP C version of modf with small changes from me. so it compile in ReactOS,
Follow bugs did I notice in our modf 
1. bug did not clear the st reg before it was use
2. bug did not load the reg right
3. bug did not handler all case 



svn path=/trunk/; revision=21937
2006-05-18 23:42:50 +00:00
Magnus Olsen
c28f1204ff [AUDIT] after looking through code no signs of reverse engineering were found.
svn path=/trunk/; revision=21936
2006-05-18 23:03:27 +00:00
Alex Ionescu
19e2ef808c - Get rid of ROS_EPROCESS and all the ugly type-casting that was being done, now that the last two hacks make us able to compatibly use EPROCESS.
svn path=/trunk/; revision=21935
2006-05-18 20:32:17 +00:00
Alex Ionescu
7b3c313c1c - Use EPROCESS 's AddressCreationLock instead of the MADDRESS_SPACE Lock.
- Overlay MADDRES_SPACE over MM_AVL_NODE. Even though our structures are currently incompatible, they represent the same thing (The EPROCESS's Address space).

svn path=/trunk/; revision=21934
2006-05-18 20:10:44 +00:00
Alex Ionescu
93a0bb6787 - Use the Spare0 array, present in EPROCESS instead of ReactOS-specific members for Process Locking (temporary fix until pushlocks are used).
svn path=/trunk/; revision=21933
2006-05-18 18:55:38 +00:00
Aleksey Bragin
bf6dcf5f85 [AUDIT]
ntoskrnl/ex/error.c

- Alex Ionescu states the implementations are clean: I just re-orgznied the *harderror functions. The SEH filter is a trivial/well-known return of a single value, and __purecall is a stub.

svn path=/trunk/; revision=21932
2006-05-18 12:25:05 +00:00
Aleksey Bragin
659e7c97df [AUDIT]
ntoskrnl/dbgk
(according to functions_list.txt in audited branch comments by Alex Ionescu, and comments by me)
- debug.c: Clean/trivial implementation based on the object's structure. I merely create it and then initailize all its members. Other functions are stubs
- dbgkutil.c: Code is #if0'ed, and doesn't belong to Alex Ionescu. Author is unknown.
- Unified / prettified formatting, STDCALL -> NTAPI

svn path=/trunk/; revision=21931
2006-05-18 12:16:53 +00:00
Aleksey Bragin
8a2eb6433b [AUDIT]
ntoskrnl/ex
(according to functions_list.txt in audited branch comments by Alex Ionescu, and uuid.c comments by me)
- dbgctrl.c: Modified the function slightly for compatibility with some keys, still has nothing to do with Windows'
- lookas.c: File is clean. I merely rewrote existing versions based on a GPLed IBM driver I found on google, OSR documentation and some DDK sample code. The implementation is trivial and only calls caller-defined functions which are the ones doing the work.
- uuid.c: Added programmers, unified formatting, STDCALL->NTAPI change. Code doesn't look suspicious, plus stubbed functions
- win32k.c: Alex Ionescu only changed the functions to call Win32K instead of having the code in ntoskrnl. It was a cut/paste job. Aleksey Bragin: The code looks very trivial and straightforward, certainly it's written based on clean sources of information
- zone.c: Based on David Welch's code, which Alex Ionescu merely cleaned up, using clean development. He's not even sure if the Zone functions are still in Windows.



svn path=/trunk/; revision=21930
2006-05-18 12:06:28 +00:00
Ged Murphy
0f5345d5be - change the resource numbers to match Windows
- up the icon quality a bit.

svn path=/trunk/; revision=21929
2006-05-17 21:45:49 +00:00
Ged Murphy
857f3df0d7 - resize listbox. Fixes bug 1496
- change icon resource number to match Windows

svn path=/trunk/; revision=21928
2006-05-17 21:40:13 +00:00
Aleksey Bragin
66d38f82e7 [AUDIT]
ntoskrnl/inbv

- Functions are written mostly by dwelch and chorn, are exported and don't look like containing dirty code. They have some comments too. Filip confirmes this file is clean.
- Unified formatting throughout the file

svn path=/trunk/; revision=21927
2006-05-17 20:34:34 +00:00
Maarten Bosma
928dd508a1 [AUDIT]
Filip Navara: Contains only two functions, one of them is unimplemented Windows function and the other one is ROS specific and doesn't even follow the NT design.

svn path=/trunk/; revision=21926
2006-05-17 20:17:23 +00:00
Aleksey Bragin
ae39521313 [AUDIT]
ntoskrnl/ex/init.c
- Alex Ionescu: File is clean. Most of these are ReactOS-internal and specific to our booting cycle, which is entirely incompatible with Windows and broken beyond explanation.

svn path=/trunk/; revision=21924
2006-05-17 19:58:11 +00:00
Aleksey Bragin
2068860d71 [AUDIT]
ntoskrnl/mm
- Alex Ionescu: clean, they use ROS 'objects'. NT doesn't have rmaps or page_ops

svn path=/trunk/; revision=21923
2006-05-17 19:53:35 +00:00
Aleksey Bragin
1e9bb0240f [AUDIT]
ntoskrnl/mm/mpw.c
- Filip Navara: mpw.c is surely clean. it's totally wrong and besides it was described in The Book (Inside Windows NT)

svn path=/trunk/; revision=21922
2006-05-17 19:43:53 +00:00
Filip Navara
06f25f4b30 Attribute list support for NTFS and some memory leak fixes.
svn path=/trunk/; revision=21920
2006-05-17 14:40:14 +00:00
Mindflyer
8dd9c14606 Whoops, r21918 meant to go in trunk too.
svn path=/trunk/; revision=21919
2006-05-17 13:23:48 +00:00
Hervé Poussineau
4c27d61b0c Replace BOOL by BOOLEAN and STDCALL by NTAPI
(Use native types instead of Win32 ones)

svn path=/trunk/; revision=21917
2006-05-16 23:09:41 +00:00
Alex Ionescu
8a1609a63e - Check the Image Config Data in MmCreatePeb for address abusing (bug #1487).
- Speed-up the ElfpIsPowerOf2 function (bug #1464).

svn path=/trunk/; revision=21916
2006-05-16 15:04:50 +00:00
Ged Murphy
d83ca30a98 french translation by usurp
svn path=/trunk/; revision=21915
2006-05-15 22:56:07 +00:00
Christoph von Wittich
37402e2341 -fix build
svn path=/trunk/; revision=21913
2006-05-15 18:56:42 +00:00
Ged Murphy
b37892fad9 - size listbox correctly
- fixes bug 1490

svn path=/trunk/; revision=21912
2006-05-15 18:35:50 +00:00
Klemens Friedl
c6bee1d8a5 Add icons for several filetypes
registry keys written by Daniel "EmuandCo" Reimer <reimer [dot] daniel [at] freenet [dot] de>

svn path=/trunk/; revision=21910
2006-05-15 17:28:50 +00:00
Hervé Poussineau
57fca2edb7 Rename IOCTL_INTERNAL_USB_GET_ROOT_USB_DEVICE to IOCTL_INTERNAL_USB_GET_PARENT_HUB_INFO, and send it with major code IRP_MJ_INTERNAL_DEVICE_CONTROL
svn path=/trunk/; revision=21909
2006-05-15 16:38:49 +00:00
Hervé Poussineau
1d77bcb312 Correctly support USB hubs
svn path=/trunk/; revision=21908
2006-05-15 16:05:02 +00:00
Christoph von Wittich
f53dbb4e60 added usb.inf for generic usb-hubs
svn path=/trunk/; revision=21907
2006-05-15 15:47:56 +00:00
Hervé Poussineau
36ed39b2b9 Initialize the status block before sending the IRP
svn path=/trunk/; revision=21906
2006-05-15 10:55:51 +00:00
Hervé Poussineau
ed01b8a86a Revert 21903
1) ReactOS is extremely long to parse .inf files (no .pnf files as on Windows). Remember we want to keep ReactOS fast (when running) and small (on disk).
2) nVidia already provides a .inf file for its devices. You will still need it for other devices, so why not also use it for PCI System Management and Memory Controller?
3) Windows doesn't recognize natively the nVidia chipset, even with lastest updates.
4) I only care about devices emulated by VMware/Qemu/Bochs/Virtual PC, ie virtual machines.
5) If you add PnP IDs of some nVidia devices, someone else will want to add PnP IDs for other chipsets (Via, C3, Intel, ...)
6) While you are at it, why don't you add 40Mb to recognize the same amount of devices as Windows XP?

svn path=/trunk/; revision=21905
2006-05-15 08:43:33 +00:00
Magnus Olsen
78d1377a7b bug 1486 : patch from w3seek USER32: Convert WM_MDICREATE messages from/to unicode
svn path=/trunk/; revision=21904
2006-05-14 21:26:24 +00:00
Christoph von Wittich
c09f0eb9c7 -added NVIDIA nForce2 Memory Controller
-added NVIDIA nForce2 PCI System Management

svn path=/trunk/; revision=21903
2006-05-14 20:05:08 +00:00
Hervé Poussineau
cb4bb8b659 No need to link to ole32/oleaut32
svn path=/trunk/; revision=21902
2006-05-14 14:51:08 +00:00
Aleksey Bragin
ae9f01ed84 - Revert dependencies part of r21866 since it breaks compiling on MSVC 2005 (it complains to missing libs which we don't yet compile - like ntdll.lib, gdi32.lib, user32.lib and so on)
svn path=/trunk/; revision=21901
2006-05-13 22:11:25 +00:00
Art Yerkes
c37d7e43f9 Fix duplicate default routes when IP address is set manually.
svn path=/trunk/; revision=21900
2006-05-13 07:11:22 +00:00
Art Yerkes
c68622792c - Live update of static IP address from ctl panel.
- Fix removing adapter route on IP address delete.

svn path=/trunk/; revision=21899
2006-05-13 06:41:23 +00:00
Christoph von Wittich
a9680a89a6 display workgroup/domain name
svn path=/trunk/; revision=21898
2006-05-12 20:05:19 +00:00
Aleksey Bragin
34e230693a - Bug 1476: Include rosldr.h in halxbox.h
svn path=/trunk/; revision=21897
2006-05-12 19:51:50 +00:00
Hervé Poussineau
289346554c Misc fixes:
- Add System Bus Extender service group (used by pciide driver)
- Fix tags for Boot Bus Extender services
- Remove deprecated entries for ide.sys
- Let not the hardware wizard display the "Unknown device" (hack)

svn path=/trunk/; revision=21896
2006-05-12 07:36:12 +00:00
Maarten Bosma
88195fb7d6 [AUDIT]
Unlock the Cache Manager
- It is not even compatible to windows
- Alex assures his code is clean 

svn path=/trunk/; revision=21894
2006-05-11 22:40:37 +00:00
Hervé Poussineau
a1862b3701 Fix converting the typelib file name to unicode by using the correct buffer size.
svn path=/trunk/; revision=21893
2006-05-11 22:23:20 +00:00
Andrew Munger
3ed19e8287 Quiesce the datalink debugging output.
svn path=/trunk/; revision=21892
2006-05-11 21:52:28 +00:00
Aleksey Bragin
2e6dfbc67d - Thomas Weidenmueller: Fix build by fixing __readcr3 / __readcr4 implementations.
svn path=/trunk/; revision=21891
2006-05-11 21:01:29 +00:00
Andrew Munger
c02800c901 Restore original compiler settings. Changed accidentally by the NDK patch.
svn path=/trunk/; revision=21890
2006-05-11 19:07:52 +00:00
Hervé Poussineau
6e04036473 Some more error checking...
svn path=/trunk/; revision=21889
2006-05-11 17:43:31 +00:00
Hervé Poussineau
919b2cb62d - Fix installation of INF sections including a section of the same name in another INF file
- Remove some tests to NULL before HeapFree calls

svn path=/trunk/; revision=21888
2006-05-11 16:56:00 +00:00
Magnus Olsen
834787aacd revers my change in 21818, w3seek point out it was not good, and it can create unsupectet problem, like no gui ondemain, and maybe other, it seam waxdragon and other have problem boot after this changes. thats is the reason for this change beeing remove, that was added in 21818
svn path=/trunk/; revision=21886
2006-05-10 21:34:10 +00:00
Andrew Munger
72bb90f524 Revert accidental txtsetup.sif change. My fault.
svn path=/trunk/; revision=21885
2006-05-10 19:29:49 +00:00
Alex Ionescu
9a243ba5a2 Fix broken assert
svn path=/trunk/; revision=21883
2006-05-10 18:24:23 +00:00
Alex Ionescu
ac9b1b94cd Fix broken assert
svn path=/trunk/; revision=21882
2006-05-10 18:15:58 +00:00
Alex Ionescu
8481c1fa10 - NDK 0.98, now with versionned headers. Too many changes to list, see the TinyKRNL SVN Logs for more detailed information. Thanks to Andrew (Wax), Thomas and Aleksey for testing.
svn path=/trunk/; revision=21880
2006-05-10 17:47:44 +00:00
Christoph von Wittich
4adc41a909 added ACPI fan, ACPI power button device, ACPI sleep button device
svn path=/trunk/; revision=21879
2006-05-10 15:58:14 +00:00
Magnus Olsen
3f59281d1a delay the kernel tree for let it it cache up with some work before continue excute in IntPrepareDriver.
base on hpoussin hack in bug 1321, I have reboot vmware lest 20-30 times and I do not longer getting bsod 
I did before see lest one bsod in IntPrepareDriver after first attamt to boot to gui mode, then I need 
reboot reactos two times, to get it working. Lest it take care of my problem in vmware 

svn path=/trunk/; revision=21878
2006-05-10 14:50:28 +00:00
Hervé Poussineau
d13126b46f Shut up a debug message
svn path=/trunk/; revision=21877
2006-05-10 13:46:52 +00:00
Magnus Olsen
df0a9980e4 bug 1468 : patch from w3seek, advapi32: support object ACEs in string functions
svn path=/trunk/; revision=21876
2006-05-10 09:44:06 +00:00
Magnus Olsen
c74cbfaf67 bug 1467 : patch from w3seek, ACLs: Implement audit functions
svn path=/trunk/; revision=21875
2006-05-10 09:32:23 +00:00
Magnus Olsen
27a4da82e1 [AUDIT] after looking through code no signs of reverse engineering were found. COde was take from wine and stub wirten by EA
svn path=/trunk/; revision=21874
2006-05-10 08:51:13 +00:00
Magnus Olsen
bfafb50916 [AUDIT] advapi32 is from wine, objust clean
svn path=/trunk/; revision=21873
2006-05-10 08:41:27 +00:00
Magnus Olsen
2e0ae5f5e3 [AUDIT] after looking through code no signs of reverse engineering were found.
svn path=/trunk/; revision=21872
2006-05-10 08:32:32 +00:00
Hervé Poussineau
89ef78094b Update version.dll to lastest Wine version. Fixes a bug in some installers.
It was forked in revision 8782 to let Winzip to work. I've checked that Winzip is also working with this version

svn path=/trunk/; revision=21871
2006-05-10 08:19:03 +00:00
Hervé Poussineau
8ddbd806d9 Add missing #define for VFT2_DRV_VERSIONED_PRINTER
svn path=/trunk/; revision=21870
2006-05-10 07:10:11 +00:00
Hervé Poussineau
f5d503e93f Fix compilation with GCC4
svn path=/trunk/; revision=21869
2006-05-09 20:50:46 +00:00
Hervé Poussineau
1bbf802c73 First fully functional version of ncpa.
Requires a reboot after parameters changes.

svn path=/trunk/; revision=21868
2006-05-09 20:25:29 +00:00
Andrew Munger
4a37f88e19 win32k: minor window class fixes
- minor callproc handling bug
- correctly updating the menu name pointers when moving classes to the shared
heap
Patch by w3seek.

svn path=/trunk/; revision=21867
2006-05-09 20:21:52 +00:00
Johannes Anderwald
45cc9049ea add library output paths to linker
implement project dependency tracking - now we can build modules with dependend subprojects from ReactOS.sln

svn path=/trunk/; revision=21866
2006-05-09 12:22:33 +00:00
Johannes Anderwald
3f8a0f1903 exclude wine/w32api headers from msvc include paths
svn path=/trunk/; revision=21865
2006-05-09 09:23:20 +00:00
Magnus Olsen
897c5ec108 correct the ntoskrnl to the new LARGE_MCB strucrt
svn path=/trunk/; revision=21864
2006-05-09 06:02:26 +00:00
Magnus Olsen
91179ea59c fixing right define of struct typedef LARGE_MCB *PLARGE_MCB
svn path=/trunk/; revision=21863
2006-05-09 06:01:32 +00:00
James Tabor
8a45279c78 I fixed a mistake?
svn path=/trunk/; revision=21862
2006-05-09 03:55:10 +00:00
Hervé Poussineau
8fdb1b77b0 Add CommonFilesDir and ProgramFilesDir to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion
svn path=/trunk/; revision=21861
2006-05-08 23:54:03 +00:00
Magnus Olsen
ca4a8da1a8 FsRtlNumberOfRunsInLargeMcb compare http://www.jankratochvil.net/captive source changes of ReactOS ntoskrnl and we found a bug in ReactOS
ntoskrnl.

svn path=/trunk/; revision=21860
2006-05-08 22:07:09 +00:00
Hervé Poussineau
fac26bda0c Patch by Thomas Weidermueller (w3seek at reactos dot com)
- Fix some parameter names and IN/OUT/OPTIONAL

svn path=/trunk/; revision=21859
2006-05-08 21:32:36 +00:00
Johannes Anderwald
1991163828 fix msvc build bug with project having assemblers
svn path=/trunk/; revision=21858
2006-05-08 20:13:29 +00:00
Art Yerkes
bef295c91c Sorry, reverted my changes. I didn't realize other work was going on in here.
svn path=/trunk/; revision=21857
2006-05-08 18:16:44 +00:00
Magnus Olsen
c6b4c14c62 fixing a typo from my side. sorry wax for the broken treed
svn path=/trunk/; revision=21856
2006-05-08 18:15:46 +00:00
Magnus Olsen
875cffced6 sorry I broke the build, thx Brezenbak and w3seek point it out, small change from brezenbak to fix it
svn path=/trunk/; revision=21855
2006-05-08 17:35:09 +00:00
Hervé Poussineau
e85d46966b Fix bug 1448 and a possible buffer overflow.
Thanks w3seek for his help during the debugging

svn path=/trunk/; revision=21854
2006-05-08 17:14:19 +00:00
Magnus Olsen
026816c434 fixing a bug in gdientry3, found it when I wrote the doc
svn path=/trunk/; revision=21853
2006-05-08 16:50:33 +00:00
Magnus Olsen
f11806f4f0 adding doc for how DdCreateDirectDrawObject (GdiEntry1) and DdDeleteDirectDrawObject (GdiEntry3) works in reactos. doc by request by some devlopers
svn path=/trunk/; revision=21852
2006-05-08 16:48:10 +00:00
Art Yerkes
5a74450800 tcpip: make sure to clean up failed adapter bindings
ndis:  manage global adapter list correctly
ncpa:  wip code from my old tree ... it can now be used to set a static ip
       addr at least.  more to come

svn path=/trunk/; revision=21851
2006-05-08 11:00:26 +00:00
Christoph von Wittich
2160fab7c2 fix indentation
svn path=/trunk/; revision=21850
2006-05-08 08:54:47 +00:00
Magnus Olsen
62257d5444 if u update En.rc please update all other langues files, use the english text if no translatesion is not availbal, other wise it will bsd in windows or in reactos and we get diffent functions on each langues. DO NOT DO THIS MISTAKE
svn path=/trunk/; revision=21849
2006-05-08 05:11:37 +00:00
Art Yerkes
2bc290e96d Sorry, turn off extra debugging. We need a better framework for that.
svn path=/trunk/; revision=21848
2006-05-08 02:46:21 +00:00
Art Yerkes
7b61c89d96 Fix device registration. The actual reason it didn't work was that we weren't
adding the device to the list until after calling the BindAdapter method.

svn path=/trunk/; revision=21847
2006-05-08 02:45:40 +00:00
Andrew Munger
064fa9c1f2 userenv: open handles with least rights neccessary. Patch by w3seek, bug 1458.
svn path=/trunk/; revision=21846
2006-05-07 20:23:16 +00:00
Eric Kohl
8ee8c5c694 The NPFS_FCB struct is actually a CCB (Context Control Block) instead of an FCB (File Control Block). Rename it accordingly and store pointers to it in FileObject->FsContext2 instead of FileObject->FsContext.
svn path=/trunk/; revision=21845
2006-05-07 19:56:32 +00:00
Alex Ionescu
3d1978b003 [AUDIT]
- Tditest: A TDI test application.
- Floppy: Cleanly implemented by Vizzini.
- VideoPort, VBE/VGA Miniports: Filip says these are clean, but the actual VGA driver/framebuffers need more through auditing.

svn path=/trunk/; revision=21844
2006-05-07 19:34:23 +00:00
Magnus Olsen
021be3ef24 [AUDIT] after looking through code no signs of reverse engineering were found.
svn path=/trunk/; revision=21843
2006-05-07 19:23:37 +00:00
Alex Ionescu
8f6c4b215d [AUDIT]
- Bootvid: Uses documented/typical VGA drawing routines. Actual NT implementation is comletely incompatible and has nothing to do with real Windows, so no taint here.
- Debugout, green, diskdump: ROS-developed and non-NT drivers. Nothing they could've been tainted with, since NT doesn't have them.
- Null: Trivial/obvious implementation of a driver which does nothing.
- buslogic: Taken from VMWare source code almost entirely, minus some ROS hacks.
- Xbox Video Miniport: Cleanly developed by ros-xbox team with information from linux-xbox project.
- CSQTest: CSQ Test written by vizzini. Uses documented CSQ information and is just a test app to show how CSQ works, written by himself.

svn path=/trunk/; revision=21842
2006-05-07 19:16:11 +00:00
Alex Ionescu
a50247fb0c [AUDIT]
- HalUp is just a 3-line initialization stub.
- Include directory contains public DMA/APIC/SMP hardware data or internal prototypes.

svn path=/trunk/; revision=21841
2006-05-07 18:59:41 +00:00
Alex Ionescu
7200d0ce67 [AUDIT]
- Generic HAL is just a bunch of stubs, no actual code.
- XBOX HAL was cleanly developed by the ros-XBOX team using information from linux-xbox.

svn path=/trunk/; revision=21840
2006-05-07 18:56:52 +00:00
Magnus Olsen
f3bf535104 bug 1457: patch by w3seek : VFAT: Implement FileEaInformation for FAT32
svn path=/trunk/; revision=21839
2006-05-07 18:50:18 +00:00
Magnus Olsen
661ec874b7 [AUDIT] after looking through code no signs of reverse engineering were found.
svn path=/trunk/; revision=21838
2006-05-07 18:49:07 +00:00
Magnus Olsen
6cb336fbaa [AUDIT] after looking through code no signs of reverse engineering were found.
svn path=/trunk/; revision=21837
2006-05-07 18:42:22 +00:00
Magnus Olsen
65a46fb6e4 [AUDIT] after looking through code no signs of reverse engineering were found.
svn path=/trunk/; revision=21836
2006-05-07 18:39:18 +00:00
Magnus Olsen
b8c0b29fc9 Bug 1456 : patch from w3seek : Fix a bug in CreateDirectoryEx that makes the function attempt to create the template directory again
svn path=/trunk/; revision=21835
2006-05-07 18:17:50 +00:00
Magnus Olsen
bad04e557d [AUDIT] after looking through code no signs of reverse engineering were found.
svn path=/trunk/; revision=21834
2006-05-07 18:16:31 +00:00
Magnus Olsen
150fb4f42c [AUDIT] after looking through code no signs of reverse engineering were found.
svn path=/trunk/; revision=21833
2006-05-07 18:14:03 +00:00
Christoph von Wittich
eb3ebbddf1 -don't show SystemComponents
-added a "Show updates" checkbox 

svn path=/trunk/; revision=21832
2006-05-07 18:05:51 +00:00
Hervé Poussineau
caea3e9648 Add common cleanup block in SetupDiBuildClassInfoListExW, SetupDiClassGuidsFromNameExW, SetupDiClassNameFromGuidExW, SetupDiGetClassDescriptionExW, SETUP_CreateDevListFromEnumerator, SETUP_CreateDevList, SetupDiGetClassDevsExW, CreateClassKey, SetupDiOpenDeviceInfoW
svn path=/trunk/; revision=21831
2006-05-07 14:52:32 +00:00
Hervé Poussineau
31eb0eb314 In case of error, Reg* functions set the output handle to NULL. Don't rely on it to be INVALID_HANDLE_VALUE
This commit is related to bug 1455

svn path=/trunk/; revision=21830
2006-05-07 14:02:00 +00:00
Hervé Poussineau
12f4770a33 Replace some casts by CONTAINING_RECORD macro
Fix handle leak in SetupDiOpenClassRegKeyExW

svn path=/trunk/; revision=21829
2006-05-07 13:35:44 +00:00
Eric Kohl
367c18f5d5 Fix timeout handling.
svn path=/trunk/; revision=21828
2006-05-07 12:48:45 +00:00
Hervé Poussineau
33a839df3b Fix a broken cast (thanks w3seek)
svn path=/trunk/; revision=21827
2006-05-07 12:09:01 +00:00
Hervé Poussineau
cc1a16be75 Fix error handling in SETUP_CreateInterfaceList (memory/handles leak)
Implement DIGCF_PRESENT flag in SetupDiGetClassDevsExW
Add more error codes mapping from CR_* to ERROR_*

svn path=/trunk/; revision=21826
2006-05-07 12:00:55 +00:00
Eric Kohl
0070982394 Update Indentation (tab->4spaces).
svn path=/trunk/; revision=21825
2006-05-07 11:14:41 +00:00
Alex Ionescu
5fdf34d3c5 - Fix build.
svn path=/trunk/; revision=21824
2006-05-07 10:52:14 +00:00
Hervé Poussineau
cbb6aa83e6 Fix buffer overflow (spotted by Detlef Riekenberg in wine-devel ML)
svn path=/trunk/; revision=21823
2006-05-07 09:32:56 +00:00
Aleksey Bragin
47ec97a52e [AUDIT]
kernel32.dll
- Eric Kohl states that mailslot.c and npipe.c are clean: "They implement simple interfaces to the mailslot and named pipe file system drivers and don't contain any tainted code."

svn path=/trunk/; revision=21822
2006-05-07 09:23:22 +00:00
Magnus Olsen
234eeebea4 merges HEL_SetCooperativeLevel and HAL_SetCooperativeLevel to MAIN_SetCooperativeLevel
the new desgin allown us to use HEL as callbacks, we need change all HEL calls to the new desgin now

svn path=/trunk/; revision=21821
2006-05-07 09:12:37 +00:00
Magnus Olsen
cf6a23c944 Try again move to new redesign but now we take one step at time
svn path=/trunk/; revision=21820
2006-05-07 08:41:26 +00:00
Magnus Olsen
64f88aed89 revert last commit it bsd the ddraw in some case
svn path=/trunk/; revision=21819
2006-05-07 08:26:40 +00:00
Art Yerkes
fec1bfb78a Fix printing of adapter address. Just a silly thing for debugging.
svn path=/trunk/; revision=21818
2006-05-07 07:45:17 +00:00
Magnus Olsen
4a3cd2b217 Start remove old desgin of HEL to the new desgin, it will redues the code size, for we will use same code to call HAL in HEL, basic we need write the Dd* functions, it can be done two way, 1. Create a Hel driver in kmode or try write it in user mode. I will try write it in user mode.
svn path=/trunk/; revision=21817
2006-05-07 07:43:50 +00:00
Eric Kohl
9c0250f71c Simplified the access to FCBs and CCBs.
svn path=/trunk/; revision=21816
2006-05-07 07:33:40 +00:00
Eric Kohl
c5fa9029dc The MSFS_MAILSLOT struct is actually an FCB (File Control Block). Rename it accordingly and store pointers to it in FileObject->FsContext.
svn path=/trunk/; revision=21815
2006-05-06 20:04:30 +00:00
Eric Kohl
7b09374005 Set direct io flag of the device object.
svn path=/trunk/; revision=21814
2006-05-06 15:39:42 +00:00
Eric Kohl
0d5cf488c4 The MSFS_FCB struct is actually a CCB (Context Control Block) instead of an FCB (File Control Block). Rename it accordingly and store pointers to it in FileObject->FsContext2 instead of FileObject->FsContext.
svn path=/trunk/; revision=21813
2006-05-06 15:37:40 +00:00
Hervé Poussineau
6d2a7a72b1 Code cleanup:
- Move IRP_MJ_CREATE, IRP_MJ_CLOSE and IRP_MJ_CLEANUP to fdo.c and pdo.c
- Implement IRP_MJ_PNP / IRP_MN_QUERY_BUS_INFORMATION for PDOs
- IRP_MJ_POWER now returns STATUS_NOT_SUPPORTED instead of STATUS_SUCCESS
- Replace STDCALL by NTAPI
- Delete useless white space

=> USB keyboard and mice are working, even if they require one reboot after the installation of the USB controller

svn path=/trunk/; revision=21812
2006-05-06 14:36:52 +00:00
Johannes Anderwald
f7bfbfc5a6 * enable advanced mouse options in apply
thnx Christoph_Vw

svn path=/trunk/; revision=21811
2006-05-06 11:26:27 +00:00
Johannes Anderwald
369410a1c1 * ident code
* enable apply button when slider pos change

svn path=/trunk/; revision=21810
2006-05-06 11:10:27 +00:00
Christoph von Wittich
ea0b42a0e7 -lock the year edit control
svn path=/trunk/; revision=21809
2006-05-05 21:55:27 +00:00
Aleksey Bragin
42657b29da - SVN maintenance (set eol-style to native)
svn path=/trunk/; revision=21808
2006-05-05 18:13:26 +00:00
Aleksey Bragin
b78cdcabbd Move OBJ_NAME_PATH_SEPARATOR to ndk/obtypes.h (inspired by w3seek). Should make applying NDK patch easier.
svn path=/trunk/; revision=21807
2006-05-05 17:46:05 +00:00
Peter Ward
28731a5081 Fixed build.
- Changed strcpyW to wcscpy.

svn path=/trunk/; revision=21806
2006-05-05 17:16:05 +00:00
Aleksey Bragin
f914c470a9 [AUDIT]
drivers/network/wshtcpip

- Authors are Casper Hornstrup and Arthur Yerks
- Implemented functions are documented in OSR, MSDN and Google finds lots of links
- Result: Clean

svn path=/trunk/; revision=21805
2006-05-05 15:40:59 +00:00
Maarten Bosma
86eb7ebe10 [AUDIT]
Elf Loader
- KJK::Hyperion says it's clean
- ELF loader does not exist in Windows(R).

svn path=/trunk/; revision=21804
2006-05-05 15:36:25 +00:00
Christoph von Wittich
41c172dc42 *added year selection box
*display current time

svn path=/trunk/; revision=21803
2006-05-05 15:35:56 +00:00
Maarten Bosma
a35aed3b0d [AUDIT]
Obviously clean since it does not exist in windows and comes from freebsd.

svn path=/trunk/; revision=21802
2006-05-05 15:31:16 +00:00
Andrew Munger
e9c7c2b139 "More efficient" IsPowerOf2 from Myria (myriachan at cox dot net).
svn path=/trunk/; revision=21801
2006-05-05 15:10:59 +00:00
Aleksey Bragin
1ae51bd800 [AUDIT]
wshirda.dll

- Code is just a set of stubs
- Headers/defs/rc is definately clean

svn path=/trunk/; revision=21800
2006-05-05 15:09:57 +00:00
Aleksey Bragin
48cef97799 [AUDIT]
ntoskrnl/mm/pe.c

- KJK::Hyperion says it's clean
- There are references to original specs
- Windows PE loader is completely different

svn path=/trunk/; revision=21799
2006-05-05 14:56:16 +00:00
Aleksey Bragin
70403dc889 [AUDIT]
ws2help.dll

- Code is just a set of stubs
- Headers/defs/rc is definately clean

svn path=/trunk/; revision=21798
2006-05-05 14:10:47 +00:00
Hervé Poussineau
0d86ffc546 Legacy device objects created for USB keyboard and mouse support should be treated as FDOs, not PDOs.
svn path=/trunk/; revision=21797
2006-05-05 10:12:59 +00:00
Johannes Anderwald
c0afd25226 resources for the keyboard control panel applet
svn path=/trunk/; revision=21796
2006-05-04 20:30:22 +00:00
Johannes Anderwald
e8a4603968 fix build on linux plattforms
svn path=/trunk/; revision=21795
2006-05-04 05:31:53 +00:00
Magnus Olsen
bb9e90f468 Bug : 1452 : patch from w3seek, some xlate obj fixes for indexed palettes, should fix a hack introduced in r21292
svn path=/trunk/; revision=21794
2006-05-04 05:23:54 +00:00
Johannes Anderwald
6da2349338 implement notepad view status bar -
TODO: update caret position on arrow key/mouse scroll events


svn path=/trunk/; revision=21793
2006-05-03 16:17:12 +00:00
Johannes Anderwald
ef7ec993b7 set double click speed with latest slider pos
svn path=/trunk/; revision=21792
2006-05-03 15:06:09 +00:00
Hervé Poussineau
28ab30ea8d Don't call IoRaiseHardError at DISPATCH_LEVEL
svn path=/trunk/; revision=21791
2006-05-03 14:42:28 +00:00
Johannes Anderwald
b7f9c94930 fix compiling with gcc4
patch from w3seek

svn path=/trunk/; revision=21790
2006-05-03 14:34:01 +00:00
Hervé Poussineau
f50109cbc7 Cleanup in SetupGetInfFileListW:
- Better arguments check
- Rename pFileSpecification to pFullFileName
- Fix some possible buffer overflows spotted by w3seek

svn path=/trunk/; revision=21789
2006-05-03 14:26:43 +00:00
Johannes Anderwald
1b40c53f4c added missing constanst #define SPI_GETMOUSECLICKLOCK 0x101E
#define SPI_SETMOUSECLICKLOCK               0x101F

svn path=/trunk/; revision=21788
2006-05-03 14:09:39 +00:00
Hervé Poussineau
cdcd6ee015 Don't double free buffer in case of error
svn path=/trunk/; revision=21787
2006-05-03 13:56:12 +00:00
Johannes Anderwald
534b5a2027 halfplemented mouse control panel applet
svn path=/trunk/; revision=21786
2006-05-03 13:45:22 +00:00
Johannes Anderwald
56339e3e49 mouse control panel applet resources
svn path=/trunk/; revision=21785
2006-05-03 11:23:57 +00:00
Johannes Anderwald
7528b7fee5 small msvc compiling fix
svn path=/trunk/; revision=21784
2006-05-03 11:18:07 +00:00
Aleksey Bragin
d3f8576eb3 [AUDIT]
- w3seek says this file is derived from Wine and doesn't contain any possibly unclean code

svn path=/trunk/; revision=21783
2006-05-03 10:57:26 +00:00
Aleksey Bragin
6e170da6f7 - Bug 1447: Patch by Thomas Weidenmueller "Use SEH for some lstring functions, partly adapted from WINE"
WaxDragon tested this patch and confirmed it works fine.

svn path=/trunk/; revision=21782
2006-05-03 10:55:46 +00:00
Aleksey Bragin
549d2f7cbd - Bug 1450: Patch by Thomas Weidenmueller "Some window class fixes"
This patch makes registering the "Abiword" window class succeed. However, Abiword now crashes with a stack overflow recursively delivering the WM_NOTIFYFORMAT message to a subclassed rebar control...

svn path=/trunk/; revision=21781
2006-05-03 10:48:38 +00:00
Aleksey Bragin
fd9ff56f6d - Bug 1451: Patch by Thomas Weidenmueller:
System controls, such as comboboxes and listboxes are always unicode, even when
created with CreateWindowExA. Therefore, ansi messages need to be converted to
unicode and vice versa when sent to these windows. This patch fixes some(!) of these issues! Not all control messages are handled!

svn path=/trunk/; revision=21780
2006-05-03 10:35:11 +00:00
Andrew Munger
965305ebc8 Move callproc code into own file and reduce unneccessary system calls to dereference them.
It doesn't fix any bugs but improves performance a bit.
Patch from w3seek, bug 1445.

svn path=/trunk/; revision=21779
2006-05-03 04:17:50 +00:00
Christoph von Wittich
47e2049ea7 updated french translation patch by usurp
fixes bug 1441

svn path=/trunk/; revision=21778
2006-05-02 22:45:35 +00:00
Ged Murphy
8e006a24f2 Got carried away ;)
svn path=/trunk/; revision=21777
2006-05-02 21:11:36 +00:00
Ged Murphy
e0db930d64 - convert the screensaver to tchar and build as unicode.
- gets around the ANSI bug in the config dialog

svn path=/trunk/; revision=21776
2006-05-02 21:01:43 +00:00
Magnus Olsen
1b213c54a6 remove unsuse files after some redesign of ddraw
svn path=/trunk/; revision=21770
2006-05-02 17:53:04 +00:00
Magnus Olsen
daffac7a40 fix the build
svn path=/trunk/; revision=21769
2006-05-02 08:15:50 +00:00
Magnus Olsen
11ccea69ec implement add and release ref
svn path=/trunk/; revision=21768
2006-05-02 08:09:47 +00:00
Aleksey Bragin
3b277d1d05 - Patch by Thomas Weidenmueller: Adds a workaround for buggy installshield installers (which crash without this patch)
- Fixes e.g. ATI Catalyst 5.5 installer and some other

svn path=/trunk/; revision=21763
2006-05-01 21:33:26 +00:00
Christoph von Wittich
5f8eb7f778 updated resource files
svn path=/trunk/; revision=21761
2006-05-01 17:24:38 +00:00
Magnus Olsen
1eade84bbf Working on a redesign of whole directdraw interface
frist commit of many

svn path=/trunk/; revision=21760
2006-05-01 10:04:59 +00:00
Hervé Poussineau
ccdf6190cd Add kbdclass and mouclass as upper filter for keyboard and mouse devices.
Install i8042prt driver, even if it is not plug&play compliant at the moment

svn path=/trunk/; revision=21759
2006-04-30 19:17:32 +00:00
Eric Kohl
e1ab416a94 Improvement to the r21757 patch.
svn path=/trunk/; revision=21758
2006-04-30 12:10:31 +00:00
Eric Kohl
c2f31954b8 An attempt to read from a not-yet-connected pipe must fail. This fixes a Wine testcase.
svn path=/trunk/; revision=21757
2006-04-30 07:47:07 +00:00
Hervé Poussineau
7410babf41 Add pciide.sys/pciidex.sys to bootcd
svn path=/trunk/; revision=21756
2006-04-29 11:11:29 +00:00
Eric Kohl
1f15256d2e Set file object flag FO_NAMED_PIPE upon named pipe creation.
svn path=/trunk/; revision=21755
2006-04-29 07:39:13 +00:00
Eric Kohl
4fd7f3fb6a Set file object flag FO_MAILSLOT upon mailslot creation.
svn path=/trunk/; revision=21754
2006-04-29 07:35:41 +00:00
Hervé Poussineau
16d9aebe47 Lighter implementation of SetupGetInfFileListW
svn path=/trunk/; revision=21753
2006-04-28 21:10:49 +00:00
Ged Murphy
b474823f9a fix build
svn path=/trunk/; revision=21752
2006-04-28 15:43:45 +00:00
Christoph von Wittich
f67e8214bb added a PopupMenu with Add and Delete functions in screensaver.c
svn path=/trunk/; revision=21751
2006-04-28 15:34:58 +00:00
Christoph von Wittich
7ba6d64695 fixed a typo
svn path=/trunk/; revision=21750
2006-04-28 06:00:23 +00:00
Christoph von Wittich
cdac01f6e6 -redesigned the screensaver dialog
-removed add and delete buttons (these function should be placed in a context menu instead)

other rc files than english and german have to be updated accordingly

svn path=/trunk/; revision=21749
2006-04-28 05:46:44 +00:00
Christoph von Wittich
f7fc8841b0 transparent screen picture
svn path=/trunk/; revision=21748
2006-04-28 00:09:33 +00:00
Ged Murphy
0c30ab932a revert the my computer icon. mf's original is prefered
svn path=/trunk/; revision=21747
2006-04-27 20:40:09 +00:00
Ged Murphy
ead212bffe - allow start menu selection to loop when using the keyboard
- patch by Andreas Bjerkeholt (harteex@gmail.com)

svn path=/trunk/; revision=21745
2006-04-26 22:44:26 +00:00
Magnus Olsen
633c345cae [AUDIT] after looking through code no signs of reverse engineering were found.
BUG 1432 patch from w3seek : Get tools/cabman compile with gcc4

svn path=/trunk/; revision=21744
2006-04-26 05:06:22 +00:00
Magnus Olsen
4781665fc1 [AUDIT] after looking through code no signs of reverse engineering were found.
BUG 1437 patch from w3seek : SMSS: Fix using uninitialized variable

svn path=/trunk/; revision=21743
2006-04-26 04:59:24 +00:00
Magnus Olsen
0707606360 [AUDIT] after looking through code no signs of reverse engineering were found.
BUG 1436 patch from w3seek : SMSS: make \SystemRoot\System32 the current directory for started subsystems

svn path=/trunk/; revision=21742
2006-04-26 04:49:11 +00:00
Hervé Poussineau
fbd4530bfa Complete IRP_MJ_CREATE, IRP_MJ_CLOSE, IRP_MJ_CLEANUP
Use correct buffer when filling read request. Use SEH when needed
Correctly propagate DO_BUFFERED_IO, DO_DIRECT_IO and FILE_DEVICE_SECURE_OPEN flags

svn path=/trunk/; revision=21741
2006-04-25 22:22:22 +00:00
Ged Murphy
b110d67ed6 fix build
svn path=/trunk/; revision=21740
2006-04-25 21:47:16 +00:00
Andrew Munger
3958d172cb 21728 broke the release build, use an #ifndef instead.
svn path=/trunk/; revision=21738
2006-04-25 01:31:00 +00:00
Ged Murphy
3027bdebbd delete sneaky file
svn path=/trunk/; revision=21737
2006-04-24 21:36:08 +00:00
Ged Murphy
d99f67103e match the regedit icons to the shell32 ones.
svn path=/trunk/; revision=21736
2006-04-24 21:32:54 +00:00
Ged Murphy
16c495d2b7 match the explorer icons to the shell32 ones.
svn path=/trunk/; revision=21735
2006-04-24 21:31:41 +00:00
Ged Murphy
c1c0e85000 [AUDIT]
sysdm.cpl
Clear formatted Win32 API code fully documented on MSDN.

svn path=/trunk/; revision=21734
2006-04-24 20:26:02 +00:00
Ged Murphy
b4d255e040 - The start of a revamp of the UI. This is still not yet finished, but I'm committing anyway as it's looks much better already.
- Added a vast amount of resources for shell32. Resources now follow the Windows naming method for compatability with themes (one day).
- Removed the old Wine icons out of the .rc file and each icon is now stored in binary for easy maintenance.
- Many more icons to come for other libs (e.g. comctl32) plus separate programs, followed by the toolbars then moving onto other areas.
- I have some documentation to keep track of the Windows v ReactOS icons, including resource names, if anyone needs to work with it or is just generally nosey :)

svn path=/trunk/; revision=21733
2006-04-24 19:09:33 +00:00
Andrew Munger
0962d9ef05 Create the pagefile at the root of the drive by default. Now when you install to an alternate %systemroot%, you can still have a page file.
svn path=/trunk/; revision=21732
2006-04-24 18:32:35 +00:00
Maarten Bosma
3582ded91e Sorry did set DebugPort to COM1
svn path=/trunk/; revision=21731
2006-04-24 18:32:21 +00:00
Maarten Bosma
f45cebc073 Set Freeloader timeout to 0 for release builds.
svn path=/trunk/; revision=21728
2006-04-24 10:54:06 +00:00
Hervé Poussineau
8e197e1502 Add some defines
svn path=/trunk/; revision=21727
2006-04-24 10:51:34 +00:00
Magnus Olsen
c2698a1559 patch from w3seek : create smss with a current directory (system path), Otherwise the current directory for all early processes will be NULL. Fixes some inf installation issues reported by Herve.
svn path=/trunk/; revision=21725
2006-04-23 17:31:07 +00:00
Hervé Poussineau
c0d2baafb0 Fully implement SetupDiGetDriverInfoDetailW
svn path=/trunk/; revision=21720
2006-04-23 11:41:59 +00:00
Saveliy Tretiakov
f2aae2c5a1 [AUDIT]
\trunk\reactos\drivers\filesystems\np (Unlocked)
Eric Kohl confirmed npfs is clean.


svn path=/trunk/; revision=21717
2006-04-23 08:58:28 +00:00
Saveliy Tretiakov
096c04f529 [AUDIT]
\trunk\reactos\drivers\filesystems\ms (Unlocked)
Eric Kohl confirmed mailslot filesystem is clean.


svn path=/trunk/; revision=21716
2006-04-23 08:56:14 +00:00
Saveliy Tretiakov
a5bc761fdd [AUDIT]
\trunk\reactos\drivers\filesystems\fs_rec (audit)
Eric Kohl confirmed fs_rec is clean. Inspired by Bo Branten's file system recognizer. 


svn path=/trunk/; revision=21715
2006-04-23 08:52:45 +00:00
Hervé Poussineau
5028ed87a4 Fix little bug in mouse detection
Create unnamed FDOs
Read only registry parameters which make sense
Start to read mouse only when receiving IRP_MN_START_DEVICE
Cleanup of code

svn path=/trunk/; revision=21714
2006-04-23 08:46:25 +00:00
Hervé Poussineau
d8c61be337 [AUDIT]
\trunk\reactos\drivers\input\sermouse (Unlocked)
I (the author) confirmed sermouse is clean.

svn path=/trunk/; revision=21713
2006-04-23 08:44:06 +00:00
Hervé Poussineau
7d327991c4 Don't tell we succeeded IOCTL_KEYBOARD_QUERY_INDICATORS and IOCTL_KEYBOARD_QUERY_INDICATOR_TRANSLATION, as it is not true.
Fixes bug 1408

svn path=/trunk/; revision=21711
2006-04-22 18:00:47 +00:00
Saveliy Tretiakov
3c59aa8caa [AUDIT]
\trunk\reactos\drivers\filesystems\cdfs (Unlocked)
Eric Kohl confirmed cdfs is clean.  Based on vfatc code and iso-9660 documentation. 


svn path=/trunk/; revision=21710
2006-04-22 16:36:21 +00:00
Saveliy Tretiakov
93ed460d59 [AUDIT]
\trunk\reactos\dll\win32\userenv (Unlocked)
Eric Kohl (the author) confirmed he used clean methods to develop 
this dll. It was written using a lot of test code. Thomas 
Weidenmueller, another contributor, also confirmed his code is clean.


svn path=/trunk/; revision=21709
2006-04-22 16:27:31 +00:00
Hervé Poussineau
99ea202a07 Don't dereference device objects if they were not referenced
Remove one hack from kbdclass

svn path=/trunk/; revision=21708
2006-04-22 14:08:43 +00:00
Saveliy Tretiakov
d7c29a3b3f [AUDIT]
\trunk\reactos\drivers\filesystems\ntfs (Unlocked)
Eric Kohl confirmed ntfs driver is clean.


svn path=/trunk/; revision=21707
2006-04-22 14:06:53 +00:00
Saveliy Tretiakov
a4b7bd846c [AUDIT]
\trunk\reactos\drivers\base\blue (unlocked)
Eric Kohl confirmed blue is clean.


svn path=/trunk/; revision=21706
2006-04-22 14:01:25 +00:00
Saveliy Tretiakov
4dc0942610 [AUDIT]
\trunk\reactos\drivers\base\beep (Unlocked)
Eric Kohl confirmed beep is clean.


svn path=/trunk/; revision=21705
2006-04-22 13:58:53 +00:00
Saveliy Tretiakov
48c6a3665b [AUDIT]
\trunk\reactos\base\setup\usetup (Unlocked)
Eric Kohl confirmed usetup is clean.


svn path=/trunk/; revision=21704
2006-04-22 13:55:01 +00:00
Saveliy Tretiakov
4b57ceb55c [AUDIT]
\trunk\reactos\tools\mkhive (Unlocked)
Eric Kohl confirmed mkhive is clean.


svn path=/trunk/; revision=21703
2006-04-22 13:09:28 +00:00
Ged Murphy
084c375c11 Remove reg button in ReactOS. It made the toolbar a bit long, plus regedit should be used.
svn path=/trunk/; revision=21702
2006-04-22 12:39:42 +00:00
Saveliy Tretiakov
12b2c06aee Andrey Korotaev (unC0Rr@inbox.ru):
Ru.rc: Reflect latest changes. Improved elements layout.
settings.c: Sort by width, not only height.


svn path=/trunk/; revision=21701
2006-04-22 11:55:09 +00:00
Maarten Bosma
f1026bbe49 [AUDIT]
They are bitmaps and do not look like window's

svn path=/trunk/; revision=21700
2006-04-22 06:24:00 +00:00
Maarten Bosma
df98c9f40d [AUDIT]
Unlock: They are no code.

svn path=/trunk/; revision=21699
2006-04-22 06:06:11 +00:00
Saveliy Tretiakov
7e43b49d97 [AUDIT]
\trunk\reactos\drivers\bus\acpi (Unlocked)
Alex Ionescu says this code is clean: it's 99% from bsd/linux acpi driver with a single header for NT wrapper, which he thinks was done by arty and is 100% clean. It only does things like malloc->ExAllocatePool.


svn path=/trunk/; revision=21698
2006-04-22 05:55:17 +00:00
Saveliy Tretiakov
aa7b55c728 Art Yerkes said this should be deleted.
svn path=/trunk/; revision=21697
2006-04-22 05:37:07 +00:00
Saveliy Tretiakov
5f32fbc304 [AUDIT]
\trunk\reactos\lib\drivers\ip (Unlocked)
Art Yerkes confirmed this is clean.


svn path=/trunk/; revision=21696
2006-04-22 05:27:40 +00:00
Saveliy Tretiakov
d1cd839986 [AUDIT]
\trunk\reactos\drivers\network\tdi (Unlocked)
Virtually empty. Art Yerkes confirmed it's clean.


svn path=/trunk/; revision=21695
2006-04-22 05:22:34 +00:00
Saveliy Tretiakov
e7aa2f3d9b [AUDIT]
\trunk\reactos\drivers\network\tcpip (uNLOCKED)
Combination of Casper and Art Yerkes work. Mostly rewritten by Art Yerkes, he agreed it's clean.


svn path=/trunk/; revision=21694
2006-04-22 05:15:29 +00:00
Saveliy Tretiakov
65b8c1c64b [AUDIT]
reactos/drivers/network/lan (Unlocked)
Art Yerkes says this is clean. derived from tcpip/datalink/lan.c


svn path=/trunk/; revision=21693
2006-04-22 04:56:37 +00:00
Saveliy Tretiakov
8868a11fd1 Respect wine's indentation. Tabs -> spaces.
svn path=/trunk/; revision=21692
2006-04-22 04:50:37 +00:00
Ged Murphy
d9ff34c976 [AUDIT]
mmsys.cpl
Clear formatted Win32 API code fully documented on MSDN.
This code doesn't do much at present besides display a dialog

svn path=/trunk/; revision=21691
2006-04-21 23:05:18 +00:00
Ged Murphy
8a7427520d [AUDIT]
main.cpl
Clear formatted Win32 API code fully documented on MSDN.
This code doesn't do much at present besides display a dialog

svn path=/trunk/; revision=21690
2006-04-21 22:55:57 +00:00
Saveliy Tretiakov
be29b894bc [AUDIT]
\trunk\reactos\drivers\network\afd (UNLOCKED)
Art Yerkes vouch this is clean.


svn path=/trunk/; revision=21689
2006-04-21 17:45:51 +00:00
Saveliy Tretiakov
6cc78e8c8b [AUDIT]
/trunk/reactos/lib/drivers/oskittcp/oskittcp/ (unlocked)
3rd party code. Copyright (c) The Regents of the University of California.


svn path=/trunk/; revision=21688
2006-04-21 16:53:24 +00:00
Saveliy Tretiakov
630769f746 [AUDIT]
\trunk\reactos\base\applications\utils\pice (unlocked)
Port of pice.sourceforge.net


svn path=/trunk/; revision=21687
2006-04-21 16:36:34 +00:00
Saveliy Tretiakov
64df215733 Respect wine's indentation. Tabs -> spaces.
svn path=/trunk/; revision=21686
2006-04-21 16:28:25 +00:00
Peter Ward
a585852cdb [AUDIT]
reactos\base\applications\cacls (Unlocked):
- The author Thomas Weidenmueller has confirmed that this is clean.

svn path=/trunk/; revision=21685
2006-04-21 16:06:08 +00:00
Peter Ward
bc88c9c915 [AUDIT]
reactos\base\applications\gettype (Unlocked):
- The author Brandon Turner has confirmed that this is clean.

svn path=/trunk/; revision=21684
2006-04-21 15:47:50 +00:00
Peter Ward
6ef238eea3 [AUDIT]
reactos\lib\string (Unlocked):
- Clean.

svn path=/trunk/; revision=21683
2006-04-21 15:15:18 +00:00
Peter Ward
a0a28fad63 [AUDIT]
reactos\lib\libwine (Unlocked):
- Wine code.

svn path=/trunk/; revision=21682
2006-04-21 15:04:14 +00:00
Peter Ward
19e3304412 [AUDIT]
reactos\lib\kjs (Unlocked):
- 3rd Party.

svn path=/trunk/; revision=21681
2006-04-21 15:00:24 +00:00
Hervé Poussineau
4614dc266e Fix a wrong copy/paste in UNICODE version of route.exe
svn path=/trunk/; revision=21680
2006-04-21 08:03:19 +00:00
Klemens Friedl
299cf3cd06 Update german language file
svn path=/trunk/; revision=21679
2006-04-21 06:51:59 +00:00
Ged Murphy
6f15819ed2 Add the same bitmap to the settings page too.
Needs the background masking out though ...

svn path=/trunk/; revision=21678
2006-04-20 22:25:53 +00:00
Ged Murphy
fbf34c7981 Display a monitor behind the background picker on the display control panel.
Other languages needs their resources updating so it doesn't look messy. No time to do it, it's too late ;)

svn path=/trunk/; revision=21677
2006-04-20 22:18:12 +00:00
Saveliy Tretiakov
4155fe153a [AUDIT]
\trunk\reactos\lib\uuid (Unlocked)
Wine code.


svn path=/trunk/; revision=21675
2006-04-20 16:19:57 +00:00
Saveliy Tretiakov
a31a95e611 Add GDB property for debugging with gdb
svn path=/trunk/; revision=21674
2006-04-20 16:13:50 +00:00
Saveliy Tretiakov
e3dc3ea163 Update tests
svn path=/trunk/; revision=21673
2006-04-20 16:00:36 +00:00
Saveliy Tretiakov
1b9586156b Implement context handle support for servers: NdrServerContextMarshall, NdrServerContextUnmarshall, NDRSContextMarshall, NDRSContextUnmarshall.
MSDN context handle examples now work in ros. Context rundown routines don't work yet.


svn path=/trunk/; revision=21672
2006-04-20 15:45:01 +00:00
Christoph von Wittich
859360830e draw icons with the correct size
fixes the last Miranda menu issue I know of

svn path=/trunk/; revision=21671
2006-04-20 07:03:58 +00:00
Magnus Olsen
836aa765da bug 1346 : patch from w3seek : Support SE_FILE_OBJECT in GetNamedSecurityInfo
svn path=/trunk/; revision=21670
2006-04-20 04:36:18 +00:00
Magnus Olsen
f913f2a8f4 Bug 1345 : patch from w3seek Fixes for BuildTrusteeWithObjectsAndName, BuildTrusteeWithObjectsAndSid and GetTrusteeName
A test apps exits also from w3seek not commited.

svn path=/trunk/; revision=21669
2006-04-20 04:28:47 +00:00
Ged Murphy
b6900e8ae0 [AUDIT]
reporterror
This is a ReactOS application unrelated to Windows. However I've been through the code anyway and it comprises of modular code documented on MSDN.

svn path=/trunk/; revision=21668
2006-04-19 20:56:44 +00:00
Ged Murphy
e81df84a04 [AUDIT]
sc
I am the author and can verify this code is clean

svn path=/trunk/; revision=21667
2006-04-19 20:21:43 +00:00
Ged Murphy
0534fe7c0d [AUDIT]
route
currently a very basic app which uses simple iphlpapi functions.

svn path=/trunk/; revision=21666
2006-04-19 20:19:51 +00:00
Ged Murphy
4178c709bd this was missed when netstat was unlocked originally
svn path=/trunk/; revision=21665
2006-04-19 20:15:45 +00:00
Ged Murphy
aca11294e4 [AUDIT]
hostname
it only calls GetComputerName. I think it's safe to assume this is clean :)

svn path=/trunk/; revision=21664
2006-04-19 20:14:03 +00:00
Ged Murphy
20cc933b0c cleaner, revamped speaker icon.
svn path=/trunk/; revision=21662
2006-04-18 22:35:20 +00:00
Christoph von Wittich
7850d9f178 changed window caption to design proposal from #reactos channel
svn path=/trunk/; revision=21661
2006-04-18 20:06:30 +00:00
Christoph von Wittich
990019c419 UI improvement (window captions)
svn path=/trunk/; revision=21660
2006-04-18 19:29:47 +00:00
Hervé Poussineau
ffd89368ef No need to write "Serenum:" at the start of each debug string
svn path=/trunk/; revision=21659
2006-04-18 19:26:48 +00:00
Magnus Olsen
57c69510f1 wrong line break in the translations
svn path=/trunk/; revision=21658
2006-04-18 19:05:05 +00:00
Ged Murphy
a4c71b513b Reduce the size a bit.
svn path=/trunk/; revision=21657
2006-04-18 18:16:11 +00:00
Magnus Olsen
852e3f2ad4 [AUDIT] format this util is written from scratch, simple cmd command, and after looking through code no signs of reverse engineering were found
svn path=/trunk/; revision=21656
2006-04-18 17:46:46 +00:00
Magnus Olsen
fb106bc2a8 [AUDLT] Clean from wine
svn path=/trunk/; revision=21655
2006-04-18 17:45:55 +00:00
Ged Murphy
bc697aebe9 [AUDIT]
tcpsvcs
I am the author and can verify this code is clean

svn path=/trunk/; revision=21654
2006-04-18 17:24:16 +00:00
Magnus Olsen
9f3720e359 Dutch translations from the dutch translations team,
cacls, getfirefox, msconfig, sndvol32, taskmgr by  Maurus Cuelenaere,  winemine by  Maurus Cuelenaere  
winlogon by Eric Janssen  

svn path=/trunk/; revision=21653
2006-04-18 17:23:29 +00:00
Christoph von Wittich
ca3a742dba fix ownerdraw menu for miranda (patch by Brezenbak)
svn path=/trunk/; revision=21652
2006-04-18 17:17:08 +00:00
Ged Murphy
904d3ca622 - convert the floating windows to use pointers within the main structure
- allow showing and hiding of floating windows
- implement a rough version of the history interface
- temp draw a suggestion on how the color window could look.
- insert a few menu hints
- lots of half implemented of temp stuff in this commit, but committing now before the patch gets any bigger.

svn path=/trunk/; revision=21651
2006-04-18 16:42:54 +00:00
Magnus Olsen
6da6e80112 fast cleanup in dib/dib24bpp.c, Fixing a crash bug in dib32bpp.c (typo from me), xlate XO_TABLE can resive 0xffff or 0xffff or 0xffffff or 0xffffffff as color code for table, but the table is only 256 but in color&FF, That will stop firefox crash and translate the color right.
svn path=/trunk/; revision=21650
2006-04-18 15:52:48 +00:00
Christoph von Wittich
e5a4bd769c added dutch translation patch written by mcuelenaere <mcuelenaere@gmail.com>
fixes bug 1371

svn path=/trunk/; revision=21649
2006-04-18 13:32:17 +00:00
Christoph von Wittich
8898216301 fixed bug 1406
fixed a typo in german rc file

svn path=/trunk/; revision=21648
2006-04-18 13:26:40 +00:00
Christoph von Wittich
ab48d70466 set eol-style:native
fixed inconsistent newlines

svn path=/trunk/; revision=21647
2006-04-18 13:01:11 +00:00
Christoph von Wittich
8929ea7829 fixed bug 1407
svn path=/trunk/; revision=21646
2006-04-18 12:52:18 +00:00
Magnus Olsen
f29eac23ec Fix the xlate bug in 24dib correct fix more buttom showing right in firefox now
svn path=/trunk/; revision=21645
2006-04-18 09:47:51 +00:00
Magnus Olsen
f0c7bff035 fix 16 to 16 soyrce dest why the hell does th 16bitmap surface calls into this
svn path=/trunk/; revision=21644
2006-04-17 21:28:02 +00:00
Maarten Bosma
e495c66834 sort alphabetically
svn path=/trunk/; revision=21643
2006-04-17 19:12:49 +00:00
Aleksey Bragin
473cb1c0c6 - Update Wine-sync related doc
svn path=/trunk/; revision=21642
2006-04-17 18:11:17 +00:00
Maarten Bosma
c727e592a6 Open .ini and .inf with notepad
svn path=/trunk/; revision=21641
2006-04-17 17:54:45 +00:00
Ged Murphy
85800c3f71 remove a few wineisms, they are in out main header now.
svn path=/trunk/; revision=21640
2006-04-17 17:47:39 +00:00
Maarten Bosma
ac88573f07 Comment out the line which sets the default folder. Looks like our shell32 can not handle it. Now folders got a folder icon again. Thanks to EmuandCo for regression testing.
svn path=/trunk/; revision=21639
2006-04-17 17:39:11 +00:00
Ged Murphy
a6b77e1696 put cursor back into the text box if you skip too far.
This always used to catch me out when rushing an install .... alas, it shall bug me no more :)

svn path=/trunk/; revision=21638
2006-04-17 17:11:51 +00:00
Ged Murphy
ff0d599914 remove redefined values.
svn path=/trunk/; revision=21637
2006-04-17 14:07:43 +00:00
Magnus Olsen
7b4a231767 Bug 1363 : patch accpect with small change, review by me and hpoussin
svn path=/trunk/; revision=21636
2006-04-17 14:05:19 +00:00
Ged Murphy
e2ba765506 Bit of fun. Add a built-in coded message for the first time the screensaver is run.
If removed, it will not reappear.

svn path=/trunk/; revision=21635
2006-04-17 13:35:40 +00:00
Hervé Poussineau
dbcd6ec20e Fix VMware display driver installation
svn path=/trunk/; revision=21634
2006-04-17 12:18:47 +00:00
Hervé Poussineau
17ff6b4adf [AUDIT]
No suspicious code detected in vmwinst

svn path=/trunk/; revision=21633
2006-04-17 12:16:54 +00:00
Magnus Olsen
2bca0c0fcc Fix for ReactOS build system
Fixing all warings in the code it will make gcc queit
Remove pargma they should have been set in the project file not hard code it.

svn path=/trunk/; revision=21632
2006-04-17 11:26:50 +00:00
Peter Ward
8d75625cdb - Fix indentation (spaces -> TABs).
svn path=/trunk/; revision=21631
2006-04-17 11:13:48 +00:00
Magnus Olsen
659c768c6e import matrix screensaver secon try
svn path=/trunk/; revision=21629
2006-04-17 10:56:11 +00:00
Magnus Olsen
f31166fa5c delete matrix I did someting wrong with the import
svn path=/trunk/; revision=21628
2006-04-17 10:54:14 +00:00
Magnus Olsen
dc66a10877 import matrix screen saver
svn path=/trunk/; revision=21627
2006-04-17 10:50:25 +00:00
Magnus Olsen
dd384ab95e prepare for import of matrix screensavers (break the build for short while)
svn path=/trunk/; revision=21626
2006-04-17 10:47:01 +00:00
Magnus Olsen
47ff3fad63 prepare for screensaver : Adding win32scr as target it genrate a .scr file instead for a win32gui
svn path=/trunk/; revision=21624
2006-04-17 10:08:35 +00:00
Ged Murphy
8c37aa119a add some commctrl.h definitions
svn path=/trunk/; revision=21623
2006-04-17 09:21:11 +00:00
Aleksey Bragin
b59203d3a1 Sync to Wine-0_9_9:
Francois Gouget <fgouget@free.fr>
- mapi: Add some missing MAPI prototypes.
  Add some missing MAPI prototypes to mapi.h (spotted by winapi_check)
  and include it where they are implemented.
  Make mapi.h and mapix.h compatible. gcc does not like macros and
  prototypes to be redefined so this involved protecting against
  multiple definitions.
  Fix the MAPISendMail() implementation prototype.

Sync to Wine-0_9_8:
Hans Leidekker <hans@it.vu.nl>
- mapi32: Implementation for MAPISendMail.
  Implement MAPISendMail, stub MAPILogoff and make the stubs for
  MAPIInitialize, MAPILogon{,Ex} and MAPILogoff return success.
- mapi32: Prevent freeing non-allocated memory.

svn path=/trunk/; revision=21622
2006-04-17 07:45:48 +00:00
Aleksey Bragin
fb6d030c7c - Fix build (by adding needed temporary file)
svn path=/trunk/; revision=21621
2006-04-17 07:21:25 +00:00
Aleksey Bragin
83e8c1a2f3 - Comment an error-setting line since we don't have get_sock_error() function
- Something different should be used here
- This change fixes building of the component

svn path=/trunk/; revision=21620
2006-04-16 20:10:12 +00:00
Aleksey Bragin
9434974968 Please pay attention this code includes a hack by me to have inet_ntop() function implementation just for this dll.
Sync to Wine-0_9_10:
Andrбs Kovбcs <andras@csevego.net>
- wininet: Added Hungarian translation.
Robert Shearman <rob@codeweavers.com>
- wininet: Don't continue to connect to a secure server without SSL support since it won't work.
- wininet: Implement setting of send and receive timeouts.

Sync to Wine-0_9_8:
Robert Shearman <rob@codeweavers.com>
- wininet: Documentation fixes.
Petr Tesarik <hat@tesarici.cz>
- wininet: Czech language resources encoding fix.
Fatih Ac <fasici@linux-sevenler.org>
- wininet: Turkish translation.

Sync to Wine-0_9_7:
Aric Stewart <aric@codeweavers.com>
- wininet: INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT work.
  Beginning of framework to implement handling of InternetQueryOption
  for INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT.

Sync to Wine-0_9_6:
Jacek Caban <jacek@codeweavers.com>
- wininet: lpvStatusInfo in INTERNET_STATUS_NAME_RESOLVED,
  INTERNET_STATUS_CONNECTING_TO_SERVER and
  INTERNET_STATUS_CONNECTED_TO_SERVER should be strings, not
  sockaddr_in.

svn path=/trunk/; revision=21619
2006-04-16 20:07:09 +00:00
Aleksey Bragin
8b7ae92cc7 SVN Maintenance (eol-style: native)
svn path=/trunk/; revision=21618
2006-04-16 19:15:04 +00:00
Aleksey Bragin
41f90c8fd7 Sync to Wine-0_9_10:
Juan Lang <juan_lang@yahoo.com>
- crypt32: Move context properties to a separate file.
- crypt32: Move serialization functions to serialize.c.
- crypt32: Implement CertGetValidUsages.
- crypt32: Implement CertDuplicateStore.

Sync to Wine-0_9_9:
Juan Lang <juan_lang@yahoo.com>
- crypt32: implement CryptEnumOIDInfo and CryptFindOIDInfo.
- implement CryptEnumOIDInfo and CryptFindOIDInfo
- implement CertOIDToAlgId and CertAlgIdToOID using CryptFindOIDInfo
- crypt32: Move certificate store functions to their own file.
- crypt32: More encoding/decoding.
  Add support for encoding/decoding basic constraints and enhanced key
  usage, with tests.
- crypt32: Move OIDToAlgID and AlgIDToOID to oid.c.
- crypt32: Correct compile problem on gcc 2.95.
- crypt32: Partially implement CertGetNameString.
Henning Gerhardt <henning.gerhardt@web.de>
- crypt32: Add German resource file.
YunSong Hwang <hys545@dreamwiz.com>
- crypt32: Add Korean translation.
Alexander N. Sшrnes <alex@thehandofagony.com>
- Updated/new Norwegian Bokmеl resources.
Eric Pouech <eric.pouech@wanadoo.fr>
- crypt32: Don't access a blob after freeing it.
Sync to Wine-0_9_8:
Juan Lang <juan_lang@yahoo.com>
- crypt32: Fix a fixme, and remove an old comment.
- crypt32: Output string type in trace.
Alexandre Julliard <julliard@winehq.org>
- Include wine/port.h in files that use exceptions.

Sync to Wine-0_9_7:
Juan Lang <juan@codeweavers.com>
- crypt32: Implement CertRDNValueToStrA and CertNameToStrA, with tests.
- crypt32: Correct X509_NAME decoding, and more stringent tests.
- crypt32: Implement CertRDNValueToStrW and CertNameToStrW, with tests.

svn path=/trunk/; revision=21617
2006-04-16 19:12:28 +00:00
Aleksey Bragin
e4af2a5bf8 - Update wincrypt.h to correspond to Wine-0.9.10
svn path=/trunk/; revision=21616
2006-04-16 18:44:08 +00:00
Aleksey Bragin
8acabff6ea Sync to Wine-0_9_9:
Juan Lang <juan_lang@yahoo.com>
- wintrust: Add some stubs.

svn path=/trunk/; revision=21615
2006-04-16 18:24:52 +00:00
Aleksey Bragin
a592154d29 Sync to Wine-0_9_10:
Francois Gouget <fgouget@free.fr>
- Fix compatibility with native advpack dlls.

Sync to Wine-0_9_7:
Dmitry Timoshkov <dmitry@codeweavers.com>
- Make more arrays const.

Sync to Wine-0_9_6:
Jacek Caban <jacek@codeweavers.com>
- urlmon: Pass FORMATETC to OnDataAvailable.
- urlmon: Added implementation of protocol stream.
- urlmon: Added implementation of QueryService and stub implementation
  of IHttpNegotiate2 interface.
- urlmon: Query service provider for IInternetProtocol.
- urlmon: Added GetBindInfoString implementation.
- urlmon: Reimplement CoInternetCombineUrl to use pluggable protocol.
- urlmon: Use CoInternetCombineUrl in URLMonikerImpl_Construct.
- urlmon: Fix ref counting.
Rolf Kalbermatter <rolf.kalbermatter@citeng.com>
- urlmon: Fix a LARGE_INTEGER truncation.

svn path=/trunk/; revision=21614
2006-04-16 17:34:25 +00:00
Aleksey Bragin
b54888e17e Sync to Wine-0_9_8:
Mike McCormack <mike@codeweavers.com>
- imm32: Remove FIXME messages from some implemented functions.

svn path=/trunk/; revision=21613
2006-04-16 17:04:45 +00:00
Magnus Olsen
5df0cb61bf audlt lock
svn path=/trunk/; revision=21612
2006-04-16 16:16:09 +00:00
Magnus Olsen
913bde9808 kjk_hyperion : "Breaking auditing lock for a temporary fix: allow ExEnterCriticalRegionAndAcquireFastMutexUnsafe and ExReleaseFastMutexUnsafeAndLeaveCriticalRegion to be called from any thread; fixes UserEnterShared, UserEnterExclusive and UserLeave in win32k"
svn path=/trunk/; revision=21611
2006-04-16 16:04:28 +00:00
Aleksey Bragin
2122478f7b Sync to Wine-0_9_9:
Gerold J. Wucherpfennig <gjwucherpfennig@gmx.net>
- cabinet: Set proper error information on failures.

Sync to Wine-0_9_6:
James Hawkins <truiken@gmail.com>
- cabinet: Implement Extract on top of FDI.
- cabinet: Clean up the documentation for Extract.
- cabinet: Fix the second parameter name of Extract.
- cabinet: Add documentation for FDITruncateCabinet.
- cabinet: Store the cab file handle before extracting files so we can
  close the cab file even if no files are extracted.
- cabinet: Move the remaining cabextract.c functions to fdi.c.
- cabinet: Add initial tests for Extract.
- cabinet: Add the two flags used by Extract to cabinet.h.
- cabinet: Define the flags member of the EXTRACTdest structure.

svn path=/trunk/; revision=21610
2006-04-16 15:49:02 +00:00
Magnus Olsen
1888104b32 Implement screensaver setting and preiw of screen setting working in windows not tested in reactos
svn path=/trunk/; revision=21609
2006-04-16 13:56:57 +00:00
Aleksey Bragin
11c44d0243 [AUDIT]
dll/win32/advapi32/sec

- Very small functions are clean
- Functions doing basic initialization stuff are clean (their name suggests the actions the function performs)
- Functions publically documented in google
- Stubs / unimplemented functions
- Wine's code is clean too

svn path=/trunk/; revision=21608
2006-04-16 12:49:19 +00:00
Ged Murphy
b93335e12d [AUDIT]
finger
BSD derived code

svn path=/trunk/; revision=21607
2006-04-16 12:30:40 +00:00
Ged Murphy
d84ea94c72 [AUDIT]
whois
BSD derived code

svn path=/trunk/; revision=21606
2006-04-16 12:28:10 +00:00
Ged Murphy
93ec8b0b82 [AUDIT]
ping
modular code and obviously clean.

svn path=/trunk/; revision=21605
2006-04-16 12:25:54 +00:00
Magnus Olsen
200298ace6 [AUDIT]
clean from http://www.catch22.net shall not this be in vendoer drop ??

svn path=/trunk/; revision=21604
2006-04-16 10:40:43 +00:00
Magnus Olsen
1341cc0a8a [AUDIT]
clean : winemine icon/bmp from wine. 

svn path=/trunk/; revision=21603
2006-04-16 10:33:54 +00:00
Maarten Bosma
429ccf839a Flat toolbar buttons for ibrowser
svn path=/trunk/; revision=21602
2006-04-16 10:24:11 +00:00
Ged Murphy
125ddcb3bf [AUDIT]
ibrowser
obviously clean, this is not a derivative of an MS product.

svn path=/trunk/; revision=21601
2006-04-16 10:23:20 +00:00
Ged Murphy
010ef3a277 [AUDIT]
Network tools
Unlock code I am the author of. Code was produced using clean methods

svn path=/trunk/; revision=21600
2006-04-16 10:18:54 +00:00
Hervé Poussineau
31dc05f5f1 kbdclass and mouclass:
- Better synchronization of code between kbdclass and mouclass
- Better cleanup in ClassAddDevice in case of error
- Better support of legacy devices
kbdclass only:
- Send IOCTLs to lower device

svn path=/trunk/; revision=21599
2006-04-16 07:17:34 +00:00
Hervé Poussineau
286a4f2f82 [AUDIT]
No suspicious code detected in kbdclass and mouclass.
The code is quite understandable and have comments for harder parts + they share most of their code

svn path=/trunk/; revision=21598
2006-04-16 07:11:56 +00:00
Magnus Olsen
299c670648 Bug 1393 : Patch from w3seek Fix moving class objects between desktop heaps and the shared heaps
svn path=/trunk/; revision=21596
2006-04-15 10:41:58 +00:00
Andrew Munger
88699130d7 Send in the list of DHCP options we would like to get back, some servers are not as forthcoming as others.
This allows those of you running Windows Server 2003 as your DHCP server to get a domainname and default route.
This commit is dedicated to Jaix Bly.

svn path=/trunk/; revision=21595
2006-04-15 01:25:55 +00:00
Magnus Olsen
88a9cc78ba Bug 1390 : patch from W3seek : Don't use BOOL for 1 bit members in bitfields
svn path=/trunk/; revision=21594
2006-04-14 18:28:15 +00:00
Magnus Olsen
f7f19a1a69 Bug 1391 : Commit w3seek patch for Some Ansi vs. Unicode fixes for window classes
svn path=/trunk/; revision=21593
2006-04-14 18:23:11 +00:00
Saveliy Tretiakov
a9161f0913 EngCreateBitmap may return null. Add return value checks
svn path=/trunk/; revision=21589
2006-04-14 16:31:06 +00:00
Magnus Olsen
477fabfce2 Remove this doc, w3seek told me they are too outdate
svn path=/trunk/; revision=21588
2006-04-14 11:32:55 +00:00
Magnus Olsen
c74793a96d Windows API standard from ECMA, http://www.ecma-international.org/publications/standards/Ecma-234.htm
svn path=/trunk/; revision=21587
2006-04-14 10:48:46 +00:00
Hervé Poussineau
be451e4de7 Add some network-related GUIDs
svn path=/trunk/; revision=21586
2006-04-14 10:03:58 +00:00
Saveliy Tretiakov
9241bf5b08 [AUDIT]
\trunk\reactos\dll\cpl\ncpa (Unlocked)
I reviewed code and found no signs of reverse engeneering.
All api functions used are documented in msdn. DhcpNotifyConfigChange
is not documented by msdn, but there is a lot information about it on 
the net. google returns many results.


svn path=/trunk/; revision=21584
2006-04-13 15:44:18 +00:00
Andrew Munger
b3acf144a3 INF fix committed for hpoussin. Fixes networking (for everyone but encoded).
svn path=/trunk/; revision=21583
2006-04-13 15:44:08 +00:00
Saveliy Tretiakov
21e7db1fe7 Add more stubs
svn path=/trunk/; revision=21582
2006-04-13 15:23:34 +00:00
Magnus Olsen
19517659cb Fixing some bugs in create overlay. it works now to create a overlay but it does not show it yet
svn path=/trunk/; revision=21581
2006-04-13 14:12:20 +00:00
Hervé Poussineau
c20e86702b Replace ReactOS implementation of SetupGetInfInformationW by Wine one (much more complete)
Merge from Wine (Patches by James Hawkins (<truiken@gmail.com>))
- Store the full name to the INF file in the inf_file structure
- Implement SetupGetInfInformationA 
- Implement SetupQueryInfFileInformationA/W (James Hawkins <truiken@gmail.com>)

svn path=/trunk/; revision=21580
2006-04-13 12:16:50 +00:00
Hervé Poussineau
69734f5025 Fix 2nd stage setup. Patch by w3seek
svn path=/trunk/; revision=21579
2006-04-13 11:39:25 +00:00
Magnus Olsen
3bd173b1f2 one more redisg adding a member that tells whih destions it is. it work pretty well.
svn path=/trunk/; revision=21578
2006-04-13 11:03:19 +00:00
Hervé Poussineau
e0b74935a5 Merge from Wine:
- Add Esperanto translation by Antonio Codazzi
- Add Turkish translation by Fatih Aþýcý

svn path=/trunk/; revision=21577
2006-04-13 09:22:58 +00:00
Magnus Olsen
21c7829634 This commit is redesign off ddraw primare surface, we need reach primare surface from every where. We have now a expriment code that show how to create overlay with this new design but we do not set it up right yet.
svn path=/trunk/; revision=21576
2006-04-13 09:14:32 +00:00
Hervé Poussineau
bbd318bd04 Conform better to Wine standards
svn path=/trunk/; revision=21575
2006-04-13 08:06:45 +00:00
Magnus Olsen
e55cbd36de Bugfix : hal lock surface so it does not crash any longer
svn path=/trunk/; revision=21574
2006-04-13 06:38:52 +00:00
Magnus Olsen
becc8a8d30 Implement surface unlock
svn path=/trunk/; revision=21573
2006-04-13 06:29:01 +00:00
11071 changed files with 1451958 additions and 825382 deletions

View File

@@ -1,46 +0,0 @@
<?xml version="1.0"?>
<!--
Copyright (C) 2005 Casper S. Hornstrup
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-->
<project name="ReactOS.ApiStatus" default="publish">
<property name="reactos.dir" value="reactos" />
<property name="apistatus.xsl" value="rapistatus.xsl" />
<property name="apistatus.xml" value="rapistatus.xml" />
<property name="apistatus.html" value="index2.html" />
<include buildfile="config.include" />
<target name="publish">
<delete dir="${reactos.dir}" if="${directory::exists(reactos.dir)}" />
<exec program="svn" commandline="export -r HEAD ${source.url} ${reactos.dir}" />
<exec program="rgenstat" commandline="reactos\apistatus.lst ${apistatus.xml}" />
<style style="${apistatus.xsl}" destdir="${reactos.dir}" in="${apistatus.xml}" out="${apistatus.html}" />
<copy todir="${publish.dir}" overwrite="true">
<fileset basedir=".">
<include name="${apistatus.xml}" />
<include name="${apistatus.html}" />
</fileset>
</copy>
<delete>
<fileset basedir=".">
<include name="${apistatus.xml}" />
<include name="${apistatus.html}" />
</fileset>
</delete>
<delete dir="${reactos.dir}" if="${directory::exists(reactos.dir)}" />
</target>
</project>

View File

@@ -1,22 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2005 Casper S. Hornstrup
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-->
<project>
<property name="source.url" value="svn://svn.reactos.com/trunk/reactos" />
<property name="publish.dir" value="C:\api" />
</project>

View File

@@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="publishPath" value="c:\iso" /> <!-- c:\iso or ftp://ftp.server.com/iso -->
<add key="smtpServer" value="localhost" />
<add key="errorEmail" value="mailbox@somewhere-on-the-net" />
<add key="makeParameters" value="" />
<add key="fastDisk" value="" />
</appSettings>
</configuration>

View File

@@ -1,14 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle("ReactOS Sin Custom Revision Action")]
[assembly: AssemblyDescription("ReactOS Sin Custom Revision Action")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("ReactOS Project")]
[assembly: AssemblyProduct("React Operating System")]
[assembly: AssemblyCopyright("Copyright 2005 ReactOS Project")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]

View File

@@ -1,20 +0,0 @@
<?xml version="1.0"?>
<project name="ReactOS.CustomRevisionAction" default="build">
<property name="output.dir" value="bin" />
<target name="build" description="Build component">
<mkdir dir="${output.dir}" />
<csc target="exe"
output="${output.dir}\ReactOS.CustomRevisionAction.exe"
optimize="true"
debug="true"
doc="${output.dir}\ReactOS.CustomRevisionAction.xml"
warninglevel="0">
<sources>
<include name="*.cs" />
</sources>
</csc>
</target>
</project>

File diff suppressed because it is too large Load Diff

View File

@@ -1,340 +0,0 @@
using System;
using System.IO;
using System.Diagnostics;
using System.Configuration;
using System.Web.Mail;
namespace ReactOS.CustomRevisionAction
{
public class MainClass
{
/// <summary>
/// Path to store published binaries at.
/// </summary>
private static string publishPath;
/// <summary>
/// Whether or not to publish ISOs to a remote destination via FTP.
/// </summary>
private static bool PublishToRemoteFtpLocation
{
get
{
return publishPath.StartsWith("ftp://");
}
}
/// <summary>
/// Run the application.
/// </summary>
/// <param name="script">Script to run.</param>
/// <param name="args">Arguments to pass to script.</param>
/// <param name="workingDirectory">Working directory.</param>
/// <param name="standardOutput">Receives standard output.</param>
/// <param name="standardError">Receives standard error.</param>
/// <returns>
/// Exit code.
/// </returns>
private static int RunScript(string script,
string args,
string workingDirectory,
out string standardOutput,
out string standardError)
{
ProcessStartInfo scriptProcessStartInfo = new ProcessStartInfo(script,
args);
scriptProcessStartInfo.CreateNoWindow = true;
/*
* All standard streams must be redirected.
* Otherwise DuplicateHandle() will fail.
*/
scriptProcessStartInfo.RedirectStandardInput = true;
scriptProcessStartInfo.RedirectStandardError = true;
scriptProcessStartInfo.RedirectStandardOutput = true;
scriptProcessStartInfo.UseShellExecute = false;
scriptProcessStartInfo.WorkingDirectory = workingDirectory;
RedirectableProcess redirectableProcess = new RedirectableProcess(scriptProcessStartInfo);
standardOutput = redirectableProcess.ProcessOutput;
standardError = redirectableProcess.ProcessError;
return redirectableProcess.ExitCode;
}
/// <summary>
/// Retrieve value of configuration from configuration file.
/// </summary>
/// <param name="name">Name of configuration option.</param>
/// <param name="defaultValue">
/// Default value to be returned if the option does not exist.
/// </param>
/// <returns>
/// Value of configuration option or null if the option does not
/// exist and no default value is provided.
/// </returns>
private static string GetConfigurationOption(string name,
string defaultValue)
{
if (ConfigurationSettings.AppSettings[name] != null)
return ConfigurationSettings.AppSettings[name];
else
return defaultValue;
}
/// <summary>
/// Send an email.
/// </summary>
/// <param name="subject">Subject of the email.</param>
/// <param name="body">Content of the email.</param>
private static void SendErrorMail(string subject, string body)
{
try
{
string smtpServer = GetConfigurationOption("smtpServer", "localhost");
string toEmail = GetConfigurationOption("errorEmail", null);
if (toEmail == null)
return;
string fromEmail = GetConfigurationOption("fromEmail", null);
if (fromEmail == null)
fromEmail = toEmail;
MailMessage mm = new MailMessage();
mm.Priority = MailPriority.Normal;
mm.From = toEmail;
mm.To = toEmail;
mm.Subject = subject;
mm.Body += body;
mm.Body += "<br>";
mm.BodyFormat = MailFormat.Html;
SmtpMail.SmtpServer = smtpServer;
SmtpMail.Send(mm);
}
catch (Exception ex)
{
Console.Error.WriteLine(ex.Message);
}
}
/// <summary>
/// Fail with an error message.
/// </summary>
/// <param name="revision">Repository revision.</param>
/// <param name="text">Error message.</param>
private static void Fail(int revision,
string text)
{
Console.WriteLine(text);
Console.Error.WriteLine(text);
SendErrorMail(String.Format("[{0}] ReactOS Publish Error", revision), text);
}
/// <summary>
/// Fail with an error message.
/// </summary>
/// <param name="text">Error message.</param>
private static void Fail(string text)
{
Console.WriteLine(text);
Console.Error.WriteLine(text);
SendErrorMail("ReactOS Publish Error", text);
}
/// <summary>
/// Generate filename of distribution.
/// </summary>
/// <param name="branch">Branch.</param>
/// <param name="revision">Revision.</param>
private static string GetDistributionFilename(string branch,
int revision)
{
return String.Format("ReactOS-{0}-r{1}.iso",
branch,
revision);
}
private static void SplitRemotePublishPath(string publishPath,
out string server,
out string directory)
{
string searchString = "://";
int index = publishPath.IndexOf(searchString);
if (index == -1)
throw new InvalidOperationException();
int endOfProtocolIndex = index + searchString.Length;
string withoutProtocol = publishPath.Remove(0, endOfProtocolIndex);
index = withoutProtocol.IndexOf("/");
if (index == -1)
{
server = withoutProtocol;
directory = "";
}
else
{
server = withoutProtocol.Substring(0, index);
directory = withoutProtocol.Remove(0, index + 1);
}
}
/// <summary>
/// Copy ISO to the (remote) destination.
/// </summary>
/// <param name="sourceFilename">Name of source ISO file to copy.</param>
/// <param name="branch">Branch.</param>
/// <param name="revision">Revision.</param>
/// <remarks>
/// Structure is ftp://ftp.server.com/whereever/<branch>/ReactOS-<branch>-r<revision>.iso.
/// </remarks>
private static void CopyISOToRemoteFtpDestination(string sourceFilename,
string branch,
int revision)
{
string distributionFilename = GetDistributionFilename(branch,
revision);
string destinationFilename = Path.Combine(Path.GetDirectoryName(sourceFilename),
distributionFilename);
File.Move(sourceFilename, destinationFilename);
string server;
string directory;
SplitRemotePublishPath(publishPath, out server, out directory);
FtpClient ftpClient = new FtpClient(server, "anonymous", "sin@svn.reactos.com");
ftpClient.Login();
if (directory != "")
ftpClient.ChangeDir(directory);
/* Create destination directory if it does not already exist */
if (!ftpClient.DirectoryExists(branch))
ftpClient.MakeDir(branch);
ftpClient.ChangeDir(branch);
ftpClient.Upload(destinationFilename);
ftpClient.Close();
}
/// <summary>
/// Copy ISO to the (local) destination.
/// </summary>
/// <param name="sourceFilename">Name of source ISO file to copy.</param>
/// <param name="branch">Branch.</param>
/// <param name="revision">Revision.</param>
/// <remarks>
/// Structure is <branch>\ReactOS-<branch>-r<revision>.iso.
/// </remarks>
private static void CopyISOToLocalDestination(string sourceFilename,
string branch,
int revision)
{
string distributionFilename = GetDistributionFilename(branch,
revision);
string destinationDirectory = Path.Combine(publishPath,
branch);
string destinationFilename = Path.Combine(destinationDirectory,
distributionFilename);
if (!Directory.Exists(destinationDirectory))
Directory.CreateDirectory(destinationDirectory);
File.Copy(sourceFilename,
destinationFilename);
}
/// <summary>
/// Copy ISO to the destination.
/// </summary>
/// <param name="sourceFilename">Name of source ISO file to copy.</param>
/// <param name="branch">Branch.</param>
/// <param name="revision">Revision.</param>
/// <remarks>
/// Structure is <branch>\ReactOS-<branch>-r<revision>.iso.
/// </remarks>
private static void CopyISOToDestination(string sourceFilename,
string branch,
int revision)
{
if (PublishToRemoteFtpLocation)
CopyISOToRemoteFtpDestination(sourceFilename, branch, revision);
else
CopyISOToLocalDestination(sourceFilename, branch, revision);
}
/// <summary>
/// Publish a revision of ReactOS.
/// </summary>
/// <param name="text">Error message.</param>
private static int Publish(string branch,
int revision,
string workingDirectory)
{
string make = "mingw32-make";
string makeParameters = GetConfigurationOption("makeParameters", "");
string reactosDirectory = Path.Combine(workingDirectory,
"reactos");
Console.WriteLine(String.Format("ReactOS directory is {0}",
reactosDirectory));
string standardOutput;
string standardError;
int exitCode = RunScript(make,
makeParameters + " bootcd",
reactosDirectory,
out standardOutput,
out standardError);
if (exitCode != 0)
{
Fail(revision,
String.Format("make bootcd failed: (error: {0}) {1}",
standardError,
standardOutput));
return exitCode;
}
string sourceFilename = Path.Combine(reactosDirectory,
"ReactOS.iso");
if (File.Exists(sourceFilename))
CopyISOToDestination(sourceFilename,
branch,
revision);
else
{
Fail(revision,
"make bootcd produced no ReactOS.iso");
return exitCode;
}
return exitCode;
}
/// <summary>
/// Program entry point.
/// </summary>
/// <param name="args">Arguments from command line.</param>
/// <remarks>
/// If exit code is 0, then the commit was processed successfully.
/// If exit code is 1, then the commit was not processed successfully.
/// </remarks>
public static void Main(string[] args)
{
try
{
System.Environment.ExitCode = 1;
publishPath = ConfigurationSettings.AppSettings["publishPath"];
if (publishPath == null)
{
Fail("PublishPath option not set.");
return;
}
if (args.Length < 3)
{
Fail("Usage: ReactOS.CustomRevisionAction action branch revision");
return;
}
string action = args[0]; /* bootcd */
string branch = args[1];
int revision = Int32.Parse(args[2]);
System.Environment.ExitCode = Publish(branch,
revision,
System.Environment.CurrentDirectory);
}
catch (Exception ex)
{
Fail(String.Format("Exception: {0}", ex));
System.Environment.ExitCode = 1;
}
}
}
}

View File

@@ -1,145 +0,0 @@
/*
* When using the ProcessStartInfo.RedirectStandardXxx properties there is a chance of
* the parent and child process blocking due to a race condition. This class handles the
* problem.
* http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdiagnosticsprocessstartinfoclassredirectstandardoutputtopic.asp
*/
using System;
using System.IO;
using System.Threading;
using System.Diagnostics;
namespace ReactOS.CustomRevisionAction
{
/// <summary>
/// Process that redirects standard output and standard error streams.
/// </summary>
public class RedirectableProcess
{
/// <summary>
/// Process.
/// </summary>
private Process process;
/// <summary>
/// Redirected standard error stream.
/// </summary>
private string processError;
/// <summary>
/// Redirected standard output stream.
/// </summary>
private string processOutput;
/// <summary>
/// Exit code.
/// </summary>
private int exitCode;
/// <summary>
/// Redirected standard error stream.
/// </summary>
public string ProcessError
{
get
{
return processError;
}
}
/// <summary>
/// Redirected standard output stream.
/// </summary>
public string ProcessOutput
{
get
{
return processOutput;
}
}
/// <summary>
/// Exit code.
/// </summary>
public int ExitCode
{
get
{
return exitCode;
}
}
/// <summary>
/// Run an excutable and redirect standard error and/or standard output safely.
/// </summary>
public RedirectableProcess(ProcessStartInfo processStartInfo)
{
Run(processStartInfo, null);
}
/// <summary>
/// Run an excutable and redirect standard error and/or standard output safely.
/// </summary>
public RedirectableProcess(ProcessStartInfo processStartInfo, string input)
{
Run(processStartInfo, input);
}
private void Run(ProcessStartInfo processStartInfo, string input)
{
process = new Process();
process.StartInfo = processStartInfo;
process.Start();
if (processStartInfo.RedirectStandardInput && input != null)
{
process.StandardInput.AutoFlush = true;
process.StandardInput.WriteLine(input);
}
Thread readStandardError = null;
if (processStartInfo.RedirectStandardError)
{
readStandardError = new Thread(new ThreadStart(ReadStandardError));
readStandardError.Start();
}
Thread readStandardOutput = null;
if (processStartInfo.RedirectStandardOutput)
{
readStandardOutput = new Thread(new ThreadStart(ReadStandardOutput));
readStandardOutput.Start();
}
if (processStartInfo.RedirectStandardError)
{
readStandardError.Join();
}
if (processStartInfo.RedirectStandardOutput)
{
readStandardOutput.Join();
}
process.WaitForExit();
exitCode = process.ExitCode;
process = null;
}
/// <summary>
/// Read standard error thread entry-point.
/// </summary>
private void ReadStandardError()
{
if (process != null)
{
processError = process.StandardError.ReadToEnd();
}
}
/// <summary>
/// Read standard output thread entry-point.
/// </summary>
private void ReadStandardOutput()
{
if (process != null)
{
processOutput = process.StandardOutput.ReadToEnd();
}
}
}
}

View File

@@ -1,8 +0,0 @@
<?php
/* Rename to config.php */
define(ISO_BASE_URL, "http://www.server.com/iso/");
define(ISO_PATH, "C:\\iso\\");
?>

View File

@@ -1,230 +0,0 @@
<?php
include ('config.php');
function dm_usort_cmp ($a, $b) {
if ($a == $b) return 0;
return ($a > $b) ? -1 : 1;
}
function dm_usort_cmp_desc ($a, $b) {
if ($a == $b) return 0;
return ($a > $b) ? 1 : -1;
}
function printHeader()
{
?>
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>ReactOS Revison ISOs</title>
<meta name="generator" content="Editpad">
<meta name="keywords" content="OS, ReactOS, operating system">
<meta name="author" content="ReactOS Project (ros-dev@reactos.com)">
<style>
.box
{
padding: 0px;
background-color: #88aadd;
border-left: 1px solid #f0f0f0;
border-right: 1px solid #000000;
border-top: 1px solid #f0f0f0;
border-bottom: 1px solid #000000;
}
</style>
</head>
<body bgcolor="#88aadd">
<form method="post" action="">
<?php
}
function printMenu($revision)
{
?>
<table border="0" class="box" cellpadding="5">
<tr>
<td height="2px">
</td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<b>Branch:</b>
</td>
<td>
<select name="branch" tabindex="1">
<?php
$d = dir(ISO_PATH);
$i = 0;
$dirlist = array();
while (false !== ($entry = $d->read())) {
if ((strcasecmp($entry, ".") != 0) && (strcasecmp($entry, "..") != 0) && is_dir(ISO_PATH . "\\" . $entry) == "dir") {
$dirlist[$i++] = $entry;
}
}
$d->close();
if (is_array($dirlist)) {
usort($dirlist, "dm_usort_cmp");
reset($dirlist);
while (list($key, $val) = each($dirlist)) {
$branch = $val;
if ($branch == $_POST["branch"] || (!isset($_POST["branch"]) && $branch == "trunk"))
$selected = " selected";
else
$selected = "";
echo "<option$selected>$branch</option>";
}
}
?>
</select>
</td>
<td>
&nbsp;
</td>
<td>
<b>Revision:</b>
</td>
<td>
<?php
echo "<input type=\"text\" name=\"revision\" size=\"10\" maxlength=\"10\" tabindex=\"2\" value=\"" . $revision . "\"></input>";
?>
</td>
<td>
&nbsp;
</td>
<td>
<input type="submit" name="getiso" value="Download" tabindex="3" style="border: 1px solid #000000"></input>
</td>
</tr>
<tr>
<td colspan="7">
<hr size="2" width="100%" />
</td>
</tr>
<tr>
<td colspan="4">
<input type="submit" name="getnextiso" value="Next ISO" tabindex="4" style="border: 1px solid #000000"></input>
</td>
<td colspan="3" align="right">
<input type="submit" name="getlatestiso" value="Latest ISO" tabindex="5" style="border: 1px solid #000000"></input>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="2px">
</td>
</tr>
</table>
<?php
}
function printFooter()
{
?>
</form>
<script>
var revision = document.getElementById('revision');
if (revision) revision.focus();
</script>
</body>
</html>
<?php
}
function locateRevisionISO($branch, $revision, $latest)
{
$revision = intval($revision);
$path = ISO_PATH . "\\" . $branch;
$d = dir($path);
$i = 0;
$filelist = array();
while (false !== ($entry = $d->read())) {
if (is_dir($path . "\\" . $entry) != "dir")
$filelist[$i++] = $entry;
}
$d->close();
if (is_array($filelist)) {
$sortFunction = $latest ? "dm_usort_cmp" : "dm_usort_cmp_desc";
usort($filelist, $sortFunction);
reset($filelist);
while (list($key, $filename) = each($filelist)) {
if (ereg('ReactOS-' . $branch . '-r([0-9]*).iso', $filename, $regs))
{
$thisRevision = intval($regs[1]);
if (($latest) && ($thisRevision < $revision))
return $regs[1];
else if ($thisRevision > $revision)
return $regs[1];
$lastRevision = $thisRevision;
}
}
}
return "";
}
function getNextRevisionISO($branch, $revision)
{
return locateRevisionISO($branch, $revision, false);
}
function getLatestRevisionISO($branch)
{
return locateRevisionISO($branch, 999999, true);
}
function main()
{
$branch = $_POST["branch"];
$revision = $_POST["revision"];
$filename = "ReactOS-" . $branch . "-r" . $revision . ".iso";
if (file_exists(ISO_PATH . $branch . "\\" . $filename))
{
$location = ISO_BASE_URL . $branch . "/" . $filename;
header("Location: $location");
return;
}
else
{
printHeader();
printMenu($_POST["revision"]);
echo "<br><b>No ISO exist for branch '" . $branch . "' and revision " . $revision . ".</b><br><br>";
printFooter();
}
}
if (!empty($_POST["getiso"]) && !empty($_POST["branch"]) && !empty($_POST["revision"]) && is_numeric($_POST["revision"]))
main();
else if (!empty($_POST["getnextiso"]) && !empty($_POST["branch"]) && !empty($_POST["revision"]) && is_numeric($_POST["revision"]))
{
printHeader();
printMenu(getNextRevisionISO($_POST["branch"], $_POST["revision"]));
printFooter();
}
else if (!empty($_POST["getlatestiso"]) && !empty($_POST["branch"]))
{
printHeader();
printMenu(getLatestRevisionISO($_POST["branch"]));
printFooter();
}
else
{
printHeader();
printMenu($_POST["revision"]);
printFooter();
}
?>

View File

@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="smtpServer" value="localhost" />
<add key="errorEmail" value="mailbox@somewhere-on-the-net" />
<add key="makeParameters" value="" />
<add key="fastDisk" value="" />
</appSettings>
</configuration>

View File

@@ -1,14 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly: AssemblyTitle("ReactOS Sin Verifier")]
[assembly: AssemblyDescription("ReactOS Sin Verifier")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("ReactOS Project")]
[assembly: AssemblyProduct("React Operating System")]
[assembly: AssemblyCopyright("Copyright 2005 ReactOS Project")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]

View File

@@ -1,20 +0,0 @@
<?xml version="1.0"?>
<project name="ReactOS.Verify" default="build">
<property name="output.dir" value="bin" />
<target name="build" description="Build component">
<mkdir dir="${output.dir}" />
<csc target="exe"
output="${output.dir}\ReactOS.Verify.exe"
optimize="true"
debug="true"
doc="${output.dir}\ReactOS.Verify.xml"
warninglevel="0">
<sources>
<include name="*.cs" />
</sources>
</csc>
</target>
</project>

View File

@@ -1,279 +0,0 @@
using System;
using System.IO;
using System.Diagnostics;
using System.Configuration;
using System.Web.Mail;
using System.Collections;
using System.Collections.Specialized;
namespace ReactOS.Verify
{
public class MainClass
{
/// <summary>
/// Run the application.
/// </summary>
/// <param name="script">Script to run.</param>
/// <param name="args">Arguments to pass to script.</param>
/// <param name="workingDirectory">Working directory.</param>
/// <param name="standardOutput">Receives standard output.</param>
/// <param name="standardError">Receives standard error.</param>
/// <returns>
/// Exit code.
/// </returns>
private static int RunScript(string script,
string args,
string workingDirectory,
StringDictionary environmentVarables,
out string standardOutput,
out string standardError)
{
ProcessStartInfo scriptProcessStartInfo = new ProcessStartInfo(script,
args);
scriptProcessStartInfo.CreateNoWindow = true;
/*
* All standard streams must be redirected.
* Otherwise DuplicateHandle() will fail.
*/
scriptProcessStartInfo.RedirectStandardInput = true;
scriptProcessStartInfo.RedirectStandardError = true;
scriptProcessStartInfo.RedirectStandardOutput = true;
scriptProcessStartInfo.UseShellExecute = false;
scriptProcessStartInfo.WorkingDirectory = workingDirectory;
if (environmentVarables != null)
{
foreach (DictionaryEntry de in environmentVarables)
scriptProcessStartInfo.EnvironmentVariables.Add(de.Key as string, de.Value as string);
}
RedirectableProcess redirectableProcess = new RedirectableProcess(scriptProcessStartInfo);
standardOutput = redirectableProcess.ProcessOutput;
standardError = redirectableProcess.ProcessError;
return redirectableProcess.ExitCode;
}
/// <summary>
/// Retrieve value of configuration from configuration file.
/// </summary>
/// <param name="name">Name of configuration option.</param>
/// <param name="defaultValue">
/// Default value to be returned if the option does not exist.
/// </param>
/// <returns>
/// Value of configuration option or null if the option does not
/// exist and no default value is provided.
/// </returns>
private static string GetConfigurationOption(string name,
string defaultValue)
{
if (ConfigurationSettings.AppSettings[name] != null)
{
string s = ConfigurationSettings.AppSettings[name].Trim();
return s.Equals(String.Empty) ? defaultValue : s;
}
else
return defaultValue;
}
/// <summary>
/// Send an email.
/// </summary>
/// <param name="subject">Subject of the email.</param>
/// <param name="body">Content of the email.</param>
private static void SendErrorMail(string subject, string body)
{
try
{
string smtpServer = GetConfigurationOption("smtpServer", "localhost");
string email = GetConfigurationOption("errorEmail", null);
if (email == null)
return;
MailMessage mm = new MailMessage();
mm.Priority = MailPriority.Normal;
mm.From = email;
mm.To = email;
mm.Subject = subject;
mm.Body += body;
mm.Body += "<br>";
mm.BodyFormat = MailFormat.Html;
SmtpMail.SmtpServer = smtpServer;
SmtpMail.Send(mm);
}
catch (Exception ex)
{
Console.Error.WriteLine(ex.Message);
}
}
/// <summary>
/// Fail with an error message.
/// </summary>
/// <param name="text">Error message.</param>
private static void Fail(string text)
{
Console.WriteLine(text);
}
/// <summary>
/// Paths to fast disk for temporary files.
/// </summary>
private static string TemporaryFastDisk
{
get
{
string temporaryFastDisk = GetConfigurationOption("temporaryFastDisk", null);
if (temporaryFastDisk == null || temporaryFastDisk.Trim().Equals(String.Empty))
return null;
return temporaryFastDisk.Trim();
}
}
/// <summary>
/// Paths to fast disk for intermediate files.
/// </summary>
private static string IntermediateFastDisk
{
get
{
string intermediateFastDisk = GetConfigurationOption("intermediateFastDisk", null);
if (intermediateFastDisk == null || intermediateFastDisk.Trim().Equals(String.Empty))
return null;
return intermediateFastDisk.Trim();
}
}
/// <summary>
/// Paths to fast disk for output files.
/// </summary>
private static string OutputFastDisk
{
get
{
string outputFastDisk = GetConfigurationOption("outputFastDisk", null);
if (outputFastDisk == null || outputFastDisk.Trim().Equals(String.Empty))
return null;
return outputFastDisk.Trim();
}
}
/// <summary>
/// Return collection of environment variables.
/// </summary>
/// <returns>Collection of environment variables or null if there is none.</returns>
private static StringDictionary GetEnvironmentVarables()
{
StringDictionary environmentVarables = new StringDictionary();
if (TemporaryFastDisk != null)
environmentVarables.Add("ROS_TEMPORARY", TemporaryFastDisk);
if (IntermediateFastDisk != null)
environmentVarables.Add("ROS_INTERMEDIATE", IntermediateFastDisk);
if (OutputFastDisk != null)
environmentVarables.Add("ROS_OUTPUT", OutputFastDisk);
return environmentVarables;
}
/// <summary>
/// Run make.
/// </summary>
/// <param name="arguments">Arguments.</param>
/// <param name="standardOutput">Receives standard output.</param>
/// <param name="standardError">Receives standard error.</param>
/// <returns>Make exit code.</returns>
private static int RunMake(string arguments,
out string standardOutput,
out string standardError)
{
string make = "mingw32-make";
string makeParameters = GetConfigurationOption("makeParameters", "");
string reactosDirectory = Path.Combine(System.Environment.CurrentDirectory,
"reactos");
return RunScript(make,
makeParameters + " " + arguments,
reactosDirectory,
GetEnvironmentVarables(),
out standardOutput,
out standardError);
}
/// <summary>
/// Verify a revision of ReactOS by building it all.
/// </summary>
private static int VerifyFull()
{
string standardOutput;
string standardError;
int exitCode = RunMake("bootcd",
out standardOutput,
out standardError);
if (exitCode != 0)
{
Fail(String.Format("make bootcd failed: (error: {0}) {1}",
standardError,
standardOutput));
return exitCode;
}
string reactosDirectory = Path.Combine(System.Environment.CurrentDirectory,
"reactos");
string isoFilename = Path.Combine(reactosDirectory,
"ReactOS.iso");
if (!File.Exists(isoFilename))
Fail("make bootcd produced no ReactOS.iso");
return exitCode;
}
/// <summary>
/// Verify a revision of ReactOS by building parts.
/// </summary>
/// <param name="components">Comma separated list of components to build.</param>
private static int VerifyPartial(string components)
{
string standardOutput;
string standardError;
string componentParameters = "\"" + components.Replace(",", "\" \"") + "\"";
int exitCode = RunMake(componentParameters,
out standardOutput,
out standardError);
if (exitCode != 0)
Fail(String.Format("make failed for targets {0}: (error: {1}) {2}",
componentParameters,
standardError,
standardOutput));
return exitCode;
}
/// <summary>
/// Verify a revision of ReactOS.
/// </summary>
/// <param name="args">Arguments from command line.</param>
private static int Verify(string[] args)
{
if (args.Length > 0)
return VerifyPartial(args[0]);
else
return VerifyFull();
}
/// <summary>
/// Program entry point.
/// </summary>
/// <param name="args">Arguments from command line.</param>
/// <remarks>
/// If exit code is 0, then the commit was processed successfully.
/// If exit code is 1, then the commit was not processed successfully.
/// </remarks>
public static void Main(string[] args)
{
try
{
System.Environment.ExitCode = Verify(args);
}
catch (Exception ex)
{
string text = String.Format("Exception: {0}", ex);
SendErrorMail("ReactOS Verify Error", text);
System.Environment.ExitCode = 1;
}
}
}
}

View File

@@ -1,145 +0,0 @@
/*
* When using the ProcessStartInfo.RedirectStandardXxx properties there is a chance of
* the parent and child process blocking due to a race condition. This class handles the
* problem.
* http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdiagnosticsprocessstartinfoclassredirectstandardoutputtopic.asp
*/
using System;
using System.IO;
using System.Threading;
using System.Diagnostics;
namespace ReactOS.Verify
{
/// <summary>
/// Process that redirects standard output and standard error streams.
/// </summary>
public class RedirectableProcess
{
/// <summary>
/// Process.
/// </summary>
private Process process;
/// <summary>
/// Redirected standard error stream.
/// </summary>
private string processError;
/// <summary>
/// Redirected standard output stream.
/// </summary>
private string processOutput;
/// <summary>
/// Exit code.
/// </summary>
private int exitCode;
/// <summary>
/// Redirected standard error stream.
/// </summary>
public string ProcessError
{
get
{
return processError;
}
}
/// <summary>
/// Redirected standard output stream.
/// </summary>
public string ProcessOutput
{
get
{
return processOutput;
}
}
/// <summary>
/// Exit code.
/// </summary>
public int ExitCode
{
get
{
return exitCode;
}
}
/// <summary>
/// Run an excutable and redirect standard error and/or standard output safely.
/// </summary>
public RedirectableProcess(ProcessStartInfo processStartInfo)
{
Run(processStartInfo, null);
}
/// <summary>
/// Run an excutable and redirect standard error and/or standard output safely.
/// </summary>
public RedirectableProcess(ProcessStartInfo processStartInfo, string input)
{
Run(processStartInfo, input);
}
private void Run(ProcessStartInfo processStartInfo, string input)
{
process = new Process();
process.StartInfo = processStartInfo;
process.Start();
if (processStartInfo.RedirectStandardInput && input != null)
{
process.StandardInput.AutoFlush = true;
process.StandardInput.WriteLine(input);
}
Thread readStandardError = null;
if (processStartInfo.RedirectStandardError)
{
readStandardError = new Thread(new ThreadStart(ReadStandardError));
readStandardError.Start();
}
Thread readStandardOutput = null;
if (processStartInfo.RedirectStandardOutput)
{
readStandardOutput = new Thread(new ThreadStart(ReadStandardOutput));
readStandardOutput.Start();
}
if (processStartInfo.RedirectStandardError)
{
readStandardError.Join();
}
if (processStartInfo.RedirectStandardOutput)
{
readStandardOutput.Join();
}
process.WaitForExit();
exitCode = process.ExitCode;
process = null;
}
/// <summary>
/// Read standard error thread entry-point.
/// </summary>
private void ReadStandardError()
{
if (process != null)
{
processError = process.StandardError.ReadToEnd();
}
}
/// <summary>
/// Read standard output thread entry-point.
/// </summary>
private void ReadStandardOutput()
{
if (process != null)
{
processOutput = process.StandardOutput.ReadToEnd();
}
}
}
}

View File

@@ -1,27 +1 @@
shit
fuck
pussy
ass
ass-
-ass
dumbass
jackass
fatass
asshole
smartass
cunt
fucker
bitch
dick
penile
stfu
omfg
lmao
ass.
-ass.
semprini
goat.cx
ekush
akshor
poop
guten morgen
semprini

View File

@@ -1,5 +1,7 @@
<?xml version="1.0" ?>
<HresultList>
<Hresult text="S_OK" value="00000000" />
<Hresult text="S_FALSE" value="00000001" />
<Hresult text="STG_S_CONVERTED" value="00030200" />
<Hresult text="STG_S_BLOCK" value="00030201" />
<Hresult text="STG_S_RETRYNOW" value="00030202" />

View File

@@ -2,8 +2,69 @@
<NtstatusList>
<Ntstatus text="STATUS_SUCCESS" value="00000000"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0" value="00000000"></Ntstatus>
<Ntstatus text="STATUS_WAIT_1" value="00000001"></Ntstatus>
<Ntstatus text="STATUS_WAIT_63" value="0000003F"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 1" value="00000001"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 2" value="00000002"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 3" value="00000003"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 4" value="00000004"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 5" value="00000005"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 6" value="00000006"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 7" value="00000007"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 8" value="00000008"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 9" value="00000009"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 10" value="0000000A"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 11" value="0000000B"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 12" value="0000000C"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 13" value="0000000D"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 14" value="0000000E"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 15" value="0000000F"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 16" value="00000010"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 17" value="00000011"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 18" value="00000012"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 19" value="00000013"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 20" value="00000014"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 21" value="00000015"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 22" value="00000016"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 23" value="00000017"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 24" value="00000018"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 25" value="00000019"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 26" value="0000001A"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 27" value="0000001B"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 28" value="0000001C"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 29" value="0000001D"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 30" value="0000001E"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 31" value="0000001F"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 32" value="00000020"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 33" value="00000021"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 34" value="00000022"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 35" value="00000023"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 36" value="00000024"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 37" value="00000025"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 38" value="00000026"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 39" value="00000027"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 40" value="00000028"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 41" value="00000029"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 42" value="0000002A"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 43" value="0000002B"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 44" value="0000002C"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 45" value="0000002D"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 46" value="0000002E"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 47" value="0000002F"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 48" value="00000030"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 49" value="00000031"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 50" value="00000032"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 51" value="00000033"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 52" value="00000034"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 53" value="00000035"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 54" value="00000036"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 55" value="00000037"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 56" value="00000038"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 57" value="00000039"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 58" value="0000003A"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 59" value="0000003B"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 60" value="0000003C"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 61" value="0000003D"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 62" value="0000003E"></Ntstatus>
<Ntstatus text="STATUS_WAIT_0 + 63" value="0000003F"></Ntstatus>
<Ntstatus text="STATUS_ABANDONED" value="00000080"></Ntstatus>
<Ntstatus text="STATUS_ABANDONED_WAIT_0" value="00000080"></Ntstatus>
<Ntstatus text="STATUS_ABANDONED_WAIT_63" value="000000BF"></Ntstatus>

View File

@@ -8,10 +8,10 @@
<add key="IRCBotPassword" value="MyPassword" />
<add key="ChmPath" value="C:\IRC\TechBot\CHM" />
<add key="MainChm" value="kmarch.chm" />
<add key="NtstatusXml" value="C:\IRC\TechBot\ntstatus.xml" />
<add key="WinerrorXml" value="C:\IRC\TechBot\winerror.xml" />
<add key="HresultXml" value="C:\IRC\TechBot\hresult.xml" />
<add key="WmXml" value="C:\IRC\TechBot\wm.xml" />
<add key="NtstatusXml" value="ntstatus.xml" />
<add key="WinerrorXml" value="winerror.xml" />
<add key="HresultXml" value="hresult.xml" />
<add key="WmXml" value="wm.xml" />
<add key="SvnCommand" value="svn co svn://svn.reactos.org/trunk/reactos" />
<add key="BugUrl" value="http://www.reactos.org/bugzilla/show_bug.cgi?id={0}" />
<add key="WineBugUrl" value="http://bugs.winehq.org/show_bug.cgi?id={0}" />

View File

@@ -1,5 +1,6 @@
using System;
using System.Xml;
using System.Collections;
namespace TechBot.Library
{
@@ -28,58 +29,170 @@ namespace TechBot.Library
new string[] { "error" });
}
private static int GetSeverity(long error)
{
return (int)((error >> 30) & 0x3);
}
private static bool IsCustomer(long error)
{
return (error & 0x20000000) != 0;
}
private static bool IsReserved(long error)
{
return (error & 0x10000000) != 0;
}
private static int GetFacility(long error)
{
return (int)((error >> 16) & 0xFFF);
}
private static short GetCode(long error)
{
return (short)((error >> 0) & 0xFFFF);
}
private static string FormatSeverity(long error)
{
int severity = GetSeverity(error);
switch (severity)
{
case 0: return "SUCCESS";
case 1: return "INFORMATIONAL";
case 2: return "WARNING";
case 3: return "ERROR";
}
return null;
}
private static string FormatFacility(long error)
{
int facility = GetFacility(error);
return facility.ToString();
}
private static string FormatCode(long error)
{
int code = GetCode(error);
return code.ToString();
}
public void Handle(MessageContext context,
string commandName,
string parameters)
{
string errorText = parameters;
if (errorText.Equals(String.Empty))
string originalErrorText = parameters.Trim();
if (originalErrorText.Equals(String.Empty))
{
serviceOutput.WriteLine(context,
"Please provide an Error Code.");
return;
}
string errorText = originalErrorText;
retry:
NumberParser np = new NumberParser();
long error = np.Parse(errorText);
if (np.Error)
{
serviceOutput.WriteLine(context,
String.Format("{0} is not a valid Error Code.",
errorText));
originalErrorText));
return;
}
ArrayList descriptions = new ArrayList();
string description = null;
if (winerror.GetWinerrorDescription(error) != null)
// Error is out of bounds
if ((ulong)error > uint.MaxValue)
{
description = winerror.GetWinerrorDescription(error);
serviceOutput.WriteLine(context,
String.Format("{0} is {1}.",
error,
description));
// Do nothing
}
if (ntStatus.GetNtstatusDescription(error) != null)
// Error is outside of the range [0, 65535]: it cannot be a plain Win32 error code
else if ((ulong)error > ushort.MaxValue)
{
description = ntStatus.GetNtstatusDescription(error);
serviceOutput.WriteLine(context,
String.Format("{0} is {1}.",
errorText,
description));
// Customer bit is set: custom error code
if (IsCustomer(error))
{
string description = String.Format("[custom, severity {0}, facility {1}, code {2}]",
FormatSeverity(error),
FormatFacility(error),
FormatCode(error));
descriptions.Add(description);
}
// Reserved bit is set: HRESULT_FROM_NT(ntstatus)
else if (IsReserved(error))
{
int status = (int)(error & 0xCFFFFFFF);
string description = ntStatus.GetNtstatusDescription(status);
if (description == null)
description = status.ToString("X");
description = String.Format("HRESULT_FROM_NT({0})", description);
descriptions.Add(description);
}
// Win32 facility: HRESULT_FROM_WIN32(winerror)
else if (GetFacility(error) == 7)
{
// Must be an error code
if (GetSeverity(error) == 2)
{
short err = GetCode(error);
string description = winerror.GetWinerrorDescription(err);
if (description == null)
description = err.ToString("D");
description = String.Format("HRESULT_FROM_WIN32({0})", description);
descriptions.Add(description);
}
}
}
if (hresult.GetHresultDescription(error) != null)
{
description = hresult.GetHresultDescription(error);
serviceOutput.WriteLine(context,
String.Format("{0} is {1}.",
errorText,
description));
}
if(description == null)
string winerrorDescription = winerror.GetWinerrorDescription(error);
string ntstatusDescription = ntStatus.GetNtstatusDescription(error);
string hresultDescription = hresult.GetHresultDescription(error);
if (winerrorDescription != null)
descriptions.Add(winerrorDescription);
if (ntstatusDescription != null)
descriptions.Add(ntstatusDescription);
if (hresultDescription != null)
descriptions.Add(hresultDescription);
if (descriptions.Count == 0)
{
// Last chance heuristics: attempt to parse a 8-digit decimal as hexadecimal
if (errorText.Length == 8)
{
errorText = "0x" + errorText;
goto retry;
}
serviceOutput.WriteLine(context,
String.Format("I don't know about Error Code {0}.",
errorText));
originalErrorText));
}
else if (descriptions.Count == 1)
{
string description = (string)descriptions[0];
serviceOutput.WriteLine(context,
String.Format("{0} is {1}.",
originalErrorText,
description));
}
else
{
serviceOutput.WriteLine(context,
String.Format("{0} could be:",
originalErrorText));
foreach(string description in descriptions)
serviceOutput.WriteLine(context, String.Format("\t{0}", description));
}
}

View File

@@ -6,14 +6,12 @@ namespace TechBot.Library
public class HresultCommand : BaseCommand, ICommand
{
private IServiceOutput serviceOutput;
private string hresultXml;
private XmlDocument hresultXmlDocument;
public HresultCommand(IServiceOutput serviceOutput,
string hresultXml)
{
this.serviceOutput = serviceOutput;
this.hresultXml = hresultXml;
hresultXmlDocument = new XmlDocument();
hresultXmlDocument.Load(hresultXml);
}

View File

@@ -9,7 +9,7 @@ namespace TechBot.Library
private const string SpecialHexCharacters = "ABCDEF";
private bool IsSpecialHexCharacter(char ch)
private static bool IsSpecialHexCharacter(char ch)
{
foreach (char specialChar in SpecialHexCharacters)
{
@@ -19,7 +19,7 @@ namespace TechBot.Library
return false;
}
private bool HasSpecialHexCharacters(string s)
private static bool HasSpecialHexCharacters(string s)
{
foreach (char ch in s)
{
@@ -35,7 +35,7 @@ namespace TechBot.Library
{
Error = false;
bool useHex = false;
if (s.StartsWith("0x"))
if (s.StartsWith("0x", StringComparison.InvariantCultureIgnoreCase))
{
s = s.Substring(2);
useHex = true;

View File

@@ -49,9 +49,9 @@ namespace TechBot.Library
{
commands.Add(new HelpCommand(serviceOutput,
commands));
commands.Add(new ApiCommand(serviceOutput,
/*commands.Add(new ApiCommand(serviceOutput,
chmPath,
mainChm));
mainChm));*/
commands.Add(new NtStatusCommand(serviceOutput,
ntstatusXml));
commands.Add(new WinerrorCommand(serviceOutput,

View File

@@ -1,2 +0,0 @@
*.ncb
*.opt

View File

@@ -1,102 +0,0 @@
ReactOS Microsoft Visual C/C++ 6.0 IDE files
This is the Microsoft Visual C/C++ 6.0 project workspace and project
files for a few of the ReactOS binaries. They are ONLY included as a
convenience, and is NOT to be considered supported, or even correct.
If you build a binary that misbehaves using these files, you _might_
be able to get in touch with someone to fix the problem
BUT DO NOT COUNT ON IT!
The only supported build system for ReactOS is the one documented at
www.reactos.com.
------------------------------------------------------------------
Please, before you start playing with this, read the whole of
this document.
Before you can use these project files, you _need_ to make a successful
build using the normal ReactOS build system. There are some vital files
that needs to be created, and currently only the normal build creates these.
Once that is done, you need to generate the kernel-mode service "table"
file by running nmake (from this point on you can use the "native"
MSVC tools) from the directory MSVC6\iface\native.
This will generate MSVC6\ntoskrnl\nt_zw_msvc.c, an MSVC compatible inline-
assembler version of the file otherwise known as reactos\ntoskrnl\nt\zw.c.
Next, go to def_converter and run nmake. This builds the tool to convert
the .def files for HAL and the kernel from the MinGW format to something
more suitable for the MSVC linker, and also generates these .def files
to their target location [1].
Now you should be set to fire up the IDE and load the project workspace.
When building HAL or the kernel for the first time using these
project files, just doing it the "normal" way _will not work_.
The linker will complain about missing library, and it will fail.
The reason for this is a circular dependency between these two binaries.
Currently you need to follow these procedures [2]:
- Select hal as your active project.
- Select Project/Settings.
- Select the Link tab.
- Select "General" from the Category drop-list.
- Temporary remove the explicit linker library
(e.g. "..\ntoskrnl\Debug\ntoskrnl.lib")
- Select "Customize" from the Category drop-list.
- Check the "Force file output" checkbox.
- Build hal.
- Uncheck "Force file output".
- Put back the removed import library.
- Now build the ntoskrnl. Do NOT try to build hal again until
you have sucessfully built the kernel, and the linker has
generated its import library!
- Now you can "Clean" hal, and build it as usual.
If everything worked as expected, you should now have both ntoskrnl.exe
and hal.dll freshly built.
LIMITATIONS/DEVIATIONS (from the MinGW build):
- Since there can only be one resource file/project, the kernel had
to choose between either its version resource, or its message table.
The messages won.
- Do NOT open the .rc files in the IDE's resource editor. Chances are
it will assume ownership over them and fill them up with at least
conditional compilation macros.
NOTES:
[1] This is needed due to differences in handling of decorated names
in .def files. While both MinGW GCC and MSVC generates decorated names
in the same way for at least plain cdecl and stdcall C functions, the
MSVC linker expects names in the .def file to be either
- an exact match of the decorated name, in case it exports the
decorated name from the linked binary, or
- just the name without any decoration, in case it exports just the
name of the symbol from the linked binary (to allow for e.g.
GetProcAddress using the undecorated name) - but keeps the decorated
names in the import library to handle and "redirect" linker requests
for those decorated symbols, and point them to the undercorated names
in the binary exporting them - so that a binary A, at link time,
importing symbols from binary B of the form "_name@0" will resolve
that symbol from the import library, but the linked binary A will
reference it as just "name".
The ROS .def files contains a mix, "half-decorated", where the leading
undescores are missing, but the trailing "@n" (for stdcall functions)
are present.
[2] Theoretically it could be possible to use a hal.lib generated by the
following procedure, removing the need for the manual steps above.
cd MSVC6\hal\Debug
lib \def:..\..\..\reactos\hal\hal\hal.def
but I have not tested it, and take no responsibility for its effectiveness.

View File

@@ -1,41 +0,0 @@
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
Project: "hal"=.\hal\hal.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "ntoskrnl"=.\ntoskrnl\ntoskrnl.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Global:
Package=<5>
{{{
}}}
Package=<3>
{{{
}}}
###############################################################################

View File

@@ -1,64 +0,0 @@
// Uses hard-coded filenames to require a minimum of input.
// You think this file should be licensed? OK then,
// Copyright (C) 2004, Mike Nordell. Use as you whish.
#include <fstream>
#include <string>
#include <algorithm>
const char szSrc1[] = "..\\..\\reactos\\ntoskrnl\\ntoskrnl.def";
const char szDst1[] = "..\\ntoskrnl\\ntoskrnl.def";
const char szSrc2[] = "..\\..\\reactos\\hal\\hal\\hal.def";
const char szDst2[] = "..\\hal\\hal.def";
enum File
{
Kernel,
HAL
};
std::string do_kernel_replacements(std::string& s)
{
std::string s2 = s.c_str(); // to fixup size after replacements
if (s2 == "ExAllocateFromPagedLookasideList") {
s2 += "=ExiAllocateFromPagedLookasideList";
} else
if (s2 == "ExFreeToPagedLookasideList") {
s2 += "=ExiFreeToPagedLookasideList";
} else
if (s2 == "MmLockPagableImageSection") {
s2 += "=MmLockPagableDataSection";
}
return s2;
}
void convert_def(const char* szSrc, const char* szDst, File file)
{
using namespace std;
ifstream in(szSrc);
ofstream out(szDst);
string s;
while (getline(in, s).good()) {
if (!s.size()) {
continue;
}
if (s[0] != ';') { // only replace non-comment lines
if (s[0] == '@') {
s.erase(0, 1);
}
replace(s.begin(), s.end(), '@', '\0');
if (file == Kernel) {
s = do_kernel_replacements(s);
}
}
out << s << endl;
}
}
int main()
{
convert_def(szSrc1, szDst1, Kernel);
convert_def(szSrc2, szDst2, HAL);
return 0;
}

View File

@@ -1,19 +0,0 @@
# $Id: makefile,v 1.1 2004/02/06 08:21:54 fireball Exp $
#
# ReactOS Operating System - .def converter for HAL and the kernel
#
DEF_HAL = ..\hal\hal.def
DEF_KRNL = ..\ntoskrnl\ntoskrnl.def
CPPFLAGS = /GX
all: def_converter.exe $(DEF_HAL) $(DEF_KRNL)
$(DEF_HAL) : ..\..\reactos\hal\hal\hal.def
def_converter.exe
$(DEF_KRNL) : ..\..\reactos\ntoskrnl\ntoskrnl.def
def_converter.exe
def_converter.exe : def_converter.cpp

View File

@@ -1,3 +0,0 @@
Debug
Release
hal.def

View File

@@ -1,243 +0,0 @@
# Microsoft Developer Studio Project File - Name="hal" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
CFG=hal - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "hal.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "hal.mak" CFG="hal - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "hal - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE "hal - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
MTL=midl.exe
RSC=rc.exe
!IF "$(CFG)" == "hal - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "HAL_EXPORTS" /YX /FD /c
# ADD CPP /nologo /MT /W3 /Ot /Og /Os /Ob1 /I "..\..\reactos\include" /I "..\..\reactos\hal\halx86\include" /I "..\..\reactos\ntoskrnl\include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "i386" /D "__NTHAL__" /FD /c
# SUBTRACT CPP /YX
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x41d /d "NDEBUG"
# ADD RSC /l 0x417 /i "..\..\reactos\include" /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 /nologo /dll /machine:I386
# ADD LINK32 ..\ntoskrnl\Release\ntoskrnl.lib /nologo /dll /machine:I386 /fixed:no
# SUBTRACT LINK32 /pdb:none /force
!ELSEIF "$(CFG)" == "hal - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "HAL_EXPORTS" /YX /FD /GZ /c
# ADD CPP /nologo /MTd /W3 /Z7 /Od /I "..\..\reactos\include" /I "..\..\reactos\hal\halx86\include" /I "..\..\reactos\ntoskrnl\include" /D "_WINDOWS" /D "__NTHAL__" /D "_DEBUG" /D "WIN32" /D "_MBCS" /D "i386" /FD /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x41d /d "_DEBUG"
# ADD RSC /l 0x417 /i "..\..\reactos\include" /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 /nologo /dll /debug /machine:I386 /pdbtype:sept
# ADD LINK32 ..\ntoskrnl\Debug\ntoskrnl.lib /nologo /dll /incremental:no /debug /machine:I386 /pdbtype:sept /fixed:no
# SUBTRACT LINK32 /pdb:none
!ENDIF
# Begin Target
# Name "hal - Win32 Release"
# Name "hal - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\adapter.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\beep.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\bus.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\display.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\dma.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\drive.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\enum.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\fmutex.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\fmutex_tmn.c
# PROP Exclude_From_Build 1
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\halinit.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\halx86mp.rc
# PROP Exclude_From_Build 1
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\halx86up.rc
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\irql.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\isa.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\kdbg.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\mca.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\misc.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\mp.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\mpsirql.c
# PROP Exclude_From_Build 1
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\pci.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\portio.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\pwroff.c
# PROP Exclude_From_Build 1
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\reboot.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\spinlock.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\spinlock_tmn.c
# PROP Exclude_From_Build 1
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\sysbus.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\sysinfo.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\time.c
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\timer.c
# End Source File
# End Group
# Begin Group "include"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\include\bus.h
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\include\hal.h
# End Source File
# Begin Source File
SOURCE=..\..\reactos\hal\halx86\include\mps.h
# End Source File
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# End Group
# Begin Source File
SOURCE=.\hal.def
# End Source File
# End Target
# End Project

View File

@@ -1,392 +0,0 @@
/* $Id: genntdll.c,v 1.1 2004/02/06 08:21:56 fireball Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS version of ntdll
* FILE: iface/native/genntdll.c
* PURPOSE: Generates the system call stubs in ntdll
* CHANGE HISTORY: Added a '@xx' to deal with stdcall [ Ariadne ]
* 19990616 (ea)
* Four arguments now required; 4th is the file
* for ntoskrnl ZwXXX functions (which are merely calls
* to twin NtXXX calls, via int 0x2e (x86).
* 19990617 (ea)
* Fixed a bug in function numbers in kernel ZwXXX stubs.
*
*/
/* INCLUDE ******************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define PARAMETERIZED_LIBS
/* #define VERBOSE */
#define INPUT_BUFFER_SIZE 255
/* FUNCTIONS ****************************************************************/
void write_syscall_stub(FILE* out, FILE* out3, char* name, char* name2,
char* nr_args, unsigned int sys_call_idx)
{
int i;
int nArgBytes = atoi(nr_args);
#ifdef PARAMETERIZED_LIBS
fprintf(out,"__asm__(\"\\n\\t.global _%s@%s\\n\\t\"\n",name,nr_args);
fprintf(out,"\".global _%s@%s\\n\\t\"\n",name2,nr_args);
fprintf(out,"\"_%s@%s:\\n\\t\"\n",name,nr_args);
fprintf(out,"\"_%s@%s:\\n\\t\"\n",name2,nr_args);
#else
fprintf(out,"__asm__(\"\\n\\t.global _%s\\n\\t\"\n",name);
fprintf(out,"\".global _%s\\n\\t\"\n",name2);
fprintf(out,"\"_%s:\\n\\t\"\n",name);
fprintf(out,"\"_%s:\\n\\t\"\n",name2);
#endif
fprintf(out,"\t\"pushl\t%%ebp\\n\\t\"\n");
fprintf(out,"\t\"movl\t%%esp, %%ebp\\n\\t\"\n");
fprintf(out,"\t\"mov\t$%d,%%eax\\n\\t\"\n",sys_call_idx);
fprintf(out,"\t\"lea\t8(%%ebp),%%edx\\n\\t\"\n");
fprintf(out,"\t\"int\t$0x2E\\n\\t\"\n");
fprintf(out,"\t\"popl\t%%ebp\\n\\t\"\n");
fprintf(out,"\t\"ret\t$%s\\n\\t\");\n\n",nr_args);
/*
* Now write the NTOSKRNL stub for the
* current system call. ZwXXX does NOT
* alias the corresponding NtXXX call.
*/
#if 0
fprintf(out3,"__asm__(\n");
fprintf(out3,"\".global _%s@%s\\n\\t\"\n",name2,nr_args);
fprintf(out3,"\"_%s@%s:\\n\\t\"\n",name2,nr_args);
fprintf(out3,"\t\"pushl\t%%ebp\\n\\t\"\n");
fprintf(out3,"\t\"movl\t%%esp, %%ebp\\n\\t\"\n");
fprintf(out3,"\t\"mov\t$%d,%%eax\\n\\t\"\n",sys_call_idx);
fprintf(out3,"\t\"lea\t8(%%ebp),%%edx\\n\\t\"\n");
fprintf(out3,"\t\"int\t$0x2E\\n\\t\"\n");
fprintf(out3,"\t\"popl\t%%ebp\\n\\t\"\n");
fprintf(out3,"\t\"ret\t$%s\\n\\t\");\n\n",nr_args);
#else
fprintf(out3,"__declspec(naked) __stdcall\n");
fprintf(out3,"%s(", name2); // make it emit callconv, reval and full signature too
for (i=0; i*4 < nArgBytes; ++i) {
fprintf(out3,"int dummy%d", i);
if (((i+1)*4) < nArgBytes) fprintf(out3,",");
}
fprintf(out3,")\n{\n");
fprintf(out3,"\t__asm {\n");
fprintf(out3,"\t\tpush\tebp\n");
fprintf(out3,"\t\tmov\tebp, esp\n");
fprintf(out3,"\t\tmov\teax,%d\n",sys_call_idx);
fprintf(out3,"\t\tlea\tedx, 8[ebp]\n");
fprintf(out3,"\t\tint\t0x2E\n");
fprintf(out3,"\t\tpop\tebp\n");
fprintf(out3,"\t\tret\t%s\n",nr_args);
fprintf(out3,"\t}\n");
fprintf(out3,"}\n\n");
#endif
}
int makeSystemServiceTable(FILE *in, FILE *out)
{
char line [INPUT_BUFFER_SIZE];
char *s;
char *name;
char *name2;
int sys_call_idx;
char *nr_args;
char *stmp;
/*
* Main SSDT Header
*/
fprintf(out,"// Machine generated, don't edit\n");
fprintf(out,"\n\n");
/*
* First we build the Main SSDT
*/
fprintf(out,"\n\n\n");
fprintf(out,"SSDT MainSSDT[] = {\n");
for ( /* First system call has index zero */
sys_call_idx = 0;
/* Go on until EOF or read zero bytes */
( (!feof(in))
&& (fgets(line, sizeof line, in) != NULL)
);
/* Next system call index */
sys_call_idx++
)
{
if ((s = (char *) strchr(line,'\r')) != NULL)
{
*s = '\0';
}
/*
* Skip comments (#) and empty lines.
*/
s = & line[0];
if ((*s) != '#' && (*s) != '\0')
{
/* Extract the NtXXX name */
name = (char *)strtok(s," \t");
/* Extract the ZwXXX name */
name2 = (char *)strtok(NULL," \t");
//value = strtok(NULL," \t");
/* Extract the stack size */
nr_args = (char *)strtok(NULL," \t");
/*
* Remove, if present, the trailing LF.
*/
if ((stmp = strchr(nr_args, '\n')) != NULL)
{
*stmp = '\0';
}
#ifdef VERBOSE
printf("%3d \"%s\"\n",sys_call_idx,name);
#endif
if (sys_call_idx > 0)
{
fprintf(out,",\n");
}
/*
* Now write the current system call's name
* in the service table.
*/
fprintf(out,"\t\t{ (ULONG)%s }",name);
}
}
/* Close the service table (C syntax) */
fprintf(out,"\n};\n");
/*
* Now we build the Main SSPT
*/
rewind(in);
fprintf(out,"\n\n\n");
fprintf(out,"SSPT MainSSPT[] = {\n");
for ( /* First system call has index zero */
sys_call_idx = 0;
/* Go on until EOF or read zero bytes */
( (!feof(in))
&& (fgets(line, sizeof line, in) != NULL)
);
/* Next system call index */
sys_call_idx++
)
{
if ((s = (char *) strchr(line,'\r')) != NULL)
{
*s = '\0';
}
/*
* Skip comments (#) and empty lines.
*/
s = & line[0];
if ((*s) != '#' && (*s) != '\0')
{
/* Extract the NtXXX name */
name = (char *)strtok(s," \t");
/* Extract the ZwXXX name */
name2 = (char *)strtok(NULL," \t");
//value = strtok(NULL," \t");
/* Extract the stack size */
nr_args = (char *)strtok(NULL," \t");
/*
* Remove, if present, the trailing LF.
*/
if ((stmp = strchr(nr_args, '\n')) != NULL)
{
*stmp = '\0';
}
#ifdef VERBOSE
printf("%3d \"%s\"\n",sys_call_idx,name);
#endif
if (sys_call_idx > 0)
{
fprintf(out,",\n");
}
/*
* Now write the current system call's ID
* in the service table along with its Parameters Size.
*/
fprintf(out,"\t\t{ %s }",nr_args);
}
}
/*
* Close the service table (C syntax)
*/
fprintf(out,"\n};\n");
/*
* We write some useful defines
*/
fprintf(out, "\n\n#define MIN_SYSCALL_NUMBER 0\n");
fprintf(out, "#define MAX_SYSCALL_NUMBER %d\n", sys_call_idx-1);
fprintf(out, "#define NUMBER_OF_SYSCALLS %d\n", sys_call_idx);
return(0);
}
int
process(
FILE * in,
FILE * out,
FILE * out2,
FILE * out3
)
{
char line [INPUT_BUFFER_SIZE];
char * s;
char * name; /* NtXXX name */
char * name2; /* ZwXXX name */
int sys_call_idx; /* NtXXX index number in the service table */
char * nr_args; /* stack_size / machine_word_size */
char * stmp;
/*
* NTDLL stubs file header
*/
fprintf(out,"// Machine generated, don't edit\n");
fprintf(out,"\n\n");
/*
* NTOSKRNL Zw functions stubs header
*/
fprintf(out3,"// Machine generated by genntdll, don't edit\n");
fprintf(out3,"\n\n");
/*
* Scan the database. DB is a text file; each line
* is a record, which contains data for one system
* function. Each record has three columns:
*
* NT_NAME (e.g. NtCreateProcess)
* ZW_NAME (e.g. ZwCreateProcess)
* STACK_SIZE (in machine words: for x[3456]86
* processors a machine word is 4 bytes)
*/
for ( /* First system call has index zero */
sys_call_idx = 0;
/* Go on until EOF or read zero bytes */
( (!feof(in))
&& (fgets(line, sizeof line, in) != NULL)
);
/* Next system call index */
sys_call_idx++
)
{
/*
* Remove, if present, the trailing CR.
* (os specific?)
*/
if ((s = (char *) strchr(line,'\r')) != NULL)
{
*s = '\0';
}
/*
* Skip comments (#) and empty lines.
*/
s = & line[0];
if ((*s) != '#' && (*s) != '\0')
{
/* Extract the NtXXX name */
name = (char *)strtok(s," \t");
/* Extract the ZwXXX name */
name2 = (char *)strtok(NULL," \t");
//value = strtok(NULL," \t");
/* Extract the stack size */
nr_args = (char *)strtok(NULL," \t");
/*
* Remove, if present, the trailing LF.
*/
if ((stmp = strchr(nr_args, '\n')) != NULL)
{
*stmp = '\0';
}
#ifdef VERBOSE
printf("%3d \"%s\"\n",sys_call_idx,name);
#endif
/*
* Write the NTDLL stub for the current
* system call: NtXXX and ZwXXX symbols
* are aliases.
*/
write_syscall_stub(out, out3, name, name2,
nr_args, sys_call_idx);
}
}
return(0);
}
void usage(char * argv0)
{
printf("Usage: %s sysfuncs.lst napi.c napi.h zw.c\n"
" sysfuncs.lst system functions database\n"
" napi.c NTDLL stubs\n"
" napi.h NTOSKRNL service table\n"
" zw.c NTOSKRNL Zw stubs\n",
argv0
);
}
int main(int argc, char* argv[])
{
FILE * in; /* System calls database */
FILE * out1; /* NTDLL stubs */
FILE * out2; /* SERVICE_TABLE */
FILE * out3; /* NTOSKRNL Zw stubs */
int ret;
if (argc != 5)
{
usage(argv[0]);
return(1);
}
in = fopen(argv[1],"rb");
if (in == NULL)
{
perror("Failed to open input file (system calls database)");
return(1);
}
out1 = fopen(argv[2],"wb");
if (out1 == NULL)
{
perror("Failed to open output file (NTDLL stubs)");
return(1);
}
out2 = fopen(argv[3],"wb");
if (out2 == NULL)
{
perror("Failed to open output file (NTOSKRNL service table)");
return(1);
}
out3 = fopen(argv[4],"wb");
if (out3 == NULL)
{
perror("Failed to open output file (NTOSKRNL Zw stubs)");
return(1);
}
ret = process(in,out1,out2,out3);
rewind(in);
ret = makeSystemServiceTable(in, out2);
fclose(in);
fclose(out1);
fclose(out2);
fclose(out3);
return(ret);
}

View File

@@ -1,22 +0,0 @@
# $Id: makefile,v 1.1 2004/02/06 08:21:56 fireball Exp $
#
# ReactOS Operating System - MSVC6 Zw functions stubs to call generator
#
SYSTEM_CALLS_DB = ..\..\..\reactos\iface\native\sysfuncs.lst
KERNEL_ZW_CALLS =..\..\ntoskrnl\nt_zw_msvc.c
all: genntdll.exe $(KERNEL_ZW_CALLS)
$(KERNEL_ZW_CALLS) : $(SYSTEM_CALLS_DB)
genntdll.exe $(SYSTEM_CALLS_DB) foo1 foo2 $(KERNEL_ZW_CALLS)
-@del foo1
-@del foo2
genntdll.exe : genntdll.c
clean:
-@del *.exe
-@del *.obj
-@del $(KERNEL_ZW_CALLS)

View File

@@ -1,4 +0,0 @@
Debug
Release
nt_zw_msvc.c
ntoskrnl.def

View File

@@ -1,167 +0,0 @@
/*
* ReactOS kernel
* Copyright (C) 2000 David Welch <welch@cwcom.net>
*
* Moved to MSVC-compatible inline assembler by Mike Nordell, 2003-12-25
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id: ke_i386_bthread.c,v 1.1 2004/02/06 08:21:56 fireball Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/ke/i386/bthread.S
* PURPOSE: Trap handlers
* PROGRAMMER: David Welch (david.welch@seh.ox.ac.uk)
*/
/* INCLUDES ******************************************************************/
#include <ddk/ntddk.h>
#include <ddk/status.h>
#include <internal/i386/segment.h>
#include <internal/i386/fpu.h>
#include <internal/ps.h>
#include <ddk/defines.h>
/* Values for contextflags */
#define CONTEXT_i386 0x10000
#ifndef CONTEXT_CONTROL
#define CONTEXT_CONTROL (CONTEXT_i386 | 1)
#endif
#ifndef CONTEXT_INTEGER
#define CONTEXT_INTEGER (CONTEXT_i386 | 2)
#endif
#ifndef CONTEXT_SEGMENTS
#define CONTEXT_SEGMENTS (CONTEXT_i386 | 4)
#endif
#ifndef CONTEXT_FLOATING_POINT
#define CONTEXT_FLOATING_POINT (CONTEXT_i386 | 8)
#endif
#ifndef CONTEXT_DEBUG_REGISTERS
#define CONTEXT_DEBUG_REGISTERS (CONTEXT_i386 | 0x10)
#endif
#ifndef CONTEXT_FULL
#define CONTEXT_FULL (CONTEXT_CONTROL | CONTEXT_INTEGER | CONTEXT_SEGMENTS)
#endif
/* FUNCTIONS *****************************************************************/
void KeReturnFromSystemCallWithHook();
VOID PiBeforeBeginThread(CONTEXT c);
/*
*
*/
__declspec(naked)
VOID PsBeginThread(PKSTART_ROUTINE StartRoutine, PVOID StartContext)
{
/*
* This isn't really a function, we are called as the return address
* of the context switch function
*/
/*
* Do the necessary prolog after a context switch
*/
__asm
{
call PiBeforeBeginThread
/*
* Call the actual start of the thread
*/
// We must NOT use the arguments by name. VC then uses EBP-relative
// addressing, and with an EBP of 0 you can imagine what happens.
mov ebx, 4[esp] // StartRoutine
mov eax, 8[esp] // StartContext
push eax
call ebx /* Call the start routine */
add esp, 4
/*
* Terminate the thread
*/
push eax
call PsTerminateSystemThread
add esp, 4
}
/* If that fails then bug check */
KeBugCheck(0);
/* And if that fails then loop */
for (;;)
; // forever
}
__declspec(naked)
VOID PsBeginThreadWithContextInternal(VOID)
{
/*
* This isn't really a function, we are called as the return
* address of a context switch
*/
/*
* Do the necessary prolog before the context switch
*/
__asm
{
call PiBeforeBeginThread
/*
* Load the context flags.
*/
pop ebx
/*
* Load the debugging registers
*/
test ebx, (CONTEXT_DEBUG_REGISTERS & ~CONTEXT_i386)
jz L1
pop eax __asm mov dr0, eax
pop eax __asm mov dr1, eax
pop eax __asm mov dr2, eax
pop eax __asm mov dr3, eax
pop eax __asm mov dr6, eax
pop eax __asm mov dr7, eax
jmp L3
L1:
add esp, 24
L3:
/*
* Load the floating point registers
*/
mov eax, HardwareMathSupport
test eax,eax
jz L2
test ebx, (CONTEXT_FLOATING_POINT & ~CONTEXT_i386)
jz L2
frstor [esp]
L2:
add esp, 112
/* Load the rest of the thread's user mode context. */
mov eax, 0
jmp KeReturnFromSystemCallWithHook
}
}

View File

@@ -1,114 +0,0 @@
/*
* ReactOS kernel
* Copyright (C) 2000 David Welch <welch@cwcom.net>
*
* Moved to MSVC-compatible inline assembler by Mike Nordell, 2003-12-26
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
* FILE: ntoskrnl/ke/i386/vm86_sup.S
* PURPOSE: V86 mode support
* PROGRAMMER: David Welch (welch@cwcom.net)
* UPDATE HISTORY:
* Created 09/10/00
*/
/* INCLUDES ******************************************************************/
#pragma hdrstop
#include <ddk/ntddk.h>
#include <ddk/status.h>
#include <internal/i386/segment.h>
#include <internal/i386/fpu.h>
#include <internal/ps.h>
#include <ddk/defines.h>
#include <internal/v86m.h>
#include <ntos/tss.h>
#include <internal/trap.h>
#include <internal/ps.h>
#include <roscfg.h>
#include <internal/ntoskrnl.h>
#include <internal/i386/segment.h>
// no arg-list, but asm doesn't care anyway
void KiInterruptDispatch();
#define DEFINE_INT_HANDLER(N) \
__declspec(naked) \
void irq_handler_##N() \
{ \
__asm pushad \
__asm push ds \
__asm push es \
__asm push fs \
__asm mov eax, 0xceafbeef \
__asm push eax \
__asm mov ax, KERNEL_DS \
__asm mov ds, ax \
__asm mov es, ax \
__asm mov ax, PCR_SELECTOR \
__asm mov fs, ax \
__asm push esp \
__asm push N \
__asm call KiInterruptDispatch \
__asm pop eax \
__asm pop eax \
__asm pop eax \
__asm pop fs \
__asm pop es \
__asm pop ds \
__asm popad \
__asm iretd
// NOTE: The inline assembler can't deal with having the final brace,
// ending the function, on the same line as an __asm, why there is
// none here and it MUST be added when using the macro!
DEFINE_INT_HANDLER(0)
}
DEFINE_INT_HANDLER(1)
}
DEFINE_INT_HANDLER(2)
}
DEFINE_INT_HANDLER(3)
}
DEFINE_INT_HANDLER(4)
}
DEFINE_INT_HANDLER(5)
}
DEFINE_INT_HANDLER(6)
}
DEFINE_INT_HANDLER(7)
}
DEFINE_INT_HANDLER(8)
}
DEFINE_INT_HANDLER(9)
}
DEFINE_INT_HANDLER(10)
}
DEFINE_INT_HANDLER(11)
}
DEFINE_INT_HANDLER(12)
}
DEFINE_INT_HANDLER(13)
}
DEFINE_INT_HANDLER(14)
}
DEFINE_INT_HANDLER(15)
}

View File

@@ -1,655 +0,0 @@
/*
* ReactOS kernel
* Copyright (C) 2003 Mike Nordell
* Based on multiboot.S (no copyright note present), but so heavily
* modified that it bears close to no resemblance to the original work.
*
* MSVC compatible combination of plain C and inline assembler to:
* 1 Relocated all the sections in the kernel - something I feel the
* bootloader should have done, but multiboot being just a "raw image"
* loader, it unfortunately had to be done here - in-place.
* 2 Set up page directories and stuff.
* 3 Load IDT, GDT and turn on paging, making us execute at the intended
* target address (as if the image was PE-loaded and parsed into that addr.)
* 4 Call _main, and let the rest of the startup run...
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
//
// TODO: Fix the MP parts
//
/* INCLUDES ******************************************************************/
#pragma hdrstop
#include <ddk/ntddk.h>
#include <ddk/status.h>
#include <internal/i386/segment.h>
#include <internal/i386/fpu.h>
#include <internal/ps.h>
#include <ddk/defines.h>
#include <pe.h>
#include <roscfg.h>
#include <internal/ntoskrnl.h>
#include <internal/i386/segment.h>
#include <internal/ps.h>
#include <internal/ldr.h>
// some notes:
// The MSVC linker (by defult) emits no special .bss section, but uses the data
// section with a rawsize smaller than virtualsize. The "slack" is BSS.
//////////////////////////////////////////////////////////////////
// Some macros we need
// some stuff straight from freeloaders multiboot.h
#define MULTIBOOT_HEADER_MAGIC (0x1BADB002)
#define MULTIBOOT_HEADER_FLAGS (0x00010003)
#define TARGET_LOAD_ADDR 0x00200000
#define BASE_TO_PHYS_DIST (KERNEL_BASE - TARGET_LOAD_ADDR)
#define V2P(x) (x - BASE_TO_PHYS_DIST)
#ifdef MP
#define AP_MAGIC (0x12481020)
#endif /* MP */
void initialize_page_directory(void);
void* relocate_pointer_log_to_phys(const void* p)
{
// DON'T CALL this function until relocation of .data and/or .rdata,
// is completed - but still be sure that we have not yet enabled paging!
return (void*)((DWORD)p - BASE_TO_PHYS_DIST);
}
#ifdef _DEBUG
// Macro to emit one character to Bochs debug-port (0x9e).
// We need to do it this way, since at this point of the startup, obviously
// we have neither HAL nor DbgPrint support.
#define BOCHS_OUT_CHAR(c1) __asm push eax __asm push edx __asm mov dx, 0xe9 __asm mov al, c1 __asm out dx, al __asm pop edx __asm pop eax
void boch_out_hex_digit(unsigned char ch1)
{
if (ch1 <= 9) { ch1 += '0'; } else { ch1 += 'a' - 10; }
BOCHS_OUT_CHAR(ch1)
}
void bochs_dump_hex(DWORD p)
{
unsigned char ch3 = (unsigned char)((p >> 28) & 0x0f);
unsigned char cl3 = (unsigned char)((p >> 24) & 0x0f);
unsigned char ch2 = (unsigned char)((p >> 20) & 0x0f);
unsigned char cl2 = (unsigned char)((p >> 16) & 0x0f);
unsigned char ch1 = (unsigned char)((p >> 12) & 0x0f);
unsigned char cl1 = (unsigned char)((p >> 8) & 0x0f);
unsigned char ch0 = (unsigned char)((p >> 4) & 0x0f);
unsigned char cl0 = (unsigned char)((p >> 0) & 0x0f);
BOCHS_OUT_CHAR('0') BOCHS_OUT_CHAR('x')
boch_out_hex_digit(ch3);
boch_out_hex_digit(cl3);
boch_out_hex_digit(ch2);
boch_out_hex_digit(cl2);
boch_out_hex_digit(ch1);
boch_out_hex_digit(cl1);
boch_out_hex_digit(ch0);
boch_out_hex_digit(cl0);
BOCHS_OUT_CHAR('\n')
}
static void bochs_out_string(const char* s /* logical address! */)
{
s = relocate_pointer_log_to_phys(s);
__asm
{
pushad
mov dx, 0xe9
mov ebx, s
L1:
cmp byte ptr[ebx], 0
je end
mov al, [ebx]
out dx, al
inc ebx
jmp L1
end:
popad
}
}
#else
#define BOCHS_OUT_CHAR(c1)
#define bochs_dump_hex(VAL)
#define bochs_out_string(STR)
#endif // _DEBUG
//////////////////////////////////////////////////////////////////
typedef char kernel_page_t[4096];
// Use 4096 (pagesize) more bytes that actually needed for each *_holder,
// to be able to make sure that the other stuff is page aligned.
// No other way to do this portably... :-(
//
// TODO: Consider allocating just one large block of BSS memory here, align
// just the first pointer, and then get the other ones just as offsets from
// this (now-aligned) pointer. That way we could get away with wasting just
// one page of memory, instead of 4 (like 16KB would matter... but still)
static kernel_page_t* startup_pagedirectory_holder[1024 * 2];
static kernel_page_t* lowmem_pagetable_holder[1024 * 2];
static kernel_page_t* kernel_pagetable_holder[32*1024 + 1];
static __int32 kpcr_pagetable_holder[4096/4 * 2];
#ifdef MP
char apic_pagetable[4096];
#endif /* MP */
__int32 unmap_me[4096/4];
__int32 unmap_me2[4096/4];
__int32 unmap_me3[4096/4];
__int32 init_stack[3*4096/4];
int init_stack_top;
__int32 trap_stack[3*4096/4];
int trap_stack_top;
void _main();
// lie a bit about types - since C is basically typeless anyway, it
// doesn't really matter what type we say it is here...
extern int KiGdtDescriptor;
extern int KiIdtDescriptor;
/*
* This is called by the realmode loader, with protected mode
* enabled, paging disabled and the segment registers pointing
* a 4Gb, 32-bit segment starting at zero.
*
* EAX = Multiboot magic or application processor magic
*
* EBX = Points to a structure in lowmem with data from the
* loader
*/
#pragma intrinsic(memset)
// We need to implement this ourself, to be able to get to it by short call's
void our_memmove(void* pDest, const void* pSrc, DWORD size)
{
char* pD = (char*)pDest;
const char* pS = (char*)pSrc;
if (pDest < pSrc)
{
while (size--)
{
*pD++ = *pS++;
}
}
else if (pSrc < pDest)
{
while (size--)
{
pD[size] = pS[size];
}
}
}
void dummy_placeholder(void)
{
// NOTE: This function MUST be placed JUST AFTER MultibootStub in memory.
// Yes, it's BEFORE it in this file, but linkorder.txt fixes this for us.
}
// This one is needed, since the boot loader hasn't relocated us
__declspec(naked)
void MultibootStub()
{
__asm
{
jmp _multiboot_entry
// This sucks, I know...
#define EMIT_DWORD(x) __asm __emit ((x) >> 0) & 0xff __asm _emit ((x) >> 8) & 0xff __asm _emit ((x) >> 16) & 0xff __asm _emit ((x) >> 24) & 0xff
ALIGN 4
EMIT_DWORD(MULTIBOOT_HEADER_MAGIC)
EMIT_DWORD(MULTIBOOT_HEADER_FLAGS)
EMIT_DWORD(-(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_HEADER_FLAGS))
EMIT_DWORD(TARGET_LOAD_ADDR + 0x0400 + 0x04)
// Now just make something up, since there is no way we can know, beforehand,
// where any BSS data is...
EMIT_DWORD((TARGET_LOAD_ADDR))
EMIT_DWORD((TARGET_LOAD_ADDR + 1*1024*1024)) /* assume ntoskrnel.exe is < 1MB! */
EMIT_DWORD((TARGET_LOAD_ADDR + 2*1024*1024)) /* just to have something, let's say BSS is 1MB too */
/* This is *REALLY* ugly! If MultibootStub is *EVER* at */
/* any other offset, this will crash like crazy! */
/* 0x0400 is the file alignment of the binary (ntoskrnl.exe) */
EMIT_DWORD((TARGET_LOAD_ADDR + 0x0400)) // entry_addr
_multiboot_entry:
cld // just for good measure
}
{
/* Save the multiboot or application processor magic */
DWORD saved_eax;
DWORD saved_ebx;
__asm mov saved_eax, eax
__asm mov saved_ebx, ebx
// bochs_out_string("MultibootStub()\n");
// OK, time to relocate the brute-loaded image in-place...
// If we don't watch it, we will overwrite ourselves here - imagine
// the fireworks! :-) That's why the function dummy_placeholder()
// MUST be placed JUST JUST AFTER this function.
{
PIMAGE_NT_HEADERS NtHeader = RtlImageNtHeader((PVOID)TARGET_LOAD_ADDR);
PIMAGE_SECTION_HEADER Section = IMAGE_FIRST_SECTION(NtHeader);
const int count = NtHeader->FileHeader.NumberOfSections;
int i;
Section += count - 1; // make it point to the last section
// NOTE: We MUST walk the sections "backwards".
for (i = count-1; i >= 0; --i, --Section)
{
DWORD dwSrc = TARGET_LOAD_ADDR + Section->PointerToRawData;
DWORD dwDst = TARGET_LOAD_ADDR + Section->VirtualAddress;
DWORD dwSiz = Section->SizeOfRawData;
const char* pEndThisFunc;
if (dwSrc == dwDst)
{
continue;
}
//bochs_out_string("MultibootStub: relocating section\n");
if (Section->Characteristics & IMAGE_SCN_MEM_EXECUTE)
{
// can't get a pointer to a label from plain C :-(
__asm mov pEndThisFunc, offset dummy_placeholder
pEndThisFunc -= BASE_TO_PHYS_DIST;
if (dwDst < (DWORD)pEndThisFunc)
{
// We must not move the code from under our feet!
// This can only happen in the code segment - the first segment
DWORD diff = (DWORD)pEndThisFunc - dwDst;
dwDst += diff;
dwSrc += diff;
dwSiz -= diff;
}
}
// obviously we must use memmove, since memory can overlap
our_memmove((void*)dwDst, (void*)dwSrc, dwSiz);
// While at it, we might as well zero any uninitialized data in the section...
if (Section->SizeOfRawData < Section->Misc.VirtualSize)
{
memset((char*)(Section->VirtualAddress + Section->SizeOfRawData + TARGET_LOAD_ADDR),
0,
Section->Misc.VirtualSize - Section->SizeOfRawData);
}
}
// Now all sections are relocated to their intended in-memory layout,
// but we are still running int the low TARGET_LOAD_ADDR memory.
{
// Time to jump to the real startup, the entry-point function.
// We must do this using assembler, since both eax and ebx are assumed
// to hold some magic values.
typedef VOID (STDCALL* pfn_t)(PPEB);
pfn_t pfn = (pfn_t)(NtHeader->OptionalHeader.AddressOfEntryPoint + TARGET_LOAD_ADDR);
#if 1
__asm mov eax, saved_eax
__asm mov ebx, saved_ebx
__asm mov ecx, pfn
__asm jmp ecx
#else
__asm mov ebx, saved_ebx
(*pfn)((PPEB)saved_eax);
#endif
}
}
}
}
// TMN: TODO: Convert this to the extent possible to plain C code
// Due to the "magic" above, we enter this function with all kernel sections
// properly relocated wrt. offsets from start-of-mem. But, we are still running
// without paging, meaning that the address that is to be KERNEL_BASE+xyz is
// currently still TARGET_LOAD_ADDR+xyz.
// We get aways with a few of the functions call here since they are near calls
// (PC-relative), but don't even _think_ about calling any other functions
// until we have turned on paging!
VOID STDCALL
NtProcessStartup(
IN PPEB Peb
)
{
DWORD saved_ebx;
DWORD saved_eax;
__asm mov saved_ebx, ebx
__asm mov saved_eax, eax
bochs_out_string("NtProcessStartup: Just entered\n");
#ifdef MP
if (saved_eax != AP_MAGIC)
{
#endif /* MP */
bochs_out_string("NtProcessStartup: Calling initialize_page_directory()\n");
initialize_page_directory(); // Initialize the page directory
bochs_out_string("NtProcessStartup: Page directory initialized\n");
#ifdef MP
__asm
{
/*
* Initialize the page table that maps the APIC register address space
*/
/*
* FIXME: APIC register address space can be non-standard so do the
* mapping later
*/
mov esi, V2P(apic_pagetable)
mov edi, 0
mov eax, 0xFEC0001B
mov [esi+edi], eax
mov edi, 0x800
mov eax, 0xFEE0001B
mov [esi+edi], eax
}
}
#endif /* MP */
{
bochs_out_string("NtProcessStartup: Enabling paging...\n");
/*
* Enable paging and set write protect
* bit 31: PG, bit 16: WP
*/
__asm mov eax, cr0
__asm or eax, 0x80010000
__asm mov cr0, eax
bochs_out_string("NtProcessStartup: Paging enabled!\n");
bochs_out_string("NtProcessStartup: But we're still at the \"low\" address\n");
/*
* Do an absolute jump because we now want to execute above KERNEL_BASE
*/
__asm mov eax, offset l2_
__asm jmp eax
}
l2_:
bochs_out_string("We have now left \"low\" memory, and is flying at an altitude of...\n");
bochs_out_string("OK, we're not flying, we're just executing above KERNEL_BASE\n");
/*
* Load the GDTR and IDTR with new tables located above
* KERNEL_BASE
*/
#ifdef _DEBUG
{
DWORD val = (DWORD)&KiGdtDescriptor;
bochs_out_string("&KiGdtDescriptor: ");
bochs_dump_hex(val);
val = (DWORD)&KiIdtDescriptor;
bochs_out_string("&KiIdtDescriptor: ");
bochs_dump_hex(val);
}
#endif
bochs_out_string("Loading GDT and IDT...\n");
/* FIXME: Application processors should have their own GDT/IDT */
__asm lgdt KiGdtDescriptor
__asm lidt KiIdtDescriptor
bochs_out_string("GDT and IDT loaded\n");
__asm
{
/*
* Reload the data segment registers
*/
mov eax, KERNEL_DS
mov ds, ax
mov es, ax
mov gs, ax
mov ss, ax
mov eax, 0
mov fs, ax
}
bochs_out_string("NtProcessStartup: segment registers loaded\n");
#ifdef MP
if (saved_eax == AP_MAGIC)
{
__asm
{
/*
* This is an application processor executing
*/
/*
* Initialize EFLAGS
*/
push 0
popfd
/*
* Call the application processor initialization code
*/
push 0
push offset l7_
push KERNEL_CS
push KiSystemStartup
retf
/*
* Catch illegal returns from KiSystemStartup
*/
l7_:
pop eax
}
KeBugCheck(0);
for (;;)
; /*forever */
}
#endif /* MP */
bochs_out_string("Loading fs with PCR_SELECTOR\n");
/* Load the PCR selector */
__asm mov eax, PCR_SELECTOR
__asm mov fs, ax
bochs_out_string("Loading esp with init_stack_top : "); bochs_dump_hex((DWORD)&init_stack_top);
bochs_out_string("Just for interest, init_stack is at: "); bochs_dump_hex((DWORD)init_stack);
bochs_out_string("Meaing the init_stack in bytes is : "); bochs_dump_hex((DWORD)&init_stack_top - (DWORD)init_stack);
/* Load the initial kernel stack */
__asm mov esp, offset init_stack_top
bochs_out_string("Loaded esp with init_stack_top\n");
/*
* Initialize EFLAGS
*/
__asm push 0
__asm popfd
bochs_out_string("Loaded eflags\n");
/*
* Call the main kernel initialization
*/
bochs_out_string("TMN: Calling _main...\n");
__asm
{
xor ebp,ebp
push ebx
push edx
push offset l5_
push KERNEL_CS
push offset _main
retf
/*
* Catch illegal returns from main, try bug checking the system,
* if that fails then loop forever.
*/
l5_:
pop eax
pop eax
} // end of __asm block
bochs_out_string("TMN: Back from _main ?! Let's crash!\n");
KeBugCheck(0);
for (;;)
; /*forever */
}
void initialize_page_directory(void)
{
/*
* Initialize the page directory
*/
// First convert the pointers from the virtual address the compiler generated
// code thinks we are at, to the currently active physical address we actually
// got loaded into by the loader. At this point we have been relocated, so
// that there is a 1:1 mapping between KERNEL_BASE+n and TARGET_LOAD_ADDR+n.
kernel_page_t** startup_pagedirectory = startup_pagedirectory_holder;
kernel_page_t** lowmem_pagetable = lowmem_pagetable_holder;
kernel_page_t** kernel_pagetable = kernel_pagetable_holder;
__int32* kpcr_pagetable = kpcr_pagetable_holder;
bochs_out_string("startup_pagedirectory before reloc: ");
bochs_dump_hex((DWORD)startup_pagedirectory);
startup_pagedirectory = (kernel_page_t**)relocate_pointer_log_to_phys(startup_pagedirectory);
lowmem_pagetable = (kernel_page_t**)relocate_pointer_log_to_phys(lowmem_pagetable);
kernel_pagetable = (kernel_page_t**)relocate_pointer_log_to_phys(kernel_pagetable);
kpcr_pagetable = (__int32*) relocate_pointer_log_to_phys(kpcr_pagetable);
bochs_out_string("startup_pagedirectory after reloc : ");
bochs_dump_hex((DWORD)startup_pagedirectory);
// Now align the pointers to PAGE_SIZE...
startup_pagedirectory = (kernel_page_t**)(((ULONG_PTR)startup_pagedirectory + 4095) & ~4095);
lowmem_pagetable = (kernel_page_t**)(((ULONG_PTR)lowmem_pagetable + 4095) & ~4095);
kernel_pagetable = (kernel_page_t**)(((ULONG_PTR)kernel_pagetable + 4095) & ~4095);
kpcr_pagetable = (__int32* ) (((ULONG_PTR)kpcr_pagetable + 4095) & ~4095);
#ifdef _DEBUG
bochs_out_string("startup_pagedirectory aligned : ");
bochs_dump_hex((DWORD)startup_pagedirectory);
#endif
// Ugly macros, I know...
#define DEST(PAGE) startup_pagedirectory[(PAGE) + 0xc00 / 4]
#define SRC(PAGE) (kernel_page_t*)((char*)kernel_pagetable + (PAGE)*4096 + 0x7)
startup_pagedirectory[0] = (kernel_page_t*)((char*)lowmem_pagetable + 0x7);
{
unsigned int i;
for (i=0; i<32; ++i)
{
DEST(i) = SRC(i);
}
}
DEST( 64) = (kernel_page_t*)((char*)lowmem_pagetable + 0x7);
DEST(192) = (kernel_page_t*)((char*)startup_pagedirectory + 0x7);
#ifdef MP
DEST(251) = (kernel_page_t*)((char*)apic_pagetable + 0x7);
#endif /* MP */
DEST(252) = (kernel_page_t*)((char*)kpcr_pagetable + 0x7);
{
unsigned int i;
/* Initialize the page table that maps low memory */
for (i=0; i<1024; ++i) {
lowmem_pagetable[i] = (kernel_page_t*)(i*4096 + 7);
}
/* Initialize the page table that maps kernel memory */
for (i=0; i<6144/4 /* 1536 pages = 6MB */; ++i) {
kernel_pagetable[i] = (kernel_page_t*)(i*4096 + TARGET_LOAD_ADDR + 0x7);
}
/* Initialize the page table that maps the initial KPCR (at FF000000) */
kpcr_pagetable[0] = 0x1007;
}
/*
* Set up the PDBR
*/
__asm mov eax, startup_pagedirectory
__asm mov cr3, eax
}

View File

@@ -1,110 +0,0 @@
/*
* ReactOS kernel
* Copyright (C) 2000 David Welch <welch@cwcom.net>
*
* Moved to MSVC-compatible inline assembler by Mike Nordell, 2003-12-26
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
* FILE: ntoskrnl/ke/i386/vm86_sup.S
* PURPOSE: V86 mode support
* PROGRAMMER: David Welch (welch@cwcom.net)
* UPDATE HISTORY:
* Created 09/10/00
*/
/* INCLUDES ******************************************************************/
#pragma hdrstop
#include <ddk/ntddk.h>
#include <ddk/status.h>
#include <internal/i386/segment.h>
#include <internal/i386/fpu.h>
#include <internal/ps.h>
#include <ddk/defines.h>
#include <internal/v86m.h>
#include <ntos/tss.h>
//#include <ntos/service.h>
#include <internal/trap.h>
#include <internal/ps.h>
#include <roscfg.h>
#include <internal/ntoskrnl.h>
#include <internal/i386/segment.h>
void KeReturnFromSystemCall();
/*
* FUNCTION: KeStackSwitchAndRet
* PURPOSE: Switch to a new stack and return from the first frame on
* the new stack which was assumed to a stdcall function with
* 8 bytes of arguments and which saved edi, esi and ebx.
*/
__declspec(naked)
VOID STDCALL
KeStackSwitchAndRet(PVOID NewStack)
{
__asm
{
push ebp
mov ebp, esp
cli
mov esp, NewStack
sti
pop edi
pop esi
pop ebx
pop ebp
ret 8
}
}
__declspec(naked)
VOID STDCALL
KePushAndStackSwitchAndSysRet(ULONG Push, PVOID NewStack)
{
__asm
{
push ebp
mov ebp, esp
push ebx
push esi
push edi
cli
push 8[ebp]
mov ebx, fs:KPCR_CURRENT_THREAD
mov KTHREAD_CALLBACK_STACK[ebx], esp
mov esp, 12[ebp]
sti
push 0
call KeLowerIrql
jmp KeReturnFromSystemCall
}
}

View File

@@ -1,325 +0,0 @@
/*
* ReactOS kernel
* Copyright (C) 2000 David Welch <welch@cwcom.net>
*
* Converted to MSVC-compatible inline assembler by Mike Nordell, 2003.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
* FILE: MSVC6/ntoskrnl/ke_i386_syscall.c
* based on ntoskrnl/ke/i386/syscall.s
* PURPOSE: syscall dispatching and support
* PROGRAMMER: David Welch (welch@cwcom.net)
* UPDATE HISTORY:
* Created 09/10/00
*/
/* INCLUDES ******************************************************************/
#pragma hdrstop
#include <ddk/ntddk.h>
#include <ddk/status.h>
#include <internal/i386/segment.h>
#include <internal/i386/fpu.h>
#include <internal/ps.h>
#include <ddk/defines.h>
#include <internal/v86m.h>
#include <ntos/tss.h>
//#include <ntos/service.h>
#include <internal/trap.h>
#include <internal/ps.h>
#include <roscfg.h>
#include <internal/ntoskrnl.h>
#include <internal/i386/segment.h>
#define KernelMode (0)
#define UserMode (1)
// TMN: Replicated here to reduce mess-time
#ifdef STATUS_INVALID_SYSTEM_SERVICE
#undef STATUS_INVALID_SYSTEM_SERVICE
#endif
#define STATUS_INVALID_SYSTEM_SERVICE 0xc000001c
/*
*
*/
void KiServiceCheck (ULONG Nr);
ULONG KiAfterSystemCallHook(ULONG NtStatus, PKTRAP_FRAME TrapFrame);
VOID KiSystemCallHook(ULONG Nr, ...);
void KeReturnFromSystemCallWithHook();
void KeReturnFromSystemCall();
__declspec(naked)
void interrupt_handler2e(void)
{
__asm
{
/* Construct a trap frame on the stack */
/* Error code */
push 0
push ebp
push ebx
push esi
push edi
push fs
/* Load PCR selector into fs */
mov ebx, PCR_SELECTOR
mov fs, bx
/* Save the old exception list */
mov ebx, fs:KPCR_EXCEPTION_LIST
push ebx
/* Set the exception handler chain terminator */
mov dword ptr fs:KPCR_EXCEPTION_LIST, 0xffffffff
/* Get a pointer to the current thread */
mov esi, fs:KPCR_CURRENT_THREAD
/* Save the old previous mode */
xor ebx,ebx
mov bl, ss:KTHREAD_PREVIOUS_MODE[esi]
push ebx
/* Set the new previous mode based on the saved CS selector */
mov ebx, 0x24[esp]
and ebx, 0x0000FFFF
cmp ebx, KERNEL_CS
#if 0
// TODO: Verify implementation change and use this code path
// to remove two conditional jumps.
setnz bl
mov ss:KTHREAD_PREVIOUS_MODE[esi], bl
#else
jne L1
mov ss:KTHREAD_PREVIOUS_MODE[esi], KernelMode
jmp L3
L1:
mov ss:KTHREAD_PREVIOUS_MODE[esi], UserMode
L3:
#endif
/* Save other registers */
push eax
push ecx
push edx
push ds
push es
push gs
push 0 /* DR7 */
push 0 /* DR6 */
push 0 /* DR3 */
push 0 /* DR2 */
push 0 /* DR1 */
push 0 /* DR0 */
push 0 /* XXX: TempESP */
push 0 /* XXX: TempCS */
push 0 /* XXX: DebugPointer */
push 0 /* XXX: DebugArgMark */
mov ebx, 0x60[esp]
push ebx /* DebugEIP */
push ebp /* DebugEBP */
/* Load the segment registers */
mov bx, KERNEL_DS
mov ds, bx
mov es, bx
mov gs, bx
/*
* Save the old trap frame pointer over where we would save the EDX
* register.
*/
mov ebx, KTHREAD_TRAP_FRAME[esi]
mov 0x3C[esp], ebx
/* Save a pointer to the trap frame in the TCB */
mov KTHREAD_TRAP_FRAME[esi], esp
/* Set ES to kernel segment */
mov bx, KERNEL_DS
mov es, bx
/* Allocate new Kernel stack frame */
mov ebp, esp
/* Users's current stack frame pointer is source */
mov esi, edx
/* Determine system service table to use */
cmp eax, 0x0fff
ja new_useShadowTable
/* Check to see if EAX is valid/inrange */
cmp eax, es:KeServiceDescriptorTable + 8
jbe new_serviceInRange
mov eax, STATUS_INVALID_SYSTEM_SERVICE
jmp KeReturnFromSystemCall
new_serviceInRange:
/* Allocate room for argument list from kernel stack */
mov ecx, es:KeServiceDescriptorTable + 12
mov ecx, es:[ecx + eax * 4]
sub esp, ecx
/* Copy the arguments from the user stack to the kernel stack */
mov edi, esp
cld
repe movsb
/* DS is now also kernel segment */
mov ds, bx
/* Call system call hook */
push eax
call KiSystemCallHook
pop eax
/* Make the system service call */
mov ecx, es:KeServiceDescriptorTable
mov eax, es:[ecx + eax * 4]
call eax
#if CHECKED
/* Bump Service Counter */
#endif
/* Deallocate the kernel stack frame */
mov esp, ebp
/* Call the post system call hook and deliver any pending APCs */
push ebp
push eax
call KiAfterSystemCallHook
add esp, 8
jmp KeReturnFromSystemCall
new_useShadowTable:
sub eax, 0x1000
/* Check to see if EAX is valid/inrange */
cmp eax, es:KeServiceDescriptorTableShadow + 24
jbe new_shadowServiceInRange
mov eax, STATUS_INVALID_SYSTEM_SERVICE
jmp KeReturnFromSystemCall
new_shadowServiceInRange:
/* Allocate room for argument list from kernel stack */
mov ecx, es:KeServiceDescriptorTableShadow + 28
mov ecx, es:[ecx + eax * 4]
sub esp, ecx
/* Copy the arguments from the user stack to the kernel stack */
mov edi, esp
cld
repe movsb
/* DS is now also kernel segment */
mov ds, bx
/* Call system call hook */
// pushl %eax
// call _KiSystemCallHook
// popl %eax
/* Call service check routine */
push eax
call KiServiceCheck
pop eax
/* Make the system service call */
mov ecx, es:KeServiceDescriptorTableShadow + 16
mov eax, es:[ecx + eax * 4]
call eax
#if CHECKED
/* Bump Service Counter */
#endif
/* Deallocate the kernel stack frame */
mov esp, ebp
// TMN: Added, to be able to separate this into different functions
jmp KeReturnFromSystemCallWithHook
}
}
__declspec(naked)
void KeReturnFromSystemCallWithHook()
{
__asm
{
/* Call the post system call hook and deliver any pending APCs */
push esp
push eax
call KiAfterSystemCallHook
add esp, 8
// TMN: Added, to be able to separate this into different functions
jmp KeReturnFromSystemCall
}
}
__declspec(naked)
void KeReturnFromSystemCall()
{
__asm
{
/* Restore the user context */
/* Get a pointer to the current thread */
mov esi, fs:0x124
/* Restore the old trap frame pointer */
mov ebx, 0x3c[esp]
mov KTHREAD_TRAP_FRAME[esi], ebx
/* Skip debug information and unsaved registers */
add esp, 0x30
pop gs
pop es
pop ds
pop edx
pop ecx
add esp, 4 /* Don't restore eax */
/* Restore the old previous mode */
pop ebx
mov ss:KTHREAD_PREVIOUS_MODE[esi], bl
/* Restore the old exception handler list */
pop ebx
mov fs:KPCR_EXCEPTION_LIST, ebx
pop fs
pop edi
pop esi
pop ebx
pop ebp
add esp, 4 /* Ignore error code */
iretd
}
}

View File

@@ -1,468 +0,0 @@
/*
* ReactOS kernel
* Copyright (C) 2000 David Welch <welch@cwcom.net>
*
* Moved to MSVC-compatible inline assembler by Mike Nordell, 2003-12-26
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
* FILE: ntoskrnl/ke/i386/vm86_sup.S
* PURPOSE: V86 mode support
* PROGRAMMER: David Welch (welch@cwcom.net)
* UPDATE HISTORY:
* Created 09/10/00
*/
/* INCLUDES ******************************************************************/
#pragma hdrstop
#include <ddk/ntddk.h>
#include <ddk/status.h>
#include <internal/i386/segment.h>
#include <internal/i386/fpu.h>
#include <internal/ps.h>
#include <ddk/defines.h>
#include <internal/v86m.h>
#include <ntos/tss.h>
#include <internal/trap.h>
#include <internal/ps.h>
#include <roscfg.h>
#include <internal/ntoskrnl.h>
#include <internal/i386/segment.h>
void KiV86Complete(void);
void KiTrapHandler(void);
void KiDoubleFaultHandler(void);
extern int KiPcrInitDone;
/*
* Epilog for exception handlers
*/
__declspec(naked)
void KiTrapEpilog()
{
__asm
{
cmp eax, 1 /* Check for v86 recovery */
jne _KiTrapRet
jmp KiV86Complete
_KiTrapRet:
/* Skip debug information and unsaved registers */
add esp, 0x30
pop gs
pop es
pop ds
pop edx
pop ecx
pop eax
/* Restore the old previous mode */
pop ebx
mov ss:KTHREAD_PREVIOUS_MODE[esi], bl
/* Restore the old exception handler list */
pop ebx
mov fs:KPCR_EXCEPTION_LIST, ebx
pop fs
pop edi
pop esi
pop ebx
pop ebp
add esp, 4 /* Ignore error code */
iretd
}
}
__declspec(naked)
void KiTrapProlog()
{
__asm
{
push edi
push fs
/*
* Check that the PCR exists, very early in the boot process it may
* not
*/
cmp ss:KiPcrInitDone, 0
je L5_
/* Load the PCR selector into fs */
mov ebx, PCR_SELECTOR
mov fs, bx
/* Save the old exception list */
mov ebx, fs:KPCR_EXCEPTION_LIST
push ebx
/* Put the exception handler chain terminator */
mov dword ptr fs:KPCR_EXCEPTION_LIST, 0xffffffff
/* Get a pointer to the current thread */
mov edi, fs:KPCR_CURRENT_THREAD
/* The current thread may be NULL early in the boot process */
cmp edi, 0
je L4_
/* Save the old previous mode */
xor ebx, ebx
mov bl, ss:KTHREAD_PREVIOUS_MODE[edi]
push ebx
/* Set the new previous mode based on the saved CS selector */
mov ebx, 0x24[esp]
and ebx, 0x0000FFFF
cmp ebx, KERNEL_CS
jne L1_
mov ss:KTHREAD_PREVIOUS_MODE[edi], KernelMode
jmp L3_
L1_:
mov ss:KTHREAD_PREVIOUS_MODE[edi], UserMode
L3_:
/* Save other registers */
push eax
push ecx
push edx
push ds
push es
push gs
push 0 /* DR7 */
push 0 /* DR6 */
push 0 /* DR3 */
push 0 /* DR2 */
push 0 /* DR1 */
push 0 /* DR0 */
push 0 /* XXX: TempESP */
push 0 /* XXX: TempCS */
push 0 /* XXX: DebugPointer */
push 0 /* XXX: DebugArgMark */
mov ebx, 0x60[esp]
push ebx /* XXX: DebugEIP */
push ebp /* XXX: DebugEBP */
/* Load the segment registers */
mov ebx, KERNEL_DS
mov ds, bx
mov es, bx
mov gs, bx
/* Set ES to kernel segment */
mov bx, KERNEL_DS
mov es, bx
mov ebx, esp
mov ebp, esp
/* Save the old trap frame. */
cmp edi, 0
je L7_
mov edx, ss:KTHREAD_TRAP_FRAME[edi]
push edx
jmp L8_
L7_:
push 0
L8_:
/* Save a pointer to the trap frame in the current KTHREAD */
cmp edi, 0
je L6_
mov ss:KTHREAD_TRAP_FRAME[edi], ebx
L6_:
/* Call the C exception handler */
push esi
push ebx
call KiTrapHandler
add esp, 8
/* Get a pointer to the current thread */
mov esi, fs:KPCR_CURRENT_THREAD
/* Restore the old trap frame pointer */
pop ebx
mov KTHREAD_TRAP_FRAME[esi], ebx
/* Return to the caller */
jmp KiTrapEpilog
/* Handle the no-pcr case out of line */
L5_:
push 0
/* Handle the no-thread case out of line */
L4_:
push 0
jmp L3_
} // end of __asm block
}
__declspec(naked)
void KiTrap0()
{
__asm
{
/* No error code */
push 0
push ebp
push ebx
push esi
mov esi, 0
jmp KiTrapProlog
}
}
__declspec(naked)
void KiTrap1()
{
__asm
{
/* No error code */
push 0
push ebp
push ebx
push esi
mov esi, 1
jmp KiTrapProlog
}
}
__declspec(naked)
void KiTrap2()
{
__asm
{
push 0
push ebp
push ebx
push esi
mov esi, 2
jmp KiTrapProlog
}
}
__declspec(naked)
void KiTrap3()
{
__asm
{
push 0
push ebp
push ebx
push esi
mov esi, 3
jmp KiTrapProlog
}
}
__declspec(naked)
void KiTrap4()
{
__asm
{
push 0
push ebp
push ebx
push esi
mov esi, 4
jmp KiTrapProlog
}
}
__declspec(naked)
void KiTrap5()
{
__asm
{
push 0
push ebp
push ebx
push esi
mov esi, 5
jmp KiTrapProlog
}
}
__declspec(naked)
void KiTrap6()
{
__asm
{
push 0
push ebp
push ebx
push esi
mov esi, 6
jmp KiTrapProlog
}
}
__declspec(naked)
void KiTrap7()
{
__asm
{
push 0
push ebp
push ebx
push esi
mov esi, 7
jmp KiTrapProlog
}
}
__declspec(naked)
void KiTrap8()
{
__asm
{
call KiDoubleFaultHandler
iretd
}
}
__declspec(naked)
void KiTrap9()
{
__asm
{
push 0
push ebp
push ebx
push esi
mov esi, 9
jmp KiTrapProlog
}
}
__declspec(naked)
void KiTrap10()
{
__asm
{
push ebp
push ebx
push esi
mov esi, 10
jmp KiTrapProlog
}
}
__declspec(naked)
void KiTrap11()
{
__asm
{
push ebp
push ebx
push esi
mov esi, 11
jmp KiTrapProlog
}
}
__declspec(naked)
void KiTrap12()
{
__asm
{
push ebp
push ebx
push esi
mov esi, 12
jmp KiTrapProlog
}
}
__declspec(naked)
void KiTrap13()
{
__asm
{
push ebp
push ebx
push esi
mov esi, 13
jmp KiTrapProlog
}
}
__declspec(naked)
void KiTrap14()
{
__asm
{
push ebp
push ebx
push esi
mov esi, 14
jmp KiTrapProlog
}
}
__declspec(naked)
void KiTrap15()
{
__asm
{
push 0
push ebp
push ebx
push esi
mov esi, 15
jmp KiTrapProlog
}
}
__declspec(naked)
void KiTrap16()
{
__asm
{
push 0
push ebp
push ebx
push esi
mov esi, 16
jmp KiTrapProlog
}
}
__declspec(naked)
void KiTrapUnknown()
{
__asm
{
push 0
push ebp
push ebx
push esi
mov esi, 255
jmp KiTrapProlog
}
}
/* EOF */

View File

@@ -1,217 +0,0 @@
/*
* ReactOS kernel
* Copyright (C) 2000 David Welch <welch@cwcom.net>
*
* Moved to MSVC-compatible inline assembler by Mike Nordell, 2003-12-26
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
* FILE: ntoskrnl/ke/i386/vm86_sup.S
* PURPOSE: V86 mode support
* PROGRAMMER: David Welch (welch@cwcom.net)
* UPDATE HISTORY:
* Created 09/10/00
*/
/* INCLUDES ******************************************************************/
#pragma hdrstop
#include <ddk/ntddk.h>
#include <ddk/status.h>
#include <internal/i386/segment.h>
#include <internal/i386/fpu.h>
#include <internal/ps.h>
#include <ddk/defines.h>
#include <internal/v86m.h>
#include <ntos/tss.h>
//#include <ntos/service.h>
#include <internal/trap.h>
#include <internal/ps.h>
#include <roscfg.h>
#include <internal/ntoskrnl.h>
#include <internal/i386/segment.h>
extern KSPIN_LOCK PiThreadListLock;
extern ULONG PiNrThreadsAwaitingReaping;
extern ULONG MmGlobalKernelPageDirectory[1024];
VOID STDCALL PiWakeupReaperThread(VOID);
VOID KeSetBaseGdtSelector(ULONG Entry, PVOID Base);
/*
* FUNCTIONS: Switches to another thread's context
* ARGUMENTS:
* Thread = Thread to switch to
* OldThread = Thread to switch from
*/
__declspec(naked)
VOID
Ki386ContextSwitch(struct _KTHREAD* NewThread, struct _KTHREAD* OldThread)
{
__asm
{
push ebp
mov ebp, esp
/* Save callee save registers. */
push ebx
push esi
push edi
cli /* This is a critical section for this processor. */
/* Get the pointer to the new thread. */
mov ebx, NewThread
/*
* Set the base of the TEB selector to the base of the TEB for
* this thread.
*/
push ebx
push KTHREAD_TEB[ebx]
push TEB_SELECTOR
call KeSetBaseGdtSelector
add esp, 8
pop ebx
/*
* Load the PCR selector.
*/
mov eax, PCR_SELECTOR
mov fs, ax
/*
* Set the current thread information in the PCR.
*/
mov fs:KPCR_CURRENT_THREAD, ebx
/*
* Set the current LDT
*/
xor eax, eax
mov edi, ETHREAD_THREADS_PROCESS[ebx]
test word ptr KPROCESS_LDT_DESCRIPTOR0[edi], 0xFFFF
jz L4
push KPROCESS_LDT_DESCRIPTOR1[edi]
push KPROCESS_LDT_DESCRIPTOR0[edi]
push LDT_SELECTOR
call KeSetGdtSelector
add esp, 12
mov eax, LDT_SELECTOR
L4:
lldt ax
/*
* Load up the iomap offset for this thread in
* preparation for setting it below.
*/
mov eax, KPROCESS_IOPM_OFFSET[edi]
/*
* FIXME: Save debugging state.
*/
/*
* FIXME: Save floating point state.
*/
/*
* Switch stacks
*/
mov ebx, 12[ebp]
mov KTHREAD_KERNEL_STACK[ebx], esp
mov ebx, 8[ebp]
mov esp, KTHREAD_KERNEL_STACK[ebx]
mov edi, KTHREAD_STACK_LIMIT[ebx]
/*
* Set the stack pointer in this processors TSS
*/
mov esi, fs:KPCR_TSS
/*
* Set current IOPM offset in the TSS
*/
mov KTSS_IOMAPBASE[esi], ax
mov eax, KTHREAD_INITIAL_STACK[ebx]
mov KTSS_ESP0[esi], eax
/*
* Change the address space
*/
mov ebx, ETHREAD_THREADS_PROCESS[ebx]
mov eax, KPROCESS_DIRECTORY_TABLE_BASE[ebx]
mov cr3, eax
/*
* Set up the PDE for the top of the new stack.
*/
mov ebx, 0
L2:
mov esi, edi
shr esi, 22
mov eax, 0xF03C0000[esi*4]
cmp eax, 0
jne L1
mov eax, MmGlobalKernelPageDirectory[esi*4]
mov 0xF03C0000[esi*4], eax
L1:
add edi, 4096
inc ebx
cmp ebx, (MM_STACK_SIZE / 4096)
jl L2
/*
* FIXME: Restore floating point state
*/
/*
* FIXME: Restore debugging state
*/
/*
* Exit the critical section
*/
sti
}
KeReleaseSpinLockFromDpcLevel(&PiThreadListLock);
if (PiNrThreadsAwaitingReaping) {
PiWakeupReaperThread();
}
__asm
{
/*
* Restore the saved register and exit
*/
pop edi
pop esi
pop ebx
pop ebp
ret
}
}

View File

@@ -1,256 +0,0 @@
/*
* ReactOS kernel
* Copyright (C) 2000 David Welch <welch@cwcom.net>
*
* Moved to MSVC-compatible inline assembler by Mike Nordell, 2003-12-25
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
* FILE: ntoskrnl/ke/i386/vm86_sup.S
* PURPOSE: V86 mode support
* PROGRAMMER: David Welch (welch@cwcom.net)
* UPDATE HISTORY:
* Created 09/10/00
*/
/* INCLUDES ******************************************************************/
#pragma hdrstop
#include <ddk/ntddk.h>
#include <ddk/status.h>
#include <internal/i386/segment.h>
#include <internal/i386/fpu.h>
#include <internal/ps.h>
#include <ddk/defines.h>
#include <internal/v86m.h>
#include <ntos/tss.h>
#include <internal/trap.h>
#include <internal/ps.h>
#include <roscfg.h>
#include <internal/ntoskrnl.h>
#include <internal/i386/segment.h>
#include <internal/ps.h>
// Taken from ntoskrnl/include/internal/v86m.h, since that one must be fixed
// a bit before it could be used from here.
#define KV86M_REGISTERS_EBP (0x0)
#define KV86M_REGISTERS_EDI (0x4)
#define KV86M_REGISTERS_ESI (0x8)
#define KV86M_REGISTERS_EDX (0xC)
#define KV86M_REGISTERS_ECX (0x10)
#define KV86M_REGISTERS_EBX (0x14)
#define KV86M_REGISTERS_EAX (0x18)
#define KV86M_REGISTERS_DS (0x1C)
#define KV86M_REGISTERS_ES (0x20)
#define KV86M_REGISTERS_FS (0x24)
#define KV86M_REGISTERS_GS (0x28)
#define KV86M_REGISTERS_EIP (0x2C)
#define KV86M_REGISTERS_CS (0x30)
#define KV86M_REGISTERS_EFLAGS (0x34)
#define KV86M_REGISTERS_ESP (0x38)
#define KV86M_REGISTERS_SS (0x3C)
void KiV86Complete();
/*
* Starts in v86 mode with the registers set to the
* specified values.
*/
__declspec(naked)
VOID Ki386RetToV86Mode(KV86M_REGISTERS* InRegs,
KV86M_REGISTERS* OutRegs)
{
__asm
{
/*
* Setup a stack frame
*/
push ebp
mov ebp, esp
pushad /* Save registers */
mov ebx, InRegs
/*
* Save ebp
*/
push ebp
/*
* Save a pointer to IN_REGS which the v86m exception handler will
* use to handle exceptions
*/
push ebx
/*
* Since we are going to fiddle with the stack pointer this must be
* a critical section for this processor
*/
/*
* Save the old initial stack
*/
mov esi, fs:KPCR_CURRENT_THREAD
mov edi, KTHREAD_INITIAL_STACK[esi]
push edi
/*
* We also need to set the stack in the kthread structure
*/
mov KTHREAD_INITIAL_STACK[esi], esp
/*
* The stack used for handling exceptions from v86 mode in this thread
* will be the current stack adjusted so we don't overwrite the
* existing stack frames
*/
mov esi, fs:KPCR_TSS
mov KTSS_ESP0[esi], esp
/*
* Create the stack frame for an iret to v86 mode
*/
push KV86M_REGISTERS_GS[ebx]
push KV86M_REGISTERS_FS[ebx]
push KV86M_REGISTERS_DS[ebx]
push KV86M_REGISTERS_ES[ebx]
push KV86M_REGISTERS_SS[ebx]
push KV86M_REGISTERS_ESP[ebx]
push KV86M_REGISTERS_EFLAGS[ebx]
push KV86M_REGISTERS_CS[ebx]
push KV86M_REGISTERS_EIP[ebx]
/*
* Setup the CPU registers
*/
mov eax, KV86M_REGISTERS_EAX[ebx]
mov ecx, KV86M_REGISTERS_ECX[ebx]
mov edx, KV86M_REGISTERS_EDX[ebx]
mov esi, KV86M_REGISTERS_ESI[ebx]
mov edi, KV86M_REGISTERS_EDI[ebx]
mov ebp, KV86M_REGISTERS_EBP[ebx]
mov ebx, KV86M_REGISTERS_EBX[ebx]
/*
* Go to v86 mode
*/
iretd
/*
* Handle the completion of a vm86 routine. We are called from
* an exception handler with the registers at the point of the
* exception on the stack.
*/
jmp KiV86Complete // TMN: Function-splitting
}
}
__declspec(naked)
void KiV86Complete()
{
__asm
{
/* Restore the original ebp */
mov ebp, TF_ORIG_EBP[esp]
/* Get a pointer to the OUT_REGS structure */
mov ebx, 12[ebp] // OutRegs
/* Skip debug information and unsaved registers */
add esp, 0x30
/* Ignore 32-bit segment registers */
add esp, 12
/* Save the vm86 registers into the OUT_REGS structure */
pop dword ptr KV86M_REGISTERS_EDX[ebx]
pop dword ptr KV86M_REGISTERS_ECX[ebx]
pop dword ptr KV86M_REGISTERS_EAX[ebx]
/* Restore the old previous mode */
pop eax
mov ss:KTHREAD_PREVIOUS_MODE[esi], al
/* Restore the old exception handler list */
pop eax
mov fs:KPCR_EXCEPTION_LIST, eax
/* Ignore the 32-bit fs register */
add esp, 4
pop dword ptr KV86M_REGISTERS_EDI[ebx]
pop dword ptr KV86M_REGISTERS_ESI[ebx]
pop dword ptr KV86M_REGISTERS_EBX[ebx]
pop dword ptr KV86M_REGISTERS_EBP[ebx]
/* Ignore error code */
add esp, 4
pop dword ptr KV86M_REGISTERS_EIP[ebx]
pop dword ptr KV86M_REGISTERS_CS[ebx]
pop dword ptr KV86M_REGISTERS_EFLAGS[ebx]
pop dword ptr KV86M_REGISTERS_ESP[ebx]
pop dword ptr KV86M_REGISTERS_SS[ebx]
pop dword ptr KV86M_REGISTERS_ES[ebx]
pop dword ptr KV86M_REGISTERS_DS[ebx]
pop dword ptr KV86M_REGISTERS_FS[ebx]
pop dword ptr KV86M_REGISTERS_GS[ebx]
/*
* We are going to fiddle with the stack so this must be a critical
* section for this process
*/
cli
/*
* Restore the initial stack
*/
pop eax
mov esi, fs:KPCR_TSS
mov KTSS_ESP0[esi], eax
/*
* We also need to set the stack in the kthread structure
*/
mov esi, fs:KPCR_CURRENT_THREAD
mov edi, KTHREAD_INITIAL_STACK[esi]
mov KTHREAD_INITIAL_STACK[esi], eax
/* Exit the critical section */
sti
/* Ignore IN_REGS pointer */
add esp, 4
/* Ignore ebp restored above */
add esp, 4
/* Return to caller */
popad
mov esp, ebp
pop ebp
ret
} // end of __asm block
}

View File

@@ -1,15 +0,0 @@
; This file is vital. It tells the linker how to order some functions
; and some data, that unfortunately is assumed to be at low location
; and in known order to eachother respectively?
MultibootStub
our_memmove
dummy_placeholder
NtProcessStartup@4
initialize_page_directory
relocate_pointer_log_to_phys
; Order some data that there is some assumptions about...
init_stack
init_stack_top
trap_stack
trap_stack_top

View File

@@ -1,126 +0,0 @@
#include <ddk/ntddk.h>
void MmSafeCopyToUserRestart();
void MmSafeCopyToUserUnsafeStart();
void MmSafeCopyFromUserUnsafeStart();
void MmSafeCopyFromUserRestart();
/*
* NTSTATUS MmSafeCopyFromUser(PVOID Dest, PVOID Src,
* ULONG NumberOfBytes)
*/
__declspec(naked)
NTSTATUS MmSafeCopyFromUser(PVOID Dest, const VOID *Src, ULONG Count)
{
__asm
{
push ebp
mov ebp,esp
push esi
push edi
push ecx
mov edi, 8[ebp]
mov esi, 12[ebp]
mov ecx, 16[ebp]
/*
* Default return code
*/
xor eax,eax
jmp MmSafeCopyFromUserUnsafeStart
}
}
__declspec(naked)
void MmSafeCopyFromUserUnsafeStart()
{
__asm
{
/*
* This is really a synthetic instruction since if we incur a
* pagefault then eax will be set to an appropiate STATUS code
*/
cld
rep movsb
jmp MmSafeCopyFromUserRestart
}
}
__declspec(naked)
void MmSafeCopyFromUserRestart()
{
__asm
{
pop ecx
pop edi
pop esi
pop ebp
ret
}
}
/*****************************************************************************/
/*
* NTSTATUS MmSafeCopyToUser(PVOID Dest, PVOID Src,
* ULONG NumberOfBytes)
*/
NTSTATUS MmSafeCopyToUser(PVOID Dest, const VOID *Src, ULONG Count)
{
__asm
{
push ebp
mov esp,ebp
push esi
push edi
push ecx
mov edi, 8[ebp]
mov esi, 12[ebp]
mov ecx, 16[ebp]
/*
* Default return code
*/
xor eax,eax
jmp MmSafeCopyToUserUnsafeStart
}
}
__declspec(naked)
void MmSafeCopyToUserUnsafeStart()
{
__asm
{
/*
* This is really a synthetic instruction since if we incur a
* pagefault then eax will be set to an appropiate STATUS code
*/
cld
rep movsb
jmp MmSafeCopyToUserRestart
}
}
__declspec(naked)
void MmSafeCopyToUserRestart()
{
__asm
{
pop ecx
pop edi
pop esi
pop ebp
ret
}
}

View File

@@ -1,574 +0,0 @@
/* $Id: mm_mminit_msvc.c,v 1.1 2004/02/06 08:22:01 fireball Exp $
*
* COPYRIGHT: See COPYING in the top directory
* PROJECT: ReactOS kernel
* FILE: ntoskrnl/mm/mminit.c
* PURPOSE: kernel memory managment initialization functions
* PROGRAMMER: David Welch (welch@cwcom.net)
* UPDATE HISTORY:
* Created 9/4/98
*/
/* INCLUDES *****************************************************************/
#include <ddk/ntddk.h>
#include <roscfg.h>
#include <internal/i386/segment.h>
#include <internal/mm.h>
#include <internal/ntoskrnl.h>
#include <internal/io.h>
#include <internal/ps.h>
#include <internal/pool.h>
#define NDEBUG
#include <internal/debug.h>
/* GLOBALS *****************************************************************/
/*
* Size of extended memory (kb) (fixed for now)
*/
#define EXTENDED_MEMORY_SIZE (3*1024*1024)
/*
* Compiler defined symbols
*/
#if defined(_MSC_VER)
#pragma intrinsic(strcmp)
static PIMAGE_SECTION_HEADER FindSection(const char* szSeg)
{
PIMAGE_NT_HEADERS NtHeader = RtlImageNtHeader((PVOID)KERNEL_BASE);
PIMAGE_SECTION_HEADER Section = IMAGE_FIRST_SECTION(NtHeader);
const int count = NtHeader->FileHeader.NumberOfSections;
int i;
for (i = 0; i < count; ++i, ++Section)
{
if (!strcmp(szSeg, Section->Name))
{
return Section;
}
}
return NULL;
}
static void* FindSegmentStart(const char* szSeg)
{
PIMAGE_SECTION_HEADER Section = FindSection(szSeg);
if (Section)
{
return (void*)(KERNEL_BASE + Section->VirtualAddress);
}
return NULL;
}
static void* FindSegmentEnd(const char* szSeg)
{
PIMAGE_SECTION_HEADER Section = FindSection(szSeg);
if (Section)
{
return (void*)(KERNEL_BASE + Section->VirtualAddress + Section->Misc.VirtualSize);
}
return NULL;
}
#endif // defined(_MSC_VER)
static BOOLEAN IsThisAnNtAsSystem = FALSE;
static MM_SYSTEM_SIZE MmSystemSize = MmSmallSystem;
static MEMORY_AREA* kernel_text_desc = NULL;
static MEMORY_AREA* kernel_init_desc = NULL;
static MEMORY_AREA* kernel_map_desc = NULL;
static MEMORY_AREA* kernel_kpcr_desc = NULL;
static MEMORY_AREA* kernel_data_desc = NULL;
static MEMORY_AREA* kernel_param_desc = NULL;
static MEMORY_AREA* kernel_pool_desc = NULL;
static MEMORY_AREA* kernel_shared_data_desc = NULL;
static MEMORY_AREA* kernel_mapped_low_mem_desc = NULL;
static MEMORY_AREA* MiKernelMapDescriptor = NULL;
static MEMORY_AREA* MiPagedPoolDescriptor = NULL;
PHYSICAL_ADDRESS MmSharedDataPagePhysicalAddress;
PVOID MiNonPagedPoolStart;
ULONG MiNonPagedPoolLength;
PVOID MiKernelMapStart;
ULONG MiKernelMapLength;
/* FUNCTIONS ****************************************************************/
/*
* @implemented
*/
BOOLEAN STDCALL MmIsThisAnNtAsSystem(VOID)
{
return(IsThisAnNtAsSystem);
}
/*
* @implemented
*/
MM_SYSTEM_SIZE STDCALL MmQuerySystemSize(VOID)
{
return(MmSystemSize);
}
VOID MiShutdownMemoryManager(VOID)
{
}
VOID INIT_FUNCTION
MmInitVirtualMemory(ULONG LastKernelAddress,
ULONG KernelLength)
/*
* FUNCTION: Intialize the memory areas list
* ARGUMENTS:
* bp = Pointer to the boot parameters
* kernel_len = Length of the kernel
*/
{
PVOID BaseAddress;
ULONG Length;
ULONG ParamLength = KernelLength;
NTSTATUS Status;
PHYSICAL_ADDRESS BoundaryAddressMultiple;
//ULONG i;
DPRINT("MmInitVirtualMemory(%x, %x)\n",LastKernelAddress, KernelLength);
BoundaryAddressMultiple.QuadPart = 0;
LastKernelAddress = PAGE_ROUND_UP(LastKernelAddress);
MmInitMemoryAreas();
/* Don't change the start of kernel map. Pte's must always exist for this region. */
MiKernelMapStart = (char*)LastKernelAddress + PAGE_SIZE;
MiKernelMapLength = MM_KERNEL_MAP_SIZE;
MiNonPagedPoolStart = (char*)MiKernelMapStart + MiKernelMapLength + PAGE_SIZE;
MiNonPagedPoolLength = MM_NONPAGED_POOL_SIZE;
MmPagedPoolBase = (char*)MiNonPagedPoolStart + MiNonPagedPoolLength + PAGE_SIZE;
MmPagedPoolSize = MM_PAGED_POOL_SIZE;
MiInitKernelMap();
MiInitializeNonPagedPool();
/*
* Setup the system area descriptor list
*/
BaseAddress = (PVOID)0xf0000000;
MmCreateMemoryArea(NULL,
MmGetKernelAddressSpace(),
MEMORY_AREA_SYSTEM,
&BaseAddress,
0x400000,
0,
&kernel_map_desc,
FALSE,
FALSE,
BoundaryAddressMultiple);
BaseAddress = (PVOID)KPCR_BASE;
MmCreateMemoryArea(NULL,
MmGetKernelAddressSpace(),
MEMORY_AREA_SYSTEM,
&BaseAddress,
PAGE_SIZE * MAXIMUM_PROCESSORS,
0,
&kernel_kpcr_desc,
FALSE,
FALSE,
BoundaryAddressMultiple);
BaseAddress = (PVOID)0xd0000000;
MmCreateMemoryArea(NULL,
MmGetKernelAddressSpace(),
MEMORY_AREA_SYSTEM,
&BaseAddress,
0x100000,
0,
&kernel_mapped_low_mem_desc,
FALSE,
FALSE,
BoundaryAddressMultiple);
BaseAddress = (PVOID)KERNEL_BASE;
Length = PAGE_ROUND_UP(((ULONG)FindSegmentEnd(".text"))) - KERNEL_BASE;
ParamLength = ParamLength - Length;
/*
* No need to lock the address space at this point since no
* other threads are running.
*/
MmCreateMemoryArea(NULL,
MmGetKernelAddressSpace(),
MEMORY_AREA_SYSTEM,
&BaseAddress,
Length,
0,
&kernel_text_desc,
FALSE,
FALSE,
BoundaryAddressMultiple);
// TODO: Here we REALLY should iterate the PE's sections and set protection
// accordingly for each and every one of them.
// NOTE This code ONLY works because of the assumption that the .text
// segment is the first in the PE, and the .reloc segment is the last.
// Link in a way to make this assumtion false, and the kernel won't work.
BaseAddress = (PVOID)PAGE_ROUND_UP(((ULONG)FindSegmentEnd(".text")));
Length = PAGE_ROUND_UP(((ULONG)FindSegmentStart(".reloc"))) - (ULONG_PTR)BaseAddress;
ParamLength = ParamLength - Length;
DPRINT1("Data Length %x\n",Length);
DPRINT1("Data BaseAddress %x\n",BaseAddress);
/*
* No need to lock the address space at this point since we are
* the only thread running.
*/
// For GCC-compiled, kernel_data_desc contains:
// .data, .edata, .idata, .bss and .rsrc. E.i. all but .text and .reloc
MmCreateMemoryArea(NULL,
MmGetKernelAddressSpace(),
MEMORY_AREA_SYSTEM,
&BaseAddress,
Length,
0,
&kernel_data_desc,
FALSE,
FALSE,
BoundaryAddressMultiple);
// BaseAddress = (PVOID)PAGE_ROUND_UP(((ULONG)FindSegmentEnd(".edata")));
BaseAddress = (PVOID)PAGE_ROUND_UP(((ULONG)FindSegmentStart(".reloc")));
Length = LastKernelAddress - (ULONG)BaseAddress;
// For GCC-compiled, kernel_param_desc contains .reloc
MmCreateMemoryArea(NULL,
MmGetKernelAddressSpace(),
MEMORY_AREA_SYSTEM,
&BaseAddress,
Length,
0,
&kernel_param_desc,
FALSE,
FALSE,
BoundaryAddressMultiple);
BaseAddress = MiNonPagedPoolStart;
MmCreateMemoryArea(NULL,
MmGetKernelAddressSpace(),
MEMORY_AREA_SYSTEM,
&BaseAddress,
MiNonPagedPoolLength,
0,
&kernel_pool_desc,
FALSE,
FALSE,
BoundaryAddressMultiple);
BaseAddress = MiKernelMapStart;
Status = MmCreateMemoryArea(NULL,
MmGetKernelAddressSpace(),
MEMORY_AREA_SYSTEM,
&BaseAddress,
MiKernelMapLength,
0,
&MiKernelMapDescriptor,
FALSE,
FALSE,
BoundaryAddressMultiple);
BaseAddress = MmPagedPoolBase;
Status = MmCreateMemoryArea(NULL,
MmGetKernelAddressSpace(),
MEMORY_AREA_PAGED_POOL,
&BaseAddress,
MmPagedPoolSize,
0,
&MiPagedPoolDescriptor,
FALSE,
FALSE,
BoundaryAddressMultiple);
MmInitializePagedPool();
/*
* Create the kernel mapping of the user/kernel shared memory.
*/
BaseAddress = (PVOID)KI_USER_SHARED_DATA;
Length = PAGE_SIZE;
MmCreateMemoryArea(NULL,
MmGetKernelAddressSpace(),
MEMORY_AREA_SYSTEM,
&BaseAddress,
Length,
0,
&kernel_shared_data_desc,
FALSE,
FALSE,
BoundaryAddressMultiple);
Status = MmRequestPageMemoryConsumer(MC_NPPOOL, TRUE,
&MmSharedDataPagePhysicalAddress);
Status = MmCreateVirtualMapping(NULL,
(PVOID)KI_USER_SHARED_DATA,
PAGE_READWRITE,
MmSharedDataPagePhysicalAddress,
TRUE);
if (!NT_SUCCESS(Status))
{
DbgPrint("Unable to create virtual mapping\n");
KEBUGCHECK(0);
}
RtlZeroMemory(BaseAddress, Length);
/*
*
*/
MmInitializeMemoryConsumer(MC_USER, MmTrimUserMemory);
}
VOID INIT_FUNCTION
MmInit1(ULONG FirstKrnlPhysAddr,
ULONG LastKrnlPhysAddr,
ULONG LastKernelAddress,
PADDRESS_RANGE BIOSMemoryMap,
ULONG AddressRangeCount,
ULONG MaxMem)
/*
* FUNCTION: Initalize memory managment
*/
{
ULONG i;
ULONG kernel_len;
#ifndef MP
extern unsigned int unmap_me, unmap_me2, unmap_me3;
#endif
DPRINT("MmInit1(FirstKrnlPhysAddr, %x, LastKrnlPhysAddr %x, LastKernelAddress %x)\n",
FirstKrnlPhysAddr,
LastKrnlPhysAddr,
LastKernelAddress);
if ((BIOSMemoryMap != NULL) && (AddressRangeCount > 0))
{
// If we have a bios memory map, recalulate the memory size
ULONG last = 0;
for (i = 0; i < AddressRangeCount; i++)
{
if (BIOSMemoryMap[i].Type == 1
&& (BIOSMemoryMap[i].BaseAddrLow + BIOSMemoryMap[i].LengthLow + PAGE_SIZE -1) / PAGE_SIZE > last)
{
last = (BIOSMemoryMap[i].BaseAddrLow + BIOSMemoryMap[i].LengthLow + PAGE_SIZE -1) / PAGE_SIZE;
}
}
if ((last - 256) * 4 > KeLoaderBlock.MemHigher)
{
KeLoaderBlock.MemHigher = (last - 256) * 4;
}
}
if (KeLoaderBlock.MemHigher >= (MaxMem - 1) * 1024)
{
KeLoaderBlock.MemHigher = (MaxMem - 1) * 1024;
}
/*
* FIXME: Set this based on the system command line
*/
MmSystemRangeStart = (PVOID)KERNEL_BASE; // 0xC0000000
MmUserProbeAddress = (PVOID)0x7fff0000;
MmHighestUserAddress = (PVOID)0x7ffeffff;
MmInitGlobalKernelPageDirectory();
/*
* Initialize memory managment statistics
*/
MmStats.NrTotalPages = 0;
MmStats.NrSystemPages = 0;
MmStats.NrUserPages = 0;
MmStats.NrReservedPages = 0;
MmStats.NrUserPages = 0;
MmStats.NrFreePages = 0;
MmStats.NrLockedPages = 0;
MmStats.PagingRequestsInLastMinute = 0;
MmStats.PagingRequestsInLastFiveMinutes = 0;
MmStats.PagingRequestsInLastFifteenMinutes = 0;
/*
* Initialize the kernel address space
*/
MmInitializeKernelAddressSpace();
/*
* Unmap low memory
*/
#ifndef MP
/* In SMP mode we unmap the low memory in MmInit3.
The APIC needs the mapping of the first pages
while the processors are starting up. */
MmDeletePageTable(NULL, 0);
#endif
/*
* Free all pages not used for kernel memory
* (we assume the kernel occupies a continuous range of physical
* memory)
*/
DPRINT("first krnl %x\nlast krnl %x\n",FirstKrnlPhysAddr,
LastKrnlPhysAddr);
/*
* Free physical memory not used by the kernel
*/
MmStats.NrTotalPages = KeLoaderBlock.MemHigher/4;
if (!MmStats.NrTotalPages)
{
DbgPrint("Memory not detected, default to 8 MB\n");
MmStats.NrTotalPages = 2048;
}
else
{
/* add 1MB for standard memory (not extended) */
MmStats.NrTotalPages += 256;
}
#ifdef BIOS_MEM_FIX
MmStats.NrTotalPages += 16;
#endif
DbgPrint("Used memory %dKb\n", (MmStats.NrTotalPages * PAGE_SIZE) / 1024);
LastKernelAddress = (ULONG)MmInitializePageList((PVOID)FirstKrnlPhysAddr,
(PVOID)LastKrnlPhysAddr,
MmStats.NrTotalPages,
PAGE_ROUND_UP(LastKernelAddress),
BIOSMemoryMap,
AddressRangeCount);
kernel_len = LastKrnlPhysAddr - FirstKrnlPhysAddr;
/*
* Create a trap for null pointer references and protect text
* segment
*/
CHECKPOINT;
#if defined(_MSC_VER)
DPRINT(".text start: %x, .data start: %x\n",
(int)FindSegmentStart(".text"),
(int)FindSegmentStart(".data"));
{
const char* pCode = FindSegmentStart(".text");
const char* pData = FindSegmentEnd(".text");
while (pCode < pData)
{
MmSetPageProtect(NULL, (PVOID)pCode, PAGE_EXECUTE_READ);
pCode += PAGE_SIZE;
}
}
#else
DPRINT("_text_start__ %x _init_end__ %x\n",(int)&_text_start__,(int)&_init_end__);
for (i=PAGE_ROUND_DOWN(((int)&_text_start__));
i<PAGE_ROUND_UP(((int)&_init_end__));i=i+PAGE_SIZE)
{
MmSetPageProtect(NULL,
(PVOID)i,
PAGE_EXECUTE_READ);
}
#endif
DPRINT("Invalidating between %x and %x\n",
LastKernelAddress, 0xc0600000);
for (i=(LastKernelAddress); i<0xc0600000; i+=PAGE_SIZE)
{
MmRawDeleteVirtualMapping((PVOID)(i));
}
DPRINT("Invalidating between %x and %x\n",
0xd0100000, 0xd0400000);
for (i=0xd0100000; i<0xd0400000; i+=PAGE_SIZE)
{
MmRawDeleteVirtualMapping((PVOID)(i));
}
DPRINT("Almost done MmInit()\n");
#ifndef MP
/* FIXME: This is broken in SMP mode */
#if !defined(_MSC_VER) // FIXME: I don't trust using this from MSVC yet!
MmDeleteVirtualMapping(NULL, (PVOID)&unmap_me, TRUE, NULL, NULL);
MmDeleteVirtualMapping(NULL, (PVOID)&unmap_me2, TRUE, NULL, NULL);
MmDeleteVirtualMapping(NULL, (PVOID)&unmap_me3, TRUE, NULL, NULL);
#endif // _MSC_VER
#endif
/*
* Intialize memory areas
*/
MmInitVirtualMemory(LastKernelAddress, kernel_len);
MmInitializeMdlImplementation();
}
VOID INIT_FUNCTION
MmInit2(VOID)
{
MmInitializeRmapList();
MmInitializePageOp();
MmInitSectionImplementation();
MmInitPagingFile();
}
VOID INIT_FUNCTION
MmInit3(VOID)
{
/*
* Unmap low memory
*/
#ifdef MP
/* In SMP mode we can unmap the low memory
if all processors are started. */
MmDeletePageTable(NULL, 0);
#endif
MmInitZeroPageThread();
MmCreatePhysicalMemorySection();
MiInitBalancerThread();
/*
* Initialise the modified page writer.
*/
MmInitMpwThread();
/* FIXME: Read parameters from memory */
}
VOID STATIC
MiFreeInitMemoryPage(PVOID Context, MEMORY_AREA* MemoryArea, PVOID Address,
PHYSICAL_ADDRESS PhysAddr, SWAPENTRY SwapEntry,
BOOLEAN Dirty)
{
assert(SwapEntry == 0);
if (PhysAddr.QuadPart != 0)
{
MmReleasePageMemoryConsumer(MC_NPPOOL, PhysAddr);
}
}
VOID
MiFreeInitMemory(VOID)
{
#if defined(_MSC_VER)
DPRINT1("Can not yet free .init memory for MSVC compiled kernel\n");
#else
MmLockAddressSpace(MmGetKernelAddressSpace());
MmFreeMemoryArea(MmGetKernelAddressSpace(),
(PVOID)&_init_start__,
PAGE_ROUND_UP((ULONG)&_init_end__) - (ULONG)_init_start__,
MiFreeInitMemoryPage,
NULL);
MmUnlockAddressSpace(MmGetKernelAddressSpace());
#endif
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,299 +0,0 @@
/*
* ReactOS kernel
* Copyright (C) 2000 David Welch <welch@cwcom.net>
*
* Moved to MSVC-compatible inline assembler by Mike Nordell, 2003-12-26
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
* FILE: ntoskrnl/ke/i386/vm86_sup.S
* PURPOSE: V86 mode support
* PROGRAMMER: David Welch (welch@cwcom.net)
* UPDATE HISTORY:
* Created 09/10/00
*/
/* INCLUDES ******************************************************************/
#pragma hdrstop
#include <ddk/ntddk.h>
#include <ddk/status.h>
#include <internal/i386/segment.h>
#include <internal/i386/fpu.h>
#include <internal/ps.h>
#include <ddk/defines.h>
#include <internal/v86m.h>
#include <ntos/tss.h>
//#include <ntos/service.h>
#include <internal/trap.h>
#include <internal/ps.h>
#include <roscfg.h>
#include <internal/ntoskrnl.h>
#include <internal/i386/segment.h>
#define EXCEPTION_UNWINDING 0x02
#define EREC_FLAGS 0x04
#define ExceptionContinueExecution 0
#define ExceptionContinueSearch 1
#define ExceptionNestedException 2
#define ExceptionCollidedUnwind 3
//.globl _RtlpExecuteHandlerForException
//.globl _RtlpExecuteHandlerForUnwind
#define CONTEXT_FLAGS 0x00
#define CONTEXT_SEGGS 0x8C
#define CONTEXT_SEGFS 0x90
#define CONTEXT_SEGES 0x94
#define CONTEXT_SEGDS 0x98
#define CONTEXT_EDI 0x9C
#define CONTEXT_ESI 0xA0
#define CONTEXT_EBX 0xA4
#define CONTEXT_EDX 0xA8
#define CONTEXT_ECX 0xAC
#define CONTEXT_EAX 0xB0
#define CONTEXT_EBP 0xB4
#define CONTEXT_EIP 0xB8
#define CONTEXT_SEGCS 0xBC
#define CONTEXT_EFLAGS 0xC0
#define CONTEXT_ESP 0xC4
#define CONTEXT_SEGSS 0xC8
#define RCC_CONTEXT 0x08
VOID STDCALL
AsmDebug(ULONG Value);
// EAX = value to print
__declspec(naked)
void do_debug()
{
__asm
{
pusha
push eax
call AsmDebug
popa
ret
}
}
#define REH_ERECORD 0x08
#define REH_RFRAME 0x0C
#define REH_CONTEXT 0x10
#define REH_DCONTEXT 0x14
#define REH_EROUTINE 0x18
// Parameters:
// None
// Registers:
// [EBP+08h] - PEXCEPTION_RECORD ExceptionRecord
// [EBP+0Ch] - PEXCEPTION_REGISTRATION RegistrationFrame
// [EBP+10h] - PVOID Context
// [EBP+14h] - PVOID DispatcherContext
// [EBP+18h] - PEXCEPTION_HANDLER ExceptionRoutine
// EDX - Address of protecting exception handler
// Returns:
// EXCEPTION_DISPOSITION
// Notes:
// Setup the protecting exception handler and call the exception
// handler in the right context.
__declspec(naked)
void RtlpExecuteHandler()
{
__asm
{
push ebp
mov ebp, esp
push REH_RFRAME[ebp]
push edx
push fs:0x0
mov fs:0x0, esp
// Prepare to call the exception handler
push REH_DCONTEXT[ebp]
push REH_CONTEXT[ebp]
push REH_RFRAME[ebp]
push REH_ERECORD[ebp]
// Now call the exception handler
mov eax, REH_EROUTINE[ebp]
call eax
cmp fs:0x0, -1
jne reh_stack_looks_ok
// This should not happen
push 0
push 0
push 0
push 0
call RtlAssert
reh_loop:
jmp reh_loop
reh_stack_looks_ok:
mov esp, fs:0x0
// Return to the 'front-end' for this function
pop dword ptr fs:0x0
mov esp, ebp
pop ebp
ret
}
}
#if 0
#endif // 0
#define REP_ERECORD 0x04
#define REP_RFRAME 0x08
#define REP_CONTEXT 0x0C
#define REP_DCONTEXT 0x10
// Parameters:
// [ESP+04h] - PEXCEPTION_RECORD ExceptionRecord
// [ESP+08h] - PEXCEPTION_REGISTRATION RegistrationFrame
// [ESP+0Ch] - PCONTEXT Context
// [ESP+10h] - PVOID DispatcherContext
// Registers:
// None
// Returns:
// EXCEPTION_DISPOSITION
// Notes:
// This exception handler protects the exception handling
// mechanism by detecting nested exceptions.
__declspec(naked)
void RtlpExceptionProtector()
{
__asm
{
mov eax, ExceptionContinueSearch
mov ecx, REP_ERECORD[esp]
test EREC_FLAGS[ecx], EXCEPTION_UNWINDING
jnz rep_end
// Unwinding is not taking place, so return ExceptionNestedException
// Set DispatcherContext field to the exception registration for the
// exception handler that executed when a nested exception occurred
mov ecx, REP_DCONTEXT[esp]
mov eax, REP_RFRAME[esp]
mov [ecx], eax
mov eax, ExceptionNestedException
rep_end:
ret
}
}
// Parameters:
// [ESP+04h] - PEXCEPTION_RECORD ExceptionRecord
// [ESP+08h] - PEXCEPTION_REGISTRATION RegistrationFrame
// [ESP+0Ch] - PCONTEXT Context
// [ESP+10h] - PVOID DispatcherContext
// [ESP+14h] - PEXCEPTION_HANDLER ExceptionHandler
// Registers:
// None
// Returns:
// EXCEPTION_DISPOSITION
// Notes:
// Front-end
__declspec(naked)
void RtlpExecuteHandlerForException()
{
__asm
{
mov edx, RtlpExceptionProtector
jmp RtlpExecuteHandler
}
}
#define RUP_ERECORD 0x04
#define RUP_RFRAME 0x08
#define RUP_CONTEXT 0x0C
#define RUP_DCONTEXT 0x10
// Parameters:
// [ESP+04h] - PEXCEPTION_RECORD ExceptionRecord
// [ESP+08h] - PEXCEPTION_REGISTRATION RegistrationFrame
// [ESP+0Ch] - PCONTEXT Context
// [ESP+10h] - PVOID DispatcherContext
// Registers:
// None
// Returns:
// EXCEPTION_DISPOSITION
// Notes:
// This exception handler protects the exception handling
// mechanism by detecting collided unwinds.
__declspec(naked)
void RtlpUnwindProtector()
{
__asm
{
mov eax, ExceptionContinueSearch
mov RUP_ERECORD[esp], ecx
test EREC_FLAGS[ecx], EXCEPTION_UNWINDING
jz rup_end
// Unwinding is taking place, so return ExceptionCollidedUnwind
mov ecx, RUP_RFRAME[esp]
mov edx, RUP_DCONTEXT[esp]
// Set DispatcherContext field to the exception registration for the
// exception handler that executed when a collision occurred
mov eax, RUP_RFRAME[ecx]
mov [edx], eax
mov eax, ExceptionCollidedUnwind
rup_end:
ret
}
}
// Parameters:
// [ESP+04h] - PEXCEPTION_RECORD ExceptionRecord
// [ESP+08h] - PEXCEPTION_REGISTRATION RegistrationFrame
// [ESP+0Ch] - PCONTEXT Context
// [ESP+10h] - PVOID DispatcherContext
// [ESP+14h] - PEXCEPTION_HANDLER ExceptionHandler
// Registers:
// None
// Returns:
// EXCEPTION_DISPOSITION
__declspec(naked)
void RtlpExecuteHandlerForUnwind()
{
__asm mov edx, RtlpUnwindProtector
__asm jmp RtlpExecuteHandler
}

View File

@@ -1,37 +0,0 @@
# $Id: Makefile,v 1.2 2003/01/07 16:23:10 robd Exp $
#
#
PATH_TO_TOP = ../../../reactos
PATH_TO_OS2_TOP = ../..
TARGET_TYPE = program
TARGET_NORC = yes
#TARGET_APPTYPE = console
TARGET_APPTYPE = windows
TARGET_NAME = bepslep
TARGET_CFLAGS = -D__SUBSYSTEM_WINDOWS__
TARGET_LFLAGS = -nostartfiles
TARGET_SDKLIBS = doscalls.a
TARGET_GCCLIBS = stdc++
#TARGET_LIBS = $(PATH_TO_OS2_TOP)/lib/crt0w32.o \
# $(PATH_TO_TOP)/dk/psx/lib/psxdll.a
# $(PATH_TO_OS2_TOP)/dll/doscalls.dll
TARGET_OBJECTS = $(TARGET_NAME).o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -1,20 +0,0 @@
#define INCL_DOSPROCESS
#include "../../include/os2.h"
//#include "../../include/ros2.h"
void Eingang()
{
DosBeep(3000,300);
DosSleep(1000);
DosBeep(4000,200);
DosExit(0,0);
}
void WinMainCRTStartup()
{
int a, b;
a= b+3;
b=a+3;
Eingang();
}

View File

@@ -1,5 +0,0 @@
<group>
<directory name="bepslep">
<xi:include href="bepslep/bepslep.xml" />
</directory>
</group>

View File

@@ -1,11 +0,0 @@
<group>
<directory name="apps">
<xi:include href="apps/directory.xml" />
</directory>
<directory name="lib">
<xi:include href="lib/directory.xml" />
</directory>
<directory name="server">
<xi:include href="server/os2srv.xml" />
</directory>
</group>

View File

@@ -1,50 +0,0 @@
Win32 and os2ss sight to the system partition
+C < contains under os2ss a autogenerated config.sys
|
+-ROS
+-NATIVE < NTDLL, ntoskrnl, hal.dll, csrss.exe os2.exe psx.exe ...
| +-DRIVERS < *.SYS
| +-CONFIG < registry
+-WIN32
| +-SYSTEM < user32.dll kernel32.dll ...
| +-FONTS
| +...
+-OS2
| +-DLL < doscalls.dll ....
| +-SYSTEM
| +-...
+-PSX
+-etc < mountpoint for posix apps
+-bin
+-dev
+-lib < posix.dll
+-tmp
+-var
+-mnt < empty
posix sight to the system partition
/
+-etc < mountpoint for posix apps
+-bin
+-dev < link to OB-mans Devices
+-lib < posix.dll
+-tmp < alias to systemtemp
+-var
+-mnt
+-C < win32-driveletters
| |
| +-ROS
| +-NATIVE < NTDLL, ntoskrnl, hal.dll, csrss.exe os2.exe psx.exe ...
| | +-DRIVERS < *.SYS
| | +-CONFIG < registry
| +-WIN32
| | +-SYSTEM < user32.dll kernel32.dll ...
| | +-FONTS
| | +...
| +-OS2 <some apps
| | +-DLL < doscalls.dll ....
| | +-SYSTEM
| | +-...
| +-PSX < empty
+-D
+-E...

View File

@@ -1,16 +0,0 @@
Beginning ROS/2-Developement
============================
ROS/2-Developement means building the OS/2 subsystem for ReactOS. In order to start the developement you should have CVS-access. For the CVS-access see the reactos-Homepage.
Setting up a build environment
------------------------------
For the native components (OS2SS.EXE and OS2.EXE) you'll need the same compiler and tools as you need for the rest of ReactOS. If you haven't already set it up, go to the reactos home and see the description there. For now this is the only compiler you need. At some point you'll need a compiler that can generate LX-EXEs. But now also the core dlls and even programs are compiled as PE-win32.
Getting documentation
---------------------
I'm not the inventor of OS/2. IBM still did the work, and they did also good work in terms of documentation. If you plan to do core-dll work, you'll also need NT-Native-API documentation. There exists a book called "The Native API", but there should be a preliminary PDF-file floating around. OS/2-API documentation is available on the CDs belonging to your OS/2-compiler. If you develope under OS/2 you have an INF-viewer on board. If your developementsystem is NT, I recomend you OVIEW (http://hobbes.nmsu.edu/pub/windows/win_inf.zip). This two 'books' should be, what you need.
Contacting me
-------------
Bevore you start, have a talk with me. We don't want to do useless work or do work twice. So write to ros2@dantepark.de

View File

@@ -1,67 +0,0 @@
<html>
<head>
<title>OS/2 subsystem for ReactOS</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<h1><b>OS/2 subsystem for ReactOS (ROS/2)</b></h1>
<h2><font color="#009966">Introduction</font></h2>
<p>The OS/2 subsystem is being developed to enable NT-like systems (like WinNT
and ReactOS) to run 32-Bit OS/2 applications natively. With this it shall provide
binary compatiblility on x86-Based systems. It is intended to port the ROS/2
also to other platforms supported by ReactOS / NT. It is planned to provide
source code compatibility on these platforms. Yeeahh, OS/2 for PowerPC is in
sight.</p>
<h2><font color="#009966">Components</font></h2>
<p>ROS/2 consists of the following components:</p>
<ul>
<li>OS2SS.EXE - A native application that implements the personality of the
OS/2 kernel.</li>
<li>OS2.EXE - A win32 application that does the interaction of the OS/2 apps
with the desktop.</li>
<li>Core DLLs - These DLLs that make OS/2 programs interface with the kernel/sub
system (i.E. DOSCALLS.DLL). </li>
<li>Additional DLLs - DLLs that provide additional APIs for OS/2 apps. This
includes Presentation Manager.</li>
</ul>
<h2><font color="#009966">Current state</font></h2>
<p>Up to now just a fragment of DOSCALLS.DLL exists. The biggest problem are the
os2 API headers which are (C) by IBM. So help is still welcome.</p>
<h2><font color="#009966">16-Bit issues</font></h2>
<p>It is not intended to support 16-bit OS/2 applications. This would make the
system inconsistent and produce much more work that use. But there is still
one issue: Current textmode applications are either 16-bit or use thunking to
call the 16-bit APIs. These 32-Bit thunking applications have to be supported.
We are still thinking how to accomplish that. </p>
<h2><font color="#009966">32-Bit issues</font></h2>
<p>It is planned to replace the current MOU- KBD- MSG- and VIO- subsystems with
the <a href="http://homepages.tesco.net/%7EJ.deBoynePollard/Softwares/conapi.html">Unicode
Console API</a>. This is also the foundation for other platforms we want to
provide source code compatibility with. So nearly every 32-Bit processor can
be supported. It sould even be possible to implement a 64-bit OS/2 API.</p>
<h2><font color="#009966">Architecture</font></h2>
<p>To understand the architecture of ReactOS or WinNT read a book from the &quot;Inside
Windows NT&quot;-series. The architecture of ROS/2 is like every normal subsystem.
When OS2SS.EXE starts, it creates an object directory named os2 and therein
it creates a port object with the name Os2API. A port is something like a socket.
Two programs can comunicate with each other via a port. The port Os2API provides
the LPC API of the OS2SS.EXE - the actual subsystem. <br>
Every OS/2 program that is loaded, is linked with DOSCALLS.DLL and NTDLL.DLL
- the interface to the NT-kernel. Since DOSCALLS is implemented using NTDLL.DLL,
every OS/2 app has it in its adress space. Many functions in DOSCALLS.DLL are
implemented by just wrapping NTDLL.DLL functions. Some functions however need
assistance by the subsystem. For this reason the app makes an LPC to OS2SS.EXE.
LPC means local procedure call and it is a very fast version of RPC. Together
with the first application also OS2.EXE starts up. OS2.EXE runs in the win32
subsystem with the security of the current user. OS2.EXE is used to gather keyboard
and mouse input and to show console windows and PM-windows of all OS/2 programms
of the current user. In order to accomplish this OS2.EXE creates a port object
in the os2 object directory named Os2Interact. OS/2 applications have a connection
to OS2.EXE, too. OS2SS.EXE and OS2.EXE also talk to each other. An OS/2 application
then makes LPCs either to OS2.EXE directly or if required via OS2SS.EXE.</p>
<p>Details</p>
<p>&nbsp;</p>
<p>LPC Documentation</p>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@@ -1,91 +0,0 @@
/* $ $
*/
/*
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS OS/2 sub system
* FILE: dll/doscalls.c
* PURPOSE: supportheader for Kernelservices.
* Use this file if your dll or application
* is going to use both, the os2 base services
* as well as the native API of NTDLL.DLL
* PROGRAMMER: Robert K. nonvolatil@yahoo.de
* REVISION HISTORY:
* 1-08-2002 Created
*/
/* How to use:
History got us another time. If you want to write a module
that uses either native-api or os2-services...no problem.
But if you want to use both of them you run into type conflicts.
BOOL is not very surprising. But there are many other types
whose names are equal. This results from the fact that NT
should originally become OS/2 3.0.
So your solution lies in including this file instead of os2.h
and ntddk.h. What this file here does is, it puts the os2-types+
functions into the namespace OS2 while the nt-types+functions are
put into the namespace NT. The still conflicting #defines are handled
like this: If ntddk.h defintes a symbol FOO and os2.h does the same,
this file here undefines the ntddk.h-one and renames it to NT_FOO.
This is only done for conflicting symbols. Of course, this list is a
source for errors. But is there a better solution than renaming
all of the symbols?
*/
#ifndef __ROS2_H__
#define __ROS2_H__
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
namespace NT
{
#include <ddk/ntddk.h>
#include <napi/types.h>
}
/* rename all the symbols */
#define NT_FILE_CREATE FILE_CREATE
#undef FILE_CREATE
#define NT_CREATE_SUSPENDED CREATE_SUSPENDED
#undef CREATE_SUSPENDED
namespace OS2
{
#include "os2.h"
}
using namespace OS2;
APIRET STDCALL Dos32Open(PSZ pszFileName, PHFILE pHf,
PULONG pulAction, ULONG cbFile,
ULONG ulAttribute, ULONG fsOpenFlags,
ULONG fsOpenMode, PVOID reserved ); //ULONGPEAOP2 peaop2)
APIRET STDCALL Dos32Close(HFILE hFile);
APIRET STDCALL Dos32Read(HFILE hFile, PVOID pBuffer,
ULONG cbRead, PULONG pcbActual);
APIRET STDCALL Dos32Write(HFILE hFile, PVOID pBuffer,
ULONG cbWrite, PULONG pcbActual);
ULONG STDCALL DosSleep (ULONG ulInterval);
ULONG STDCALL DosBeep (ULONG ulFrequency, ULONG ulDuration);
VOID STDCALL DosExit (ULONG ulAction, ULONG ulResult);
//ULONG STDCALL DosDevIOCtl (HFILE hDevice, ULONG ulCategory, ULONG ulFunction,
// PVOID pParams, ULONG ulParamsLengthMax, PULONG pulParamsLength,
// PVOID pData, ULONG ulDataLengthMax, PULONG pulDataLength);
typedef ULONG foo_TID;
typedef foo_TID* foo_PTID;
typedef void (*foo_PFNTHREAD)(ULONG ulThreadArg);
ULONG STDCALL DosCreateThread (foo_PTID ptidThreadID, foo_PFNTHREAD pfnThreadAddr,
ULONG ulThreadArg, ULONG ulFlags, ULONG ulStackSize);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __ROS2_H__ */

View File

@@ -1,20 +0,0 @@
@echo off
if "%1" == "" goto NoParameter
set ROS_INSTALL=%1
goto Install
:NoParameter
set ROS_INSTALL=c:\reactos
:Install
echo Installing to %ROS_INSTALL%
@echo off
md %ROS_INSTALL%
md %ROS_INSTALL%\bin
md %ROS_INSTALL%\symbols
md %ROS_INSTALL%\system32
copy ..\os2\apps\bepslep\bepslep.exe %ROS_INSTALL%\bin
copy ..\os2\lib\doscalls\doscalls.dll %ROS_INSTALL%\system32
copy ..\os2\lib\doscalls\doscalls.sym %ROS_INSTALL%\symbols
copy ..\os2\server\os2ss.exe %ROS_INSTALL%\system32
copy ..\os2\server\os2ss.sym %ROS_INSTALL%\symbols

View File

@@ -1,5 +0,0 @@
<group>
<directory name="doscalls">
<xi:include href="doscalls/doscalls.xml" />
</directory>
</group>

View File

@@ -1,65 +0,0 @@
/* $Id$
*/
/*
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS OS/2 sub system
* PART: doscalls.dll
* FILE: devices.cpp
* CONTAINS: device io ctl main function.
* PURPOSE: Kernelservices for OS/2 apps
* PROGRAMMER: Robert K. nonvolatil@yahoo.de
* REVISION HISTORY:
* 13-03-2002 Created
* 25-07-2002 Work to make it compile
* 10-11-2002 Done som little things
*/
#define INCL_DOSDEVICES
#define INCL_DOSERRORS
#include "ros2.h"
/*******************************************/
/* DosDevIOCtl performs control functions */
/* on a device specified by an opened */
/* device handle. */
/*******************************************/
/*HFILE hDevice; Device handle returned by DosOpen, or a standard (open) device handle. */
/*ULONG category; Device category. */
/*ULONG function; Device-specific function code. */
/*PVOID pParams; Address of the command-specific argument list. */
/*ULONG cbParmLenMax; Length, in bytes, of pParams. */
/*PULONG pcbParmLen; Pointer to the length of parameters. */
/*PVOID pData; Address of the data area. */
/*ULONG cbDataLenMax; Length, in bytes, of pData. */
/*PULONG pcbDataLen; Pointer to the length of data. */
/*APIRET ulrc; Return Code.
ulrc (APIRET) - returns
Return Code.
DosDevIOCtl returns one of the following values:
0 NO_ERROR
1 ERROR_INVALID_FUNCTION
6 ERROR_INVALID_HANDLE
15 ERROR_INVALID_DRIVE
31 ERROR_GEN_FAILURE
87 ERROR_INVALID_PARAMETER
111 ERROR_BUFFER_OVERFLOW
115 ERROR_PROTECTION_VIOLATION
117 ERROR_INVALID_CATEGORY
119 ERROR_BAD_DRIVER_LEVEL
163 ERROR_UNCERTAIN_MEDIA
165 ERROR_MONITORS_NOT_SUPPORTED
*/
APIRET STDCALL DosDevIOCtl(HFILE hDevice, ULONG category, ULONG function,
PVOID pParams,ULONG cbParmLenMax,PULONG pcbParmLen,
PVOID pData,ULONG cbDataLenMax,PULONG pcbDataLen)
{
return ERROR_CALL_NOT_IMPLEMENTED;
}
/* EOF */

View File

@@ -1,97 +0,0 @@
/* $Id: ioctl_async.cpp,v 1.2 2004/01/31 01:29:11 robertk Exp $
*/
/*
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS OS/2 sub system
* PART: doscalls.dll
* FILE: ipctl_async.cpp
* PURPOSE: This file is to be directly included into devices.cpp
* CONTAINS: implementation of the category 1 (async I/O)
* ioctl functioncodes.
* PROGRAMMER: Robert K. nonvolatil@yahoo.de
* REVISION HISTORY:
* 10-11-2002 Created
*/
/* This function implements the async ioctls. It
is called from the real DosIOCtl function. This
function implies that it is only called, if the
cathegory was 0x01.
All other parameters are the same as DosIoCtl.
FIXME: implement me
*/
APIRET EvaluateAsyncIoCtl( HFILE hDevice, ULONG function,
PVOID pParams, ULONG cbParmLenMax, PULONG pcbParmLen,
PVOID pData, ULONG cbDataLenMax, PULONG pcbDataLen)
{
switch( function )
{
case 0x41: //ASYNC_SETBAUDRATE
//+------------------------------------+
//|Field Length C Datatype |
//|------------------------------------|
//|Bit Rate WORD USHORT |
//+------------------------------------+
break;
case 0x42: // Set Line Characteristics (stop, parity, data bits)
return ERROR_INVALID_PARAMETER; // example
break;
case 0x43: // Extended Set Bit Rate .
break;
case 0x44: // Transmit Byte Immediate .
break;
case 0x45: // Set Break OFF .
break;
case 0x46: // Set Modem Control Signals .
break;
case 0x47: // Behave as if XOFF Received (stop transmit) .
break;
case 0x48: // Behave as if XON Received (start transmit) .
break;
case 0x49: // Reserved .
break;
case 0x53: // Set Device Control Block (DCB) Parameters .
break;
case 0x54: // Set Enhanced Mode Parameters .
break;
case 0x61: // Query Current Bit Rate .
break;
case 0x62: // Query Line Characteristics .
break;
case 0x63: // Extended Query Bit Rate .
break;
case 0x64: // Query COM Status .
break;
case 0x65: // Query Transmit Data Status .
break;
case 0x66: // Query Modem Control Output Signals .
break;
case 0x67: // Query Current Modem Input Signals .
break;
case 0x68: // Query Number of Characters in Receive Queue .
break;
case 0x69: // Query Number of Characters in Transmit Queue .
break;
case 0x72: // Query COM Event Information .
break;
case 0x73: // Query Device Control Block (DCB) Parameters .
break;
case 0x74: // Query Enhanced Mode Parameters .
break;
default:
return ERROR_INVALID_FUNCTION;
break;
}
return ERROR_INVALID_FUNCTION;
}
/* EOF */

View File

@@ -1,35 +0,0 @@
; $Id: doscalls.def,v 1.6 2004/01/31 01:29:11 robertk Exp $
;
; Def for doscalls.dll - part of the OS/2-sub system
; for ReactOS. Provides Access to OS/2 kernel services.
LIBRARY doscalls.dll
DESCRIPTION "Part of the ReactOS OS/2 sub system, provides base kernel services to OS/2-apps"
EXPORTS
; FIXME: fill in all exports
<<<<<<< doscalls.def
DosSleep
DosClose
DosOpen
DosRead
DosWrite
DosDevIOCtl
DosBeep
DosExit
DosCreateThread
=======
DosSleep
Dos32Close
Dos32Open
Dos32Read
Dos32Write
;DosDevIOCtl
DosBeep
DosExit
DosCreateThread
>>>>>>> 1.5
; EOF

View File

@@ -1,23 +0,0 @@
; $Id: doscalls.def.bak,v 1.1 2002/09/04 22:19:47 robertk Exp $
;
; Def for doscalls.dll - part of the OS/2-sub system
; for ReactOS. Provides Access to OS/2 kernel services.
LIBRARY doscalls.dll
DESCRIPTION "Part of the ReactOS OS/2 sub system, provides base kernel services to OS/2-apps"
EXPORTS
; FIXME: fill in all exports
Dos32Sleep@4 @229
Dos32Close@4 @257
Dos32Open@32 @273
Dos32Read@16 @281
Dos32Write@16 @282
Dos32DevIOCtl@36 @284
Dos32Beep@8 @286
Dos32Exit@8 @234
Dos32CreateThread@20 @311
; EOF

View File

@@ -1,35 +0,0 @@
; $Id: doscalls.edf,v 1.4 2004/01/31 01:29:11 robertk Exp $
;
; Def for doscalls.dll - part of the OS/2-sub system
; for ReactOS. Provides Access to OS/2 kernel services.
LIBRARY doscalls.dll
DESCRIPTION "Part of the ReactOS OS/2 sub system, provides base kernel services to OS/2-apps"
EXPORTS
; FIXME: fill in all exports
<<<<<<< doscalls.edf
DosSleep=DosSleep
DosClose=DosClose
DosOpen=DosOpen
DosRead=DosRead
DosWrite=DosWrite
DosDevIOCtl=DosDevIOCtl
DosBeep=DosBeep
DosExit=DosExit
DosCreateThread=DosCreateThread
=======
DosSleep=DosSleep@4 @229
Dos32Close=Dos32Close@4 @257
Dos32Open=Dos32Open@32 @273
Dos32Read=Dos32Read@16 @281
Dos32Write=Dos32Write@16 @282
;DosDevIOCtl=DosDevIOCtl@36 @284
DosBeep=DosBeep@8 @286
DosExit=DosExit@8 @234
DosCreateThread=DosCreateThread@20 @311
>>>>>>> 1.3
; EOF

View File

@@ -1,4 +0,0 @@
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS-OS/2 subsystem base services\0"
#define REACTOS_STR_INTERNAL_NAME "doscalls\0"
#define REACTOS_STR_ORIGINAL_FILENAME "doscalls.dll\0"
#include <reactos/version.rc>

View File

@@ -1,23 +0,0 @@
<module name="doscalls" type="nativedll">
<importlibrary definition="doscalls.def" />
<include base="doscalls">../../include</include>
<linkerflag>-lgcc</linkerflag>
<directory name="devices">
<file>devices.cpp</file>
<file>ioctl_async.cpp</file>
</directory>
<directory name="file">
<file>directory.cpp</file>
<file>openclose.cpp</file>
</directory>
<directory name="memory">
<file>memory.cpp</file>
</directory>
<directory name="misc">
<file>doscalls.cpp</file>
<file>error.cpp</file>
</directory>
<directory name="run">
<file>process.cpp</file>
</directory>
</module>

View File

@@ -1,179 +0,0 @@
/* $Id$
*/
/*
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS OS/2 sub system
* PART: doscalls.dll
* FILE: directory.cpp
* PURPOSE: Kernelservices for OS/2 apps
* CONTAINS: Directory related CP-functions.
* PROGRAMMER: Robert K. nonvolatil@yahoo.de
* REVISION HISTORY:
* 10-11-2002 Created
*/
#define INCL_DOSFILEMGR
#define INCL_DOSERRORS
#include "ros2.h"
/******************************************
DosDelete removes a file name from a
directory. The deleted file may be
recoverable.
pszFile (PSZ) - input
Address of the name of the file to be deleted.
ulrc (APIRET) - returns
Return Code.
DosDelete returns one of the following values:
0 NO_ERROR
2 ERROR_FILE_NOT_FOUND
3 ERROR_PATH_NOT_FOUND
5 ERROR_ACCESS_DENIED
26 ERROR_NOT_DOS_DISK
32 ERROR_SHARING_VIOLATION
36 ERROR_SHARING_BUFFER_EXCEEDED
87 ERROR_INVALID_PARAMETER
206 ERROR_FILENAME_EXCED_RANGE
*******************************************/
APIRET DosDelete(PSZ pszFile)
{
return ERROR_CALL_NOT_IMPLEMENTED;
}
/******************************************
DosDeleteDir removes a subdirectory
from the specified disk.
pszDir (PSZ) - input
Address of the fully qualified path name of the subdirectory to be removed.
ulrc (APIRET) - returns
Return Code.
DosDeleteDir returns one of the following values:
0 NO_ERROR
2 ERROR_FILE_NOT_FOUND
3 ERROR_PATH_NOT_FOUND
5 ERROR_ACCESS_DENIED
16 ERROR_CURRENT_DIRECTORY
26 ERROR_NOT_DOS_DISK
87 ERROR_INVALID_PARAMETER
108 ERROR_DRIVE_LOCKED
206 ERROR_FILENAME_EXCED_RANGE
******************************************/
APIRET DosDeleteDir(PSZ pszDir)
{
return ERROR_CALL_NOT_IMPLEMENTED;
}
/*******************************************
DosCopy copies the source file or
subdirectory to the destination file or
subdirectory.
pszOld (PSZ) - input
Address of the ASCIIZ path name of the source file,
subdirectory, or character device.
Global file-name characters are not allowed.
pszNew (PSZ) - input
Address of the ASCIIZ path name of the target file,
subdirectory, or character device.
Global file-name characters are not allowed.
option (ULONG) - input
ULONG bit flags that define how the DosCopy
function is done.
Bit Description
31-3 Reserved. These bits must be set to
zero.
2 DCPY_FAILEAS (0x00000004)
Discard the EAs if the source file
contains EAs and the destination file
system does not support EAs.
0 Discard the EAs (extended attributes) if
the destination file system does not
support EAs.
1 Fail the copy if the destination file
system does not support EAs.
1 DCPY_APPEND (x00000002)
Append the source file to the target
file's end of data.
0 Replace the target file with the source
file.
1 Append the source file to the target file's
end of data.
This is ignored when copying a
directory, or if the target file does not
exist.
0 DCPY_EXISTING (0x00000001)
Existing Target File Disposition.
0 Do not copy the source file to the target
if the file name already exists within the
target directory. If a single file is being
copied and the target already exists, an
error is returned.
1 Copy the source file to the target even if
the file name already exists within the
target directory.
Bit flag DCPY_FAILEAS can be used in
combination with bit flag DCPY_APPEND or
DCPY_EXISTING.
ulrc (APIRET) - returns
Return Code.
DosCopy returns one of the following values:
0 NO_ERROR
2 ERROR_FILE_NOT_FOUND
3 ERROR_PATH_NOT_FOUND
5 ERROR_ACCESS_DENIED
26 ERROR_NOT_DOS_DISK
32 ERROR_SHARING_VIOLATION
36 ERROR_SHARING_BUFFER_EXCEEDED
87 ERROR_INVALID_PARAMETER
108 ERROR_DRIVE_LOCKED
112 ERROR_DISK_FULL
206 ERROR_FILENAME_EXCED_RANGE
267 ERROR_DIRECTORY
282 ERROR_EAS_NOT_SUPPORTED
283 ERROR_NEED_EAS_FOUND
*******************************************/
APIRET DosCopy(PSZ pszOld,PSZ pszNew, ULONG option)
{
return ERROR_CALL_NOT_IMPLEMENTED;
}
/* EOF */

View File

@@ -1,199 +0,0 @@
/* $Id$
*/
/*
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS OS/2 sub system
* PART: doscalls.dll
* FILE: openclose.cpp
* PURPOSE: Kernelservices for OS/2 apps
* CONTAINS: Open close write and handle related stuff.
* PROGRAMMER: Robert K. nonvolatil@yahoo.de
* REVISION HISTORY:
* 13-03-2002 Created
* 25-07-2002 Work to make it compile
*/
#define INCL_DOSFILEMGR
#define INCL_DOSERRORS
#include "ros2.h"
<<<<<<< openclose.cpp
APIRET STDCALL DosOpen(PSZ pszFileName, PHFILE pHf,
=======
APIRET STDCALL Dos32Open(PSZ pszFileName, PHFILE pHf,
>>>>>>> 1.4
PULONG pulAction, ULONG cbFile,
ULONG ulAttribute, ULONG fsOpenFlags,
ULONG fsOpenMode, PVOID reserved ) //ULONGPEAOP2 peaop2)
{
/* NTAPI
ZwCreateFile(
OUT PHANDLE FileHandle,
IN ACCESS_MASK DesiredAccess,
IN POBJECT_ATTRIBUTES ObjectAttributes,
OUT PIO_STATUS_BLOCK IoStatusBlock,
IN PLARGE_INTEGER AllocationSize OPTIONAL,
IN ULONG FileAttributes,
IN ULONG ShareAccess,
IN ULONG CreateDisposition,
IN ULONG CreateOptions,
IN PVOID EaBuffer OPTIONAL,
IN ULONG EaLength
);*/
/*
OBJECT_ATTRIBUTES ObjectAttributes;
IO_STATUS_BLOCK IoStatusBlock;
UNICODE_STRING NtPathU;
HANDLE FileHandle;
NTSTATUS Status;
ULONG Flags = 0;
switch (dwCreationDisposition)
{
case CREATE_NEW:
dwCreationDisposition = FILE_CREATE;
break;
case CREATE_ALWAYS:
dwCreationDisposition = FILE_OVERWRITE_IF;
break;
case OPEN_EXISTING:
dwCreationDisposition = FILE_OPEN;
break;
case OPEN_ALWAYS:
dwCreationDisposition = OPEN_ALWAYS;
break;
case TRUNCATE_EXISTING:
dwCreationDisposition = FILE_OVERWRITE;
}
DPRINT("CreateFileW(lpFileName %S)\n",lpFileName);
if (dwDesiredAccess & GENERIC_READ)
dwDesiredAccess |= FILE_GENERIC_READ;
if (dwDesiredAccess & GENERIC_WRITE)
dwDesiredAccess |= FILE_GENERIC_WRITE;
if (!(dwFlagsAndAttributes & FILE_FLAG_OVERLAPPED))
{
Flags |= FILE_SYNCHRONOUS_IO_ALERT;
}
if (!RtlDosPathNameToNtPathName_U ((LPWSTR)lpFileName,
&NtPathU,
NULL,
NULL))
return INVALID_HANDLE_VALUE;
DPRINT("NtPathU \'%S\'\n", NtPathU.Buffer);
ObjectAttributes.Length = sizeof(OBJECT_ATTRIBUTES);
ObjectAttributes.RootDirectory = NULL;
ObjectAttributes.ObjectName = &NtPathU;
ObjectAttributes.Attributes = OBJ_CASE_INSENSITIVE;
ObjectAttributes.SecurityDescriptor = NULL;
ObjectAttributes.SecurityQualityOfService = NULL;
Status = NtCreateFile (&FileHandle,
dwDesiredAccess,
&ObjectAttributes,
&IoStatusBlock,
NULL,
dwFlagsAndAttributes,
dwShareMode,
dwCreationDisposition,
Flags,
NULL,
0);
if (!NT_SUCCESS(Status))
{
SetLastErrorByStatus (Status);
return INVALID_HANDLE_VALUE;
}
return FileHandle;*/
return ERROR_CALL_NOT_IMPLEMENTED;
}
/* close a Handle. seems finished */
APIRET STDCALL DosClose(HFILE hFile)
{
NT::NTSTATUS nErrCode;
nErrCode = NT::ZwClose( (NT::HANDLE)hFile );
switch( nErrCode )
{
/*
case STATUS_SUCCESS:
return NO_ERROR;
case STATUS_INVALID_HANDLE:
return ERROR_INVALID_HANDLE;
case STATUS_HANDLE_NOT_CLOSABLE:
return ERROR_FILE_NOT_FOUND;
*/
}
return nErrCode;
}
APIRET STDCALL DosRead(HFILE hFile, PVOID pBuffer,
ULONG cbRead, PULONG pcbActual)
{
NT::NTSTATUS nErrCode;
NT::IO_STATUS_BLOCK isbStatus;
// read data from file
nErrCode = NT::ZwReadFile( (NT::HANDLE)hFile, NULL, NULL, NULL,
&isbStatus, pBuffer, cbRead,
NULL, NULL );
// contains the # bytes actually read.
*pcbActual = isbStatus.Information;
switch(nErrCode)
{
/*
case STATUS_INVALID_HANDLE:
return ERROR_INVALID_HANDLE;
// FIXME: complete this
*/
}
return NO_ERROR;
}
/* Generic write to a stream given by hFile */
APIRET STDCALL DosWrite(HFILE hFile, PVOID pBuffer,
ULONG cbWrite, PULONG pcbActual)
{
NT::NTSTATUS nErrCode;
NT::IO_STATUS_BLOCK StatusBlk;
nErrCode = NtWriteFile( (NT::HANDLE)hFile, NULL, NULL, NULL,
&StatusBlk, pBuffer, cbWrite, 0, NULL );
// FIXME *pcbActual = StatusBlk.Information;
// do an errorcode translation FIXME: correct
return ERROR_CALL_NOT_IMPLEMENTED;
switch(nErrCode)
{
/*
case STATUS_SUCCESS:
case STATUS_PENDING:
case STATUS_ACCESS_DENIED:
case STATUS_INVALID_HANDLE:
case STATUS_FILE_LOCK_CONFLICT:
return 0;
*/
}
return 0;
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,61 +0,0 @@
# $Id: makefile,v 1.7 2004/01/31 01:29:11 robertk Exp $
PATH_TO_TOP = ../../../reactos
PATH_TO_OS2_TOP = ../..
TARGET_TYPE = dynlink
#TARGET_DEFONLY = yes
TARGET_NAME = doscalls
TARGET_BASE = 0x68E00000
TARGET_CPPFLAGS =\
-Wall \
-I$(PATH_TO_OS2_TOP)/include \
-D__DOSCALLSDLL__
# removed CFLAGX
# -fno-builtin \
# -nostdinc \
# -nostdlib \
TARGET_ENTRY = _DllMain@12
TARGET_LFLAGS = -nostartfiles
TARGET_LIBS = doscalls.a
TARGET_SDKLIBS = ntdll.a
TARGET_GCCLIBS = stdc++
TARGET_OBJECTS = $(TARGET_NAME).o
MISC_OBJECTS = misc/doscalls.o misc/error.o
FILE_OBJECTS = file/openclose.o
RUN_OBJECTS = run/process.o
DEVICES_OBJECTS = devices/devices.o
OTHER_OBJECTS =
SYNC_OBJECTS =
TARGET_OBJECTS = $(FILE_OBJECTS) $(RUN_OBJECTS) $(DEVICES_OBJECTS) \
$(MISC_OBJECTS) $(OTHER_OBJECTS) $(SYNC_OBJECTS)
#TARGET_CLEAN = file/*.o vio/*.o sync/*.o mem/*.o \
# misc/*.o mou/*.o kbd/*.o run/*.o \
# doscalls.dll temp.exp
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -1,40 +0,0 @@
// TODO: HEader: To be pasted
// INCL_DOSMEMMGR || !INCL_NOCOMMON
#define INCL_DOSMEMMGR
#undefine INCL_NOCOMMON
#include <os2.h>
// TODO: Expain that this is for memory alloc/free funcs of Os2 api
// TODO: Implement functions and give them bodies
ULONG DosAllocMem (PPVOID pBaseAddress, ULONG ulObjectSize,
ULONG ulAllocationFlags);
ULONG DosAllocSharedMem (PPVOID pBaseAddress, PCSZ pszName,
ULONG ulObjectSize, ULONG ulAllocationFlags);
ULONG DosFreeMem (PVOID pBaseAddress);
ULONG DosGetNamedSharedMem (PPVOID pBaseAddress, PCSZ pszSharedMemName,
ULONG ulAttributeFlags);
ULONG DosGetSharedMem (CPVOID pBaseAddress, ULONG ulAttributeFlags);
ULONG DosGiveSharedMem (CPVOID pBaseAddress, PID idProcessId,
ULONG ulAttributeFlags);
ULONG DosQueryMem (CPVOID pBaseAddress, PULONG pulRegionSize,
PULONG pulAllocationFlags);
ULONG DosSetMem (CPVOID pBaseAddress, ULONG ulRegionSize,
ULONG ulAttributeFlags);
ULONG DosSubAllocMem (PVOID pOffset, PPVOID pBlockOffset, ULONG ulSize);
ULONG DosSubFreeMem (PVOID pOffset, PVOID pBlockOffset, ULONG ulSize);
ULONG DosSubSetMem (PVOID pOffset, ULONG ulFlags, ULONG ulSize);
ULONG DosSubUnsetMem (PVOID pOffset);
// TODO: Add file to makefile

View File

@@ -1,33 +0,0 @@
/* $Id$
*/
/*
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS OS/2 sub system
* FILE: dll/doscalls.c
* PURPOSE: Kernelservices for OS/2 apps
* PROGRAMMER: Robert K. nonvolatil@yahoo.de
* REVISION HISTORY:
* 13-03-2002 Created
*/
// here's only the NTDLL needet
#include <ddk/ntddk.h>
BOOL STDCALL DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
{
switch (ul_reason_for_call)
{
case 1://DLL_PROCESS_ATTACH:
case 2://DLL_THREAD_ATTACH:
case 3://DLL_THREAD_DETACH:
case 0://DLL_PROCESS_DETACH:
break;
}
return TRUE;
}

View File

@@ -1,165 +0,0 @@
/* $Id$
*/
/*
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS OS/2 sub system
* PART: doscalls.dll
* FILE: error.cpp
* CONTAINS: Error related CP-functions.
* PURPOSE: Kernelservices for OS/2 apps
* PROGRAMMER: Robert K. nonvolatil@yahoo.de
* REVISION HISTORY:
* 13-03-2002 Created
* 25-07-2002 Work to make it compile
*/
#define INCL_DOSPROCESS
#define INCL_DOSERRORS
#include "ros2.h"
// we need the extra definitions of this file
namespace NT {
#include <ddk/ntddbeep.h>
}
/*******************************************
DosBeep generates sound from the
speaker.
freq (ULONG) - input
Cycles per second (Hertz) in the range of 0x25 to
0x7FFF.
dur (ULONG) - input
The length of the sound in milliseconds.
ulrc (APIRET) - returns
Return Code.
DosBeep returns one of the following values:
0 NO_ERROR
395 ERROR_INVALID_FREQUENCY
*******************************************/
APIRET STDCALL DosBeep(ULONG freq, ULONG dur)
{
NT::BEEP_SET_PARAMETERS BeepSetParameters;
NT::HANDLE hBeep;
NT::IO_STATUS_BLOCK ComplStatus;
NT::UNICODE_STRING unistr;
NT::NTSTATUS stat;
NT::OBJECT_ATTRIBUTES oa = {sizeof oa, 0, &unistr, NT::OBJ_CASE_INSENSITIVE, 0, 0};
// init String still bevore use.
NT::RtlInitUnicodeString( &unistr, (NT::PWSTR)L"\\\\.\\Beep" );
if( freq<0x25 || freq>0x7FFF )
return ERROR_INVALID_FREQUENCY; //395; //
/* Set beep data */
BeepSetParameters.Frequency = freq;
BeepSetParameters.Duration = dur;
/* open the beep dirver */
stat = NT::ZwOpenFile( &hBeep,
FILE_READ_DATA | FILE_WRITE_DATA,
&oa,
&ComplStatus,
0, // no sharing
FILE_OPEN );
if ( stat<0 )
{
return ERROR_NOT_READY;
}
/* actually beep */
NT::ZwDeviceIoControlFile(hBeep, 0, // Event
0, // APC-routine
0, // UserAPCContext
&ComplStatus, IOCTL_BEEP_SET,
&BeepSetParameters,
sizeof(NT::BEEP_SET_PARAMETERS),
NULL,
0 );
NT::ZwClose(hBeep);
return NO_ERROR;
}
/******************************************
DosError disables or enables error
notification to end users.
error (ULONG) - input
Error and Exception pop-up flags.
The unused high-order bits are reserved, and must be zero. The following values can be specified
for this parameter. They can be combined using the "logical or" ( | ) operator.
FERR_DISABLEHARDERR (0x00000000)
Disable hard error pop-ups.
FERR_ENABLEHARDERR (0x00000001)
Enable hard error pop-ups.
FERR_ENABLEEXCEPTION (0x00000000)
Enable program exception and untrapped numeric-processor exception pop-ups.
FERR_DISABLEEXCEPTION (0x00000002)
Disable program exception and untrapped numeric-processor exception pop-ups.
ulrc (APIRET) - returns
Return Code.
DosError returns one of the following values:
0 NO_ERROR
87 ERROR_INVALID_PARAMETER
*******************************************/
APIRET DosError( ULONG error)
{
return ERROR_CALL_NOT_IMPLEMENTED;
}
/*******************************************
DosMove moves a file object to another
location, and changes its name.
pszOld (PSZ) - input
Address of the old path name of the file or
subdirectory to be moved.
pszNew (PSZ) - input
Address of the new path name of the file or
subdirectory.
ulrc (APIRET) - returns
Return Code.
DosMove returns the one of following values:
0 NO_ERROR
2 ERROR_FILE_NOT_FOUND
3 ERROR_PATH_NOT_FOUND
5 ERROR_ACCESS_DENIED
17 ERROR_NOT_SAME_DEVICE
26 ERROR_NOT_DOS_DISK
32 ERROR_SHARING_VIOLATION
36 ERROR_SHARING_BUFFER_EXCEEDED
87 ERROR_INVALID_PARAMETER
108 ERROR_DRIVE_LOCKED
206 ERROR_FILENAME_EXCED_RANGE
250 ERROR_CIRCULARITY_REQUESTED
251 ERROR_DIRECTORY_IN_CDS
*******************************************/
APIRET DosMove(PSZ pszOld, PSZ pszNew)
{
return ERROR_CALL_NOT_IMPLEMENTED;
}
/* EOF */

View File

@@ -1,58 +0,0 @@
/* $Id$
*/
/*
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS OS/2 sub system
* PART: doscalls.dll
* FILE: process.cpp
* CONTAINS: process and thread related CP-functions.
* PURPOSE: Kernelservices for OS/2 apps
* PROGRAMMER: Robert K. nonvolatil@yahoo.de
* REVISION HISTORY:
* 13-03-2002 Created
* 25-07-2002 Work to make it compile
*/
//#if defined (INCL_DOS)
#define INCL_DOSPROCESS
#define INCL_DOSERRORS
#include "ros2.h"
APIRET STDCALL DosSleep(ULONG msec)
{
NT::NTSTATUS stat;
NT::TIME Interv;
Interv.QuadPart= -(10000 * msec);
stat = NT::NtDelayExecution( TRUE, &Interv );
return 0;
}
/* $Id$ */
/* Terminates the current thread or the current Process.
Decission is made by action
FIXME: move this code to OS2.EXE */
VOID APIENTRY DosExit(ULONG action, ULONG result)
{
// decide what to do
if( action == EXIT_THREAD)
{
NT::NtTerminateThread( NULL, result );
}
else // EXIT_PROCESS
{
NT::NtTerminateProcess( NULL, result );
}
}
APIRET STDCALL DosCreateThread(PTID ptid, PFNTHREAD pfn,
ULONG param, ULONG flag, ULONG cbStack)
{
return ERROR_CALL_NOT_IMPLEMENTED;
}
/* EOF */

View File

@@ -1,14 +0,0 @@
all:
@echo To build "os2" there are two paths:
@echo ---
@echo 1. copy the os2 folder into the reactos\modules folder
@echo 2. link reactos/modules/os2 to os2
@echo UNIX
@echo cd $${ROS_SRC_ROOT}/reactos/modules
@echo ln -s $${ROS_SRC_ROOT}/os2 os2
@echo WINDOWS
@echo cd %%ROS_SRC_ROOT%%\reactos\modules
@echo junction os2 %%ROS_SRC_ROOT%%\os2
@echo ---
@echo Eventually you can run "make depends" in the %%ROS_SRC_ROOT%%\reactos
@echo directory to compile it.

View File

@@ -1,50 +0,0 @@
/* $Id$
*
* dllmain.c - OS/2 Enviroment Subsystem Server
*
* ReactOS Operating System
*
* --------------------------------------------------------------------
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This software 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
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING.LIB. If not, write
* to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
* MA 02139, USA.
*
* --------------------------------------------------------------------
*/
#include "os2srv.h"
#define NDEBUG
#include <debug.h>
/* DLL entry point */
HANDLE Os2SrvDllHandle = 0;
/* FUNCTIONS *****************************************************************/
BOOL STDCALL
DllMain(HANDLE hDll,
DWORD dwReason,
LPVOID lpReserved)
{
if (DLL_PROCESS_ATTACH == dwReason)
{
Os2SrvDllHandle = hDll;
}
return TRUE;
}
/* EOF */

View File

@@ -1,3 +0,0 @@
LIBRARY os2srv.dll
EXPORTS
ServerDllInitialization@8

View File

@@ -1,13 +0,0 @@
#ifndef _OS2SS_H_INCLUDED_
#define _OS2SS_H_INCLUDED_
/* PSDK/NDK Headers */
#include <stdio.h>
#include <windows.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
#include <csr/server.h>
#endif /* ndef _OS2SS_H_INCLUDED_ */

View File

@@ -1,4 +0,0 @@
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS-OS/2 Environment Subsystem Server\0"
#define REACTOS_STR_INTERNAL_NAME "os2srv\0"
#define REACTOS_STR_ORIGINAL_FILENAME "os2srv.dll\0"
#include <reactos/version.rc>

View File

@@ -1,11 +0,0 @@
<module name="os2srv" type="nativedll">
<importlibrary definition="os2srv.def" />
<include base="os2srv">.</include>
<define name="__USE_W32API" />
<define name="_DISABLE_TIDENTS" />
<library>ntdll</library>
<library>csrsrv</library>
<file>dllmain.c</file>
<file>server.c</file>
<file>os2srv.rc</file>
</module>

View File

@@ -1,84 +0,0 @@
/* $Id$
*
* server.c - OS/2 Enviroment Subsystem Server - Initialization
*
* ReactOS Operating System
*
* --------------------------------------------------------------------
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This software 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
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING.LIB. If not, write
* to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
* MA 02139, USA.
*
* --------------------------------------------------------------------
*/
#include "os2srv.h"
//#define NDEBUG
#include <debug.h>
HANDLE Os2ApiPort = NULL;
/**********************************************************************
* NAME PRIVATE
* Os2StaticServerThread/1
*/
VOID STDCALL Os2StaticServerThread (PVOID x)
{
NTSTATUS Status = STATUS_SUCCESS;
PPORT_MESSAGE Request = (PPORT_MESSAGE) x;
PPORT_MESSAGE Reply = NULL;
ULONG MessageType = 0;
DPRINT("VMSSRV: %s called\n", __FUNCTION__);
MessageType = Request->u2.s2.Type;
DPRINT("VMSSRV: %s received a message (Type=%d)\n",
__FUNCTION__, MessageType);
switch (MessageType)
{
default:
Reply = Request;
Status = NtReplyPort (Os2ApiPort, Reply);
break;
}
}
/*=====================================================================
* PUBLIC API
*===================================================================*/
NTSTATUS STDCALL ServerDllInitialization (ULONG ArgumentCount,
LPWSTR *Argument)
{
NTSTATUS Status = STATUS_SUCCESS;
DPRINT("VMSSRV: %s called\n", __FUNCTION__);
// Get the listening port from csrsrv.dll
Os2ApiPort = CsrQueryApiPort ();
if (NULL == Os2ApiPort)
{
return STATUS_UNSUCCESSFUL;
}
// Register our message dispatcher
Status = CsrAddStaticServerThread (Os2StaticServerThread);
if (NT_SUCCESS(Status))
{
//TODO: perform the real OS/2 server internal initialization here
}
return Status;
}
/* EOF */

Binary file not shown.

View File

@@ -1,15 +1,16 @@
ReactOS is available thanks to the work of:
Aleksey Bragin <aleksey@studiocerebral.com>
Alex Ionescu <ionucu@videotron.ca>
Aleksey Bragin <aleksey at reactos org>
Alex Ionescu <alex.ionescu@reactos.org>
Andrew Greenwood <lists@silverblade.co.uk>
Andrew Munger <waxdragon@gmail.com>
Arindam Das
Art Yerkes <ayerkes@speakeasy.net>
Boudewijn Dekker <ariadne@xs4all.nl>
Ariadne
Brandon Turner (turnerb7@msu.edu)
Brian Palmer <brianp@sginet.com>
Casper S. Hornstrup <chorns@users.sourceforge.net>
Christoph von Wittich (Christoph@ApiViewer.de)
Christoph von Wittich (christoph_vw@reactos.org)
David Welch <welch@cwcom.net>
Emanuele Aliberti <ea@iol.it>
Eric Kohl <ekohl@rz-online.de>
@@ -17,7 +18,7 @@ Eugene Ingerman <geneing@myrealbox.com>
Filip Navara <xnavara@volny.cz>
Frederik Leemans
Ge van Geldorp <ge@gse.nl>
Ged Murphy <gedmurphy@gmail.com>
Ged Murphy <gedmurphy@reactos.org>
Guido de Jong
Gunnar Andre' Dalsnes <hardon@online.no>
Hans Kremer
@@ -31,6 +32,7 @@ Jason Filby <jasonfilby@yahoo.com>
Jason Weiler
Jean Michault
Jim Noeth
Johannes Anderwald <johannes.anderwald@student.tugraz.at>
Jonathan Wilson <jonwil@tpgi.com.au>
Jurgen van Gael <jurgen.vangael@student.kuleuven.ac.be>
KJK::Hyperion <noog@libero.it>
@@ -44,6 +46,7 @@ Marty Dill <mdill@uvic.ca>
Matt Pyne
Mike Nordell ("tamlin")
Nathan Woods <npwoods@mess.org>
Pablo Borobia <pborobia@gmail.com>
Paolo Pantaleo <paolopan@freemail.it>
Phillip Susi <phreak@iag.net>
Rex Jolliff <rex@lvcablemodem.com>
@@ -54,6 +57,7 @@ Royce Mitchell III <royce3@ev1.net>
Saveliy Tretiakov <saveliyt@mail.ru>
Steven Edwards <steven_ed4153@yahoo.com>
Thomas Weidenmueller <w3seek@users.sourceforge.net>
Timo Kreuzer <timo.kreuzer@reactos.org>
Victor Kirhenshtein <sauros@iname.com>
Vizzini <vizzini@plasmic.com>

File diff suppressed because it is too large Load Diff

View File

@@ -11,7 +11,7 @@ ReactOS from http://www.reactos.org/.
To build ReactOS run 'make' (without the quotes) if you are building on Linux
or 'mingw32-make' if you are building on Windows (or ReactOS) from the top
directory.
directory. If you are using RosBE, follow on-screen instructions.
2.2 Building a bootable CD image

View File

@@ -38,7 +38,7 @@
# This can require several minutes to complete. If you only need to check
# dependencies for a single or few modules then you can use the
# module_depends targets instead. This target can also repair a damaged or
# missing makefile.auto if needed.
# missing makefile-{ROS_ARCH}.auto if needed.
#
# module_depends
# These targets do a dependency check of individual modules. Replace module
@@ -49,6 +49,10 @@
#
# Accepted environment variables:
#
# ROS_ARCH
# This variable specifies the name of the architecture to build ReactOS for.
# The variable defaults to i386.
#
# ROS_PREFIX
# This variable specifies the prefix of the MinGW installation. On Windows
# a prefix is usually not needed, but on linux it is usually "mingw32". If
@@ -61,13 +65,18 @@
# files are generated files that are needed to generate the final
# output files. Examples of intermediate files include *.o, *.a, and
# *.coff. N.B. Don't put a path separator at the end. The variable
# defaults to .\obj-i386.
# defaults to .\obj-{ROS_ARCH}.
#
# ROS_OUTPUT
# This variable controls where to put output files. Output files are
# generated files that makes up the result of the build process.
# Examples of output files include *.exe, *.dll, and *.sys. N.B. Don't
# put a path separator at the end. The variable defaults to .\output-i386.
# put a path separator at the end. The variable defaults to .\output-{ROS_ARCH}.
#
# ROS_CDOUTPUT
# This variable controls the name of the ReactOS directory on cdrom.
# The variable defaults to reactos.
# Warning: setting this value may lead to a not bootable/installable cdrom.
#
# ROS_TEMPORARY
# This variable controls where to put temporary files. Temporary files
@@ -80,7 +89,7 @@
# ROS_INSTALL
# This variable controls where to install output files to when using
# 'make install'. N.B. Don't put a path separator at the end. The variable
# defaults to .\reactos.
# defaults to .\{ROS_CDOUTPUT}.
#
# ROS_BUILDMAP
# This variable controls if map files are to be generated for executable
@@ -97,6 +106,12 @@
# output files) or no (to not build non-symbol-stripped versions of
# executable output files). The variable defaults to no.
#
# ROS_LEAN_AND_MEAN
# This variable controls if all binaries should be stripped out of useless
# data added by GCC/LD as well as of RSYM symbol data. Output binary size
# will go from 80 to 40MB, memory usage from 58 to 38MB and the install CD
# from 18 to 13MB. The variable defaults to no.
#
# ROS_RBUILDFLAGS
# Pass parameters to rbuild.
# -v Be verbose.
@@ -132,6 +147,12 @@ endif
.PHONY: world
.PHONY: universe
ifneq ($(ROS_ARCH),)
ARCH := $(ROS_ARCH)
else
ARCH := i386
endif
ifeq ($(ROS_AUTOMAKE),)
ROS_AUTOMAKE=makefile.auto
endif
@@ -146,11 +167,15 @@ ifeq ($(word 1,$(shell gcc -dumpmachine)),mingw32)
ifeq ($(findstring msys,$(shell sh --version 2>nul)),msys)
export OSTYPE = msys
HOST=mingw32-linux
HOST_CFLAGS+=-fshort-wchar
HOST_CPPFLAGS+=-fshort-wchar
else
HOST=mingw32-windows
endif
else
HOST=mingw32-linux
HOST_CFLAGS+=-fshort-wchar
HOST_CPPFLAGS+=-fshort-wchar
endif
endif
@@ -203,6 +228,7 @@ ifeq ($(HALFVERBOSEECHO),yes)
ECHO_REGTESTS=@echo $(QUOTE)[REGTESTS] $@$(QUOTE)
ECHO_TEST =@echo $(QUOTE)[TEST] $@$(QUOTE)
ECHO_GENDIB =@echo $(QUOTE)[GENDIB] $@$(QUOTE)
ECHO_STRIP =@echo $(QUOTE)[STRIP] $@$(QUOTE)
else
ECHO_CP =
ECHO_MKDIR =
@@ -231,103 +257,113 @@ else
ECHO_REGTESTS=
ECHO_TEST =
ECHO_GENDIB =
ECHO_STRIP =
endif
host_gcc = $(Q)gcc
host_gpp = $(Q)g++
# Set host compiler/linker
ifeq ($(HOST_CC),)
HOST_CC = gcc
endif
ifeq ($(HOST_CPP),)
HOST_CPP = g++
endif
host_gcc = $(Q)$(HOST_CC)
host_gpp = $(Q)$(HOST_CPP)
host_ld = $(Q)ld
host_ar = $(Q)ar
host_objcopy = $(Q)objcopy
# Set target compiler/linker
ifneq ($(ROS_PREFIX),)
PREFIX_ := $(ROS_PREFIX)-
else
ifeq ($(HOST),mingw32-linux)
PREFIX_ := mingw32-
else
PREFIX_ :=
endif
endif
ifeq ($(TARGET_CC),)
TARGET_CC = $(PREFIX_)gcc
endif
ifeq ($(TARGET_CPP),)
TARGET_CPP = $(PREFIX_)g++
endif
gcc = $(Q)$(TARGET_CC)
gpp = $(Q)$(TARGET_CPP)
ld = $(Q)$(PREFIX_)ld
nm = $(Q)$(PREFIX_)nm
objdump = $(Q)$(PREFIX_)objdump
ar = $(Q)$(PREFIX_)ar
objcopy = $(Q)$(PREFIX_)objcopy
dlltool = $(Q)$(PREFIX_)dlltool
strip = $(Q)$(PREFIX_)strip
windres = $(Q)$(PREFIX_)windres
# Set utilities
ifeq ($(OSTYPE),msys)
HOST=mingw32-linux
endif
ifeq ($(HOST),mingw32-linux)
export EXEPREFIX = ./
ifeq ($(OSTYPE),msys)
export EXEPOSTFIX = .exe
else
export EXEPOSTFIX =
endif
ifeq ($(OSTYPE),msys)
export EXEPOSTFIX = .exe
else
export EXEPOSTFIX =
endif
export SEP = /
mkdir = -$(Q)mkdir -p
gcc = $(Q)$(PREFIX)-gcc
gpp = $(Q)$(PREFIX)-g++
ld = $(Q)$(PREFIX)-ld
nm = $(Q)$(PREFIX)-nm
objdump = $(Q)$(PREFIX)-objdump
ar = $(Q)$(PREFIX)-ar
objcopy = $(Q)$(PREFIX)-objcopy
dlltool = $(Q)$(PREFIX)-dlltool
windres = $(Q)$(PREFIX)-windres
rm = $(Q)rm -f
cp = $(Q)cp
NUL = /dev/null
else # mingw32-windows
ifeq ($(OSTYPE),msys)
HOST=mingw32-linux
export EXEPREFIX = ./
export EXEPOSTFIX = .exe
export SEP = /
mkdir = -$(Q)mkdir -p
gcc = $(Q)gcc
gpp = $(Q)g++
ld = $(Q)ld
nm = $(Q)nm
objdump = $(Q)objdump
ar = $(Q)ar
objcopy = $(Q)objcopy
dlltool = $(Q)dlltool
windres = $(Q)windres
rm = $(Q)rm -f
cp = $(Q)cp
NUL = /dev/null
else
export EXEPREFIX =
export EXEPOSTFIX = .exe
ROS_EMPTY =
export SEP = \$(ROS_EMPTY)
mkdir = -$(Q)mkdir
gcc = $(Q)gcc
gpp = $(Q)g++
ld = $(Q)ld
nm = $(Q)nm
objdump = $(Q)objdump
ar = $(Q)ar
objcopy = $(Q)objcopy
dlltool = $(Q)dlltool
windres = $(Q)windres
rm = $(Q)del /f /q
cp = $(Q)copy /y
NUL = NUL
endif
endif
ifneq ($(ROS_INTERMEDIATE),)
INTERMEDIATE := $(ROS_INTERMEDIATE)
else
INTERMEDIATE := obj-i386
INTERMEDIATE := obj-$(ARCH)
endif
INTERMEDIATE_ := $(INTERMEDIATE)$(SEP)
ifneq ($(ROS_OUTPUT),)
OUTPUT := $(ROS_OUTPUT)
else
OUTPUT := output-i386
OUTPUT := output-$(ARCH)
endif
OUTPUT_ := $(OUTPUT)$(SEP)
ifneq ($(ROS_CDOUTPUT),)
CDOUTPUT := $(ROS_CDOUTPUT)
else
CDOUTPUT := reactos
endif
CDOUTPUT_ := $(CDOUTPUT)$(SEP)
ifneq ($(ROS_TEMPORARY),)
TEMPORARY := $(ROS_TEMPORARY)
else
TEMPORARY :=
TEMPORARY := .
endif
TEMPORARY_ := $(TEMPORARY)$(SEP)
ifneq ($(ROS_INSTALL),)
INSTALL := $(ROS_INSTALL)
else
INSTALL := reactos
INSTALL := $(CDOUTPUT)
endif
INSTALL_ := $(INSTALL)$(SEP)
RBUILD_FLAGS := -rReactOS-$(ARCH).rbuild -DARCH=$(ARCH)
$(INTERMEDIATE):
${mkdir} $@
@@ -339,11 +375,12 @@ endif
NTOSKRNL_MC = ntoskrnl$(SEP)ntoskrnl.mc
KERNEL32_MC = dll$(SEP)win32$(SEP)kernel32$(SEP)kernel32.mc
BUILDNO_H = include$(SEP)reactos$(SEP)buildno.h
BUGCODES_H = include$(SEP)reactos$(SEP)bugcodes.h
BUGCODES_RC = ntoskrnl$(SEP)bugcodes.rc
ERRCODES_H = include$(SEP)reactos$(SEP)errcodes.h
ERRCODES_RC = dll$(SEP)win32$(SEP)kernel32$(SEP)errcodes.rc
BUILDNO_H = $(INTERMEDIATE_)include$(SEP)reactos$(SEP)buildno.h
BUGCODES_H = $(INTERMEDIATE_)include$(SEP)reactos$(SEP)bugcodes.h
BUGCODES_RC = $(INTERMEDIATE_)ntoskrnl$(SEP)bugcodes.rc
ERRCODES_H = $(INTERMEDIATE_)include$(SEP)reactos$(SEP)errcodes.h
ERRCODES_RC = $(INTERMEDIATE_)dll$(SEP)win32$(SEP)kernel32$(SEP)errcodes.rc
include lib/lib.mak
include tools/tools.mak
@@ -358,12 +395,16 @@ PREAUTO := \
$(BUGCODES_RC) \
$(ERRCODES_H) \
$(ERRCODES_RC) \
$(NCI_SERVICE_FILES) \
$(GENDIB_DIB_FILES)
$(GENDIB_DIB_FILES) \
$(NCI_SERVICE_FILES)
ifeq ($(ARCH),powerpc)
PREAUTO += $(OFW_INTERFACE_SERVICE_FILES) $(PPCMMU_TARGETS)
endif
$(ROS_AUTOMAKE): $(RBUILD_TARGET) $(PREAUTO) $(XMLBUILDFILES)
$(ROS_AUTOMAKE): $(RBUILD_TARGET) $(XMLBUILDFILES) | $(PREAUTO)
${mkdir} $(OUTPUT_)media$(SEP)inf 2>$(NUL)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) mingw
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) mingw
world: all bootcd livecd
@@ -387,117 +428,160 @@ universe:
ROS_OUTPUT=output-$(ARCH)-r \
world
sysregtest:
$(OUTPUT_)tools$(SEP)sysreg$(SEP)sysreg$(EXEPOSTFIX) tools$(SEP)sysreg$(SEP)txtmode.cfg
.PHONY: cb
cb: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) cb
.PHONY: msbuild
msbuild: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) msbuild
.PHONY: msbuild_clean
msbuild_clean: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c msbuild
.PHONY: depmap
depmap: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) depmap
.PHONY: vreport
vreport:$(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) vreport
.PHONY: msvc
msvc: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) msvc
$(BUGCODES_H) $(BUGCODES_RC): $(WMC_TARGET) $(NTOSKRNL_MC)
${mkdir} $(INTERMEDIATE_)include$(SEP)reactos 2>$(NUL)
${mkdir} $(INTERMEDIATE_)ntoskrnl 2>$(NUL)
$(ECHO_WMC)
$(Q)$(WMC_TARGET) -i -H $(BUGCODES_H) -o $(BUGCODES_RC) $(NTOSKRNL_MC)
$(ERRCODES_H) $(ERRCODES_RC): $(WMC_TARGET) $(KERNEL32_MC)
${mkdir} $(INTERMEDIATE_)include$(SEP)reactos 2>$(NUL)
${mkdir} $(INTERMEDIATE_)dll$(SEP)win32$(SEP)kernel32 2>$(NUL)
$(ECHO_WMC)
$(Q)$(WMC_TARGET) -i -U -H $(ERRCODES_H) -o $(ERRCODES_RC) $(KERNEL32_MC)
.PHONY: msvc6
msvc6: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs6.00 msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs6.00 -voversionconfiguration msvc
.PHONY: msvc7
msvc7: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs7.00 msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -voversionconfiguration msvc
.PHONY: msvc71
msvc71: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs7.10 msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -voversionconfiguration msvc
.PHONY: msvc8
msvc8: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs8.00 msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -voversionconfiguration msvc
.PHONY: msvc9
msvc9: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs9.00 -voversionconfiguration msvc
.PHONY: msvc6_clean
msvc6_clean: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -c -vs6.00 msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs6.00 -voversionconfiguration msvc
.PHONY: msvc7_clean
msvc7_clean: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -c -vs7.00 msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.00 -voversionconfiguration msvc
.PHONY: msvc71_clean
msvc71_clean: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -c -vs7.10 msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.10 -voversionconfiguration msvc
.PHONY: msvc8_clean
msvc8_clean: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -c -vs8.00 msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs8.00 -voversionconfiguration msvc
.PHONY: msvc9_clean
msvc9_clean: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs9.00 -voversionconfiguration msvc
.PHONY: msvc_clean
msvc_clean: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -c msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c msvc
.PHONY: msvc_clean_all
msvc_clean_all: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -c -vs6.00 msvc
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -c -vs7.00 msvc
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -c -vs7.10 msvc
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -c -vs8.10 msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs6.00 -voversionconfiguration msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.00 -voversionconfiguration msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs7.10 -voversionconfiguration msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -c -vs8.10 -voversionconfiguration msvc
.PHONY: msvc7_install_debug
msvc7_install_debug: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs7.00 -vcdebug msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -vcdebug -voversionconfiguration msvc
.PHONY: msvc7_install_release
msvc7_install_release: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs7.00 -vcrelease msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -vcrelease -voversionconfiguration msvc
.PHONY: msvc7_install_speed
msvc7_install_speed: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs7.00 -vcspeed msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.00 -vcspeed -voversionconfiguration msvc
.PHONY: msvc71_install_debug
msvc71_install_debug: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs7.10 -vcdebug msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -vcdebug -voversionconfiguration msvc
.PHONY: msvc71_install_release
msvc71_install_release: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs7.10 -vcrelease msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -vcrelease -voversionconfiguration msvc
.PHONY: msvc71_install_speed
msvc71_install_speed: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs7.10 -vcspeed msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs7.10 -vcspeed -voversionconfiguration msvc
.PHONY: msvc8_install_debug
msvc8_install_debug: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs8.00 -vcdebug msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -vcdebug -voversionconfiguration msvc
.PHONY: msvc8_install_release
msvc8_install_release: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs8.00 -vcrelease msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -vcrelease -voversionconfiguration msvc
.PHONY: msvc8_install_speed
msvc8_install_speed: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(ROS_RBUILDFLAGS) -vs8.00 -vcspeed msvc
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) -vs8.00 -vcspeed -voversionconfiguration msvc
.PHONY: makefile_auto_clean
makefile_auto_clean:
@@ -507,6 +591,6 @@ makefile_auto_clean:
clean: makefile_auto_clean
.PHONY: depends
depends:
@-$(rm) makefile.auto
@$(MAKE) $(filter-out depends, $(MAKECMDGOALS))
depends: $(RBUILD_TARGET)
$(ECHO_RBUILD)
$(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) mingw

View File

@@ -1,6 +1,6 @@
========================
ReactOS Version 0.2.x
Updated June 23rd, 2004
ReactOS Version 0.3.x
Updated Dec 16, 2006
========================
1. What is ReactOS?
@@ -8,10 +8,11 @@ Updated June 23rd, 2004
ReactOS is an Open Source effort to develop a quality operating system
that is compatible with Windows NT applications and drivers.
The ReactOS project, although currently focused on Windows NT 4.0
compatibility, is always keeping an eye toward compatibility with
future Windows NT releases, that is, Windows 2000 (NT 5.0) and
Windows XP (NT 5.1).
The ReactOS project, although currently focused on Windows XP/2003
drivers compatibility, is always keeping an eye toward compatibility with
older version of Windows NT family ( NT 4.0, 2000 (NT 5.0)) and new
Windows NT releases (Vista, etc). Applications (Win32 API) compatibility
focus is Windows XP.
More information is available at http://www.reactos.org/.
@@ -21,8 +22,8 @@ See the INSTALL file for more details.
3. More information
See the doc subdirectory for some sparse notes
See the media\doc subdirectory for some sparse notes.
4. Who is responsible
See the CREDITS file
See the CREDITS file.

View File

@@ -0,0 +1,69 @@
<?xml version="1.0"?>
<!DOCTYPE group SYSTEM "tools/rbuild/project.dtd">
<group xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="baseaddress.rbuild" />
<define name="__REACTOS__" />
<if property="MP" value="1">
<define name="CONFIG_SMP" value="1" />
</if>
<if property="DBG" value="1">
<define name="DBG" value="1" />
<define name="_SEH_ENABLE_TRACE" />
<property name="DBG_OR_KDBG" value="true" />
</if>
<if property="KDBG" value="1">
<define name="KDBG" value="1" />
<property name="DBG_OR_KDBG" value="true" />
</if>
<include>.</include>
<include>include</include>
<include root="intermediate">include</include>
<include>include/psdk</include>
<include root="intermediate">include/psdk</include>
<include>include/dxsdk</include>
<include>include/crt</include>
<include>include/crt/mingw32</include>
<include>include/ddk</include>
<include>include/GL</include>
<include>include/ndk</include>
<include>include/reactos</include>
<include root="intermediate">include/reactos</include>
<include>include/reactos/libs</include>
<directory name="base">
<xi:include href="base/base.rbuild" />
</directory>
<directory name="boot">
<xi:include href="boot/boot.rbuild" />
</directory>
<directory name="dll">
<xi:include href="dll/dll.rbuild" />
</directory>
<directory name="drivers">
<xi:include href="drivers/drivers.rbuild" />
</directory>
<directory name="hal">
<xi:include href="hal/hal.rbuild" />
</directory>
<directory name="include">
<xi:include href="include/directory.rbuild" />
</directory>
<directory name="lib">
<xi:include href="lib/lib.rbuild" />
</directory>
<directory name="media">
<xi:include href="media/media.rbuild" />
</directory>
<directory name="modules">
<xi:include href="modules/directory.rbuild" />
</directory>
<directory name="ntoskrnl">
<xi:include href="ntoskrnl/ntoskrnl.rbuild" />
</directory>
<directory name="subsystems">
<xi:include href="subsystems/subsystems.rbuild" />
</directory>
</group>

View File

@@ -0,0 +1,47 @@
<?xml version="1.0"?>
<!DOCTYPE project SYSTEM "tools/rbuild/project.dtd">
<project name="ReactOS" makefile="makefile.auto" xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="config.rbuild">
<xi:fallback>
<xi:include href="config.template.rbuild" />
</xi:fallback>
</xi:include>
<xi:include href="ReactOS-generic.rbuild" />
<define name="_M_IX86" />
<define name="_X86_" />
<define name="__i386__" />
<property name="NTOSKRNL_SHARED" value="-Wl,--file-alignment,0x1000 -Wl,--section-alignment,0x1000 -nostartfiles -shared"/>
<if property="GDB" value="0">
<if property="OPTIMIZE" value="1">
<compilerflag>-Os</compilerflag>
<compilerflag>-ftracer</compilerflag>
<compilerflag>-momit-leaf-frame-pointer</compilerflag>
<compilerflag>-mpreferred-stack-boundary=2</compilerflag>
</if>
<if property="OPTIMIZE" value="2">
<compilerflag>-Os</compilerflag>
<compilerflag>-mpreferred-stack-boundary=2</compilerflag>
</if>
<if property="OPTIMIZE" value="3">
<compilerflag>-O1</compilerflag>
<compilerflag>-mpreferred-stack-boundary=2</compilerflag>
</if>
<if property="OPTIMIZE" value="4">
<compilerflag>-O2</compilerflag>
<compilerflag>-mpreferred-stack-boundary=2</compilerflag>
</if>
<if property="OPTIMIZE" value="5">
<compilerflag>-O3</compilerflag>
<compilerflag>-mpreferred-stack-boundary=2</compilerflag>
</if>
</if>
<compilerflag>-Wno-strict-aliasing</compilerflag>
<compilerflag>-Wpointer-arith</compilerflag>
<linkerflag>-enable-stdcall-fixup</linkerflag>
</project>

View File

@@ -1,94 +1,38 @@
<?xml version="1.0"?>
<!DOCTYPE project SYSTEM "tools/rbuild/project.dtd">
<project name="ReactOS" makefile="makefile.ppc" xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="config-ppc.rbuild">
<xi:fallback>
<xi:include href="config-ppc.template.rbuild" />
</xi:fallback>
</xi:include>
<xi:include href="config-ppc.rbuild">
<xi:fallback>
<xi:include href="config-ppc.template.rbuild" />
</xi:fallback>
</xi:include>
<xi:include href="baseaddress.rbuild" />
<xi:include href="ReactOS-generic.rbuild" />
<property name="BOOTPROG_PREPARE" value="ppc-le2be" />
<property name="BOOTPROG_FLATFORMAT" value="-O elf32-powerpc -B powerpc:common" />
<property name="BOOTPROG_LINKFORMAT" value="-melf32ppc --no-omagic -Ttext 0xe00000 -Tdata 0xe10000" />
<property name="BOOTPROG_COPYFORMAT" value="--only-section=.text --only-section=.data --only-section=.bss -O aixcoff-rs6000" />
<property name="OFWLDR_LINKFORMAT" value="-L$(INTERMEDIATE)/lib/ppcmmu -lppcmmu_code -nostdlib -nostartfiles -lgcc -Wl,-e,__start -Wl,-Ttext,0xe00000 -N"/>
<property name="NTOSKRNL_SHARED" value="-Wl,--file-alignment,0x1000 -Wl,--section-alignment,0x1000 -nostartfiles"/>
<define name="_M_PPC" />
<define name="_PPC_" />
<define name="__PowerPC__" />
<define name="_REACTOS_" />
<define name="__MINGW_IMPORT" empty="true" />
<define name="stdcall" empty="true" />
<define name="__stdcall__" empty="true" />
<define name="fastcall" empty="true" />
<define name="cdecl" empty="true" />
<define name="__cdecl__" empty="true" />
<define name="dllimport" empty="true" />
<compilerflag>-v</compilerflag>
<if property="MP" value="1">
<define name="CONFIG_SMP" value="1" />
</if>
<if property="DBG" value="1">
<define name="DBG" value="1" />
<property name="DBG_OR_KDBG" value="true" />
</if>
<if property="DBG" value="0">
<compilerflag>-Os</compilerflag>
<compilerflag>-Wno-strict-aliasing</compilerflag>
</if>
<if property="KDBG" value="1">
<define name="KDBG" value="1" />
<property name="DBG_OR_KDBG" value="true" />
</if>
<compilerflag>-Wpointer-arith</compilerflag>
<include>.</include>
<include>include</include>
<include>include/reactos</include>
<include>include/libs</include>
<include>include/drivers</include>
<include>include/subsys</include>
<include>include/ndk</include>
<include>include</include>
<include>include/crt</include>
<include>include/ddk</include>
<directory name="base">
<xi:include href="base/base.rbuild" />
</directory>
<directory name="boot">
<xi:include href="boot/boot.rbuild" />
</directory>
<directory name="dll">
<xi:include href="dll/dll.rbuild" />
</directory>
<directory name="drivers">
<xi:include href="drivers/drivers.rbuild" />
</directory>
<directory name="hal">
<xi:include href="hal/hal.rbuild" />
</directory>
<directory name="include">
<xi:include href="include/directory.rbuild" />
</directory>
<directory name="lib">
<xi:include href="lib/lib.rbuild" />
</directory>
<directory name="media">
<xi:include href="media/media.rbuild" />
</directory>
<directory name="modules">
<xi:include href="modules/directory.rbuild" />
</directory>
<directory name="ntoskrnl">
<xi:include href="ntoskrnl/ntoskrnl.rbuild" />
</directory>
<directory name="regtests">
<xi:include href="regtests/directory.rbuild" />
</directory>
<directory name="subsystems">
<xi:include href="subsystems/subsystems.rbuild" />
</directory>
<define name="_M_PPC" />
<define name="_PPC_" />
<define name="__PowerPC__" />
<define name="stdcall" empty="true" />
<define name="__stdcall__" empty="true" />
<define name="fastcall" empty="true" />
<define name="cdecl" empty="true" />
<define name="__cdecl__" empty="true" />
<define name="dllimport" empty="true" />
<define name="WORDS_BIGENDIAN" empty="true" />
<define name="__MSVCRT__" empty="true" />
<define name="__NO_CTYPE_INLINES" />
<define name="__DECLSPEC_SUPPORTED" />
<define name="__MINGW_IMPORT">extern</define>
<define name="_CRTIMP" empty="true" />
<define name="'__declspec(x)'" empty="true" />
<compilerflag>-fshort-wchar</compilerflag>
<compilerflag>-fsigned-char</compilerflag>
<compilerflag>-mfull-toc</compilerflag>
<compilerflag>-meabi</compilerflag>
<compilerflag>-O2</compilerflag>
<compilerflag>-Wno-strict-aliasing</compilerflag>
</project>

View File

@@ -1,80 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE project SYSTEM "tools/rbuild/project.dtd">
<project name="ReactOS" makefile="makefile.auto" xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="config.rbuild">
<xi:fallback>
<xi:include href="config.template.rbuild" />
</xi:fallback>
</xi:include>
<xi:include href="baseaddress.rbuild" />
<define name="_M_IX86" />
<define name="_X86_" />
<define name="__i386__" />
<define name="_REACTOS_" />
<if property="MP" value="1">
<define name="CONFIG_SMP" value="1" />
</if>
<if property="DBG" value="1">
<define name="DBG" value="1" />
<property name="DBG_OR_KDBG" value="true" />
</if>
<if property="KDBG" value="1">
<define name="KDBG" value="1" />
<property name="DBG_OR_KDBG" value="true" />
</if>
<compilerflag>-Os</compilerflag>
<compilerflag>-Wno-strict-aliasing</compilerflag>
<compilerflag>-ftracer</compilerflag>
<compilerflag>-momit-leaf-frame-pointer</compilerflag>
<compilerflag>-mpreferred-stack-boundary=2</compilerflag>
<compilerflag>-Wpointer-arith</compilerflag>
<include>.</include>
<include>include</include>
<include>include/crt</include>
<include>include/ddk</include>
<include>include/GL</include>
<include>include/ndk</include>
<include>include/reactos</include>
<include>include/reactos/libs</include>
<directory name="base">
<xi:include href="base/base.rbuild" />
</directory>
<directory name="boot">
<xi:include href="boot/boot.rbuild" />
</directory>
<directory name="dll">
<xi:include href="dll/dll.rbuild" />
</directory>
<directory name="drivers">
<xi:include href="drivers/drivers.rbuild" />
</directory>
<directory name="hal">
<xi:include href="hal/hal.rbuild" />
</directory>
<directory name="include">
<xi:include href="include/directory.rbuild" />
</directory>
<directory name="lib">
<xi:include href="lib/lib.rbuild" />
</directory>
<directory name="media">
<xi:include href="media/media.rbuild" />
</directory>
<directory name="modules">
<xi:include href="modules/directory.rbuild" />
</directory>
<directory name="ntoskrnl">
<xi:include href="ntoskrnl/ntoskrnl.rbuild" />
</directory>
<directory name="regtests">
<xi:include href="regtests/directory.rbuild" />
</directory>
<directory name="subsystems">
<xi:include href="subsystems/subsystems.rbuild" />
</directory>
</project>

View File

@@ -3,27 +3,27 @@
; COMPONENT_NAME - Name of the component. Eg. kernel32.dll.
; PATH_TO_COMPONENT_SOURCES - Relative path to sources (relative to
; where rgenstat is run from).
advapi32.dll reactos/lib/advapi32
crtdll.dll reactos/lib/crtdll
gdi32.dll reactos/lib/gdi32
gdiplus.dll reactos/lib/gdiplus
iphlpapi.dll reactos/lib/iphlpapi
kernel32.dll reactos/lib/kernel32
lz32.dll reactos/lib/lzexpand
msvcrt.dll reactos/lib/msvcrt
rpcrt4.dll reactos/lib/rpcrt4
secur32.dll reactos/lib/secur32
snmpapi.dll reactos/lib/snmpapi
user32.dll reactos/lib/user32
version.dll reactos/lib/version
winspool.dll reactos/lib/winspool
ws2_32.dll reactos/lib/ws2_32
wsock32.dll reactos/lib/wsock32
advapi32.dll reactos/dll/win32/advapi32
crtdll.dll reactos/dll/win32/crtdll
gdi32.dll reactos/dll/win32/gdi32
gdiplus.dll reactos/dll/win32/gdiplus
iphlpapi.dll reactos/dll/win32/iphlpapi
kernel32.dll reactos/dll/win32/kernel32
lz32.dll reactos/dll/win32/lzexpand
msvcrt.dll reactos/dll/win32/msvcrt
rpcrt4.dll reactos/dll/win32/rpcrt4
secur32.dll reactos/dll/win32/secur32
snmpapi.dll reactos/dll/win32/snmpapi
user32.dll reactos/dll/win32/user32
version.dll reactos/dll/win32/version
winspool.dll reactos/dll/win32/winspool
ws2_32.dll reactos/dll/win32/ws2_32
wsock32.dll reactos/dll/win32/wsock32
videoprt.dll reactos/drivers/video/videoprt
ndis.sys reactos/drivers/net/ndis
tdi.sys reactos/drivers/net/tdi
ndis.sys reactos/drivers/network/ndis
tdi.sys reactos/drivers/network/tdi
class2.sys reactos/drivers/storage/class2
scsiport.sys reactos/drivers/storage/scsiport
ntoskrnl.exe reactos/ntoskrnl
ntoskrnl.exe reactos/lib/rtl
win32k.sys reactos/subsys/win32k
win32k.sys reactos/subsystems/win32/win32k

View File

@@ -1,33 +1,39 @@
<?xml version="1.0"?>
<!DOCTYPE project SYSTEM "tools/rbuild/project.dtd">
<group>
<!DOCTYPE group SYSTEM "../../tools/rbuild/project.dtd">
<group xmlns:xi="http://www.w3.org/2001/XInclude">
<directory name="cacls">
<xi:include href="cacls/cacls.rbuild" />
</directory>
<directory name="calc">
<xi:include href="calc/calc.rbuild" />
</directory>
<directory name="devmgr">
<xi:include href="devmgr/devmgr.rbuild" />
<directory name="charmap">
<xi:include href="charmap/charmap.rbuild" />
</directory>
<directory name="cmdutils">
<xi:include href="cmdutils/cmdutils.rbuild" />
</directory>
<directory name="control">
<xi:include href="control/control.rbuild" />
</directory>
<directory name="games">
<xi:include href="games/games.rbuild" />
</directory>
<directory name="getfirefox">
<xi:include href="getfirefox/getfirefox.rbuild" />
<directory name="hh">
<xi:include href="hh/hh.rbuild" />
</directory>
<directory name="hostname">
<xi:include href="hostname/hostname.rbuild" />
</directory>
<directory name="ibrowser">
<xi:include href="ibrowser/ibrowser.rbuild" />
</directory>
<directory name="imagesoft">
<xi:include href="imagesoft/imagesoft.rbuild" />
<directory name="logoff">
<xi:include href="logoff/logoff.rbuild" />
</directory>
<directory name="msconfig">
<xi:include href="msconfig/msconfig.rbuild" />
</directory>
<directory name="mscutils">
<xi:include href="mscutils/directory.rbuild" />
</directory>
<directory name="network">
<xi:include href="network/network.rbuild" />
</directory>
@@ -37,31 +43,25 @@
<directory name="regedit">
<xi:include href="regedit/regedit.rbuild" />
</directory>
<directory name="reporterror">
<xi:include href="reporterror/reporterror.rbuild" />
</directory>
<directory name="sc">
<xi:include href="sc/sc.rbuild" />
</directory>
<directory name="servman">
<xi:include href="servman/servman.rbuild" />
<directory name="screensavers">
<xi:include href="screensavers/screensavers.rbuild" />
</directory>
<directory name="shutdown">
<xi:include href="shutdown/shutdown.rbuild" />
</directory>
<directory name="sndvol32">
<xi:include href="sndvol32/sndvol32.rbuild" />
</directory>
<directory name="taskmgr">
<xi:include href="taskmgr/taskmgr.rbuild" />
</directory>
<directory name="winefile">
<xi:include href="winefile/winefile.rbuild" />
<directory name="winhelp">
<xi:include href="winhelp/winhelp.rbuild" />
</directory>
<directory name="wordpad">
<xi:include href="wordpad/wordpad.rbuild" />
</directory>
<directory name="control">
<xi:include href="control/control.rbuild" />
</directory>
<directory name="utils">
<xi:include href="utils/utils.rbuild" />
</directory>
</group>

View File

@@ -1,74 +0,0 @@
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
STRINGTABLE DISCARDABLE
{
IDS_HELP, "Displays or modifies access control lists (ACLs) of files\n\n\
CACLS filename [/T] [/E] [/C] [/G user:perm [...]] [/R user [...]]\n\
[/P user:perm [...]] [/D user [...]]\n\
filename Displays ACLs.\n\
/T Changes ACLs of specified files in\n\
the current directory and all subdirectories.\n\
/E Edit ACL instead of replacing it.\n\
/C Continue on access denied errors.\n\
/G user:perm Grant specified user access rights.\n\
Perm can be: R Read\n\
W Write\n\
C Change (write)\n\
F Full control\n\
/R user Revoke specified user's access rights (only valid with /E).\n\
/P user:perm Replace specified user's access rights.\n\
Perm can be: N None\n\
R Read\n\
W Write\n\
C Change (write)\n\
F Full control\n\
/D user Deny specified user access.\n\
Wildcards can be used to specify more that one file in a command.\n\
You can specify more than one user in a command.\n\n\
Abbreviations:\n\
CI - Container Inherit.\n\
The ACE will be inherited by directories.\n\
OI - Object Inherit.\n\
The ACE will be inherited by files.\n\
IO - Inherit Only.\n\
The ACE does not apply to the current file/directory.\n"
IDS_ABBR_CI, "(CI)"
IDS_ABBR_OI, "(OI)"
IDS_ABBR_IO, "(IO)"
IDS_ABBR_FULL, "F"
IDS_ABBR_READ, "R"
IDS_ABBR_WRITE, "W"
IDS_ABBR_CHANGE, "C"
IDS_ABBR_NONE, "N"
IDS_ALLOW, ""
IDS_DENY, "(DENY)"
IDS_SPECIAL_ACCESS, "(special access:)"
IDS_GENERIC_READ, "GENERIC_READ"
IDS_GENERIC_WRITE, "GENERIC_WRITE"
IDS_GENERIC_EXECUTE, "GENERIC_EXECUTE"
IDS_GENERIC_ALL, "GENERIC_ALL"
IDS_FILE_GENERIC_EXECUTE, "FILE_GENERIC_EXECUTE"
IDS_FILE_GENERIC_READ, "FILE_GENERIC_READ"
IDS_FILE_GENERIC_WRITE, "FILE_GENERIC_WRITE"
IDS_FILE_READ_DATA, "FILE_READ_DATA"
IDS_FILE_WRITE_DATA, "FILE_WRITE_DATA"
IDS_FILE_APPEND_DATA, "FILE_APPEND_DATA"
IDS_FILE_READ_EA, "FILE_READ_EA"
IDS_FILE_WRITE_EA, "FILE_WRITE_EA"
IDS_FILE_EXECUTE, "FILE_EXECUTE"
IDS_FILE_DELETE_CHILD, "FILE_DELETE_CHILD"
IDS_FILE_READ_ATTRIBUTES, "FILE_READ_ATTRIBUTES"
IDS_FILE_WRITE_ATTRIBUTES, "FILE_WRITE_ATTRIBUTES"
IDS_MAXIMUM_ALLOWED, "MAXIMUM_ALLOWED"
IDS_ACCESS_SYSTEM_SECURITY, "ACCESS_SYSTEM_SECURITY"
IDS_SPECIFIC_RIGHTS_ALL, "SPECIFIC_RIGHTS_ALL"
IDS_STANDARD_RIGHTS_REQUIRED, "STANDARD_RIGHTS_REQUIRED"
IDS_SYNCHRONIZE, "SYNCHRONIZE"
IDS_WRITE_OWNER, "WRITE_OWNER"
IDS_WRITE_DAC, "WRITE_DAC"
IDS_READ_CONTROL, "READ_CONTROL"
IDS_DELETE, "DELETE"
IDS_STANDARD_RIGHTS_ALL, "STANDARD_RIGHTS_ALL"
}

View File

@@ -507,18 +507,8 @@ PrintSpecialAccess:
}
#ifdef _UNICODE
int __cdecl main(void)
#else
int __cdecl _main (int argc, char *argv[])
#endif
int __cdecl _tmain(int argc, const TCHAR *argv[])
{
#ifdef _UNICODE
PWCHAR *argv;
int argc = 0;
argv = CommandLineToArgvW(GetCommandLineW(), &argc);
#endif
if (argc < 2)
{
PrintHelp();

View File

@@ -1,14 +1,16 @@
<module name="cacls" type="win32cui" installbase="system32" installname="cacls.exe" usewrc="false">
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
<module name="cacls" type="win32cui" installbase="system32" installname="cacls.exe" unicode="true">
<include base="cacls">.</include>
<define name="__USE_W32API" />
<define name="UNICODE" />
<define name="_UNICODE" />
<define name="_WIN32_IE">0x0500</define>
<define name="_WIN32_WINNT">0x0600</define>
<define name="WINVER">0x0600</define>
<library>kernel32</library>
<library>advapi32</library>
<library>ntdll</library>
<library>user32</library>
<library>shell32</library>
<file>cacls.c</file>
<file>cacls.rc</file>
<pch>precomp.h</pch>

View File

@@ -6,7 +6,5 @@
#define REACTOS_STR_ORIGINAL_FILENAME "cacls.exe\0"
#include <reactos/version.rc>
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#include "En.rc"
#include "rsrc.rc"

View File

@@ -0,0 +1,74 @@
LANGUAGE LANG_BULGARIAN, SUBLANG_DEFAULT
STRINGTABLE DISCARDABLE
{
IDS_HELP, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (ACL <20><><EFBFBD> <20><><EFBFBD>) <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\n\
CACLS <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD><5F><EFBFBD> [/T] [/E] [/C] [/G <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:<3A><><EFBFBD><EFBFBD><EFBFBD> [...]] [/R <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [...]]\n\
[/P <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:<3A><><EFBFBD><EFBFBD><EFBFBD> [...]] [/D <20><><EFBFBD> [...]]\n\
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD><5F><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD>.\n\
/T <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>\n\
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. \n\
/E <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/C <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/G <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:<3A><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><>: R <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
W <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
C <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)\n\
F <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>\n\
/R <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Revoke specified user's access rights (only valid with /E).\n\
/P <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:<3A><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><>: N <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
R <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
W <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
C <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)\n\
F <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> \n\
/D <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (* <20> ?) <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>..\n\n\
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:\n\
CI <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
ACE <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
OI <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>).\n\
ACE <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
IO - Inherit Only.\n\
<20><><EFBFBD><EFBFBD> <20><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ACE <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/ <20><><EFBFBD><EFBFBD><EFBFBD>.\n"
IDS_ABBR_CI, "(CI)"
IDS_ABBR_OI, "(OI)"
IDS_ABBR_IO, "(IO)"
IDS_ABBR_FULL, "F"
IDS_ABBR_READ, "R"
IDS_ABBR_WRITE, "W"
IDS_ABBR_CHANGE, "C"
IDS_ABBR_NONE, "N"
IDS_ALLOW, ""
IDS_DENY, "(DENY)"
IDS_SPECIAL_ACCESS, "(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>:)"
IDS_GENERIC_READ, "GENERIC_READ"
IDS_GENERIC_WRITE, "GENERIC_WRITE"
IDS_GENERIC_EXECUTE, "GENERIC_EXECUTE"
IDS_GENERIC_ALL, "GENERIC_ALL"
IDS_FILE_GENERIC_EXECUTE, "FILE_GENERIC_EXECUTE"
IDS_FILE_GENERIC_READ, "FILE_GENERIC_READ"
IDS_FILE_GENERIC_WRITE, "FILE_GENERIC_WRITE"
IDS_FILE_READ_DATA, "FILE_READ_DATA"
IDS_FILE_WRITE_DATA, "FILE_WRITE_DATA"
IDS_FILE_APPEND_DATA, "FILE_APPEND_DATA"
IDS_FILE_READ_EA, "FILE_READ_EA"
IDS_FILE_WRITE_EA, "FILE_WRITE_EA"
IDS_FILE_EXECUTE, "FILE_EXECUTE"
IDS_FILE_DELETE_CHILD, "FILE_DELETE_CHILD"
IDS_FILE_READ_ATTRIBUTES, "FILE_READ_ATTRIBUTES"
IDS_FILE_WRITE_ATTRIBUTES, "FILE_WRITE_ATTRIBUTES"
IDS_MAXIMUM_ALLOWED, "MAXIMUM_ALLOWED"
IDS_ACCESS_SYSTEM_SECURITY, "ACCESS_SYSTEM_SECURITY"
IDS_SPECIFIC_RIGHTS_ALL, "SPECIFIC_RIGHTS_ALL"
IDS_STANDARD_RIGHTS_REQUIRED, "STANDARD_RIGHTS_REQUIRED"
IDS_SYNCHRONIZE, "SYNCHRONIZE"
IDS_WRITE_OWNER, "WRITE_OWNER"
IDS_WRITE_DAC, "WRITE_DAC"
IDS_READ_CONTROL, "READ_CONTROL"
IDS_DELETE, "DELETE"
IDS_STANDARD_RIGHTS_ALL, "STANDARD_RIGHTS_ALL"
}

View File

@@ -0,0 +1,74 @@
LANGUAGE LANG_CATALAN, SUBLANG_DEFAULT
STRINGTABLE DISCARDABLE
{
IDS_HELP, "Mostra o modifica la llista de control d'acc<63>s (ACLs) dels fitxers\n\n\
CACLS fitxer [/T] [/E] [/C] [/G user:perm [...]] [/R usuari [...]]\n\
[/P user:perm [...]] [/D usuari [...]]\n\
fitxer Mostra ACLs.\n\
/T Canvia el ACLs dels fitxers especificats al\n\
directori actual i tots els seus subdirectoris.\n\
/E Edita ACL en comptes de substituir-lo.\n\
/C Continua en cas d'error d'acc<63>s.\n\
/G user:perm Assegura els drets d'acc<63>s especificats per al usuari.\n\
perm pot ser: R Lectura\n\
W Escriptura\n\
C Modificaci<63> (Escriptura)\n\
F Control total\n\
/R usuari Revoca els drets d'acc<63>s especificats per al usuari(nom<6F>s v<>lid amb /E).\n\
/P user:perm Canvia els drets d'acc<63>s especificats per al usuari.\n\
perm pot ser: N Cap\n\
R Lectura\n\
W Escriptura\n\
C Modificaci<63> (Escriptura)\n\
F Control total\n\
/D usuari Denega els drets d'acc<63>s especificats per al usuari.\n\
Es possible utilitzar comodins per especificar m<>s d'un fitxer per comanda.\n\
Podeu especificar m<>s d'un usuari per comanda.\n\n\
Abreviacions:\n\
CI - Container heredat.\n\
ACE s'heredar<61> per directoris.\n\
OI - Objecte heredat.\n\
ACE s'heredar<61> per fitxers.\n\
IO - Nom<6F>s heredat.\n\
ACE no s'aplicar<61> al directori/fitxer actual.\n"
IDS_ABBR_CI, "(CI)"
IDS_ABBR_OI, "(OI)"
IDS_ABBR_IO, "(IO)"
IDS_ABBR_FULL, "F"
IDS_ABBR_READ, "R"
IDS_ABBR_WRITE, "W"
IDS_ABBR_CHANGE, "C"
IDS_ABBR_NONE, "N"
IDS_ALLOW, ""
IDS_DENY, "(DENEGAT)"
IDS_SPECIAL_ACCESS, "(acc<63>s especial:)"
IDS_GENERIC_READ, "GENERIC_READ"
IDS_GENERIC_WRITE, "GENERIC_WRITE"
IDS_GENERIC_EXECUTE, "GENERIC_EXECUTE"
IDS_GENERIC_ALL, "GENERIC_ALL"
IDS_FILE_GENERIC_EXECUTE, "FILE_GENERIC_EXECUTE"
IDS_FILE_GENERIC_READ, "FILE_GENERIC_READ"
IDS_FILE_GENERIC_WRITE, "FILE_GENERIC_WRITE"
IDS_FILE_READ_DATA, "FILE_READ_DATA"
IDS_FILE_WRITE_DATA, "FILE_WRITE_DATA"
IDS_FILE_APPEND_DATA, "FILE_APPEND_DATA"
IDS_FILE_READ_EA, "FILE_READ_EA"
IDS_FILE_WRITE_EA, "FILE_WRITE_EA"
IDS_FILE_EXECUTE, "FILE_EXECUTE"
IDS_FILE_DELETE_CHILD, "FILE_DELETE_CHILD"
IDS_FILE_READ_ATTRIBUTES, "FILE_READ_ATTRIBUTES"
IDS_FILE_WRITE_ATTRIBUTES, "FILE_WRITE_ATTRIBUTES"
IDS_MAXIMUM_ALLOWED, "MAXIMUM_ALLOWED"
IDS_ACCESS_SYSTEM_SECURITY, "ACCESS_SYSTEM_SECURITY"
IDS_SPECIFIC_RIGHTS_ALL, "SPECIFIC_RIGHTS_ALL"
IDS_STANDARD_RIGHTS_REQUIRED, "STANDARD_RIGHTS_REQUIRED"
IDS_SYNCHRONIZE, "SYNCHRONIZE"
IDS_WRITE_OWNER, "WRITE_OWNER"
IDS_WRITE_DAC, "WRITE_DAC"
IDS_READ_CONTROL, "READ_CONTROL"
IDS_DELETE, "DELETE"
IDS_STANDARD_RIGHTS_ALL, "STANDARD_RIGHTS_ALL"
}

View File

@@ -0,0 +1,79 @@
/*
* German language file by Daniel Reimer <EmuandCo> 2006-06-15
*/
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
STRINGTABLE DISCARDABLE
{
IDS_HELP, "<22>ndert Datei-ACLs (Access Control List) oder zeigt sie an.\n\n\
CACLS Dateiname [/T] [/E] [/C] [/G Benutzer:Zugriff] [/R Benutzer [...]]\n\
[/P Benutzer:Zugriff [...]] [/D Benutzer [...]]\n\
Dateiname ACLs f<>r angegebene Datei anzeigen.\n\
/T ACLs der angegebenen Datei im aktuellen Verzeichnis\n\
und allen Unterverzeichnissen <20>ndern.\n\
/E ACL bearbeiten anstatt sie zu ersetzen.\n\
/C <20>ndern der ACLs bei Zugriffsverletzung fortsetzen.\n\
/G Benutzer:Zugriff Angegebene Zugriffsarten zulassen.\n\
Zugriff kann sein: R Lesen\n\
W Schreiben\n\
C <20>ndern (Schreiben)\n\
F Vollzugriff\n\
/R Benutzer Zugriffsrechte des Benutzers aufheben (g<>ltig mit /E).\n\
/P Benutzer:Zugriff Zugriffsrechte des Benutzers ersetzen.\n\
Zugriff kann sein: N Kein\n\
R Lesen\n\
W Schreiben\n\
C <20>ndern (Schreiben)\n\
F Vollzugriff\n\
/D Benutzer Zugriff f<>r Benutzer verweigern.\n\
Platzhalterzeichen (Wildcards) werden f<>r Dateiname unterst<73>tzt.\n\
Mehrere Benutzer k<>nnen in einem Befehl angegeben werden.\n\n\
Abk<EFBFBD>rzungen:\n\
CI - Containervererbung.\n\
Der ACE-Eintrag wird von Verzeichnissen geerbt.\n\
OI - Objektvererbung.\n\
Der ACE-Eintrag wird von Dateien geerbt.\n\
IO - Nur vererben.\n\
Der ACE-Eintrag bezieht sich nicht auf\n\
die aktuelle Datei/das aktuelle Verzeichnis.\n"
IDS_ABBR_CI, "(CI)"
IDS_ABBR_OI, "(OI)"
IDS_ABBR_IO, "(IO)"
IDS_ABBR_FULL, "F"
IDS_ABBR_READ, "R"
IDS_ABBR_WRITE, "W"
IDS_ABBR_CHANGE, "C"
IDS_ABBR_NONE, "N"
IDS_ALLOW, ""
IDS_DENY, "(DENY)"
IDS_SPECIAL_ACCESS, "(special access:)"
IDS_GENERIC_READ, "GENERIC_READ"
IDS_GENERIC_WRITE, "GENERIC_WRITE"
IDS_GENERIC_EXECUTE, "GENERIC_EXECUTE"
IDS_GENERIC_ALL, "GENERIC_ALL"
IDS_FILE_GENERIC_EXECUTE, "FILE_GENERIC_EXECUTE"
IDS_FILE_GENERIC_READ, "FILE_GENERIC_READ"
IDS_FILE_GENERIC_WRITE, "FILE_GENERIC_WRITE"
IDS_FILE_READ_DATA, "FILE_READ_DATA"
IDS_FILE_WRITE_DATA, "FILE_WRITE_DATA"
IDS_FILE_APPEND_DATA, "FILE_APPEND_DATA"
IDS_FILE_READ_EA, "FILE_READ_EA"
IDS_FILE_WRITE_EA, "FILE_WRITE_EA"
IDS_FILE_EXECUTE, "FILE_EXECUTE"
IDS_FILE_DELETE_CHILD, "FILE_DELETE_CHILD"
IDS_FILE_READ_ATTRIBUTES, "FILE_READ_ATTRIBUTES"
IDS_FILE_WRITE_ATTRIBUTES, "FILE_WRITE_ATTRIBUTES"
IDS_MAXIMUM_ALLOWED, "MAXIMUM_ALLOWED"
IDS_ACCESS_SYSTEM_SECURITY, "ACCESS_SYSTEM_SECURITY"
IDS_SPECIFIC_RIGHTS_ALL, "SPECIFIC_RIGHTS_ALL"
IDS_STANDARD_RIGHTS_REQUIRED, "STANDARD_RIGHTS_REQUIRED"
IDS_SYNCHRONIZE, "SYNCHRONIZE"
IDS_WRITE_OWNER, "WRITE_OWNER"
IDS_WRITE_DAC, "WRITE_DAC"
IDS_READ_CONTROL, "READ_CONTROL"
IDS_DELETE, "DELETE"
IDS_STANDARD_RIGHTS_ALL, "STANDARD_RIGHTS_ALL"
}

View File

@@ -0,0 +1,74 @@
LANGUAGE LANG_GREEK, SUBLANG_DEFAULT
STRINGTABLE DISCARDABLE
{
IDS_HELP, "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> access control lists (ACLs) <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\n\
CACLS <20><><EFBFBD><EFBFBD><EFBFBD>_<EFBFBD><5F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [/T] [/E] [/C] [/G <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [...]] [/R <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [...]]\n\
[/P <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [...]] [/D <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [...]]\n\
filename <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> ACLs.\n\
/T <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> ACLs <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>\n\
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/E <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> ACL <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.n\
/C <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
/G <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
<20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>: R <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
W <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
C <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)\n\
F <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
/R user Revoke specified user's access rights (only valid with /E).\n\
/P <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
<20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>: N <20><><EFBFBD><EFBFBD><EFBFBD>\n\
R <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
W <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
C <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)\n\
F <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\
/D user <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
<EFBFBD><EFBFBD> Wildcards <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n\n\
Abbreviations:\n\
CI - Container Inherit.\n\
The ACE will be inherited by directories.\n\
OI - Object Inherit.\n\
The ACE will be inherited by files.\n\
IO - Inherit Only.\n\
<20><> ACE <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\n"
IDS_ABBR_CI, "(CI)"
IDS_ABBR_OI, "(OI)"
IDS_ABBR_IO, "(IO)"
IDS_ABBR_FULL, "F"
IDS_ABBR_READ, "R"
IDS_ABBR_WRITE, "W"
IDS_ABBR_CHANGE, "C"
IDS_ABBR_NONE, "N"
IDS_ALLOW, ""
IDS_DENY, "(DENY)"
IDS_SPECIAL_ACCESS, "(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>:)"
IDS_GENERIC_READ, "GENERIC_READ"
IDS_GENERIC_WRITE, "GENERIC_WRITE"
IDS_GENERIC_EXECUTE, "GENERIC_EXECUTE"
IDS_GENERIC_ALL, "GENERIC_ALL"
IDS_FILE_GENERIC_EXECUTE, "FILE_GENERIC_EXECUTE"
IDS_FILE_GENERIC_READ, "FILE_GENERIC_READ"
IDS_FILE_GENERIC_WRITE, "FILE_GENERIC_WRITE"
IDS_FILE_READ_DATA, "FILE_READ_DATA"
IDS_FILE_WRITE_DATA, "FILE_WRITE_DATA"
IDS_FILE_APPEND_DATA, "FILE_APPEND_DATA"
IDS_FILE_READ_EA, "FILE_READ_EA"
IDS_FILE_WRITE_EA, "FILE_WRITE_EA"
IDS_FILE_EXECUTE, "FILE_EXECUTE"
IDS_FILE_DELETE_CHILD, "FILE_DELETE_CHILD"
IDS_FILE_READ_ATTRIBUTES, "FILE_READ_ATTRIBUTES"
IDS_FILE_WRITE_ATTRIBUTES, "FILE_WRITE_ATTRIBUTES"
IDS_MAXIMUM_ALLOWED, "MAXIMUM_ALLOWED"
IDS_ACCESS_SYSTEM_SECURITY, "ACCESS_SYSTEM_SECURITY"
IDS_SPECIFIC_RIGHTS_ALL, "SPECIFIC_RIGHTS_ALL"
IDS_STANDARD_RIGHTS_REQUIRED, "STANDARD_RIGHTS_REQUIRED"
IDS_SYNCHRONIZE, "SYNCHRONIZE"
IDS_WRITE_OWNER, "WRITE_OWNER"
IDS_WRITE_DAC, "WRITE_DAC"
IDS_READ_CONTROL, "READ_CONTROL"
IDS_DELETE, "DELETE"
IDS_STANDARD_RIGHTS_ALL, "STANDARD_RIGHTS_ALL"
}

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