Hi,
There's one point I don't see any reference to: you keep talking about
DLLs & such. How would you handle API in these DLLs that require system
calls from kernel? Does that mean our kernel has to evolve to something
higher than 5.2?
Another (minor) point: you talk about parent DLLs that would host most
of the code, with other DLLs that would have the rest of the API missing
(as it would be done for kernel32 nowadays). How do you handle APIs that
would have slightly changed behavior between two Windows releases?
Duplicate code? Ignore previous behavior? That can also be seen: how do
you handle API that get extended over the time, supporting more and more
flags? One who can do the most, can do less?
Cheers,
On 07/03/2015 13:44, Timo Kreuzer wrote:
> Hi,
>> Here's the promised suggestion regarding how we handle versioning
> problems in reactos. It has some relationship to the tree restructure.
>> Since some time we now run into issues with our targeted Windows
> version. This is both wine dlls, as well as applications that refuse to
> run due to reactos being limited to Windows server 2003 SP2.
>> I think many of us, me included, see more in ReactOS than an academic
> research project, or a nice way for 3rd party companies to cheaply get
> insight into how the Windows kernel works. So we are interested in
> making it an actually useful operating system. To achieve this goal, it
> is obviously important to make it run modern Windows applications.
>> The current approach of pure Windows 2003 Server SP2 compatibility on
> user mode side is a dead end. Our target OS version is starting to
> become a fossil. With time more and more applications will simply refuse
> to work on it. Even wine DLLs start to require Vista APIs and their
> number will most likely increase.
>> So what can we do? It is obvious, that we cannot instantaniously switch
> all user mode to Windows 7/8/10 compatibility, due to the amount of
> required work, especially regarding missing kernel features.
>> The wine approach is just adding whatever is needed, creating a Windows
> version chimera. It has already been discussed here and shown to be a
> problem, since it can easily fool applications into believing they run
> on Vista or Windows 7, making them demand all the modern features, which
> we cannot provide, thus failing to run, while they would run flawlessly,
> when being provided a pure Windows 2003 environment, restricting itself
> to this functionality. So this is also not a very good way, either.
>> So the conclusion is, that we need a mechanism, that allows us to
> control this, providing individual applications with what they require,
> while leaving others in a more restricted environment. And at the same
> time allowing our internal/wine DLLs to make use of higher version
> functionality.
>> Suggested approach:
>> 1. We need a method to specify which application should be run in which
> environment. We should probably use the same mechanism that is used on
> Windows. Compatibility information is stored in a registry key
> HKCU\Software\Microsodt\Windows NT\CurrentVersion\AppCompatFlags\... The
> trick is to make this easy / transparent for the user. A right-click ->
> properties -> compatibility approach should for now probably be the
> easiest thing, even if it requires the user to actively make this
> setting. A larger app compatibility database would be nice, but it would
> be difficult to figure out what application is being run. And it's also
> a problem to maintain such a list. Potential solutions: detect failures
> to load due to missing imports and app crashes and invoke a
> "compatibility assistent" in that case. Detect first-run of a new
> application and try to identify it, either based on a hash or based on
> PE version information.
>> 2. We need a way to provide the application transparently with the
> environment we want to give it. In terms of DLL exports this could be
> done on the loader side, making it chose the right DLL, potentially
> adding a suffix to the DLL name or selecting a different folder other
> than system32. While this will most likely work good in the majority of
> cases, it is not 100% transparent. Therefore a mechanism in the kernel,
> using file system redirection, like it already exists on 64 bit Windows
> for WoW64, seems to be a more promising approach. The file system
> redirection would redirect system32 into merged folders, containing the
> version specific DLLs, while everything that is not existing in this
> folder will be taken from the original system32. Potential naming
> scheme: system32.601 system32.602, etc.
>> 3. We need a method to create and maintain the required DLLs for
> different OS versions. Preferably avoiding bloat by sharing common code
> in common "parent" DLLs. But also allowing to still plug the DLLs into
> the related Windows version for testing. This can be tricky. I suggest a
> DLL import forwarding scheme. This is both to avoid bloat, i.e. avoid to
> compile and deploy all full blown DLLs for all OS versions, as well as
> creating a better organized system. So each DLL, lets say ADVAPI32, as
> located in different version specific system32 folders, would
> mainly/only consist of forwarders to a "parent" DLL. On Windows we can
> see this being developed similarly, using "api sets" and redirections
> made by the loader. Cloning this mechanism 1:1 might not be the right
> thing though, since it does not address all our requirements. So instead
> I suggest proving our own custom "parent DLLs". While these could be
> organized the same way as on Windows 2003, this is probably not optimal.
> Instead I suggest merging stuff together into 1 or few DLLs (similar to
> how stuff was combined in kernelbase.dll)
> This might looks like this (note, that the names are just quickly made
> up names, I don't claim that they are good)
> - user32/gdi32 -> ros-win32-core.dll
> - kernel32/advapi32 -> ros-kernel-base.dll
> - msvcr* -> ros-crt.dll
> - ntdll -> ros-ntdll (the kernel would need to load this one)
>> This also allows our DLLs to make use of higher version APIs, by linking
> them to the parent DLL.
> Now this obviously introduces a problem when trying to run individual
> DLLs within a Windows system. To still be able to do this for testing
> purposes, we need to make sure that they still run there.
> First, if they import from a custom ros-* DLL, it won't run on Windows
> without that DLL. So we need the possibility to either statically link
> these functions, or compile a "helper DLL", that contains these
> functions, so our DLLs can be run on Windows.
> If we used a common parent DLL, this also creates the problem of DLL
> initialization. e.g. the DLL parent for kernel32 and advapi32 would do
> the initialization for both of these, so this would not be suitable to
> use when replacing only one of the DLLs. Instead DLL initialization
> could be done by calling a specific initialization function in the
> parent DLL from the child DLL. So kernel32!DllMain would call
> ros-kernel-base!DllMain_kernel32, passing the original parameters as
> well as a version number, that the parent DLL can use to do version
> specific initialization. This way The parent DLL would only do the
> kernel32 initialization, when the related kernel32 child DLL was used,
> the advapi32 initialization would not be done.
> There is still a problem: relocation. So we would need to make sure we
> chose base addresses that still allow us to plug the stuff into Windows
> without causing everything to relocate, which often simply doesn't work.
> As an alternative, we should provide a compile time switch to compile
> specific DLLs in a self-contained way.
>> In terms of structure we could use the MS api-sets as a base for static
> libraries. Then we can link these either into the parent DLLs like
> ros-kernel-base.dll or - when a compile switch is given - to link
> together fully self contained DLLs.
>> I am really not interested in answers like "This is not what WIndows
> does!", "THIS CANNOT WORK!!!", "You are a ***** even suggesting this",
> "What if application x parses the import table and disassembles the DLL
> to hook into internal functions, ...":
>> I am only interested in *constructive* comments.
> Everything else: -> /dev/null
>> Thanks,
> Timo
>>>>> _______________________________________________
> Ros-dev mailing list
> Ros-dev at reactos.org
> http://www.reactos.org/mailman/listinfo/ros-dev
>
--
Pierre Schweitzer <pierre at reactos.org>
System & Network Administrator
Senior Kernel Developer
ReactOS Deutschland e.V.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3940 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.reactos.org/pipermail/ros-dev/attachments/20150307/5b4eae68/attachment-0001.bin>
More information about the Ros-dev
mailing list
CHAPTER VII. THE FOUR CLASSES OF SOCIETY. THE FOUR CLASSES OF SOCIETY. "After the herald had given the names of the wrestlers who were to make the first round, the fellows came in. They were dressed without any clothes to speak of, or rather they were quite undressed, with the exception of a cloth around their loins. They came in on opposite sides of the ring, and stood there about five feet apart, each man resting his hands on his knees, and glaring at the other like a wild beast. They[Pg 231] looked more like a pair of tigers than human beings, and for a moment I thought it was not at all unlike what a bull-fight in Spain might be. I turned upon her choking with anger, but her melting beauty rendered me helpless. Black woods were on our left. "Shall we turn in here?" I asked. "None of that with me," he growled. "Do you know who I am, Countess Lalage? I am Leon Lagage, Count of the Holy Roman Empire, and your husband. Incomparable woman, you cannot alter that fact. For better or worse, for richer or poorer, till death do us part!" I have in this way imperfectly indicated a methodical plan of generating a design, as far as words alone will serve, beginning with certain premises based upon a particular work to be performed, and then proceeding to consider in consecutive order the general character of the machine, mode of operation, movements and adjustments, general arrangement, strains, special arrangement, and proportions. ‘Alas! what is life, what is death, what are we, 11th January two best dresses. Commencement was as usual, with a few showers “All right,” agreed Sandy. “Dick, you and I are the ground crew. As soon as you’re ready, Mr. Whiteside, we’ll take hold!” Effects of Walpole's Administration—Formation of the new Ministry—Attitude of the Malcontents—Committee of Inquiry into Walpole's Administration—Walpole's Protectors—Ministerial Measures—Prorogation of Parliament—Disasters of the French—British Division in the Netherlands—Opening of Parliament—The German Mercenaries—Amendment of the Gin Act—George goes to Germany—Stair and De Noailles in Franconia—Stair in a Trap—Bold Resolution of King George—The Battle of Dettingen—Resignation of Stair—Retreat of the French—Negotiations for Peace—Treaty of Worms—Pelham becomes Prime Minister—The Attacks of Pitt on Carteret—Attempted Invasion of England—Its Failure—Progress of the French Arms—Frederick II. invades Bohemia—His Retirement—Resignation of Carteret—Pelham strengthens his Ministry—Death of the Emperor—Campaign in Flanders—Battle of Fontenoy—Campaign of Frederick II.—The Young Pretender's Preparations—Loss of the Elizabeth—Landing in the Hebrides—The Highland Clans join him—The First Brush—Raising of the Standard—Cope's Mistake—He turns aside at Dalwhinnie—Charles makes a Dash for Edinburgh—The March to Stirling—Right of the Dragoons—The "Canter of Coltbridge"—Edinburgh surprised by the Highlanders—Charles marching against Cope—Battle of Prestonpans—Delay in marching South—Discontent of the Highland Chiefs—The Start—Preparations in England—Apathy of the Aristocracy—Arrival of the Duke of Cumberland—Charles crosses the Border—Capture of Carlisle—The March to Derby—Resolution to retreat—"Black Friday"—The Retreat—Recapture of Carlisle—Siege of Stirling—Battle of Falkirk—Retreat to the Highlands—Cumberland's Pursuit—Gradual Collapse of the Highlanders—Battle of Culloden—Termination of the Rebellion—Cruelty of the Duke of Cumberland—Adventures of the Young Pretender—Trials and Executions—Ministerial Crisis. The next morning he was up betimes, and cooked the boys as good a breakfast as he could out of the remainder of his store and what he could get from the hospital, and then gave what was left to whoever came. The comfortable crib, which had cost the Deacon so much labor, had been pre-empted by the Surgeon for some of his weakest patients. "You two step forward one pace," he commanded. "Gentleman, I've got my six. The rest are yours." "Where are you goin'?" he said sternly. Every now and then the crowd would break into the latest rhymings of MacKinnon's poet: A large thicket, at this moment, gave the dusty foot an opportunity of doubling, and, for an instant, diverging from the straightforward course, though it availed him little, he seemed to feel the breath of his pursuer on the back of his neck; his foot sounded as if at his heels; he drew his garment closely around him, turned suddenly to the right, and, bounding from the ground, the next instant a splash was heard in the little river, and the fugitive was safe from his pursuer. HoME明日之后怎么免费刷一级纳米材料
ENTER NUMBET 0018sheou.com.cn www.omnius.com.cn ouyo.net.cn www.jxxzb.com.cn www.wpku58sy.com.cn brbf961.com.cn www.tfne.com.cn www.xvvj.com.cn fzwg754.com.cn www.igobb.com.cn