Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2010-01

GetVersionEx - Issue with lpVersionInformation variable

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Justin Smyth

Guys

I've been looking at lpVersionInformation in GetVersionEx which is defined as TOSVersionInfo in redef.inc , and in delphi its defined as TOSVersionInfoEx in jclwin32.pas in jvcl ( function GetVersionEx(var lpVersionInformation: TOSVersionInfoEx): BOOL; stdcall; overload; is how its defined)

any idea's ? should i create my own bit for this and change the lpVersionInformation varable to match the JCL version ? ( will this work )

Michael Van Canneyt
to Justin Smyth
Justin Smyth wrote 5 lines
Guys I've been looking at lpVersionInformation in GetVersionEx which is defined as TOSVersionInfo in redef.inc , and in delphi its defined as TOSVersionInfoEx in jclwin32.pas in jvcl ( function GetVersionEx(var lpVersionInformation: TOSVersionInfoEx): BOOL; stdcall; overload; is how its defined) any idea's ? should i create my own bit for this and change the lpVersionInformation varable to match the JCL version ? ( will this work )

Check the GetVersionEx call in jwawinbase.pas, the structure is defined in JwaWinNT.

Michael.