コード例 #1
0
 private static bool CheckInjection()
 {
     if (WinFunctions.GetModuleHandle("SbieDll.dll") != IntPtr.Zero)
     {
         return(false);
     }
     return(true);
 }
コード例 #2
0
#pragma warning disable IDE0051 // Удалите неиспользуемые закрытые члены
        private static bool CheckInjection()
#pragma warning restore IDE0051 // Удалите неиспользуемые закрытые члены
        {
            if (WinFunctions.GetModuleHandle("SbieDll.dll") != IntPtr.Zero)
            {
                return(false);
            }
            return(true);
        }