RE: unlcok PC via VB?
- From: Ed <Ed@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 26 Jun 2009 07:31:01 -0700
I am trying to set up my PC to run a program of mine automatically (using
Scheduled Tasks) when I am away from home. My PC will be on but locked when
I am away from home. My program initiates a 3rd party program (to which I do
not have access to its object model) and uses SendKeys to tell the 3rd party
program to download some data. The problem is that SendKeys does not work
when the PC is locked (at least, I've not been able to get it to work--if
there is a way to get SendKeys to work while the PC is locked this would
solve my problem). So I would like my program to temporarily unlock my PC so
the SendKeys will work, and then lock it back up when it is finished. As for
the security issues involved in unlocking the PC, I'm not too concerned since
I work out of my home and it's very unlikely anybody would be near my PC
during the period it is unlocked.
--
Ed
""Hongye Sun [MSFT]"" wrote:
Hi Ed,.
Thanks for your post.
May I know what's your business senario for this feature? In most of the
cases, unlocking windows programmatically is not a good solution, because
it leaves security hole for windows logon. Instead, we use windows service
to run the task, by which, you don't have to unlock the windows.
Windows uses Winlogon process to manage security-related user interations.
When windows locks, it opens a Winlogon desktop, as known as secure
desktop. The security on the Winlogon desktop is created so that only
Winlogon process can access that desktop. It means that when any time the
Winlogon desktop is active, no other process has access to any active code
or data associated with the desktop. Windows uses this feature to protect
the secure operations that involve passwords and locking and unlocking the
desktop. From this point, it is impossible to automates user's logon
actions in Winlogon desktop from other processes.
There is some way called GINA customization which can unlock session, but
it is also not suggested to use because it will have big security concern
if it is designed well. It is usually to be served to identify users by
other means like a thumbprint recognition device. There is no VB.NET sample
for it. Curretly, it only has C samples in Platform SDK security sample.
You can read the link below for details:
http://msdn.microsoft.com/en-us/library/aa380543(VS.85).aspx
Best Regards,
Hongye Sun (hongyes@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within?2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
- Follow-Ups:
- RE: unlcok PC via VB?
- From: "Hongye Sun [MSFT]"
- RE: unlcok PC via VB?
- References:
- unlcok PC via VB?
- From: Ed
- RE: unlcok PC via VB?
- From: "Hongye Sun [MSFT]"
- unlcok PC via VB?
- Prev by Date: Re: Connecting to SQL Server 2008 Express from Visual Studio .net (c#)
- Next by Date: Re: Help needed on Array's
- Previous by thread: RE: unlcok PC via VB?
- Next by thread: RE: unlcok PC via VB?
- Index(es):
Relevant Pages
|