Click here to Skip to main content
13,196,426 members (50,601 online)
Click here to Skip to main content

Stats

173.5K views
4.9K downloads
49 bookmarked
Posted 17 Jan 2000

A service that displays an icon in the system tray

, 17 Jan 2000
This article demonstrates a service that uses the system tray to interact with the user.
IconService.exe
standby.ico
IconService.dsp
IconService.clw
IconService.dsw
#if !defined(AFX_ICONSERVICE_H__6B96F959_C431_11D3_BCD2_00A0D21A1A22__INCLUDED_)
#define AFX_ICONSERVICE_H__6B96F959_C431_11D3_BCD2_00A0D21A1A22__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "resource.h"

// internal name of the service
#define SZSERVICENAME        "IconService"
// displayed name of the service
#define SZSERVICEDISPLAYNAME "IconService"
// list of service dependencies - "dep1\0dep2\0\0"
#define SZDEPENDENCIES       ""
//////////////////////////////////////////////////////////////////////////////



//////////////////////////////////////////////////////////////////////////////

VOID ServiceStart(DWORD dwArgc, LPTSTR *lpszArgv);
VOID ServiceStop();
BOOL ReportStatusToSCMgr(DWORD dwCurrentState, DWORD dwWin32ExitCode, DWORD dwWaitHint);


#endif // !defined(AFX_ICONSERVICE_H__6B96F959_C431_11D3_BCD2_00A0D21A1A22__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Bruno Vais
United States United States
No Biography provided

You may also be interested in...

Pro
Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.171019.1 | Last Updated 18 Jan 2000
Article Copyright 2000 by Bruno Vais
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid