Найти описание прототипов функций - C#

Узнай цену своей работы

Формулировка задачи:

Найти описание прототипов функций на "c#" (написать программу) Что здесь вообще делать нужно?

Решение задачи: «Найти описание прототипов функций»

textual
Листинг программы
  1. [return: MarshalAs(UnmanagedType.Bool)]
  2. [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
  3. static extern bool GlobalMemoryStatusEx( [In,Out] MEMORYSTATUSEX lpBuffer);
  4.  
  5.        /// <summary>
  6.     /// contains information about the current state of both physical and virtual memory, including extended memory
  7.     /// </summary>
  8.     [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
  9.     public class MEMORYSTATUSEX
  10.     {
  11.         /// <summary>
  12.         /// Size of the structure, in bytes. You must set this member before calling GlobalMemoryStatusEx.
  13.         /// </summary>
  14.         public uint dwLength;
  15.  
  16.         /// <summary>
  17.         /// Number between 0 and 100 that specifies the approximate percentage of physical memory that is in use (0 indicates no memory use and 100 indicates full memory use).
  18.         /// </summary>
  19.         public uint dwMemoryLoad;
  20.  
  21.         /// <summary>
  22.         /// Total size of physical memory, in bytes.
  23.         /// </summary>
  24.         public ulong ullTotalPhys;
  25.  
  26.         /// <summary>
  27.         /// Size of physical memory available, in bytes.
  28.         /// </summary>
  29.         public ulong ullAvailPhys;
  30.  
  31.         /// <summary>
  32.         /// Size of the committed memory limit, in bytes. This is physical memory plus the size of the page file, minus a small overhead.
  33.         /// </summary>
  34.         public ulong ullTotalPageFile;
  35.  
  36.         /// <summary>
  37.         /// Size of available memory to commit, in bytes. The limit is ullTotalPageFile.
  38.         /// </summary>
  39.         public ulong ullAvailPageFile;
  40.  
  41.         /// <summary>
  42.         /// Total size of the user mode portion of the virtual address space of the calling process, in bytes.
  43.         /// </summary>
  44.         public ulong ullTotalVirtual;
  45.  
  46.         /// <summary>
  47.         /// Size of unreserved and uncommitted memory in the user mode portion of the virtual address space of the calling process, in bytes.
  48.         /// </summary>
  49.         public ulong ullAvailVirtual;
  50.  
  51.         /// <summary>
  52.         /// Size of unreserved and uncommitted memory in the extended portion of the virtual address space of the calling process, in bytes.
  53.         /// </summary>
  54.         public ulong ullAvailExtendedVirtual;
  55.  
  56.         /// <summary>
  57.         /// Initializes a new instance of the <see cref="T:MEMORYSTATUSEX"/> class.
  58.         /// </summary>
  59.         public MEMORYSTATUSEX()
  60.         {
  61.            this.dwLength = (uint)Marshal.SizeOf(typeof(NativeMethods.MEMORYSTATUSEX));
  62.         }
  63.        }

ИИ поможет Вам:


  • решить любую задачу по программированию
  • объяснить код
  • расставить комментарии в коде
  • и т.д
Попробуйте бесплатно

Оцени полезность:

14   голосов , оценка 4.214 из 5

Нужна аналогичная работа?

Оформи быстрый заказ и узнай стоимость

Бесплатно
Оформите заказ и авторы начнут откликаться уже через 10 минут
Похожие ответы