That's what I was talking about. You need some OS dependent code here