I was given the following code (DELPHI), see attachment, but can't get it to compile / work.
It's supposed to implement a callback for sound change notifications. It works as such but I cant compile
PostMessage(Handle, WM_VOLNOTIFY, WPARAM(pNotify.bMuted <> False), LPARAM(Round(100 * pNotify.fMasterVolume)));
If I change to
PostMessage(Handle, WM_VOLNOTIFY, 0, 0);
It works, but, of course, I get no information what has changed ...
Any help appreciated.
Thanks in advance.