Ejemplo n.º 1
0
        public SRHSharedData()
        {
            m_Mmf = MemoryMappedFile.CreateNew(@"SimpleROHook1008",
                Marshal.SizeOf(typeof(StSHAREDMEMORY)),
                MemoryMappedFileAccess.ReadWrite);
            if (m_Mmf == null)
                MessageBox.Show("CreateOrOpen MemoryMappedFile Failed.");
            m_Accessor = m_Mmf.CreateViewAccessor();

            byte* p = null;
            m_Accessor.SafeMemoryMappedViewHandle.AcquirePointer(ref p);
            m_pSharedMemory = (StSHAREDMEMORY*)p;

            write_packetlog = false;
            freemouse = false;
            m2e = false;
            fix_windowmode_vsyncwait = false;
            show_framerate = false;
            objectinformation = false;
            _44khz_audiomode = false;
            cpucoolerlevel = 0;
            configfilepath = "";
            musicfilename = "";
            executeorder = false;
            g_hROWindow = 0;
        }
Ejemplo n.º 2
0
        public SRHSharedData()
        {
            m_Mmf = MemoryMappedFile.CreateNew(@"SimpleROHook1011",
                                               Marshal.SizeOf(typeof(StSHAREDMEMORY)),
                                               MemoryMappedFileAccess.ReadWrite);
            if (m_Mmf == null)
            {
                MessageBox.Show("CreateOrOpen MemoryMappedFile Failed.");
            }
            m_Accessor = m_Mmf.CreateViewAccessor();

            byte *p = null;

            m_Accessor.SafeMemoryMappedViewHandle.AcquirePointer(ref p);
            m_pSharedMemory = (StSHAREDMEMORY *)p;

            write_packetlog          = false;
            freemouse                = false;
            ground_zbias             = 0;
            alphalevel               = 0x7f;
            m2e                      = false;
            bbe                      = false;
            deadcell                 = false;
            chatscope                = false;
            fix_windowmode_vsyncwait = false;
            show_framerate           = false;
            objectinformation        = false;
            _44khz_audiomode         = false;
            cpucoolerlevel           = 0;
            configfilepath           = "";
            musicfilename            = "";
            executeorder             = false;
            g_hROWindow              = 0;
        }