Hi, @Rohan Pande
The sample is Win32 .
https://github.com/microsoft/WindowsAppSDK-Samples/blob/main/Samples/Notifications/Push/cpp-console-packaged/cpp-console.cpp
using namespace winrt::Microsoft::Windows::PushNotifications;
And the document for C++ WinRT:
https://learn.microsoft.com/en-us/windows/windows-app-sdk/api/winrt/microsoft.windows.pushnotifications?view=windows-app-sdk-1.4
For not supported APIs, please check : Windows Runtime APIs not supported in desktop apps
Best regards,
Minxin Yu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.