Пример #1
0
        public OBJECT_ATTRIBUTES(string name, uint attrs)
        {
            Length                   = 0;
            RootDirectory            = IntPtr.Zero;
            objectName               = IntPtr.Zero;
            Attributes               = attrs;
            SecurityDescriptor       = IntPtr.Zero;
            SecurityQualityOfService = IntPtr.Zero;

            Length     = Marshal.SizeOf(this);
            ObjectName = new UNICODE_STRING(name);
        }
Пример #2
0
 public static extern int NtQuerySymbolicLinkObject(
     SafeFileHandle linkHandle,
     ref UNICODE_STRING linkTarget,
     out int returnedLength);