Commit graph

54495 commits

Author SHA1 Message Date
Pierre Schweitzer ec8b12d5ba [FRAMEDYN]
Fix a typo (and so a bug), spotted by MSVC. I don't thank you G++...
Attempt to fix build with MSVC

svn path=/trunk/; revision=59941
2013-09-01 14:54:33 +00:00
Pierre Schweitzer f570a3d1ff [FRAMEDYN]
Partplement framedyn.dll
So far, only CHString class is implemented in it

Regarding CHString class implementation:
It has been implemented matching Windows behavior and bugs
It might not be really nice at some points but this ensures
compatibility with applications relying on it.
As a side note: this might explain why this API was abandonned after w2k3...

Regarding the DLL itself:
Its implementation into ReactOS allows systeminfo.exe application from w2k3 to
load and start initialization into ReactOS. It stops working later on with some
IDispatch error.
The DLL cannot be used to build any application against framedyn.dll with our "default" BE (read with G++).
Only MSVC mangled name are exported so far (as on Windows ;-)) thanks to aliasing. This is why there are two spec files.
This makes G++ unable to link with it though. This is the reason why there are no framedyn_apitests so far.
Furthermore, the DLL only have exports for x86 and none for x64 for the moment.

Any help is welcome for having exports for x64 target and to be able to have aliasing for G++ (from its mangled names
to MSVC ones).

svn path=/trunk/; revision=59940
2013-09-01 14:48:09 +00:00
Pierre Schweitzer dd724bbd3c [PDSK]
Add two headers: chstring.h and provexce.h
They are used for framedyn.dll stuff, for instance

So far, the CHString class is not fully populated. It is only
populated with exported stuff from framedyn.dll

svn path=/trunk/; revision=59939
2013-09-01 14:30:28 +00:00
Amine Khaldi af5ce0ae6b [RSYM]
* Don't overwrite the MZ header when there are no long section names.
* Correct an error including 4 more bytes than needed in the coff strings.
* Brought to you by Arty.

svn path=/trunk/; revision=59938
2013-09-01 13:23:54 +00:00
Hermès Bélusca-Maïto 762f3e87da [APPWIZ]
- Convert some language resource files into UTF-8 without BOM (aka. ANSI as UTF-8 with Notepad++).
- Improve some French translation.
- Fix Czech translation, thanks Radek :)
(Addendum to r59924 and r59925)

svn path=/trunk/; revision=59937
2013-09-01 12:41:58 +00:00
Amine Khaldi a064f36a82 [RSYM]
* Fix long section names and correct some wrong use of ULONG_PTR. Brought to you by Arty.

svn path=/trunk/; revision=59936
2013-09-01 11:17:36 +00:00
Amine Khaldi f09fc6e177 [DBGHELP]
* Speedup dbghelp mainly for the x64 builds. Brought to you by Arty. Should be sent upstream.

svn path=/trunk/; revision=59935
2013-09-01 11:11:52 +00:00
Amine Khaldi 23c4a2e25f [NPFS/KERNEL32]
* Back out r59915 for a moment so we can use Patchbot.

svn path=/trunk/; revision=59934
2013-09-01 10:16:29 +00:00
Hermès Bélusca-Maïto e28e6935a6 [CMAKE]: Fix a comment typo only.
[NTDLL-KERNEL32-BASESRV-WINSRV]: Specify by hand (hackz for MSVC builds) that the dll will be a "Console DLL" (ie. not a native one nor a Gui DLL).
[BASESRV]: Explicitely set the DLL entry point to DllMain (unusued).
[WINSRV]: Explicitely set the DLL entry point to DllMain (unusued) AND REMOVE usage of msvcrt (that might pose problems when testing with Windows msvcrt etc...) and use libcntpr instead.

Thanks to Amine for having helped me in solving a problem with delayed imports.

svn path=/trunk/; revision=59933
2013-09-01 00:11:56 +00:00
Alex Ionescu b3ae8180d3 [KERNEL32]: Add a DPRINT1 when failing GetCPInfo in kernel32, to highlight the fact our MSVCRT is sending us bogus codepage/locale IDs.
svn path=/trunk/; revision=59930
2013-08-31 19:24:54 +00:00
Hermès Bélusca-Maïto 17e4a83527 [RTL]
Implement RtlDefaultNpAcl, needed for giving a default security to named pipes. Makes Win2k3 kernel32 happy when one creates named pipes for SCM and so on.
Getting the SID of the caller is done as described in http://www.osronline.com/article.cfm?article=50 in "Extracting the SID from the Token".

svn path=/trunk/; revision=59928
2013-08-31 17:34:37 +00:00
Giannis Adamopoulos bbb71f8ed5 [browseui]
- Improve the stub for CAddressEditBox::SetOwner to make the rest of browseui happy for now
- In CShellBrowser::Initialize browse to the pidl that is passed as parameter instead of always browsing to the desktop folder
- Fix a bug in atl class CContainedWindowT::DefWindowProc that was calling the window proc with an invalid hwnd.

