Community

The GetRegionData function fails if the buffer is allocated on the stack. Is it allergic to stack memory or something?

(Raymond Chen) If you pass a NULL buffer to the Get­Region­Data function, the return value tells you the required size of the buffer in bytes.