parameters: (process=None)
return_statement: return info
docstring: Return Win32 process memory counters structure as a dict.
docstring_summary: Return Win32 process memory counters structure as a dict.
docstring_tokens: Return Win32 process memory counters structure as a dict .
function: def get_memory_info(process=None):
      """Return Win32 process memory counters structure as a dict."""
      if process is None:
          process = get_current_process()
      counters = PROCESS_MEMORY_COUNTERS_EX()
      ret = GetProcessMemoryInfo(process, ctypes.byref(counters),
                                 ctypes.sizeof(counters))
      if not ret:
          raise ctypes.WinError()
      info = dict((name, getattr(counters, name))
                  for name, _ in counters._fields_)
      return info
function_tokens: def get_memory_info ( process = None ) : if process is None : process = get_current_process ( ) counters = PROCESS_MEMORY_COUNTERS_EX ( ) ret = GetProcessMemoryInfo ( process , ctypes . byref ( counters ) , ctypes . sizeof ( counters ) ) if not ret : raise ctypes . WinError ( ) info = dict ( ( name , getattr ( counters , name ) ) for name , _ in counters . _fields_ ) return info