testing extern c function in SendMessages()