tray latest
Cross-platform, super tiny C99 implementation of a system tray icon with a popup menu and notifications.
example.c File Reference

Example usage of the tray library. More...

#include <stdio.h>
#include <string.h>
#include "tray.h"
Include dependency graph for example.c:

Macros

#define TRAY_ICON1   "icon.ico"
 Path to first icon.
 
#define TRAY_ICON2   "icon.ico"
 Path to second icon.
 
#define TRAY_WINAPI   1
 Use WinAPI.
 

Functions

int main ()
 Main entry point.
 

Detailed Description

Example usage of the tray library.

Function Documentation

◆ main()

int main ( )

Main entry point.

Returns
0 on success, 1 on error.