Some functions allow the caller to pass a NULL pointer as opposed to a NULL string (pilg_login). To pass a NULL pointer use vbNullString. The function declaration, in the piapi32.bas file must declare these parameter’s types to be "As Any" to allow both the numeric as well as string types. This then requires the type to be declared in each call. As installed, these declarations are specified as ByVal String.