public static ISecurable GetSecurable(NativeTypeFactory.ObjectType objectType, Func <StandardRights, NativeHandle> openMethod) { return(new GenericSecurableObject(NativeTypeFactory.GetSeObjectType(objectType), openMethod)); }
public static ISecurable GetSecurable(NativeTypeFactory.ObjectType objectType, IntPtr handle) { return(GetSecurable(objectType, (access) => new NativeHandle <StandardRights>(handle, access))); }