コード例 #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)
 {
 }