https://bugs.winehq.org/show_bug.cgi?id=47433
--- Comment #1 from Patrick Hibbs hibbsncc1701@gmail.com --- Created attachment 64782 --> https://bugs.winehq.org/attachment.cgi?id=64782 Patch to make window registration struct.
MSDN seems to indicate that each call to WTSRegisterSessionNotification[Ex]() is supposed to be paired with a call to WTSUnRegisterSessionNotification[Ex]().
MSDN also indicates that calls to WTSRegisterSessionNotification[Ex]() for an already registered window should fail.
I made a series of patches to enable this behavior in wine so that any DRM that decides to go looking will be satisfied.