Fast User Switching is implemented via Remote Desktop Services (used to be called Terminal Services), so to initiate the switching screen it's simply a matter of disconnecting the current session:
WTSDisconnectSession(WTS_CURRENT_SERVER_HANDLE, WTS_CURRENT_SESSION, FALSE);