Home |
Function SMB3SAddShare |
Function SMB3SAddShareThis function defines a network share. int SMB3SAddShare(const char * Name, const char * LocalPath, const char * Comment); ParametersNameName of the share. The name must not be longer than 12 characters. LocalPathLocal file system path to associate with the share. CommentA comment describing the share. The comment must not be longer than 30 characters. return valueA unique ShareId >= 0 on success or a value < 0 on failure. All string parameters passed to this function must be permanently allocated (string constants, global variables, heap allocated, but not local/stack allocated) as only the pointers to the strings are copied. All strings may be accessed after the function returns. The SMB3 server supports up to 32 shares.
|