I'm getting my feet wet in Python trying to modify a Calibre plugin. But I think I've bitten off more than I can chew.
What I'm trying to modify is a piece of code that calls Windows' CryptUnprotectData() call. Ergo, it runs fine in Windows, but I want it to run in Linux. Somewhat fortunately, this function *has* been implemented in Wine and is available in a Wine .so. Unfortunately, (since it's technically a Win32 API call) it is declared "stdcall". Which Python's "cdll" import can't load.
So. Ideas about going forward? I'm thinking the quickest way to make this work would be to code a shim function in C that exposes itself as "cdecl" and simply calls the Wine function. Then Python can load the shim file.
Or am I barking up the wrong tree entirely?
Wade.
P.S. The plugin is for decoding a certain type of file. It works fine in the Windows version of Calibre, but I want to use the Linux version of Calibre.