`FindFirstChangeNotificationW` expects a `DWORD` (...
# kotlin-native
e
FindFirstChangeNotificationW
expects a
DWORD
(
UInt
) as last parameter, but the constants are all
Int
Am I supposed to convert it with
toUInt
or is it a problem with the type definitions?
w
Just a guess, those are probably #define constants and cinterop guesses they're signed by default. I think this is the situation where this section is relevant, to use a convert<> method, but toUInt should also work. Also, I read something in the patch notes about being able to enable implicit integer casts in 1.9.0, but that's probably not a great idea.
e
Thanks @Wyatt Kennedy! I think in case of WinAPI an implicit conversion sounds fine.