Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9238

Re: Amyuni with PB12.6 64-bit

$
0
0

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


Viewing all articles
Browse latest Browse all 9238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>