The video in on the iMac 27" is only compatible with the displayport standard of digial video signal - so passive adapters (as sold by apple) do no work when trying to input a vga/dvi/hdmi signal. If you want to do this you need an active signal converter (with a box to do the processing). Notwithstanding this should mean the mini displayport > displayport adapter should work, as it is assumed they carry the same signal.
Hi johnrs, im not sure if its been mentioned but there is a known problem with the 5xxx series display port adaptors with imac 27" screens.....its a driver issue, what happens is the pc doesnt pick up the new hardware fast enough before the imac screen either reverts back to osx or doesnt display anything, its apparently being worked on with either a driver update due or a bios flash, its all over the web, google it for more in depth info.
Hope thats some help.