예제 #1
0
        public bool CreateSection(uint size)
        {
            Loader.LARGE_INTEGER lARGE_INTEGER = default(Loader.LARGE_INTEGER);
            this.size_            = this.round_to_page(size);
            lARGE_INTEGER.LowPart = this.size_;
            long v = (long)Loader.ZwCreateSection(ref this.section_, 268435456u, (IntPtr)0, ref lARGE_INTEGER, 64u, 134217728u, (IntPtr)0);

            return(this.nt_success(v));
        }
예제 #2
0
 private static extern int ZwCreateSection(ref IntPtr section, uint desiredAccess, IntPtr pAttrs, ref Loader.LARGE_INTEGER pMaxSize, uint pageProt, uint allocationAttribs, IntPtr hFile);