Usermode codesnippets that could be useful