http://cboard.cprogramming.com/windows-programming/154609-how-block-flash-memory.html