Important: The information in this document is obsolete and should not be used for new development.
IsRegisteredSection
Upon receiving a section event, your application must call theIsRegisteredSection
function to verify that the event received is for a registered section. You must callIsRegisteredSection
before handling a section event because your application may have just calledUnRegisterSection
while the event was already being held in the event queue.
FUNCTION IsRegisteredSection (sectionH: SectionHandle): OSErr;
sectionH
- A handle to the section record for a given section.
DESCRIPTION
TheIsRegisteredSection
function returns a result code (not a Boolean value) indicating whether the section is registered. AnoErr
result code indicates that a section is registered.RESULT CODES
noErr 0 No error notRegisteredSectionErr -452 Not registered SEE ALSO
For an example of the use ofIsRegisteredSection
, see Listing 2-1 on page 2-14.