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