This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <initguid.h> | |
#include <Windows.h> | |
#include <roapi.h> | |
#include <Windows.ui.notifications.h> | |
#include <notificationactivationcallback.h> | |
#include <tchar.h> | |
#include <stdio.h> | |
#pragma comment(lib, "runtimeobject.lib") | |
DWORD dwMainThreadId = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Send toast notifications in Windows 10, using Windows Runtime, | |
// without any language projection, in PLAIN C | |
// Copyright (c) 2021 Valentin - Gabriel Radu | |
// | |
// MIT License | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this softwareand associated documentation files(the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and /or sell | |
// copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Changed awaiter to not leak memory on suspension thanks to /u/Enemii. | |
#include <experimental/coroutine> | |
#include <iostream> | |
#include <memory> | |
#include <optional> | |
#include <utility> | |
template<typename T> | |
class shared_optional { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Fully native C++ WinRT application example | |
// Programmed by fincs | |
// | |
#include <windows.h> | |
#include <roapi.h> | |
#include <wchar.h> | |
#include <stdio.h> | |
#include <stdlib.h> |