Click here to Skip to main content
14,663,965 members
Home » Discussions » .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: GUI from CreateProcessWithTokenW does not show up Pin
Eddy Vluggen17-Aug-17 7:46
professionalEddy Vluggen17-Aug-17 7:46 
GeneralRe: GUI from CreateProcessWithTokenW does not show up Pin
gobbo-dd17-Aug-17 9:14
Membergobbo-dd17-Aug-17 9:14 
GeneralRe: GUI from CreateProcessWithTokenW does not show up Pin
Eddy Vluggen17-Aug-17 11:24
professionalEddy Vluggen17-Aug-17 11:24 
GeneralRe: GUI from CreateProcessWithTokenW does not show up Pin
gobbo-dd21-Aug-17 0:07
Membergobbo-dd21-Aug-17 0:07 
GeneralRe: GUI from CreateProcessWithTokenW does not show up Pin
Eddy Vluggen21-Aug-17 5:04
professionalEddy Vluggen21-Aug-17 5:04 
GeneralRe: GUI from CreateProcessWithTokenW does not show up Pin
gobbo-dd21-Aug-17 21:56
Membergobbo-dd21-Aug-17 21:56 
GeneralRe: GUI from CreateProcessWithTokenW does not show up Pin
Eddy Vluggen22-Aug-17 3:56
professionalEddy Vluggen22-Aug-17 3:56 
GeneralRe: GUI from CreateProcessWithTokenW does not show up Pin
gobbo-dd22-Aug-17 22:50
Membergobbo-dd22-Aug-17 22:50 
AWESOME

//The following security adjustments are necessary to give the new 
//process sufficient permission to run in the service's window station
//and desktop. This uses classes from the AsproLock library also from 
//Asprosys.
IntPtr hWinSta = GetProcessWindowStation();
WindowStationSecurity ws = new WindowStationSecurity(hWinSta, AccessControlSections.Access);
ws.AddAccessRule(new WindowStationAccessRule("user@domain", WindowStationRights.AllAccess, AccessControlType.Allow));
ws.AcceptChanges();

IntPtr hDesk = GetThreadDesktop(GetCurrentThreadId());
DesktopSecurity ds = new DesktopSecurity(hDesk, AccessControlSections.Access);
ds.AddAccessRule(new DesktopAccessRule("user@domain", DesktopRights.AllAccess, AccessControlType.Allow));
ds.AcceptChanges();


Did the trick. Thank you veeery much for pointing me to this.

Cheers
Guido
GeneralRe: GUI from CreateProcessWithTokenW does not show up Pin
Eddy Vluggen23-Aug-17 0:00
professionalEddy Vluggen23-Aug-17 0:00 
GeneralRe: GUI from CreateProcessWithTokenW does not show up Pin
Dave Kreskowiak24-Aug-17 4:21
mveDave Kreskowiak24-Aug-17 4:21 
QuestionError in Panel AutoScroll after rotating a Picturebox within that Panel in VB.Net Pin
Member 90509857-Aug-17 11:59
MemberMember 90509857-Aug-17 11:59 
AnswerRe: Error in Panel AutoScroll after rotating a Picturebox within that Panel in VB.Net Pin
Alan N7-Aug-17 12:47
MemberAlan N7-Aug-17 12:47 
QuestionBest practice connecting to database Pin
A_Griffin5-Aug-17 23:58
MemberA_Griffin5-Aug-17 23:58 
AnswerRe: Best practice connecting to database Pin
Eddy Vluggen6-Aug-17 0:44
professionalEddy Vluggen6-Aug-17 0:44 
GeneralRe: Best practice connecting to database Pin
A_Griffin6-Aug-17 0:55
MemberA_Griffin6-Aug-17 0:55 
GeneralRe: Best practice connecting to database Pin
Eddy Vluggen6-Aug-17 1:06
professionalEddy Vluggen6-Aug-17 1:06 
GeneralRe: Best practice connecting to database Pin
A_Griffin6-Aug-17 4:41
MemberA_Griffin6-Aug-17 4:41 
GeneralRe: Best practice connecting to database Pin
Eddy Vluggen6-Aug-17 4:49
professionalEddy Vluggen6-Aug-17 4:49 
GeneralRe: Best practice connecting to database Pin
A_Griffin6-Aug-17 5:10
MemberA_Griffin6-Aug-17 5:10 
GeneralRe: Best practice connecting to database Pin
Eddy Vluggen6-Aug-17 5:19
professionalEddy Vluggen6-Aug-17 5:19 
AnswerRe: Best practice connecting to database Pin
Gerry Schmitz6-Aug-17 4:16
mveGerry Schmitz6-Aug-17 4:16 
GeneralRe: Best practice connecting to database Pin
Eddy Vluggen6-Aug-17 4:44
professionalEddy Vluggen6-Aug-17 4:44 
GeneralRe: Best practice connecting to database Pin
A_Griffin6-Aug-17 4:48
MemberA_Griffin6-Aug-17 4:48 
GeneralRe: Best practice connecting to database Pin
Eddy Vluggen6-Aug-17 5:08
professionalEddy Vluggen6-Aug-17 5:08 
GeneralRe: Best practice connecting to database Pin
A_Griffin6-Aug-17 5:18
MemberA_Griffin6-Aug-17 5:18 

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.