Пример #1
0
 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);
 }
Пример #2
0
 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"));
 }
Пример #3
0
 // 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));
 }
Пример #4
0
 internal PermanentActions(IAutoScalingSharedBuffer buffer)
 {
     m_buffer       = buffer;
     m_callListSize = m_buffer.Size;
     //addNewCallListIfNeeded();
 }
Пример #5
0
 public static DllWrapper GetKernel(int processId, SafeHandle hProcess, IAutoScalingSharedBuffer buffer)
 {
     return(new DllWrapper(processId, hProcess, buffer));
 }
Пример #6
0
 public CoreWrapper(SafeHandle hProcess, int processId, DllWrapper kernel, IAutoScalingSharedBuffer buffer) : base(c_coreName, hProcess, processId, kernel, buffer)
 {
 }