No navigation frame on the left?  Click here.

midlbug

 

Midlbug started out as a sample demonstrating the now-infamous structure-padding bug: MIDL just plain forgot that an array of structures is padded such that each element starts on the next alignment boundary.

Well, this problem is history as of MIDL 3.0, but another one persists; you can sometimes tickle it by running the midlbug sample and telling it to transfer gazillions of short strings (lengths 1, 3, 7 bytes seem to work best for this).

Mainly, however, midlbug became my testbed for all sorts of things, including authenticated RPC. Today, midlbug is no longer the only sample for secure RPC that I know of. It now shares this honor with RPCSVC, one of the samples in the Win32 SDK. But midlbug is still the only sample that gets it right!

midlbug.zip, 63 KB