コード例 #1
0
 public static AntiCpXSvr.Error MakeRequest(AntiCpXSvr.SafeClientHandle clientHandle, out ArraySegment <byte> requestBuffer)
 {
     object[] array = new object[]
     {
         clientHandle.DangerousGetHandle(),
         default(AntiCpXSvr.TransBuffer)
     };
     AntiCpXSvr.Error       result      = (AntiCpXSvr.Error)AntiCpXSvr.type.InvokeMember("_AhnHS_MakeRequest", BindingFlags.InvokeMethod, null, null, array);
     AntiCpXSvr.TransBuffer transBuffer = (AntiCpXSvr.TransBuffer)array[1];
     requestBuffer = new ArraySegment <byte>(transBuffer.buffer, 0, (int)transBuffer.length);
     return(result);
 }
コード例 #2
0
 public unsafe static AntiCpXSvr.Error VerifyResponse(AntiCpXSvr.SafeClientHandle clientHandle, ArraySegment <byte> responseBuffer)
 {
     fixed(byte *array = responseBuffer.Array)
     {
         object[] args = new object[]
         {
             clientHandle.DangerousGetHandle(),
             new IntPtr((void *)((byte *)array + responseBuffer.Offset)),
             responseBuffer.Count
         };
         return((AntiCpXSvr.Error)AntiCpXSvr.type.InvokeMember("_AhnHS_VerifyResponse", BindingFlags.InvokeMethod, null, null, args));
     }
 }
コード例 #3
0
 public unsafe static AntiCpXSvr.Error VerifyResponse(AntiCpXSvr.SafeClientHandle clientHandle, ArraySegment <byte> responseBuffer, out AntiCpXSvr.Recommend recommend)
 {
     fixed(byte *array = responseBuffer.Array)
     {
         object[] array2 = new object[]
         {
             clientHandle.DangerousGetHandle(),
             new IntPtr((void *)((byte *)array + responseBuffer.Offset)),
             responseBuffer.Count,
             AntiCpXSvr.Error.Success
         };
         recommend = (AntiCpXSvr.Recommend)AntiCpXSvr.type.InvokeMember("_AhnHS_VerifyResponseEx", BindingFlags.InvokeMethod, null, null, array2);
         return((AntiCpXSvr.Error)array2[3]);
     }
 }