Exemplo n.º 1
0
 public int Query(GLOBALOPT_PROPERTIES dwProperty, ref ulong pdwValue)
 {
     if (m_QueryFunc == null)
     {
         var fp = GetFunctionPointer(4);
         m_QueryFunc = (QueryFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(QueryFunc));
     }
     return(m_QueryFunc(m_ptr, dwProperty, ref pdwValue));
 }
Exemplo n.º 2
0
 public int Set(GLOBALOPT_PROPERTIES dwProperty, ulong dwValue)
 {
     if (m_SetFunc == null)
     {
         var fp = GetFunctionPointer(3);
         m_SetFunc = (SetFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(SetFunc));
     }
     return(m_SetFunc(m_ptr, dwProperty, dwValue));
 }
Exemplo n.º 3
0
 public int Query(GLOBALOPT_PROPERTIES dwProperty, [NativeTypeName("ULONG_PTR *")] nuint *pdwValue)
 {
     return(((delegate * stdcall <IGlobalOptions *, GLOBALOPT_PROPERTIES, nuint *, int>)(lpVtbl[4]))((IGlobalOptions *)Unsafe.AsPointer(ref this), dwProperty, pdwValue));
 }
Exemplo n.º 4
0
 public int Set(GLOBALOPT_PROPERTIES dwProperty, [NativeTypeName("ULONG_PTR")] nuint dwValue)
 {
     return(((delegate * unmanaged <IGlobalOptions *, GLOBALOPT_PROPERTIES, nuint, int>)(lpVtbl[3]))((IGlobalOptions *)Unsafe.AsPointer(ref this), dwProperty, dwValue));
 }