Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: petyo
  • Order by date
  1. petyo

    Handle to a thread...

    Hello! I use BCB 5 and Win98. I wish to suspend or terminate a thread. I've found that thread using Thread32First and Thread32Next routines. But how can I retrieve the handle using ThreadID? Thanks in advance. Sincerely, Petyo Milotinov
  2. petyo

    WM_QUERYENDSESSION problem!!!

    Hello! I use windows 98 and BCB 5. My program is password protected and resides in system tray. I wrote my own message handler for messages from the tray: //in main.h struct TWMTrayMessage //struct for WM_TRAYMESSAGE { Cardinal Msg; // first parameter is the message ID WPARAM wParam...
  3. petyo

    WM_ENDSESSION and WM_QUERYENDSESSION problem

    Thanks for your support, dr. Lector! I found the solution - I have taken away Borland's OnFormCloseQuery event and I have put everything in WndProc. Here is the code: void __fastcall TMainForm::WndProc( TMessage &Msg) { switch ( Msg.Msg ) { case WM_ENDSESSION: if (...
  4. petyo

    WM_ENDSESSION and WM_QUERYENDSESSION problem

    I tried this one (which is equivalent): //in cpp file void __fastcall TMainForm::WMEndSession(TWMEndSession &Msg) { if ( Msg.EndSession == true ) { bForceClose = true; Close(); Msg.Result = 1; } } */...
  5. petyo

    WM_ENDSESSION and WM_QUERYENDSESSION problem

    Hello! I use Windows 98 and BCB. I develop a password protected application which resides ion systray. I wish when windows shuts down to stop my application without showing password dialog. Here is my code: ... void __fastcall TMainForm::WndProc( TMessage &Msg) { switch ( Msg.Msg ) {...

Part and Inventory Search

Back
Top