Thread: HeapSetInformation Query

  1. #1
    Registered User
    Join Date
    Mar 2009

    HeapSetInformation Query


    Can anybody let me know if using HeapSetInformation to set the process heap to a LF Heap
    causes subsequent calls to GloballAlloc within the process to use a LF Heap, or does it only
    work if you use HeapAlloc with the handle used in HeapSetInformation?


  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    New code should not use GlobalAlloc(), you should use the standard HeapAlloc - and then you don't need the answer to your question.

    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Mar 2009

    Smile Thanx

    thanx for that, trying to reuse some old code, but be better to change it, less problems later :-)

  4. #4
    'Allo, 'Allo, Allo
    Join Date
    Apr 2008
    Officially, there's no guarantee. In reality yes, from XP to 7 at least.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple query language
    By afflictedd2 in forum C++ Programming
    Replies: 3
    Last Post: 12-04-2008, 05:29 PM
  2. query problem
    By arian in forum C# Programming
    Replies: 1
    Last Post: 08-18-2008, 01:49 PM
  3. Url query encoding/decoding
    By Niara in forum Networking/Device Communication
    Replies: 6
    Last Post: 04-25-2007, 03:30 PM
  4. DNS Query
    By Simpsonia in forum Networking/Device Communication
    Replies: 1
    Last Post: 04-24-2006, 12:42 AM
  5. dns query
    By bulldog in forum C Programming
    Replies: 6
    Last Post: 02-24-2004, 10:44 AM