[StructLayout(LayoutKind.Sequential)] public struct OBJECT_ATTRIBUTES { public int Length; public int RootDirectoryHandle; public IntPtr ObjectName; //PUNICODE_STRING public int Attributes; public int SecurityDescriptor; public int SecurityQualityOfService; }