12-17-2007 01:06 PM
12-18-2007 11:06 AM
Hi Dan57,
OSVERSIOINFO is a structure that receives the operating system information. It is defined in windows.h. The GetVersionEx function is drawn from the Windows kernel32.dll. There is no need to include the header files and dlls with the build because the C code generator with the Inline C Node automatically includes these. This can be done because the LabVIEW PDA Module and LabVIEW Touch Panel Module only target machines running Windows operating systems (Windows Mobile and Windows CE). For more information on these structures and functions, please visit the Microsoft Developer Network and reference the GetVersionEx Function. There is a link at the bottom of the GetVersionEx Function page that will take you to the details of OSVERSIONINFO.
12-18-2007 12:15 PM
Thanks, Donovan.
I'm still not clear on where the dll types and functions are coming from. There's no kernel32.dll file on my PDA (running Windows Mobile 6, showing hidden files). The only kernel32.dll on the host PC is located in the C:\Windows\system32 directory. Does the Lab View PDA module link the XP version into the executable? This would explain why some OS calls behave oddly (MessageBox displays empty squares for the ipCaption and ipText parameters - unknown font?).
12-19-2007 06:32 PM - edited 12-19-2007 06:33 PM
Hi Dan,
It looks like there is an OSVERSIONINFO struct and GetVersionEx function available in the coredll.lib for the application to call on a PDA running Windows Mobile 5.0. On both operating systems, it looks like the GetVersionEx function is defined in winbase.h, so I am not sure if there is some kind of linking between the two or if the header file is automatically included when building the executable or not. Let me do some more research and I'll let you know.
The information for the function on Windows Mobile can be found here.
12-20-2007 05:38 PM
Donovan B wrote:
Hi Dan,
It looks like there is an OSVERSIONINFO struct and GetVersionEx function available in the coredll.lib for the application to call on a PDA running Windows Mobile 5.0. On both operating systems, it looks like the GetVersionEx function is defined in winbase.h, so I am not sure if there is some kind of linking between the two or if the header file is automatically included when building the executable or not. Let me do some more research and I'll let you know.
The information for the function on Windows Mobile can be found here.
Message Edited by Donovan B on 12-19-2007 06:33 PM