But in the current query control permissions, always fails, the return value: - 255, to obtain permission
Function prototypes for: IMC100_CurPermit (int * owner, unsigned int * ipAddr, unsigned short * ipPort, int comId=0)
For the function established the corresponding pointer variable in python3
The owner=ctypes. Pointer (ctypes. C_int (0))
Ipaddr=ctypes. Pointer (ctypes. C_uint (0))
Port=ctypes. Pointer (ctypes. C_ushort (0))
Then call
Result=IMC100_CurPermit (owner, ipaddr, port)
Results: the result=- 255
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Or change to:
The owner=ctypes. C_int (0)
OwnerAddr=ctypes. Byref (the owner)
IP=ctypes. C_uint (0)
IpAddr=ctypes. Byref (IP)
Port=ctypes. C_ushort (0)
PortAddr=ctypes. Byref (port)
Then call
Result=IMC100_CurPermit (ownerAddr ipAddr, portAddr)
Results: the result=- 255
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Here is inovance 2 function prototypes:
Can be successfully call the function

The failure of the function called

Application to obtain a similar friends under the guidance, the above problem in where? How to set up a corresponding C function pointer parameters in python?