schwups Posted February 12, 2013 Share Posted February 12, 2013 Running µTorrent 3.0: Main Problem: The downloads aren't saved - The download folder remains empty. Kstub822.log: NTdll.dll:NTAllocateVirtualMemory=t6=Configuration: stable Kstub822 - *ActCtx* functions commented outSupplement:The ImportPatcher generats this ini µTorren#3.0.0 26473.zip file of µTorrent 3.0 exe. It lists many missing functions, but in comparison to the generated file of version 2.0.4 (stable with KernelEX) there are only seven functions more.The difference:[ntdll.dll]NtStopProfile=RtlUnicodeToOemN=_chkstk=RtlAdjustPrivilege=NtSetIntervalProfile=NtStartProfile=NtSetInformationProcess=[Patches needed]PSAPI.DLL=Functions, Unbind Link to comment Share on other sites More sharing options...
schwups Posted February 12, 2013 Share Posted February 12, 2013 (edited) > > If you have an NT2K mode that sticks [...]> All the attempts don't work. All the specfic compatibility modes don't stick!If you are saying NT2K mode won't stick, and that even Win95 mode won't stick, check that the Kstub822 module names match: [DCFG1]contents=Kstub822,std,kexbases,kexbasen[WIN95.names]ComDlg32.PrintDlgExA=Kstub822.0ComDlg32.PrintDlgExW=Kstub822.0[DCFG1]contents=Kstub822,std,kexbases,kexbasendesc=Base enhancements[WIN95.names]ComDlg32.PrintDlgExA=Kexstubs.0ComDlg32.PrintDlgExW=Kexstubs.0KERNEL32.GetVersion=kexbases.0KERNEL32.GetVersionExA=kexbases.1KERNEL32.GetVersionExW=kexbases.1I'll test method 4 on a second machine. Edited February 12, 2013 by schwups Link to comment Share on other sites More sharing options...
schwups Posted February 12, 2013 Share Posted February 12, 2013 (edited) If you have an NT2K mode that sticks and supports KERNEL32.FindActCtxSectionStringW, NOFACSS should also stick--those are the only two dependencies: [NOFACSS]inherit=NT2Kdesc=Win2000 SP4 (for OpenOffice)[NOFACSS.names]KERNEL32.FindActCtxSectionStringW=noneOpenOffice can't run with Win2K mode! It starts with default (KernelEX is enabled) mode only.------------------------------------------------------------------------------------------------------- New test of method four on the first machine with corected entries:[WIN95.names]ComDlg32.PrintDlgExA=Kstub822.0ComDlg32.PrintDlgExW=Kstub822.0The specfic compatibility modes stick. Explorer set to "Win2000 SP4, no ActCtx (for MSVCRT 8+)"Unfortunately the test led to new problems. First some things have failed on Win startup (ClamTray.exe, NVCPL.dll, AVM IGD Service...). When opening a new window the Explorer caused a not further explained error in Kernel32.dll, but afterwards the window has opened. Sometimes I've got the runtime error by moving the mouse over the start menu. Explorer set to mode "disabled" solves these errors, but it seems not a good idea. For example OpenOffice reports "The ...swriter.exe file expects a newer version of windows". I think this applies to some KernelEX dependant apps.A mode "default (KernelEX is enabled) or base Base enhancements, no ActCtx (for MSVCRT 8+)" could work as compromise solution. Edited February 12, 2013 by schwups Link to comment Share on other sites More sharing options...
schwups Posted February 12, 2013 Share Posted February 12, 2013 (edited) OK, I changed the core.ini:[NOAC]inherit=DCFG1desc=Base enhancements, no ActCtx (for MSVCRT 8+)[NOAC.names]KERNEL32.ActivateActCtx=noneKERNEL32.CreateActCtxA=noneKERNEL32.CreateActCtxW=noneKERNEL32.DeactivateActCtx=noneKERNEL32.FindActCtxSectionStringA=noneKERNEL32.FindActCtxSectionStringW=noneKERNEL32.ReleaseActCtx=noneAfter I've set the Explorer to the new mode, Windows seems to run fine. OpenOffice starts, too. Reboot required. Edited February 12, 2013 by schwups Link to comment Share on other sites More sharing options...
MiKl Posted February 12, 2013 Share Posted February 12, 2013 (edited) OK, I changed the core.ini:[NOAC]inherit=DCFG1desc=Base enhancements, no ActCtx (for MSVCRT 8+)[NOAC.names]KERNEL32.ActivateActCtx=noneKERNEL32.CreateActCtxA=noneKERNEL32.CreateActCtxW=noneKERNEL32.DeactivateActCtx=noneKERNEL32.FindActCtxSectionStringA=noneKERNEL32.FindActCtxSectionStringW=noneKERNEL32.ReleaseActCtx=noneAfter I've set the Explorer to the new mode, Windows seems to run fine. OpenOffice starts, too. Reboot required.Isn't that the same as if you would commenting these entries out in the stubs.ini ??Jumper mentioned K-Meleon a few posts up - maybe you can try if it works. Edited February 12, 2013 by MiKl Link to comment Share on other sites More sharing options...
loblo Posted February 12, 2013 Share Posted February 12, 2013 Thanks you, loblo, for providing us with the first working solution to the ActCtx conundrum! I just followed your instructions. Link to comment Share on other sites More sharing options...
jumper Posted February 13, 2013 Author Share Posted February 13, 2013 Good news: I'm posting this from K-Meleon 1.6.0 Beta2 using new Method 2 definitions. Obstacles: 1. FindActCtxSectionStringWTo avoid the R6034 error, previously this function needed to be undefined. I found that declaring success also works:FindActCtxSectionStringW=o5e02. CreateActCtxWNeither T nor F worked, but returning the first parameter (pointer to ACTCTX struct) works:CreateActCtxW=p1e03. ActivateActCtxOnce again, declaring success instead of failure was the key:ActivateActCtx=t2e0 After redefining each function, I relaunched KM and then checked Kstub822.log to monitor the progress.In all three cases, the 'e0' (ERROR_SUCCESS) is probably not needed, but MSDN states "This function sets errors that can be retrieved by calling GetLastError" without limiting the scope to failure cases.Additionally, I've deleted the two ANSI functions as they don't seem to be needed.In summary, the new ActCtx definition set is: [Kernel32.dll]ActivateActCtx=t2e0CreateActCtxW=p1e0DeactivateActCtx=f2eFindActCtxSectionStringW=o5e0ReleaseActCtx=f1 I haven't exit KM yet, but will update if DeactivateActCtx or ReleaseActCtx also need to report success. Link to comment Share on other sites More sharing options...
loblo Posted February 13, 2013 Share Posted February 13, 2013 Those new definitions look very good jumper!I can report success running two programs I had never been able to run before.Latest version of IFS Builder 3d: http://fractals.nsu.ru/builder3d_en.htmYFract: http://yv3.bplaced.net/ Link to comment Share on other sites More sharing options...
loblo Posted February 13, 2013 Share Posted February 13, 2013 Even better, the VST plugins built with recent versions of Synthedit which didn't run at all without KexStub and which I had reported running but without an useable UI with the old actctx definitions... Guess what now, they now display their UI which is fully functional!!!! Link to comment Share on other sites More sharing options...
jds Posted February 14, 2013 Share Posted February 14, 2013 Good news: I'm posting this from K-Meleon 1.6.0 Beta2 using new Method 2 definitions. Obstacles: 1. FindActCtxSectionStringWTo avoid the R6034 error, previously this function needed to be undefined. I found that declaring success also works:FindActCtxSectionStringW=o5e02. CreateActCtxWNeither T nor F worked, but returning the first parameter (pointer to ACTCTX struct) works:CreateActCtxW=p1e03. ActivateActCtxOnce again, declaring success instead of failure was the key:ActivateActCtx=t2e0 After redefining each function, I relaunched KM and then checked Kstub822.log to monitor the progress.In all three cases, the 'e0' (ERROR_SUCCESS) is probably not needed, but MSDN states "This function sets errors that can be retrieved by calling GetLastError" without limiting the scope to failure cases.Additionally, I've deleted the two ANSI functions as they don't seem to be needed.In summary, the new ActCtx definition set is: [Kernel32.dll]ActivateActCtx=t2e0CreateActCtxW=p1e0DeactivateActCtx=f2eFindActCtxSectionStringW=o5e0ReleaseActCtx=f1 I haven't exit KM yet, but will update if DeactivateActCtx or ReleaseActCtx also need to report success.Hi jumper,I've just tried these ActCtx definitions in 'Kstub822.ini' and "contents=Kstub822,std,kexbases,kexbasen" in 'core.ini'.Starting Open Office 3.2.1 'SCALC.EXE' produced an error R6034 and the follow-on error about 'MSVCR90.DLL' not starting. I expect the solutions from post #144 would be able to resolve this.I then tried 'HoverIP' - worked fine.However, when I tried SAP GUI for Java, I got the following error :JAVAW caused an exception 03H in module KERNEL32.DLL at 016f:bff768a1.Registers:EAX=c0030900 CS=016f EIP=bff768a1 EFLGS=00000246EBX=00000000 SS=0177 ESP=1845e5c8 EBP=1845e5fcECX=ffffff64 DS=0177 ESI=7813220d FS=1b2fEDX=00000000 ES=0177 EDI=00000000 GS=0000Bytes at CS:EIP:c3 cc cc 55 8b ec 56 57 68 c0 d4 fc bf e8 01 d9 Stack dump:78132225 3fcdce11 00000000 78130000 81d55e8c 0000000a 00000004 1845e5cc 1845e3e0 1845e7c4 78138ad1 5f9360b5 fffffffe 1845e7d4 78132337 78130000 Joe. Link to comment Share on other sites More sharing options...
loblo Posted February 14, 2013 Share Posted February 14, 2013 Joe, it's the FindActCtxSectionStringW definition which appears to be not good enough. You may want to hex that string in msvcr90 to something else as to fix your problem for now.I am now also able to run the excellent GraphStudioNext: https://code.google.com/p/graph-studio-next/ Link to comment Share on other sites More sharing options...
jumper Posted February 14, 2013 Author Share Posted February 14, 2013 Running µTorrent 3.0: Main Problem: The downloads aren't saved - The download folder remains empty. Kstub822.log: NTdll.dll:NTAllocateVirtualMemory=t6=Configuration: stable Kstub822 - *ActCtx* functions commented outShame on µTorrent 3.0. NTAllocateVirtualMemory is a Windows Native System Services routine; apps should be calling VirtualAlloc instead.You can try using some of the other return codes as documented at MSDN, but I think this function will require a full Wine implementation. Link to comment Share on other sites More sharing options...
loblo Posted February 14, 2013 Share Posted February 14, 2013 Reporting success running Cathy 2.31 which relies on msvcr100.dll and mfc100.dll: http://www.mtg.sk/rva/Cathy231.zip Link to comment Share on other sites More sharing options...
loblo Posted February 14, 2013 Share Posted February 14, 2013 Running µTorrent 3.0: Main Problem: The downloads aren't saved - The download folder remains empty. By now I have come across a few apps who don't appear to be able to read or write or both. There is implementation of new file I/O APIs in KernelEx as well as fixes for file I/O APIs already present in 98/ME but I think something might still not be complete there. And I suspect that the well known Firefox issue missing History and Bookmarks might be related. Link to comment Share on other sites More sharing options...
jumper Posted February 16, 2013 Author Share Posted February 16, 2013 After much definition testing, I was unable to find one for FindActCtxSectionStringW that would appease Msvcrt90.The ActCtx definitions were introduced way back in post #10 and schwups first reported problems with it in post #15. Joe traced the main problem to FindActCtxSectionStringW in post #25. Clearly including FindActCtxSectionStringW was a big mistake (mine!), as no app is known to need it.Removing FindActCtxSectionStringW, retaining the other new definitions, and adding similar new definitions for the rest of the (non-Find*) ActCtx clan, we get: [Kernel32.dll]ActivateActCtx=o2e0AddRefActCtx=z1CreateActCtxA=p1e0CreateActCtxW=p1e0DeactivateActCtx=o2e0GetCurrentActCtx=f1e ; needs code for successIsolationAwareCleanup=z0 ; for ActCtx/manifestQueryActCtxSettingsW=o7e0QueryActCtxW=o7e0ReleaseActCtx=z1ZombifyActCtx=o1e0 Using these "Method 2" definitions, we shouldn't need method 4 (or 3). So here is a Core.ini that reverts nearly back to the original:[ApiConfigurations]default=00=DCFG11=WIN952=WIN983=WINME4=NT405=NT2K6=WINXP7=WIN2K38=VISTA9=WIN2K810=NOHEAP[DCFG1]contents=Kstub822,std,kexbases,kexbasendesc=Base enhancements[DCFG1.names.98]ComDlg32.PrintDlgExA=Kstub822ComDlg32.PrintDlgExW=Kstub822KERNEL32.GetVersion=stdGDI32.SetWorldTransform=kexbases.0GDI32.GetRandomRgn=stdGDI32.SetGraphicsMode=stdGDI32.GetTextMetricsA=stdGDI32.GetWorldTransform=stdGDI32.ModifyWorldTransform=stdGDI32.SetMapMode=stdKERNEL32.VerSetConditionMask=noneKERNEL32.VerifyVersionInfoA=noneKERNEL32.VerifyVersionInfoW=noneKERNEL32.CreateIoCompletionPort=stdSHELL32.SHParseDisplayName=none[DCFG1.names.Me]ComDlg32.PrintDlgExA=Kstub822ComDlg32.PrintDlgExW=Kstub822KERNEL32.GetVersion=stdGDI32.SetWorldTransform=kexbases.0GDI32.GetRandomRgn=stdGDI32.SetGraphicsMode=stdGDI32.GetTextMetricsA=stdGDI32.GetWorldTransform=stdGDI32.ModifyWorldTransform=stdGDI32.SetMapMode=stdKERNEL32.VerSetConditionMask=noneKERNEL32.VerifyVersionInfoA=noneKERNEL32.VerifyVersionInfoW=noneKERNEL32.CreateIoCompletionPort=stdUSER32.AllowSetForegroundWindow=stdUSER32.LockSetForegroundWindow=stdUSER32.GetMouseMovePointsEx=stdSHELL32.SHParseDisplayName=none[WIN95]inherit=DCFG1desc=Windows 95[WIN95.names]KERNEL32.GetVersion=kexbases.0KERNEL32.GetVersionExA=kexbases.1KERNEL32.GetVersionExW=kexbases.1[WIN98]inherit=WIN95desc=Windows 98 SE[WIN98.names]KERNEL32.GetVersion=kexbases.1KERNEL32.GetVersionExA=kexbases.2KERNEL32.GetVersionExW=kexbases.2[WINME]inherit=WIN98desc=Windows Millennium[WINME.names]KERNEL32.GetVersion=kexbases.2KERNEL32.GetVersionExA=kexbases.3KERNEL32.GetVersionExW=kexbases.3[NT40]inherit=WIN95desc=Windows NT 4.0 SP6[NT40.names]KERNEL32.GetVersion=kexbases.3KERNEL32.GetVersionExA=kexbases.4KERNEL32.GetVersionExW=kexbases.4KERNEL32.CreateIoCompletionPort=kexbases.0GDI32.GetRandomRgn=kexbases.0GDI32.SetGraphicsMode=kexbases.0GDI32.GetTextMetricsA=kexbases.0GDI32.GetWorldTransform=kexbases.0GDI32.ModifyWorldTransform=kexbases.0GDI32.SetMapMode=kexbases.0GDI32.SetWorldTransform=kexbases.1[NT2K]inherit=NT40desc=Windows 2000 SP4[NT2K.names]KERNEL32.GetVersion=kexbases.4KERNEL32.GetVersionExA=kexbases.5KERNEL32.GetVersionExW=kexbases.5KERNEL32.VerSetConditionMask=kexbases.0KERNEL32.VerifyVersionInfoA=kexbases.0KERNEL32.VerifyVersionInfoW=kexbases.0[WINXP]inherit=NT2Kdesc=Windows XP SP2[WINXP.names]KERNEL32.GetVersion=kexbases.5KERNEL32.GetVersionExA=kexbases.6KERNEL32.GetVersionExW=kexbases.6KERNEL32.VerifyVersionInfoA=kexbases.1KERNEL32.VerifyVersionInfoW=kexbases.1SHELL32.SHParseDisplayName=kexbasen.0[WIN2K3]inherit=WINXPdesc=Windows 2003 SP1[WIN2K3.names]KERNEL32.GetVersion=kexbases.6KERNEL32.GetVersionExA=kexbases.7KERNEL32.GetVersionExW=kexbases.7KERNEL32.VerifyVersionInfoA=kexbases.2KERNEL32.VerifyVersionInfoW=kexbases.2[VISTA]inherit=WIN2K3desc=Windows Vista[VISTA.names]KERNEL32.GetVersion=kexbases.7KERNEL32.GetVersionExA=kexbases.8KERNEL32.GetVersionExW=kexbases.8KERNEL32.VerifyVersionInfoA=kexbases.3KERNEL32.VerifyVersionInfoW=kexbases.3[WIN2K8]inherit=VISTAdesc=Windows 2008 SP1[WIN2K8.names]KERNEL32.GetVersion=kexbases.8KERNEL32.GetVersionExA=kexbases.9KERNEL32.GetVersionExW=kexbases.9KERNEL32.VerifyVersionInfoA=kexbases.4KERNEL32.VerifyVersionInfoW=kexbases.4[NOHEAP]inherit=DCFG1desc=Disable custom heap[NOHEAP.names]KERNEL32.HeapCreate=stdKERNEL32.HeapDestroy=stdKERNEL32.HeapAlloc=stdKERNEL32.HeapFree=stdKERNEL32.HeapSize=stdKERNEL32.HeapReAlloc=std The only differences are: [ApiConfigurations]default=0[DCFG1]contents=Kstub822,std,kexbases,kexbasendesc=Base enhancements[DCFG1.names.98]ComDlg32.PrintDlgExA=Kstub822ComDlg32.PrintDlgExW=Kstub822[DCFG1.names.Me]ComDlg32.PrintDlgExA=Kstub822ComDlg32.PrintDlgExW=Kstub822 I'm hoping to assemble this week a release package for Kexstubs that will be easy to install. I'll be reviewing Kstub822.ini and preparing a stubs.ini that has logging disabled and any last definitions that should go in. All suggestions are very welcome! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now