svn path=/trunk/; revision=59927
2013-08-31 16:55:49 +00:00
Aleksey Bragin 0b93a97e44 [NTOS/FSRTL]
- FsRtlCopyWrite: Fix typos in local var names and comments.
- FsRtlCopyWrite: Fix copypasta in a call to FastIoCheckIfPossible: wait flag shouldn't be always TRUE in this case (it's determined by Wait parameter).
- FsRtlCopyRead: Fix updating of CurrentByteOffset.
- FsRtlAcquireFileForCcFlushEx / FsRtlReleaseFileForCcFlush: Handle the case when FastIO callback may fail and FsRtl still needs to act as if FastIO callback would be missing at all.
- Implement FsRtlAcquireFileForModWriteEx / FsRtlReleaseFileForModWrite thanks to Rajeev Nagar's book.
- Now all necessary FsRtl locking/unlocking mechanisms exist.

svn path=/trunk/; revision=59926
2013-08-31 16:36:34 +00:00
Amine Khaldi 22d855eeb2 [APPWIZ]
* Addendum to r59924. Radek please review.

svn path=/trunk/; revision=59925
2013-08-31 16:28:01 +00:00
Amine Khaldi e8ed94dd9d [APPWIZ]
* Remove some Wine specific text and introduce a tiny update to the German translation. By zehnvor.
CORE-7221 #resolve #comment Committed in r59924. Danke.

svn path=/trunk/; revision=59924
2013-08-31 16:14:12 +00:00
Amine Khaldi a1bafaeaaf [NTOSKRNL]
* Fix several print specifiers.
* Add some missing variables to debug prints.

svn path=/trunk/; revision=59923
2013-08-31 16:02:13 +00:00
Giannis Adamopoulos 9e15df6c61 really fix build
svn path=/trunk/; revision=59922
2013-08-31 15:05:49 +00:00
Hermès Bélusca-Maïto 795ebaa8b8 [FREELDR-KDCOM-KDBG]
Fix debugging issues.

svn path=/trunk/; revision=59921
2013-08-31 15:01:50 +00:00
Hermès Bélusca-Maïto aff36c042d Code formatting only
svn path=/trunk/; revision=59920
2013-08-31 15:00:17 +00:00
Giannis Adamopoulos 999fd92e73 [shell32]
- Remove a line that shouldn't have been committed

svn path=/trunk/; revision=59919
2013-08-31 14:59:45 +00:00
Giannis Adamopoulos d102ea906c [shell32]
- Halfplement CDesktopBrowser::BrowseObject. Now when the user tries to open a folder from the desktop we will try to create a new explorer window.
- ps: this affects only explorer_new and the rest of the shell is still not working well enough to actually show the new window

svn path=/trunk/; revision=59918
2013-08-31 14:53:01 +00:00
Amine Khaldi 86602e29cf [SAL]
* Forward __callback to __inner_callback now that wincrypt.h has the proper inclusion.

svn path=/trunk/; revision=59917
2013-08-31 11:07:09 +00:00
Alex Ionescu 0a79700b0d [CONSRV]: One last fix to CONSRV_API_CONNECTINFO. We now have compatibility with Windows and kernel32 is much much happier.
[CONSRV]: Implement Case11 of BaseSrvNlsCreateSection, but we seem to be getting bogus locale IDs.

svn path=/trunk/; revision=59916
2013-08-31 08:30:00 +00:00
Alex Ionescu aa796920ad CORE-2198 #resolve #time 15m #comment [NPFS/KERNEL32]: Always use the right semantics.
svn path=/trunk/; revision=59915
2013-08-31 07:29:26 +00:00
Alex Ionescu 675f4b0d71 [NPFS]: Add support for a few more volume information classes, and disable APCs like an FS should.
svn path=/trunk/; revision=59914
2013-08-31 07:07:43 +00:00
Alex Ionescu 084a679a6b [NTDLL]: Use NT-style calculation in CsrClientCallServer. In special cases, structures can be padded at the end, causing the size of the structure - the size of last field, not to be equal to the offset of the last field. Doing math the NT way will, in some cases (if the CSR union is not 8-byte aligned), cause the TotalLength to be 4 bytes bigger than really needed.
[CSRSRV]: Increase the padding to 39*4 bytes, instead of 35, to match Windows.

