Need help with CreateDIBSection error FS3236

Hello, I’ve been trying to use CsWin32 with F# for writing a native desktop program. I’ve run into a problem and I’m not sure what is wrong. I’ve put up a repo that will reproduce the error. I appreciate anyone who wants to take a look. One of CreateDIBSection’s args is ppvBits : nativeptr<voidptr> which is causing the error. Also be warned this is pretty ugly F#.