'Is there a way to intercept windows notifications in golang

I found this api exposed in for C# developers and I'm aware there is a way to send toast notifications in Go, my question is:

Is there a way to read notifications that are send to the user's computer?

https://docs.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifications/notification-listener

go


Solution 1:[1]

I just looked for any Go program declaring / loading any DLL-like based on UserNotificationListener.

There is none to find, which means probably no direct support from Go.
Calling a C# function from Go would therefore be a possible workaround. matiasinsaurralde/go-dotnet might work too, but has not been updated those past few years.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1