IsRegisteredSection
Upon receiving a section event, your application must call the IsRegisteredSection function to verify that the event received is for a registered section. You must call IsRegisteredSection before handling a section event because your application may have just called UnRegisterSection 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
The IsRegisteredSection function returns a result code (not a Boolean value) indicating whether the section is registered. A noErr 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 of IsRegisteredSection, see Listing 2-1 on page 2-14.