@exoteric: I did this using this sample on http://msdn.microsoft.com/en-us/library/kztecsys.aspx.