He works for compuwarenumega labs as a lead architect for the boundschecker and distributed analyzer products. Thread debugging with the thread information block. Being the good dogfooder i am, im running vista in x64 mode. An indepth look into the win32 portable executable file format, part 2. From his highlevel reminiscences on the design of the windows start button to his lowlevel discussions of globalalloc that only your innergeek could love,the old new. Matt pietrek, msdn magazines under the hood columnist raymond chen has become something of a legend in the software industry, and in this book youll discover why.
Given the date, its easy enough to locate them on msdn s site. Given the date, its easy enough to locate them on msdns site. This is a really sad day for me and ill booze as hell on the phneutral conference tonight, to quickly forget what i. Another prodigious blogger and a good friend of mine is chris sells. First of all, its the first operating system with builtin. Since its introduction, the pe format has undergone incremental. John robbins covered these features briefly in the august 2001 installment of bugslayer. Microsoft portable executable and common object file format specification revision 6. For years, pc programmers used x86 assembly to write performancecritical code. If everything is legit, then id suggest trying another download from msdn and recopying it to a cd for installation.
Summary a good understanding of the portable executable pe file format leads to a good understanding of the operating system. Matt is a columnist for msdn magazine, and speaker. This article, the first of a twopart series, looks at the changes to the pe format that have occurred over the last few years, along with an overview of the format itself. Toward very end of article, robbins shows how to store descriptive text in thread information block tib which matt pietrek has described, and then how to display this information in vc debugger using a watch expression. Windows 95 system programming secrets is matt pietrek s third major work on how. If you know whats in your dlls and exes, youll be a more. This month, ill take the time to really drill into the subject and show you just how cool it can be. Download library source 18 kb download demo project 21 kb. This is update code from my november 2001 msdn column. Level of difficulty 1 2 3 summary the win32 portable executable file format pe was designed to be a standard executable format for use on all versions of the operating systems on all supported processors.
This article updates matt pietreks vectored exception handling article from the msdn magazine. Discover whats new in windows 95 from a programming and architectural point of view plunge into the specifics of its three core data structures modules, processes, and threads to understand issues such as local thread storage and structured exception handling get nittygritty details about key 16 and 32bit data structures, and tour the. Use features like bookmarks, note taking and highlighting while reading the old new thing. Matt pietrek is the author of windows 95 system programming secrets idg books, 1995. After that he went to columbia university and mit, where he got a bachelors degree in mathematics. This white paper is an introduction to x64 assembly. Typerefviewer utility shows typerefs and memberrefs in one. From his highlevel reminiscences on the design of the windows start button to his lowlevel. Managed exception handling is built on windows oss structured exception handling, commonly referred to as seh to learn more about seh, please read matt pietrek s excellent article first. By continuing to browse this site, you agree to this use. Practical development throughout the evolution of windows book.
If you know whats in your dlls and exes, youll be a more knowledgeable programmer. Get your kindle here, or download a free kindle reading app. Why is there a restorelasterror function that does the. He was the lead architect for compuwarenumegas bounds checker product line for eight years and has authored three books on windows system programming. Pe file header of the view the tool to view pe file header. My browser caused a flood of traffic, sio my ip address was banned. Level of difficulty 1 2 3 code download available from the msdn code gallery.
Discover improved system info, new kernel, debugging, security, and ui apis. Vectored exception handling in windows xp sp2 codeproject. Even though he flamed one of my msdn articles, i still admire the heck out of raymonds ability to explain why various windows oddities are the way they are. Matt pietrek, msdn magazines under the hood columnist. In the past, ive been an author, consultant and trainer, specializing in microsoft windows. Old new thing download ebook pdf, epub, tuebl, mobi.
This is updated code from my october 2000 msdn article, avoiding dll hell. Matt pietrek under the hood matt pietrek most recent most comments. Lib matt pietrek download the code for this article. Building on his article published in the june issue, which demonstrated several ways to get process and dllrelated information from apis such as psapi, ntdll, and toolhelp32, the author presents some unusual ways to get systemoriented info that you can easily integrate in your own toolkit. This implies that clr understands how to interoperate between seh and managed exception systems, which is a very key point since seh is based upon the notion of exception codes, while managed. Compuware retired driverstudio and therefore softice, my beloved debugger. Starting at borland in the late 1980s during the heady days of the microsoftborland compilers wars, he got his first, intoxicating taste of os internals, debuggers and tools. Previously, he was a computer specialist and author specializing in microsoft windows pietrek also has a keen interest in cocktails and spirits, and he writes a blog on the subject. An indepth look into the win32 portable executable file format by matt pietrek in the february 2002 issue of msdn magazine. This site uses cookies for analytics, personalized content and ads. How clr maps seh exceptions to managed exception types. Previously, he was a computer specialist and author specializing in microsoft. Windows system programming 4th edition addisonwesley microsoft technology series. In the discussion of the problems that occur if you load the same dll by both its short and long names, xepol asserted that any program which loads a dll by its short nam.
Msdns web site has changed their urls around so many times that ive given up trying to keep with them. Just read matt pietrek s blog and im completely aghasted at the moment. Remove fatty deposits from your applications using the liposuction tool 32bit html. Paul dilascia 9 october 1959 3 september 2008 was an american software developer, author, web developer and programming journalist and one of the most celebrated columnists for msdn he grew up in manhattan, where he went to a special high school for smart children. As matt pietrek has pointed out, the order of the dlls you see displayed inside the debugger is not the order in which. The company developed a kernel mode debugger, now softice, for dos and the windows nt family in december 1997 the company was acquired by compuware, when it became numega labs of compuware. Two compiler versions later, the problem is only slightly better. Under the hood matt pietrek under the hood matt pietrek most recent most comments.
Matt pietrek wrote an excellent article in the january 2001 msdn. Windows 95 system programming secrets the secrets series. Matt pietrek is an independent writer, consultant, and trainer. Pietrek has written several books on microsoft windows and for eight years wrote the column under the hood in msj and. It constantly amazes me how good his blog is, and how much. Libctiny matt pietrek 2001 msdn magazine, january 2001 libctiny plus some additions obj files from. So my life has finally settled down a bit, and i find myself working for the man, here in redmond wa. Contact information, faq, downloads, articles, authors msdn columns, conferences, other writers, fun photos. As of april 2004 he has been working at microsoft, initially on visual studio. The explanation is more readable than the dry, official style of the specs. He has authored three books on windows system programming and is a contributing editor for msdn magazine. An indepth look into the win32 portable executable file format by. Matt pietrek,msdn magazines under the hood columnist raymond chen has become something of a legend in the software industry, and in this book youll discover why.
Conceptually, not much has changed, so the original article is still the documentation. Meet matt pietrek, architect in visual studios team system technology group, specifically focusing on profiling and diagnostics in visual studio. Practical development throughout the evolution of windows kindle edition by chen, raymond. It also displays a recursive tree of all the dependencies of the executable file all the files it requires to run. While i was looking in msdn for something else, i came across an article by john robbins. Scott hanselman, raymond has been at microsoft for many years and has seen many nuances of windows that others could only selection from the old new thing. My current project involves moving over an existing web service to the new machine. Back then, a simple hello world program compiled to a 32kb executable. Improved system info and kernel, debugging, security, and. Richard murillo using vsts in microsoft legal charles. A good understanding of the portable executable pe file format leads to a good understanding of the operating system. Msdn s web site has changed their urls around so many times that ive given up trying to keep with them. A tour of the win32 portable executable file format. Here, matt tells us about some really interesting wor.
Unless otherwise stated, the section names in figure 1 come from microsoft tools. Practical development throughout the evolution of windows. Matt pietrek is a software engineer at a major language developer. However, 32bit pcs are being replaced with 64bit ones, and the underlying assembly code has changed. Matt pietrek is an engineer at numega technologies incorporated, developer of boundschecker and softicew tm. Break free of code deadlocks in critical sections under. From his highlevel reminiscences on the design of the windows start button to his lowlevel discussions of globalalloc that only. If youre finding that the vs debugging seems to get slower and slower especially when you first crank up a process, one thing to look for is unresolved breakpoints. Download old new thing or read online books in pdf, epub, tuebl, and mobi format. Matt pietrek born january 27, 1966 is an american spirits and cocktail writer. Matt pietrek, coauthor of the bestselling undocumented windows, reveals the.