[ Previous ] [ Contents ] [ Index ] [ Next ]

Ns_RegisterShutdown

Overview

Register a shutdown procedure.

Syntax

    typedef void (Ns_Callback) (void *context);
    
    Ns_ProcHandle Ns_RegisterShutdown(
    Ns_Callback *proc,
    void *context
    );

Description

The Ns_RegisterShutdown function registers proc as a shutdown procedure. The server calls all shutdown procedures before shutting down, in last-registered first-run order. The shutdown procedure takes the context as its sole argument. A shutdown procedure is often used to close or free a resource allocated by a module's initialization routine.

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1998-99 America Online, Inc.