The 32 bit library uses different calling convention (64b the calling conventions are the same), so using WinDLL to open the cryptoki.dll will fail with the following error:
>>> dll.C_Initialize(ctypes.c_void_p())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: Procedure probably called with too many arguments (4 bytes in excess)
The 32 bit library uses different calling convention (64b the calling conventions are the same), so using WinDLL to open the cryptoki.dll will fail with the following error: