![]() |
HSetState |
||||
Header: | MacMemory.h | Carbon status: | Supported | |
Restores the properties of a relocatable block.
void HSetState ( Handle h, SInt8 flags );
A handle to a relocatable block.
A signed byte (char) specifying the properties to which you want to set the relocatable block.
You can use HSetState to restore properties of a block after a call to HGetState. See the description of the HGetState function for a list of the currently used bits in the flags byte. Because additional bits of the flags byte could become significant in future versions of system software, use HSetState only with a byte returned by HGetState. If you need to set two or three properties of a relocatable block at once, it is better to use the functions that set individual properties than to manipulate the bits returned by HGetState and then call HSetState.
Call the function MemError to get the result code. See
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)