TreeCheck

Previous

Next

The CheckTree Function

With the tree check function, you can check a tree connection, and the password of an user:

int _cdecl CheckTree(const SmbTreeData *pData)

Parameters

pData

A pointer to the tree data.

typedef struct
{
char cDevice [MAX_DEVICE_SIZE];
char cServer [MAX_SERVERNAME_SIZE];
char cService [MAX_SERVICE_SIZE ];
char cUsername[MAX_USERNAME_SIZE];
char cPassword[MAX_PASSWORD_SIZE];
int iPasswordLen;
BOOL bEncrypt;
const BYTE
*pChallenge;
}SmbTreeData;

cDevice is the name of the device connection.
cServer is the hostname of the server.
cService is the name of the connected tree.
cUsername is the name of logged on user.
cPassword is password of the user.
iPasswordLen is length of the password.
bEncrypt is TRUE if the password is encryped.
pChallenge is a pointer to the challenge bytes for the encryption.


return value

Value

Meaning
-1 the user has no access to the tree
0 the user has write access to the tree if the tree
has write access.
1 the user has only read access to the tree

Here is a diagram which shows the dependencies of the callback functions.


Introduction
The SMB daemon
The NMB daemon
The CheckTree Function
The UserLogon Function
The GetPassword Function
The SmbInsertTreeEntry Function
The SmbInfo Function
OS-Independency


Copyright ゥ 2003 Anton Zechner

AltStyle によって変換されたページ (->オリジナル) /