msl.examples.loadlib.kernel64 module

Communicates with kernel32.dll via the Kernel32 class.

Example of a module that can be executed by a 64-bit Python interpreter which can communicate with a Windows 32-bit library, kernel32.dll, that is hosted by the corresponding 32-bit Python server, kernel32.

Kernel64 is the 64-bit client and Kernel32 is the 32-bit server for inter-process communication.

Note

The kernel32.dll library is a standard Windows library and therefore this example is only valid on a computer running Windows.

class msl.examples.loadlib.kernel64.Kernel64

Bases: Client64

Example of a class that can communicate with the 32-bit kernel32.dll library.

This class demonstrates how to communicate with a Windows 32-bit library if an instance of this class is created within a 64-bit Python interpreter.

get_local_time()

Sends a request to the 32-bit server, Kernel32, to execute the kernel32.GetLocalTime function to get the current date and time.

See the corresponding 32-bit get_time() method.

Returns:

The current date and time.

Return type:

datetime