[Python] Load WinIO

在試 python 載入 winio.dll ,並呼叫 winio.sys
一直都失敗目前這份程式碼是利用windows API的LoadLibrary()嘗試
不過似乎還是不行
不過還是紀錄一下,感覺快成功了

#from ctypes import *
import ctypes

func_open  = ctypes.windll.kernel32.LoadLibraryA
func_close = ctypes.windll.kernel32.FreeLibrary
func_dir = ctypes.windll.kernel32.GetProcAddress

hDll = func_open("WinIo32.dll")
hFuncDir = func_dir(hDll,"InitializeWinIo()")
print(hFuncDir)
input()
hFuncDir = func_dir(hDll,"ShutdownWinIo()")
print(hFuncDir)
print(func_close(hDll))

留言

匿名表示…
Did you succeed? Use the winio32.dll in the python.

這個網誌中的熱門文章

如何在VS2022 Community 簡要的設定UDK2018的環境

自製讀取 H 檔案並找出 define 的程式

如何Build UDK2018