I am using the GetVersionEx API call 
Author Message
 I am using the GetVersionEx API call

After using the GetVersionEx api in VB5 it GPF's can anyone tell me
whats up with the function call?

Thanks




Mon, 10 Jul 2000 03:00:00 GMT  
 I am using the GetVersionEx API call

Did you initialize the dwOSVersionInfoSize parameter
correctly? If so, could you post your declaration
and usage?

--
Ron Ruble
Raffles Software Development, Inc.


Quote:
>After using the GetVersionEx api in VB5 it GPF's can anyone tell me
>whats up with the function call?

>Thanks





Mon, 10 Jul 2000 03:00:00 GMT  
 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



Wed, 12 Jul 2000 03:00:00 GMT  
 I am using the GetVersionEx API call

Use LenB()

--
Ron Ruble
Raffles Software Development, Inc.


Quote:
>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



Thu, 13 Jul 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Help with API Calls please.........I am at wits end :(

2. What am I missing in the API call?

3. GetVersionEX call fails from VB5

4. API - GetVersionEx

5. API GetVersionEx&()

6. API Question - GetVersionEx

7. I am trying to update a record, i am not using data control

8. I am trying to update a record, i am not using data control

9. Help, using GetVersionEX() in VB 5&6

10. Using GetDiskFreeSpaceEx and GetVersionEx

11. Help Using code in www.mvps.org API CALL to hide Access 97

12. Using VBA to call API (common dialogs)

 

 
Powered by phpBB® Forum Software