The GetPassword Function

With the get password function, the smb server gets the password for an user:

int _cdecl GetPassword(const char *pUser,char *pPassword,int iSize)

Parameters

pUser

A pointer to user name.

pPassword

A pointer to a buffer, where the function must store the password.

iSize

Is the size of the buffer in byte.

return value

Value

Meaning
0 for this user all password are valid.
0< VAL <iSize is the size of the stored password in bytes. 
10000 the user is not valid.

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