Community The GetRegionData function fails if the buffer is allocated on the stack. Is it allergic to stack memory or something? by SSWUG Research (Raymond Chen) If you pass a NULL buffer to the GetRegionData function, the return value tells you the required size of the buffer in bytes. Register to Read