svn path=/trunk/; revision=59913
2013-08-31 02:19:36 +00:00
Alex Ionescu 0b45497394 [CPORT]: We shouldn't be DPRINT1'ing from the library designed to DPRINT...
svn path=/trunk/; revision=59912
2013-08-31 02:16:04 +00:00
Sylvain Petreolle 7c164e2686 configure: remove bashism.
svn path=/trunk/; revision=59910
2013-08-31 00:05:29 +00:00
Alex Ionescu 2e11e06309 [NTOSKRNL]: Forcefully set IMAGE_DLLCHARACTERISTICS_NO_ISOLATION on all images. See comment for more information. Windows' kernel32.dll now beautifully loads to the ReactOS winlogon screen (which nobody should ever see -- it's being shown because RtlDefaultNpAcl is not implemented in ReactOS, and thus all named pipes die (SCM, etc...)
svn path=/trunk/; revision=59909
2013-08-30 19:54:44 +00:00
Alex Ionescu 8ee47fd2d9 [HIVESYS]: Set Session Manager\AppCompatibility, DisableAppCompat = TRUE in ReactOS, which avoids Kernel32 from doing app compat stuff.
svn path=/trunk/; revision=59908
2013-08-30 19:37:03 +00:00
Hermès Bélusca-Maïto ef6d5c266e [CONSRV]: Stubplement the remaining APIs needed for Windows kernel32.
svn path=/trunk/; revision=59907
2013-08-30 17:53:45 +00:00
Alex Ionescu a30fba55c1 Enable the C_ASSERT that validates our CONSRV structure matches the expected size.
svn path=/trunk/; revision=59906
2013-08-30 17:32:10 +00:00
Alex Ionescu 2e04ff140b [NTOSKRNL]: 903 was not supposed to have this change.
svn path=/trunk/; revision=59905
2013-08-30 17:28:45 +00:00
Alex Ionescu d9289eb230 [CONSRV]: Reorganize/rename/add some fields to CONSRV_API_CONNECTINFO, partially based on an MSDN page, and a little bit of RE, which makes it closer to the Windows structure. No behavioral change should have happened as a result of these changes.
svn path=/trunk/; revision=59904
2013-08-30 17:14:41 +00:00
Alex Ionescu 0da3197b71 [RTL]: Make RtlUnhandledExceptionFilter show a stack trace, so at least we can see where the exception came from.
svn path=/trunk/; revision=59903
2013-08-30 15:37:10 +00:00
Amine Khaldi 3d4f9a8c5a [KERNEL32]
* Fix yet another buggy DPRINT.

svn path=/trunk/; revision=59902
2013-08-30 14:16:47 +00:00
Hermès Bélusca-Maïto 4f73c42009 [CONSRV]: Add some DPRINT1 information.
svn path=/trunk/; revision=59901
2013-08-30 11:36:22 +00:00
Hermès Bélusca-Maïto 27d8aa3aa9 [USERSRV]: Stubplement all the APIs needed for Windows kernel32.
svn path=/trunk/; revision=59900
2013-08-30 11:33:25 +00:00
Amine Khaldi d4931ab70e [GDI32]
* Fix some print specifiers.

svn path=/trunk/; revision=59899
2013-08-30 10:51:12 +00:00
Amine Khaldi 8e8e30befe [USER32]
* Fix some print specifiers.

svn path=/trunk/; revision=59898
2013-08-30 10:25:16 +00:00
Amine Khaldi baeeaa9cf5 [PSDK]
* Annotate sspi.h.

svn path=/trunk/; revision=59897
2013-08-30 10:17:22 +00:00
Amine Khaldi fbf42a5901 [CMAKE]
* Set the subsystem version as 5.01 for recent MSVC toolchains.

svn path=/trunk/; revision=59896
2013-08-30 10:09:56 +00:00
Alex Ionescu 7fc15017b3 [BASESRV]: Fix critical bug in BaseSrvNlsGetUserInfo.
svn path=/trunk/; revision=59895
2013-08-30 06:53:07 +00:00
Alex Ionescu 34ae4aafae [NTDLL/RTL]: Stub and export all the routines that Kernel32 needs.
svn path=/trunk/; revision=59894
2013-08-30 06:34:16 +00:00
Hermès Bélusca-Maïto 3b0c3f4ee4 [NTOS]
buzdelabuz2 !! We've unveiled who you are !!
Fix header information.

svn path=/trunk/; revision=59893
2013-08-29 22:24:46 +00:00
Aleksey Bragin a484270b02 [NTOS]
- Implement two types of FsRtl locking functions: exclusive lock and Cc flushing lock, along with their releasing counterparts, without the filter callbacks support. These functions are unused in trunk now but would be needed by proper Cc/Mm/IFS in future.

svn path=/trunk/; revision=59889
2013-08-29 22:07:24 +00:00
Hermès Bélusca-Maïto 7286005d2c [BASESRV]
Fix the "fix" of r59887, i.e. add a stub for the unknown api.

svn path=/trunk/; revision=59888
2013-08-29 21:37:22 +00:00
Hermès Bélusca-Maïto def8f5f442 Here too ;)
svn path=/trunk/; revision=59887
2013-08-29 21:29:33 +00:00
Alex Ionescu 59e1a8cedf [BASESRV]: forgot to update the name table.
svn path=/trunk/; revision=59886
2013-08-29 21:27:18 +00:00
Hermès Bélusca-Maïto abf866eeec Partially revert r59884 because of an enum name collision (which broke build).
svn path=/trunk/; revision=59885
2013-08-29 21:23:46 +00:00