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 theIsRegisteredSectionfunction to verify that the event received is for a registered section. You must callIsRegisteredSectionbefore handling a section event because your application may have just calledUnRegisterSectionwhile 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
TheIsRegisteredSectionfunction returns a result code (not a Boolean value) indicating whether the section is registered. AnoErrresult 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.