Robert Shearman : rpcrt4: The arm type mask should be comparing the highest byte against 0x80, as documented on MSDN.