Hi Larry;
1) You can use Lars suggestion for Polymorphism.
- OR -
2) You can just wrap the call with an IF .... for example:
IF fn_is_64bit_os ( ) = TRUE THEN
DriverInit32 (......)
else
DriverInit64 ( ... )
END IF
Where
a) the DriverInit method has two External Function entries qualified by either 32 or 64 bitness
b) use the following in the fn_is_64bit_os ( ) method to check the OS bitness:
Boolean ib_64bit_os_found
IsWOW64process ( GetCurrentProcess ( ) , ib_64bit_os_found) |
Return ib_64bit_os_found
Externals
FUNCTION Boolean IsWow64Process ( ulong hProcess, Ref boolean Wow64Process) LIBRARY "KERNEL32.dll"
FUNCTION ulong GetCurrentProcess ( ) LIBRARY "KERNEL32.dll"
HTH
Regards ... Chris