HeapSetInformation Query

This is a discussion on HeapSetInformation Query within the Windows Programming forums, part of the Platform Specific Boards category; Hi, Can anybody let me know if using HeapSetInformation to set the process heap to a LF Heap causes subsequent ...

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    2

    HeapSetInformation Query

    Hi,

    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?

    thanx

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

    --
    Mats
    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
    Posts
    2

    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
    Posts
    612
    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, 02:49 PM
  3. Url query encoding/decoding
    By Niara in forum Networking/Device Communication
    Replies: 6
    Last Post: 04-25-2007, 04:30 PM
  4. DNS Query
    By Simpsonia in forum Networking/Device Communication
    Replies: 1
    Last Post: 04-24-2006, 01:42 AM
  5. dns query
    By bulldog in forum C Programming
    Replies: 6
    Last Post: 02-24-2004, 10:44 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21