Joe,
The first thing I would do, if you haven't already, is go into Measurement and Automation Explorer (MAX)and make sure the routing between PFI_0 and RTSI_0 is available. If you click on your device under DAQmx Devices, one of the tabs at the bottom is Device Routes. This is a display of all the available routing for the board.
As for the function call itself, the device specification needs to be an integer rather than "m_nNiDevice". This integer should match up with the device number given in MAX (i.e. dev1, dev2, etc.). Let me know if this helps any.
TylerS