The following structure is passed to an NP when a logon or logoff occurs.
typedef struct _LOGONINFO { LPTSTR lpUsername, LPTSTR lpPassword, DWORD cbUsername, DWORD cbPassword } LOGONINFO, *LPLOGONINFO;
lpUsername
The name of the user logged on, as provided to the system logon dialog box.
lpPassword
The system logon password.
cbUsername
The size in bytes of the lpUsername buffer.
cbPassword
The size in bytes of the lpPassword buffer.