How do you unlock any characters besides Mario Yoshi luigi and wario in Super Mario 64 DS?

you can unlock luigi detective.