SAS Window: Winlogon.exe Application error.
-
Dear ALL, I am developing an application for Windows 2000 in MFC VC++ Version 6.0. My application runs as an interactive service. I am using a dll in my program which is used to hide given key(s) from the registry. The program works fine and hides the given keys from registry. But when i log off my system and login, the following error occurs: ............................... SAS Window: Winlogon.exe Application error. The instruction at "0x01007f2d" refereced memory at "0x00006c". The memory could not be read. Click ok to close and cancel to debug. ............................... On clicking ok the system restarts. I think I need to free the dll before logging out. So I tried FreeLibrary in QueryEndSession, but it didnot helped. Is there any other way to free the dll. Or any other way out to solve the problem ? The program is working fine when I restart and login (probably because at that time the dll is freed and loaded again,, but the same is not in case of log off and log in) Thanks Rohit:rose:
-
Dear ALL, I am developing an application for Windows 2000 in MFC VC++ Version 6.0. My application runs as an interactive service. I am using a dll in my program which is used to hide given key(s) from the registry. The program works fine and hides the given keys from registry. But when i log off my system and login, the following error occurs: ............................... SAS Window: Winlogon.exe Application error. The instruction at "0x01007f2d" refereced memory at "0x00006c". The memory could not be read. Click ok to close and cancel to debug. ............................... On clicking ok the system restarts. I think I need to free the dll before logging out. So I tried FreeLibrary in QueryEndSession, but it didnot helped. Is there any other way to free the dll. Or any other way out to solve the problem ? The program is working fine when I restart and login (probably because at that time the dll is freed and loaded again,, but the same is not in case of log off and log in) Thanks Rohit:rose:
'Hide keys from the registry' - explain? If you're dynamically hiding the ones that WinLogon relies on, this may well be causing this crash. WinLogon is considered a critical service by Windows NT-based operating systems. The Session Manager subsystem, SMSS.EXE, which starts WinLogon, waits on WinLogon's process handle. If WinLogon (or CSRSS, also a critical service) terminates unexpectedly, SMSS crashes the system (which typically leads to an automatic reboot, if you haven't changed the defaults). Have you perhaps installed a custom GINA?
-
'Hide keys from the registry' - explain? If you're dynamically hiding the ones that WinLogon relies on, this may well be causing this crash. WinLogon is considered a critical service by Windows NT-based operating systems. The Session Manager subsystem, SMSS.EXE, which starts WinLogon, waits on WinLogon's process handle. If WinLogon (or CSRSS, also a critical service) terminates unexpectedly, SMSS crashes the system (which typically leads to an automatic reboot, if you haven't changed the defaults). Have you perhaps installed a custom GINA?
Dear Mike, I have not used custom GINA. I have used the dll to hide the registry specified keys. I got it from: http://www.codeproject.com/system/hidereg.asp This dll hides a registry string from regedit by hooking the RegEnumValueW API. I used this dll in my application to hide the password string from the registry. I am loading this dll from my application which is running as an interactive service. As soon as the person opens registry editor , I load the dll and and this dll hides the password string. The program is working fine when i restart my system and login. This is becoz When i restart the system the dll is unloaded automatically , but when i logoff and login , the problem occurs (perhaps becoz the dll is not freed ) What do you suggest ?? Please let me know if my problem is clear or not.
-
Dear Mike, I have not used custom GINA. I have used the dll to hide the registry specified keys. I got it from: http://www.codeproject.com/system/hidereg.asp This dll hides a registry string from regedit by hooking the RegEnumValueW API. I used this dll in my application to hide the password string from the registry. I am loading this dll from my application which is running as an interactive service. As soon as the person opens registry editor , I load the dll and and this dll hides the password string. The program is working fine when i restart my system and login. This is becoz When i restart the system the dll is unloaded automatically , but when i logoff and login , the problem occurs (perhaps becoz the dll is not freed ) What do you suggest ?? Please let me know if my problem is clear or not.
There are better ways to store secret information. See the documentation for PStore[^], LSA secrets[^] or the Data Protection API[^].