internal EndSceneHookExecutor(IAutoScalingSharedBuffer buffer, ICoreDll core) { m_buffer = buffer; m_processQueue = m_buffer.Reserve(c_queueSize + 4); m_core = core; m_event = m_core.InitializeInteraction(m_processQueue); }
private DllWrapper(int processId, SafeHandle hProcess, IAutoScalingSharedBuffer buffer) : base(IntPtr.Zero, false) { m_process = hProcess; m_buffer = buffer; m_unwrapper = buffer.Reserve(c_unwrapper.Length * 4 + c_padding); m_unwrapper.WriteNullTerminatedString(c_padding, c_unwrapper, Encoding.Unicode); m_pid = processId; SetHandle(getHandle(processId, "Kernel32.dll")); }
// todo: dispose before buffer disposed or use other memory public DllWrapper(string name, SafeHandle hProcess, int processId, DllWrapper kernel, IAutoScalingSharedBuffer buffer) : base(IntPtr.Zero, true) { m_process = hProcess; m_kernel = kernel; m_buffer = buffer; m_unwrapper = m_kernel.m_unwrapper; m_pid = processId; SetHandle(getHandle(processId, name)); }
internal PermanentActions(IAutoScalingSharedBuffer buffer) { m_buffer = buffer; m_callListSize = m_buffer.Size; //addNewCallListIfNeeded(); }
public static DllWrapper GetKernel(int processId, SafeHandle hProcess, IAutoScalingSharedBuffer buffer) { return(new DllWrapper(processId, hProcess, buffer)); }
public CoreWrapper(SafeHandle hProcess, int processId, DllWrapper kernel, IAutoScalingSharedBuffer buffer) : base(c_coreName, hProcess, processId, kernel, buffer) { }