I do not need this now but it did make me wonder
In VB 6 if I define the following structure
Public Type OSVERSIONINFO
dwOSVersionInfoSize As Long
dwMajorVersion As Long
dwMinorVersion As Long
dwBuildNumber As Long
dwPlatformId As Long
szCSDVersion As String * 128 ' Maintenance string for PSS usage
End Type
It creates a structure which is 148? bytes long
However in vb.net
Public Type OSVERSIONINFO
dwOSVersionInfoSize As integer
dwMajorVersion As integer
dwMinorVersion As integer
dwBuildNumber As integer
dwPlatformId As integer
szCSDVersion As String' ' Maintenance string for PSS usage
End Type
blah.szcsdversion=space(128)
creates a structure which is 24 bytes long. How does one create the
structure needed for the API call (or can't you)?