
I am using the GetVersionEx API call
Hi there,
I need the same thing.
What is de correct way to initialise dwOSVersionInfoSize? in VB4.0
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
As I count it a long is 4 bytes, so dwOSVersionInfoSize should be (5 *
4) + 128 = 148 wright?
Or is there a neater way to do it, using a sizeof() function like in C?
Regards, john