Feb 25, 2016 Post comments count0 Post likes count1 How do I preload a chunk of memory into a memory-mapped file? Raymond Chen PrefetchVirtualMemory will do this.
Feb 24, 2016 Post comments count0 Post likes count1 A static_cast is not always just a pointer adjustment Raymond Chen That null pointer thingie.
Feb 22, 2016 Post comments count0 Post likes count1 Finding the shortest binary string in a given interval Raymond Chen Narrowing in.
Feb 19, 2016 Post comments count0 Post likes count1 When I try to calculate a performance counter manually, the answer is off by a factor of 100 Raymond Chen Because it's a percentage.
Feb 18, 2016 Post comments count0 Post likes count1 Nasty gotcha: VarCmp vs VariantCompare Raymond Chen Similar names, different return values.
Feb 17, 2016 Post comments count0 Post likes count1 Don’t just grab the foreground window and host UI on it, redux Raymond Chen Oops, it's not there any more.
Feb 15, 2016 Post comments count0 Post likes count1 How can I get the name for the user’s profile directory that is shown in Explorer? Raymond Chen You ask the shell namespace.
Feb 12, 2016 Post comments count0 Post likes count1 We batched up our COM requests and return a single stream of results, but the performance is still slow Raymond Chen Your stream marshaled by reference.
Feb 11, 2016 Post comments count0 Post likes count1 Debugging walkthrough: Diagnosing an NX exception Raymond Chen Leap of faith.
Feb 10, 2016 Post comments count0 Post likes count1 If somebody creates or deletes a file in a directory while I am enumerating its contents, what happens? Raymond Chen It's not really predictable.