Example #1
0
 public int GetRect(uint dwAspect, ref RECTL pRect)
 {
     if (m_GetRectFunc == null)
     {
         var fp = GetFunctionPointer(10);
         m_GetRectFunc = (GetRectFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetRectFunc));
     }
     return(m_GetRectFunc(m_ptr, dwAspect, ref pRect));
 }
Example #2
0
 public int Draw(uint dwDrawAspect, int lindex, IntPtr pvAspect, ref DVTARGETDEVICE ptd, HDC hdcTargetDev, HDC hdcDraw, ref RECTL lprcBounds, ref RECTL lprcWBounds, IntPtr pfnContinue, ulong dwContinue)
 {
     if (m_DrawFunc == null)
     {
         var fp = GetFunctionPointer(3);
         m_DrawFunc = (DrawFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(DrawFunc));
     }
     return(m_DrawFunc(m_ptr, dwDrawAspect, lindex, pvAspect, ref ptd, hdcTargetDev, hdcDraw, ref lprcBounds, ref lprcWBounds, pfnContinue, dwContinue));
 }