OSUnlink

C Specification

#include <revolution/os.h>
BOOL OSUnlink (OSModuleInfo* oldModule);

Arguments

oldModule Pointer to the module to unlink.

Return Values

Returns TRUE if the function completes normally.

Description

Unlinks the specified module.

Note:The unlinked modules are moved and can be relinked with OSLink. However, because the module data section is not returned to the original image, the module code should initialize variables explicitly if the memory copy of the unlinked module is reused.

Note:The OSLink function cannot reuse the unlinked module after the module is linked using the OSLinkFixed function.

See Also

Introduction to Relocatable Module System
OSLink

Revision History

03/01/2006 Initial version.