From matteozan.it
The following code is a code snippet that enable the Low Fragmentation Heap for all heaps. Remembers that a process has at last one heap but for example a CRT console application has practically at last two heaps. The first heap is default heap of process and the second is the CRT heap. If you use a lot of external DLLs is very common that one of this DLL allocate a private heap.
* FLH is useful if a program use intensively Heap memory for a long time, this is the case of a Server application like MySQL.
* This settings is made by the program and affect only itself not all system.
Anyway LFH is enabled by default in Vista.
Suggested reading Windows Internals 4th edition for more details.