Click here to Skip to main content
15,887,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: Setting Socket.ReceiveBufferSize Pin
Mark Salsbery25-Nov-08 5:42
Mark Salsbery25-Nov-08 5:42 
Questionsmart card Pin
ellllllllie24-Nov-08 0:34
ellllllllie24-Nov-08 0:34 
QuestionA blocking operation was interrupted by a call to WSACancelBlockingCall Pin
Gareth H24-Nov-08 0:27
Gareth H24-Nov-08 0:27 
AnswerRe: A blocking operation was interrupted by a call to WSACancelBlockingCall Pin
led mike24-Nov-08 5:02
led mike24-Nov-08 5:02 
GeneralRe: A blocking operation was interrupted by a call to WSACancelBlockingCall Pin
Gareth H24-Nov-08 5:37
Gareth H24-Nov-08 5:37 
GeneralRe: A blocking operation was interrupted by a call to WSACancelBlockingCall Pin
led mike24-Nov-08 5:56
led mike24-Nov-08 5:56 
GeneralRe: A blocking operation was interrupted by a call to WSACancelBlockingCall Pin
Gareth H24-Nov-08 7:24
Gareth H24-Nov-08 7:24 
QuestionCapturing SessionEnding without Main form Pin
__DanC__23-Nov-08 23:21
__DanC__23-Nov-08 23:21 
I need to capture the SessionEnding event in my C# app, this worked fine by adding a handler to the SystemEvents.SessionEnding event when I had message loop on my main thread. Unfortunately that is now not the case, I no longer have a message loop and now I don't get the notification.

I have tried creating a message-only window to capture the WM_ENDSESSION/WM_QUERYENDSESSION messages but these are only sent to top-level windows and not message-only windows. So I tried using SetWindowsHookEx to hook WH_CALLWNDPROC which still does not send the WM_ENDSESSION message, then I tried SetConsoleCtrlHandler which also doesn't seem to work.

Does anyone have any ideas on how I can trap this message without a main form?

Thanks.
QuestionThis is about material. I am Mongolia. I don't speak english Pin
Tsodgorhuu23-Nov-08 22:27
Tsodgorhuu23-Nov-08 22:27 
AnswerRe: This is about material. I am Mongolia. I don't speak english Pin
Simon P Stevens23-Nov-08 22:36
Simon P Stevens23-Nov-08 22:36 
GeneralRe: This is about material. I am Mongolia. I don't speak english Pin
Thomas Weller23-Nov-08 22:41
Thomas Weller23-Nov-08 22:41 
GeneralHelp me Pin
Tsodgorhuu23-Nov-08 22:42
Tsodgorhuu23-Nov-08 22:42 
AnswerCross post, please ignore Pin
Giorgi Dalakishvili23-Nov-08 22:40
mentorGiorgi Dalakishvili23-Nov-08 22:40 
AnswerRe: This is about material. I am Mongolia. I don't speak english Pin
Vimalsoft(Pty) Ltd23-Nov-08 22:40
professionalVimalsoft(Pty) Ltd23-Nov-08 22:40 
RantRe: This is about material. I am Mongolia. I don't speak english - no, but you cross post your homework everywhere Pin
Ashfield23-Nov-08 23:01
Ashfield23-Nov-08 23:01 
AnswerRe: This is about material. I am Mongolia. I don't speak english Pin
zenstain10-Nov-11 8:39
professionalzenstain10-Nov-11 8:39 
Question[Message Deleted] Pin
Tsodgorhuu23-Nov-08 22:17
Tsodgorhuu23-Nov-08 22:17 
AnswerRe: Help me Pin
J4amieC23-Nov-08 22:18
J4amieC23-Nov-08 22:18 
Question[I wrote]: hi.. Pin
vinay_K23-Nov-08 22:16
vinay_K23-Nov-08 22:16 
AnswerRe: [I wrote]: hi.. Pin
Simon P Stevens23-Nov-08 22:20
Simon P Stevens23-Nov-08 22:20 
GeneralRe: [I wrote]: hi.. Pin
vinay_K23-Nov-08 22:22
vinay_K23-Nov-08 22:22 
QuestionInsert data into a table Pin
sram1523-Nov-08 22:06
sram1523-Nov-08 22:06 
AnswerRe: Insert data into a table Pin
Giorgi Dalakishvili23-Nov-08 22:09
mentorGiorgi Dalakishvili23-Nov-08 22:09 
GeneralRe: Insert data into a table Pin
sram1523-Nov-08 22:12
sram1523-Nov-08 22:12 
GeneralRe: Insert data into a table Pin
Giorgi Dalakishvili23-Nov-08 22:16
mentorGiorgi Dalakishvili23-Nov-08 22:16 

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.