> Have you tried to pass the structure by reference? > > dso_lib.port_init(byref(init_data)) > > Thomas > That gives me another exeption: print dso_lib.port_init(byref(init_data)) ValueError: Procedure called with not enough arguments (4 bytes missing) or wrong calling convention Noralf.