private static NtType GetTypeObject(SpecificAccessType type) { if (type == SpecificAccessType.ALPCPort) { return(NtType.GetTypeByType <NtAlpc>()); } else { return(NtType.GetTypeByName(type.ToString(), false)); } }
private static NtType GetTypeObject(SpecificAccessType type) { switch (type) { case SpecificAccessType.Transaction: return NtType.GetTypeByType<NtTransaction>(); case SpecificAccessType.TransactionManager: return NtType.GetTypeByType<NtTransactionManager>(); case SpecificAccessType.ResourceManager: return NtType.GetTypeByType<NtResourceManager>(); case SpecificAccessType.Enlistment: return NtType.GetTypeByType<NtEnlistment>(); case SpecificAccessType.ALPCPort: return NtType.GetTypeByType<NtAlpc>(); } return NtType.GetTypeByName(type.ToString(), false); }