Added query object to vc2013.
Updated test sample for windows.