All return values are UINT now.
This patch mutualize code between client and server for RDPEI. And add support for the server-side.