I'm trying to write a directory monitor using FindFirstChangeNotificationW and have struck a problem I can't resolve. All the documentation states the definition as
function FindFirstChangeNotificationW(lpPathName: LPCWSTR; bWatchSubtree: BOOL; dwNotifyFilter: DWORD): HANDLE
however in JwaWinBase the definition is
function FindFirstChangeNotificationW(lpPathName: LPCWSTR; bWatchSubtree: Cardinal; dwNotifyFilter: DWORD): HANDLE
It may be something simple but I don't know how to use the Cardinal vice boolean for bWatchSubTree, any assistance would be appreciated. Using Lazarus 1.8.4, FPC 3.0.4 Windows 10 1803 Build 17134.165.
I know I'm re-inventing the wheel but I'm self taught and find learning via experimenting\doing suits me.
Thanks
JimC