x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

Manually calling the lockscreen in CE

I dunk for bananas Page Icon Posted 2022-11-18 2:13 PM
#
Avatar image of I dunk for bananas
H/PC Elite

Posts:
702
Location:
Europe
Status:
As far as I know, the lockscreen in CE is provided by ceshell.dll. Has anyone ever tried manually calling it, from another program? Wondering if that would be possible since having a little shortcut for locking the device on my desktop would be awesome
 Top of the page
C:Amie Page Icon Posted 2022-11-18 2:23 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,976
Location:
United Kingdom
Status:
 Top of the page
I dunk for bananas Page Icon Posted 2023-03-19 1:03 PM
#
Avatar image of I dunk for bananas
H/PC Elite

Posts:
702
Location:
Europe
Status:
I have no clue how to compile the code presented on the linked site, so I've been trying to call for that function in eVB:

 
Public Declare Function ShowStartupWindow Lib "coredll.dll" () As Long 

Private Sub Main()
Call ShowStartupWindow
End Sub


The code compiles without error, but running it does exactly nothing. Does anyone know what I could be doing wrong?
 Top of the page
I dunk for bananas Page Icon Posted 2023-03-19 3:56 PM
#
Avatar image of I dunk for bananas
H/PC Elite

Posts:
702
Location:
Europe
Status:
I managed to solve it in C sharp! It was very easy to just import ShowStartupWindow() from coredll.dll and to call that. It doesn't even need any arguments
Does anyone know where CE saves the current password in the registry? I'd like to read it and then upon boot write it back into the registry so that it survives a cold boot

Edited by I dunk for bananas 2023-03-19 4:03 PM
 Top of the page
I dunk for bananas Page Icon Posted 2023-03-19 4:55 PM
#
Avatar image of I dunk for bananas
H/PC Elite

Posts:
702
Location:
Europe
Status:
I saved the entirety of my registry before and after setting a password, and there are zero differences. Where could it possible be saving the password? o.o
 Top of the page
Jump to forum:
Seconds to generate: 0.125 - Cached queries : 63 - Executed queries : 8