windows: handling procedure call