Responding to windows messages in formless app

  • Thread starter Thread starter Engineerik
  • Start date Start date
E

Engineerik

I have a socket server which does not have a form. I would like to do some
special logging of data when a user logs off (WM_ENDSESSION). If I was doing
this in an app with a main form I would override WindowProc. How do I do
this in an app with no forms?

Thanks,
Erik
 
I have a socket server which does not have a form. I would like to do some
special logging of data when a user logs off (WM_ENDSESSION). If I was doing
this in an app with a main form I would override WindowProc. How do I do
this in an app with no forms?

Thanks,
Erik


You can try using the NativeWindow class to create a lightweight
window for handling messages. See this link for information (sorry
it's C#):

http://www.liensberger.it/web/blog/?p=207

Chris
 
Back
Top