我正在尝试在 dll (user32.dll)中调用函数ChangeWindowMessageFilter
dlluser32 = ctypes.cdll.LoadLibrary('user32.dll')
dlluser32.ChangeWindowMessageFilter(0x0233, 1)
dlluser32.ChangeWindowMessageFilter(0x0048, 1)
dlluser32.ChangeWindowMessageFilter(0x0049, 1)
结果是:
ValueError: Procedure called with not enough arguments (16 bytes missing) or wrong calling convention
如何正确接听电话?我想在窗口中运行时使用此功能为我的应用程序启用拖放功能,如果它不起作用,还有其他方法吗?