2009-11-20 22:42:08 UTC
$B$$$D$bGRFI$5$;$F$$$?$@$$$F$*$j$^$9!#(B
$B8=:_!"(BHeaoAlloc$B4X?t$GF0E*$K%a%b%j$r3NJ]$7!"MxMQ2DG=J*M}%a%b%j$.$j$.$j$^$G(B
$B%G!<%?$r%a%b%j$KC_$($k(BPG$B$r:***@.$7$F$$$^$9!#(B
$B%M%C%H$G$3$N7o$K$D$$$FD4$Y$F$$$k$H(BHeapSetInformation$B4X?t$H$$$&$b$N$,$"$k(B
$B$H$7$j$^$7$?!#(BLFH$B5!G=$H$$$&$b$N$i$7$$$N$G$9$,!#$&$^$/F0$$$F$/$l$^$;$s!#(B
$B%=!<%9$O!"(BMain$B4X?t$N:G=i$K(BMSDN$B$N%I%-%e%a%s%H$I$*$j(B
ULONG ulEnableLFH = 2;
if (HeapSetInformation(GetProcessHeap(), HeapCompatibilityInformation,
$B!!!!!!!!!!(B&ulEnableLFH,sizeof(ulEnableLFH)))
{
printf("Success!\n");
}
else{
printf("Failure (%d)\n", GetLastError());
}
$B$H=q$$$F%3%s%Q%$%k$7$^$7$?!#(B
$B$7$+$7!"<:GT$7!"(BGetLastError$B$G(B31$B$,JV$C$F$-$^$9!#(B
$B$$$m$s$J(BPC$B$G$bF1$8>uBV$G$9!#(B
$B3+H/4D6-$O(BVS2005SP1$B!"(BOSWindowsXPSP3$B$G$9!#(B
$B$J$K$+(BOS$B$***@_Dj$,$$$k$N$G$7$g$&$+!)(B
$B8=:_!"(BHeaoAlloc$B4X?t$GF0E*$K%a%b%j$r3NJ]$7!"MxMQ2DG=J*M}%a%b%j$.$j$.$j$^$G(B
$B%G!<%?$r%a%b%j$KC_$($k(BPG$B$r:***@.$7$F$$$^$9!#(B
$B%M%C%H$G$3$N7o$K$D$$$FD4$Y$F$$$k$H(BHeapSetInformation$B4X?t$H$$$&$b$N$,$"$k(B
$B$H$7$j$^$7$?!#(BLFH$B5!G=$H$$$&$b$N$i$7$$$N$G$9$,!#$&$^$/F0$$$F$/$l$^$;$s!#(B
$B%=!<%9$O!"(BMain$B4X?t$N:G=i$K(BMSDN$B$N%I%-%e%a%s%H$I$*$j(B
ULONG ulEnableLFH = 2;
if (HeapSetInformation(GetProcessHeap(), HeapCompatibilityInformation,
$B!!!!!!!!!!(B&ulEnableLFH,sizeof(ulEnableLFH)))
{
printf("Success!\n");
}
else{
printf("Failure (%d)\n", GetLastError());
}
$B$H=q$$$F%3%s%Q%$%k$7$^$7$?!#(B
$B$7$+$7!"<:GT$7!"(BGetLastError$B$G(B31$B$,JV$C$F$-$^$9!#(B
$B$$$m$s$J(BPC$B$G$bF1$8>uBV$G$9!#(B
$B3+H/4D6-$O(BVS2005SP1$B!"(BOSWindowsXPSP3$B$G$9!#(B
$B$J$K$+(BOS$B$***@_Dj$,$$$k$N$G$7$g$&$+!)(B