Click here to Skip to main content
15,877,757 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: CREATE DNS SERVER SOFTWARE Pin
Gerry Schmitz23-Sep-22 5:48
mveGerry Schmitz23-Sep-22 5:48 
GeneralRe: CREATE DNS SERVER SOFTWARE Pin
Os.kamal25-Sep-22 4:22
Os.kamal25-Sep-22 4:22 
GeneralRe: CREATE DNS SERVER SOFTWARE Pin
Os.kamal25-Sep-22 4:19
Os.kamal25-Sep-22 4:19 
QuestionInserting button name into the txt.text box (VB) Pin
GamerzfanArcade10-Sep-22 14:16
GamerzfanArcade10-Sep-22 14:16 
AnswerRe: Inserting button name into the txt.text box (VB) Pin
Richard MacCutchan10-Sep-22 21:17
mveRichard MacCutchan10-Sep-22 21:17 
GeneralRe: Inserting button name into the txt.text box (VB) Pin
GamerzfanArcade11-Sep-22 7:21
GamerzfanArcade11-Sep-22 7:21 
GeneralRe: Inserting button name into the txt.text box (VB) Pin
Richard Andrew x6411-Sep-22 9:12
professionalRichard Andrew x6411-Sep-22 9:12 
QuestionService to Logoff/Disconnect/Reboot Computer Pin
Member 1462398916-Aug-22 16:41
Member 1462398916-Aug-22 16:41 
I have a service that will perform some kind of action depending on what the SessionChangeDescription is. The service is installed on a computer that autologs in. To make this happen this registry value needs to be set and is set during OnStart:
Key: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
Value: AutoAdminLogon
Data: 1

There is a Windows Form that will allow a domain user to log in and the service will change the AutoAdminLogon value to a 0. When a power outage occurs and power is restored the PC, the computer does not autologon cause the registry value AutoAdminLogon is not set back to a 1 yet. I normally just send a logoff, tsdiscon, or restart to the computer through SCCM and it will autolog again. These are my questions:
1. Is it possible to logoff or disconnect a session through the service at a logon screen?
2. Is it possible to trigger one of the SessionChangeDescription without any session changes?
3. Restart the computer through the service?

What I have tried:

At OnStart, get the AutoAdminLogon value and if it a 0, then do one of these:
ExitWindowsEx function, WTSDisconnectSession function, wmi to logoff a session, tsdiscon.exe, logoff.exe, shutdown.exe, and LockWorkstation function.

None of them work. If I do the same through SCCM, the computer autologs in.
AnswerRe: Service to Logoff/Disconnect/Reboot Computer Pin
Member 1462398917-Aug-22 6:56
Member 1462398917-Aug-22 6:56 
QuestionVisual Studio List Box with 1,000,000 entries / Who else noticed this capacity? Pin
Member 150787168-Jul-22 13:36
Member 150787168-Jul-22 13:36 
AnswerRe: Visual Studio List Box with 1,000,000 entries / Who else noticed this capacity? Pin
Dave Kreskowiak8-Jul-22 15:52
mveDave Kreskowiak8-Jul-22 15:52 
GeneralRe: Visual Studio List Box with 1,000,000 entries / Who else noticed this capacity? Pin
Member 150787168-Jul-22 20:09
Member 150787168-Jul-22 20:09 
GeneralRe: Visual Studio List Box with 1,000,000 entries / Who else noticed this capacity? PinPopular
Dave Kreskowiak9-Jul-22 5:23
mveDave Kreskowiak9-Jul-22 5:23 
GeneralRe: Visual Studio List Box with 1,000,000 entries / Who else noticed this capacity? Pin
Member 150787169-Jul-22 6:48
Member 150787169-Jul-22 6:48 
AnswerRe: Visual Studio List Box with 1,000,000 entries / Who else noticed this capacity? Pin
Richard MacCutchan8-Jul-22 22:08
mveRichard MacCutchan8-Jul-22 22:08 
GeneralRe: Visual Studio List Box with 1,000,000 entries / Who else noticed this capacity? Pin
Member 150787169-Jul-22 5:59
Member 150787169-Jul-22 5:59 
AnswerRe: Visual Studio List Box with 1,000,000 entries / Who else noticed this capacity? Pin
Gerry Schmitz9-Jul-22 4:47
mveGerry Schmitz9-Jul-22 4:47 
GeneralRe: Visual Studio List Box with 1,000,000 entries / Who else noticed this capacity? Pin
Member 150787169-Jul-22 6:25
Member 150787169-Jul-22 6:25 
GeneralRe: Visual Studio List Box with 1,000,000 entries / Who else noticed this capacity? Pin
Gerry Schmitz9-Jul-22 12:28
mveGerry Schmitz9-Jul-22 12:28 
PraiseRe: Visual Studio List Box with 1,000,000 entries / Who else noticed this capacity? Pin
Member 150787169-Jul-22 14:53
Member 150787169-Jul-22 14:53 
GeneralRe: Visual Studio List Box with 1,000,000 entries / Who else noticed this capacity? Pin
CHill6020-Jul-22 2:37
mveCHill6020-Jul-22 2:37 
AnswerRe: Visual Studio List Box with 1,000,000 entries / Who else noticed this capacity? Pin
CHill6020-Jul-22 2:52
mveCHill6020-Jul-22 2:52 
GeneralRe: Visual Studio List Box with 1,000,000 entries / Who else noticed this capacity? Pin
Member 1507871620-Jul-22 14:03
Member 1507871620-Jul-22 14:03 
GeneralRe: Visual Studio List Box with 1,000,000 entries / Who else noticed this capacity? Pin
Victor Nijegorodov20-Jul-22 20:38
Victor Nijegorodov20-Jul-22 20:38 
GeneralRe: Visual Studio List Box with 1,000,000 entries / Who else noticed this capacity? Pin
Member 1507871621-Jul-22 5:53
Member 1507871621-Jul-22 5:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.