Store the ConnectEx function pointer in a local static variable