This book shows you how to write programs that Run under Microsoft Windows 98, Microsoft Windows NT 4.0, and Windows NT 5.0. These programs are written in the C programming language and use the native Windows application programming interfaces (APIs). As I ll discuss later in this chapter, this is not the only way to write programs that Run under Windows. However, it is important to understand the Windows APIs regardless of what you eventually use to write your code.
Windows PE 文件在 DOS 下運行一般會顯示:This program cannot be Run in DOS mode.
這是PE文件頭部的一個"dos stub"程序,這個就是"dos stub"的源碼,我們可以修改它,用fasm.exe編譯,在vc連接時,加上 /stub:stub.exe