I want to lock and unlock my win 7 workstation using window service. in
case of lock i m able to lock my work station independently by creating an app while i m integrating my code to windows service its unable to execute it and neither unlock my PC. for Unlocking i don't found any thing. Locking is done now i m seeking
for unlock win 7.
i have already go through with Credential Provider(the only option i found) Samples but these samples are not showing there functionality. i have also tried a new approach that to first imprisonateUser and then use this handler to view the desktop from session 1 of win 7, imprisonateUser is done but not found any thing regarding to display the desktop.
if some body knows any thing regarding it please help me out. Thanks
MORE INFO FROM OP ======================
i want to implement an security feature based on bluetooth range.
once my bluetooth device is not in range then my system is locked/logoff, once my device comes in range then i want to unlock my workstation without entering the password by user.
If You install own credential provider
You can store user credentials in Your service and unlock computer whenever You want
You can't (and should't) unlock/login to your workstation programatically. That's an extreme violation of security, because if your program can do it, OTHER programs can do it.
My first thought is: Why on earth would you want to do that?
Your machine should never be left unlocked if you are not sitting right in front of it. That is why the locking is there in the first place.
Perhaps a little more information as to what you are trying to accomplish would be helpful to us helping you.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)