LPARAM is a pointer.

"name" is of type LPARAM.

"(wchar_t *) name" casts name to a pointer to a (wide, i.e. Unicode) string.

The fgetws gets a wide string of length "length", from stdin, and...