OSUnlink

Syntax

#include <revolution/os.h>

BOOL OSUnlink(OSModuleInfo* oldModule);

Arguments

oldModule Pointer to the module to be unlinked.

Return Values

Returns TRUE for normal termination.

Description

Unlinks the specified module.

Note: If the module is linked using OSLink, the unlinked module can be moved and linked again using 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: If the module is linked with OSLinkFixed, the unlinked module can no longer be reused by OSLink.

See Also

Relocatable Module System, OSLink

Revision History

2006/03/01 Initial version.


CONFIDENTIAL