M()zart Posted October 18, 2009 Share Posted October 18, 2009 (edited) I have created userenv.dll (an NT only dll) for Windows 9x. The dll is currently intended to work with single-user Windows 9x (user profiles disabled). It may not work as expected in multi-user Windows 9x. The profile folder is considered the same as Windows folder.0.0.1GetAllUsersProfileDirectory GetDefaultUserProfileDirectory GetUserProfileDirectory both ANSI and Unicode versions.0.0.2Added:CreateEnvironmentBlockDestroyEnvironmentBlockLoadUserProfile (a bit incorrect implementation, but should work)UnloadUserProfile0.0.3Added:ExpandEnvironmentStringsForUserStubbedDeleteProfileWith this dll and KernelEx, X-Moto open-source game ( http://xmoto.sourceforge.net/ ) can be run on Windows 98. Currently I have not seen other application, that can be launched on Windows 98 with this DLL (and KernelEx) and cannot be launched without it. If you can use it for other apps, please write here. If you need other functions to be implemented or stubbed in this dll, write here too, I'll try.userenv.zip Edited November 16, 2009 by M()zart Link to comment Share on other sites More sharing options...
Chozo4 Posted November 1, 2009 Share Posted November 1, 2009 If you need other functions to be implemented or stubbed in this dll, write here too, I'll try.Found one of those rarities that need another API in userenv.dll to function. The theme configurators for the latest RainMeter v1.1 call for the following API and will not run as a result:USERENV.DLLLoadUserProfileWIt's just the themes configurators that seem to require it and doesn't affect the normal skin/plugin portion of the program as those don't call for it. Link to comment Share on other sites More sharing options...
M()zart Posted November 1, 2009 Author Share Posted November 1, 2009 (edited) OK, I'll try to implement it. It's a bit harder, but possible. I have already studied other API, this one can be fully implemented. In a few days, may be a week if I will be too busy.Oups, I meant another function. Not sure if I can implement this. But I'll try. Edited November 2, 2009 by M()zart Link to comment Share on other sites More sharing options...
M()zart Posted November 2, 2009 Author Share Posted November 2, 2009 (edited) Userenv.dll ver 0.0.2 (download link in the first post).Added:CreateEnvironmentBlockDestroyEnvironmentBlockLoadUserProfile (a bit incorrect implementation, but should work)UnloadUserProfileThough I doubt that anybody need it. Chozo4, as I see, the theme configurators for the latest RainMeter v1.1 need other missing APIs in advapi32.dll (InitiateSystemShutdownExW and CreateProcessWithLogon) and in Kernel32.dll (GetProcessIoCounters or something like this, may be this names are not correct), that are currently not implemented in KernelEx. So it will not work under Windows 98 regardless of userenv.dll. Edited November 2, 2009 by M()zart Link to comment Share on other sites More sharing options...
PROBLEMCHYLD Posted November 4, 2009 Share Posted November 4, 2009 Can you add ExpandEnvironmentStringsForUserW to your stub? Link to comment Share on other sites More sharing options...
M()zart Posted November 4, 2009 Author Share Posted November 4, 2009 Can you add ExpandEnvironmentStringsForUserW to your stub?I'll try. Which app do you need it for? Link to comment Share on other sites More sharing options...
PROBLEMCHYLD Posted November 4, 2009 Share Posted November 4, 2009 Can you add ExpandEnvironmentStringsForUserW to your stub?I'll try. Which app do you need it for?Micro$oft Activesync 4.5 Link to comment Share on other sites More sharing options...
M()zart Posted November 16, 2009 Author Share Posted November 16, 2009 Userenv.dll ver 0.0.3 (download link in the first post).Added:ExpandEnvironmentStringsForUserStubbedDeleteProfileCode is far from perfect and needs much rewriting. PROBLEMCHYLD, I'm not sure if the Micro$oft Activesync 4.5 will work even with this dll. It contains several .sys files with dependecies to ntoskrnl.exe. But you may still try. Write here about your experiences. When I started this project I was not aware about multiuser Windows 9x, so this dll may not work with such systems as expected. Please sombody tell me how can I programmatically verify if the user profiles are enabled, to change the dll behavior. Link to comment Share on other sites More sharing options...
kamahl Posted December 25, 2009 Share Posted December 25, 2009 You could check the location of the Application Data folder and check it in relation with the windows folder.IE: If %appdata% is in "%windir%/Application Data" it's single User, if it's not (%windir%/Profiles/*/Application Data), it's multiuser.This is however a *very* bad way of doing it, and would probably fail with translated versions of windows. I'd have to start digging in the registry to work out if there's a simple way to measuring it.Oh, and remember that even when multi-user is enabled, you can still hit cancel, and load up the single-user profile. Link to comment Share on other sites More sharing options...
PROBLEMCHYLD Posted March 3, 2014 Share Posted March 3, 2014 (edited) Have you given up on this? Edited March 3, 2014 by PROBLEMCHYLD Link to comment Share on other sites More sharing options...
M()zart Posted March 7, 2014 Author Share Posted March 7, 2014 A better version of userenv.dll (based on Wine sources) was included to KernelEx. After this I didn't see a reason to continue it. 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