WinToastLibC is a C bindings for WinToast library. With this bindings you can use the modern toast notifications of Windows 8 & Windows 10 in projects written in C or compiled with non-MSVC compilers.
Since this project is just bindings, documentation can be found in WinToast project.
- example1.c: minimal C code to show the toast notification
- example2.c: more complex example with image and basic AUMID registration and events handling
gcc example1.c wintoastlibc.lib -lole32 -mwindows
mv wintoastlibc.lib libwintoastlibc.dll.a
gcc example1.c -L. -lwintoastlibc -lole32 -mwindows
gendef wintoastlibc.dll
dlltool.exe -d wintoastlibc.def -D wintoastlibc.dll -l libwintoastlibc.dll.a
gcc example1.c -L. -lwintoastlibc -lole32 -mwindows
Loader source: wintoastlibc_lazy.c
gcc -shared -o wintoastlibc_lazy.dll \
-Wl,--out-implib=libwintoastlibc.dll.a \
-Wl,--export-all-symbols -Wl,--enable-auto-import \
-Wl,--whole-archive wintoastlibc_lazy.c -Wl,--no-whole-archive
gcc example1.c -L. -lwintoastlibc -lole32 -mwindows
Loader source: wintoastlibc_lazy.c
gcc -DWTLC_BUILD_STATIC -o wintoastlibc_lazy.o -c wintoastlibc_lazy.c
ar rcs libwintoastlibc.dll.a wintoastlibc_lazy.o
gcc example1.c -DWTLC_BUILD_STATIC -L. -lwintoastlibc -lole32 -mwindows