winlogon

How to switch a process between default desktop and Winlogon desktop?

人盡茶涼 提交于 2019-12-28 20:49:13
问题 I am writing a remote desktop application like TeamViewer in C++ on Windows 7 (x64) and Windows 8 (x64). 1. What made me stuck I have implemented the mouse input and keyboard input by using SendInput(). I found SendInput() worked perfectly when the process ran under winsta0\desktop . But after the user locked the computer or the screensaver launched, it didn’t work. If I run the process under winsta0\winlogon , SendInput() doesn’t work under winsta0\default . 2. What I have tried I have tried

App is invisible if started from Task Scheduler without any user logged in

前提是你 提交于 2019-12-25 12:37:16
问题 Is there any way to have app visible even if it is started with "Run only if user logged on" unchecked? I know that windows starts app from task invisible as there is no user logged into yet. But when user logs in he would like to see that app instead of running in the background. I would like to know the way to solve it. There must be a lot of people who faced this problem before. Thanks, 回答1: It sounds to me like your application was not architectured correctly for the operating system

WPF Window on Winlogon Desktop

百般思念 提交于 2019-12-24 06:04:00
问题 I'm trying to show a custom Window or Control designed and built in WPF on Winlogon Desktop. I already managed, to switch the Desktop of the Thread with "SetThreadDesktop" and the Window opens on the Winlogon desktop. The Problem is, that the content of the Window is not rendered on the Winlogon Desktop. If I open the same Window on the Default Desktop, everything works as expected. If I replace the WPF Window with a Winforms Form, the GUI is responsive, but I want to use some of the

automatically login to windows after startup

随声附和 提交于 2019-12-23 03:39:10
问题 a client of mine uses the task manager to trigger (start) a process to do something. This process contains a UI, and needs to be a single instance at all times (been taken care of). Everything runs smoothly from the task manager, accept if you need to set the task manager settings to:”run whether user is logged on or not” (see the answer why this is a problem here: http://social.technet.microsoft.com/Forums/en-US/c03d6691-b058-4f8d-961c-e8eba25bbaed/task-scheduler-problem-run-whether-user-is

Custom Windows Authentication Package

我的梦境 提交于 2019-12-21 04:12:19
问题 So, here is the scenario. I am developing a logon system in windows 7. I have created a Credential Provider, containing one Credential. The Credential has three input fields, username, password, and PIN. From what I have learned the documentation (CMIIW) is that when we fill in the fields and click logon, WINLOGON will retrieve the username and password, and send it to LSA by calling LSALogonUser() to authenticate. LSA then will try negotiate with Authentication Package KERBEROS (for remote

Updating HKEY_CURRENT_USER hive from a service

半世苍凉 提交于 2019-12-20 07:27:23
问题 I am writing a network provider (Windows 7) to capture the domain name and username and I have to keep this in HKEY_CURRENT_USER\Software\MyApp\Profile Since the network provider is running as a service the data is stored in HKEY_USER\.Default\Software\MyApp\Profile After successful login if I try to read from my application it genuinely tries to read the data from that user's HKEY_CURRENT_USER which will not have anything. How is this being managed in general? How shall I store the data into

Take screenshot of desktop when Windows is locked (Win+L)

不打扰是莪最后的温柔 提交于 2019-12-18 06:56:51
问题 I want to take a screenshot of desktop while Windows is locked (with Win+L). Standard methods make a black screen, with code of pixel: COLORREF color = GetPixel(hdc, x, y); equal -1. Neither a user mode program nor a service could capture a useful image. Any ideas? 回答1: GetPixel and BitBlt won't work when the desktop isn't physically displayed on the monitor. You may have some luck capturing individual windows with PrintWindow. However, not all applications respond to PrintWindow calls the

Credential Provider - how to skip SAS?

你离开我真会死。 提交于 2019-12-14 02:55:21
问题 I implemented my own custom Windows credential provider following the Windows SDK example which should let a remote application connect to a server and perform logon automatically. The problem is: the SetUsageScenario event is not called until a user presses the SAS combination (Ctrl+Alt+Del), therefore my credential provider isn't able to automatically perform the login until that happens. How does RDP do the login automatically without me pressing Ctrl+Alt+Del and logging in automatically?

Winlogon screen capturing in Windows 7/10

泄露秘密 提交于 2019-12-13 17:17:09
问题 I need to capture a winlogon screen in WinXP/Win7/10. For WinXP I'm using a mirror driver and a standard methodic like this: ... extern "C" __declspec(dllexport) void SetActiveDesktop() { if ( currentDesk != NULL ) CloseDesktop( currentDesk ); currentDesk = OpenInputDesktop( 0, FALSE, GENERIC_ALL ); BOOL ret = SetThreadDesktop( currentDesk ); int LASTeRR = GetLastError(); } extern "C" __declspec(dllexport) HBITMAP CaptureAnImage( int width, int height, int bitsPerPixel ) { HBITMAP hbmScreen;

Windows 7 Logon Programmatically

≡放荡痞女 提交于 2019-12-13 04:59:19
问题 I am doing a R&D of my project. My project is about detecting a human using proximity sensor and return true or false to my system. If true my windows machine should logon automatically. If false no action should occur. I can able to get true or false status based on user verification. But now i just want to logon Windows 7 machine automatically.., I just want to know the procedure of how to do Windows 7 logon programmatically.. Any services can be written to achieve this..? or any suggestion