winfsp / winspd

Windows Storage Proxy Driver - User mode disk storage
https://winfsp.dev
Other
411 stars 52 forks source link

I'm calling winspd in Python, but don't know how to use it #6

Closed pykernel closed 3 years ago

pykernel commented 3 years ago

Is there any case where Python calls winspd? Please help

billziss-gh commented 3 years ago

Unfortunately there is currently no Python interface to WinSpd.

You would have to create using ctypes or similar technology.

pykernel commented 3 years ago

不幸的是,当前没有WinSpd的Python接口。

您将必须使用ctypes或类似技术进行创建。

I know that cffi, ctypes library can access C language, but I can't understand C, I don't know where to start calling, ha ha ha.

Do you have API introduction similar to winfsp project? Cheers

billziss-gh commented 3 years ago

I know that cffi, ctypes library can access C language, but I can't understand C, I don't know where to start calling, ha ha ha.

You do not need to understand C to access the API, but you do need some understanding of how C DLL's can be accessed from Python using ctypes.

Do you have API introduction similar to winfsp project? Cheers

There is the WinSpd tutorial:

https://github.com/billziss-gh/winspd/blob/master/doc/WinSpd-Tutorial.asciidoc

pykernel commented 3 years ago

我知道cffi,ctypes库可以访问C语言,但我听不懂C,也不知道从哪里开始调用,哈哈哈。

您不需要了解C就可以访问API,但是您需要了解如何使用ctypes从Python访问C DLL。

您是否有类似于winfsp项目的API简介?干杯

有WinSpd教程:

https://github.com/billziss-gh/winspd/blob/master/doc/WinSpd-Tutorial.asciidoc

Thank you for your timely and patient reply. I failed to debug this tutorial this week. Maybe my way is wrong. I will try again how to use it. Cheers!