NPA_Config

Controls various custom configuration options for the nwpa.nlm file.

Thread Context:Non-Blocking

Syntax

    LONG NPA_Config (
       LONG   function,
       LONG   parameter0,
       LONG   parameter1,
       LONG   parameter2
       );
    
    

Parameters

Function 1 - Enable/Disable CDM Autoload

Parameter

Value

function

1

parameter0

0 = Disable autoload

1 = Enable autoload

parameter1

0

parameter2

0

Function 2 - Enable/Disable Autoscan

function

2

parameter0

0 = Disable autoscan

1 = Enable autoscan

parameter1

0

parameter2

0

Function 3 - Enable/Disable Sending of HACBs to HAMs

Parameter

Value

function

3

parameter0

Media Manager Object ID of the Adapter Object associated with the HAM. For more information on determining this ID number, refer to the Media Manager documentation.

parameter1

0 = Allow HACB requests to this HAM.

1 = Prevent HACB requests to this HAM.

parameter2

0

Function 4 - Return HACB Count on an Adapter

Parameter

Value

function

4

parameter0

Media Manager Object ID of the Adapter Object associated with the HAM. For more information on determining this ID number, refer to the NDK: Media Manager for NetWare 5.x and 6.x documentation.

parameter1

Address of a LONG where the count should be returned

parameter2

0

Function 5 - Return CDM Binding Information

This function returns the CDMs that are bound to a device in a find first - find next manner. The filter CDMs are returned first, than any enhancer CDMs, then finally the base CDM. A nonzero return code indicates that no more CDMs were found, and the information in the CDMInfoStruct is invalid.

Parameter

Value

function

5

parameter0

Media Manager Object ID of the Adapter Object associated with the HAM. Refer to the Media Manager documentation for more information on determining this ID number.

parameter1

Points to a LONG that represents the next CDM. The LONG that this address is pointing to must be initialized to -1 for the first CDM. NWPA automatically updates the pointer for the next call.

parameter2

Points to a CDMInfoStruct.

Function 6 - Reserved

Return Values

The following table lists return values and descriptions.

zero

Successful

nonzero

Unsuccessful

Remarks

This function can be used to customize the operation of NWPA.

Other functions will be added by Novell as needed.