MGMT_MakeCommandVirtualFileWithHelp

Defines a virutal file (similar to MGMT_MakeCommandVirtualFile) This function allows you to define a help string that is read from the file by default. The specified write function is put in a datastream named "command" and must be accessed using that datastream.

Service:VFS

Syntax

#include <nssPubs.h>

STATUS MGMT_MakeCommandVirtualFileWithHelp (
   Key_t    key,
   utf8_t   help,
   utf8_t  *writeRoutine,
   utf8_t  *writeParm);

Parameters

key

Specifies the key returned from zCreate or zOpen in File System Services (64-Bit).

help

Specifies a NULL-terminated string that is returned on the default datastream from a read operation.

writeRoutine

Points to the NULL-terminated name of the public symbol for the write function.

writeParm

Points to the string that is passed as the parm parameter to the write function.

Return Values

The return status should either be zOK or a valid NSS error code.