Click here to Skip to main content
15,890,557 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can I use serialize and Deserialize to realize Store Function when update code? Pin
smallkubi28-Apr-17 2:47
smallkubi28-Apr-17 2:47 
GeneralRe: How can I use serialize and Deserialize to realize Store Function when update code? Pin
Richard MacCutchan28-Apr-17 3:05
mveRichard MacCutchan28-Apr-17 3:05 
GeneralRe: How can I use serialize and Deserialize to realize Store Function when update code? Pin
smallkubi28-Apr-17 18:00
smallkubi28-Apr-17 18:00 
GeneralRe: How can I use serialize and Deserialize to realize Store Function when update code? Pin
Richard MacCutchan28-Apr-17 21:28
mveRichard MacCutchan28-Apr-17 21:28 
GeneralRe: How can I use serialize and Deserialize to realize Store Function when update code? Pin
smallkubi28-Apr-17 22:33
smallkubi28-Apr-17 22:33 
GeneralRe: How can I use serialize and Deserialize to realize Store Function when update code? Pin
Richard MacCutchan28-Apr-17 22:40
mveRichard MacCutchan28-Apr-17 22:40 
QuestionPrint number of copies depending on the textbox input and put page numbers C# Pin
de winta26-Apr-17 21:40
de winta26-Apr-17 21:40 
QuestionScreensaver denied access to process/window list ? Pin
andymo221-Apr-17 11:12
andymo221-Apr-17 11:12 
Hello all,

I have a (personal) screensaver that shows particular content based on what applications are running. Under Win10 the program runs perfectly when executed directly (ie. running the exe), however when the program is executed from Windows10 (via screensaver trigger) the application can no longer enumerate Process windows.

Specifically:

If i use the following code snippet:

C#
using System.Diagnostics;
 
Process[] processlist = Process.GetProcesses();
 
foreach (Process process in processlist)
{
    if (!String.IsNullOrEmpty(process.MainWindowTitle))
    {
        Console.WriteLine("Process: {0} ID: {1} Window title: {2}", process.ProcessName, process.Id, process.MainWindowTitle);
    }
}


and run the application I get a proper list of open windows. But if the SAME application is launched as a screensaver, the above code produces nothing. Never had this issue under Win7 or previous.

Does anyone have any idea what might be happening ?

Thanks in advance,
Andy
GeneralRe: Screensaver denied access to process/window list ? Pin
Eddy Vluggen21-Apr-17 12:30
professionalEddy Vluggen21-Apr-17 12:30 
GeneralRe: Screensaver denied access to process/window list ? Pin
andymo222-Apr-17 2:56
andymo222-Apr-17 2:56 
GeneralRe: Screensaver denied access to process/window list ? Pin
Richard MacCutchan22-Apr-17 21:01
mveRichard MacCutchan22-Apr-17 21:01 
GeneralRe: Screensaver denied access to process/window list ? Pin
Eddy Vluggen23-Apr-17 23:01
professionalEddy Vluggen23-Apr-17 23:01 
GeneralRe: Screensaver denied access to process/window list ? Pin
Richard Deeming24-Apr-17 8:35
mveRichard Deeming24-Apr-17 8:35 
GeneralRe: Screensaver denied access to process/window list ? Pin
andymo224-Apr-17 12:57
andymo224-Apr-17 12:57 
GeneralRe: Screensaver denied access to process/window list ? Pin
Dave Kreskowiak24-Apr-17 13:12
mveDave Kreskowiak24-Apr-17 13:12 
GeneralRe: Screensaver denied access to process/window list ? Pin
andymo225-Apr-17 6:14
andymo225-Apr-17 6:14 
AnswerRe: Screensaver denied access to process/window list ? Pin
Gerry Schmitz25-Apr-17 4:59
mveGerry Schmitz25-Apr-17 4:59 
GeneralRe: Screensaver denied access to process/window list ? Pin
andymo225-Apr-17 6:30
andymo225-Apr-17 6:30 
GeneralRe: Screensaver denied access to process/window list ? Pin
Gerry Schmitz25-Apr-17 6:51
mveGerry Schmitz25-Apr-17 6:51 
GeneralRe: Screensaver denied access to process/window list ? Pin
andymo228-Apr-17 9:16
andymo228-Apr-17 9:16 
QuestionPausing Reception of Data Pin
Liagapi21-Apr-17 5:00
Liagapi21-Apr-17 5:00 
AnswerRe: Pausing Reception of Data Pin
Dave Kreskowiak21-Apr-17 5:06
mveDave Kreskowiak21-Apr-17 5:06 
AnswerRe: Pausing Reception of Data Pin
Gerry Schmitz21-Apr-17 9:05
mveGerry Schmitz21-Apr-17 9:05 
QuestionC# Is there a way to start my windows service on windows startup? Pin
Member 1090131720-Apr-17 22:20
Member 1090131720-Apr-17 22:20 
SuggestionRe: C# Is there a way to start my windows service on windows startup? Pin
Richard MacCutchan20-Apr-17 22:36
mveRichard MacCutchan20-Apr-17 22:36 

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.