bmx-ng / pub.mod

BlitzMax NG Pub modules port.
7 stars 8 forks source link

Incorrect WNDCLASS definition in win32.mod->user.bmx #67

Open davecamp opened 9 months ago

davecamp commented 9 months ago

Hiya, I noticed that the type definition for WndClass is incorrect (possibly the reason you wrap via C ?) in win32.mod -> user.bmx. All handles should be Byte Ptr in Windows to get the correct binary layout and correct size. I've not checked any other definitions as this time.

Type WNDCLASS
    Field style:Int
    Field lpfnWndProc:Byte Ptr
    Field cbClsExtra:Int
    Field cbWndExtra:Int
    Field hInstance:Byte Ptr
    Field hIcon:Byte Ptr
    Field hCursor:Byte Ptr
    Field hbrBackground:Byte Ptr
    Field lpszMenuName:Byte Ptr
    Field lpszClassName:Byte Ptr
End Type