Execute NCP Extension 0x2222 37

Executes an NCP Extension that has been registered with the OS.

NetWare Server:4.x, 5.x

Request Format

Offset

Content

Type

Request header

6

FunctionCode (37)

byte

7

SubFuncStrucLen (4 + sizeof RequestData)

word (Hi-Lo)

9

NCPextensionNumber

long (Hi-Lo)

13

RequestData

byte[]

Reply Format

Offset

Content

Type

Reply header

8

ReplyBuffer

byte[]

Return Values

Decimal

Hex

Description

0

0x00

Successful

254

0xFE

 

Remarks

You must specify the NCP extension number that was obtained by calling Get NCP Extension Information (0x2222 36). NCPextensionNumber is equivalent to the NCP subfunction number.

Boundary checking is performed by the NCP extension handler.

The RequestData portion of the request packet is depending on the NCP extension handler that is used. If you use the extension handling capabilities of CLIB.NLM, the RequestData buffer might be as follows:

Offset

Content

Type

13

MaximumReplyLength

word (Lo-Hi)

15

RequestBuffer

byte[] /*528 bytes*/

 

RequestBufferLength

word (Lo-Hi)

The reply buffer length varies depending on the protocol that is used. IPX will allow a reply buffer of only 536 bytes. IP will allow a bigger buffer depending on what packet size was negotiated on connection.

If you use the extension handling capabilities of CLIB.NLM, the reply buffer might be as follows:

Offset

Content

Type

8

ReplyBufferLength

word (Lo-Hi)

10

ReplyBuffer

byte[]

See Also

Get NCP Extension Information (old) 0x2222 36 00, Get NCP Extension Maximum Data Size 0x2222 36 01, Get NCP Extension Information by Name 0x2222 36 02, Get Number of Registered NCP Extensions 0x2222 36 03, Get NCP Extension Registered Verbs List 0x2222 36 04, Return NCP Extension Information 0x2222 36 05, Return NCP Extension Maximum Data Size 0x2222 36 06