CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2003
    Location
    Sri Lanka
    Posts
    64

    System Tray Application

    Dear Friends

    I developed an application to Appeare on System Tray. THis is continuasly running.

    I used Timer Control and "Shell_NotifyIcon" API in that application. Peogram is work fine.

    I am using windows 2000.

    Problem is I cant shut down windows since the above program is running.


    Please can any body help me.
    --
    web : http://www.freewebs.com/dineshns

  2. #2
    Join Date
    Aug 2004
    Posts
    13

    Re: System Tray Application

    ise the terminate process api...

    Private Declare Function TerminateProcess Lib "kernel32" (ByVal hProcess As Long, ByVal uExitCode As Long) As Long
    Private Declare Function GetCurrentProcess Lib "kernel32" () As Long

    TerminateProcess GetCurrentProcess, 0

  3. #3
    Join Date
    Sep 2003
    Location
    Sri Lanka
    Posts
    64

    Re: System Tray Application

    Thank you for your quick response.

    How do I use

    Private Declare Function TerminateProcess Lib "kernel32" (ByVal hProcess As Long, ByVal uExitCode As Long) As Long
    Private Declare Function GetCurrentProcess Lib "kernel32" () As Long

    Can you please explain how can I use above API's

    Thank you again
    --
    web : http://www.freewebs.com/dineshns

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured