This function is used to determine the home or personal directory associated with a user's account on a given network. Since the user's home directory is a typical place to store their User Profile (per-user registry settings), the directory should be one which the user (and network administrators) can write to, but which other users cannot write to.
DWORD NPGetHomeDirectory(
LPTSTR lpDirectory,
LPDWORD lpBufferSize
);
WN_NOT_LOGGED_ON | The user is not logged on to this network. |
WN_NOT_SUPPORTED | The network does not support home directories, or the user does not have a home directory. |
WN_MORE_DATA | The buffer is too small. |