It seems that your declaration is mixed up. Check UnmanagedType, maybe this helps you find the proper types. I would assume that bAddressFlag should be Byte in VB (instead of char) and should be declared with UnmanagedType.U1 for example.
This is just a guess though.
testalino
2010-09-23 11:15:40