private void Init(IntPtr pkgInfo) { _capabilities = MarshalHelper.ReadInt32(pkgInfo, typeof(SSPINative.SecPkgInfo), "Capabilities"); _version = MarshalHelper.ReadInt16(pkgInfo, typeof(SSPINative.SecPkgInfo), "Version"); _RPCID = MarshalHelper.ReadInt16(pkgInfo, typeof(SSPINative.SecPkgInfo), "RPCID"); _maxToken = MarshalHelper.ReadInt32(pkgInfo, typeof(SSPINative.SecPkgInfo), "MaxToken"); _name = MarshalHelper.ReadString(pkgInfo, typeof(SSPINative.SecPkgInfo), "Name"); _comment = MarshalHelper.ReadString(pkgInfo, typeof(SSPINative.SecPkgInfo), "Comment"); }