00000043 ;ˆl–ß=¿JÕ!®Å @à_¸)‹FÿÇ „ϼïÆa–ß=¿JJj"Tâ�nãA¸ÔÅ£Å?÷a MÝ_é�ã@sêdZddlZddlZddlZddlZddlZddlZddlZddlm Z ddl m Z ddl m Z ddl m Z ddl mZdd l mZdd l mZdd l mZdd l mZdd l mZddl mZddl mZddl mZddl mZddl mZddlmZddlmZddlmZddlmZddlmZddlm Z ddlm!Z!ddlm"Z"ddlm#Z#ddlm$Z$ddlm%Z%zddl mZ&Wnle'�yðZ(zRe)e(ƒ *¡ +d¡�rÚe ,¡dd k�rÚd!Z-e-d"7Z-e-d#7Z-e.e-ƒ‚n‚WYdZ([(n dZ([(00ej/d$k�rddl0Z0ndZ0gd%¢Z1d&Z2d'Z3d(ej4vZ5e0du�r6d)Z6ne0 7d*d+d)i¡Z8e8j6Z6e&j9e j:e&j;e je&j?e j@e&jAe jBe&jCe jDe&jEe jFe&jGe jHe&jIe jJe&jKe jLe&jMe jNe&jOe2e&jPe jQi ZRe0du�ràGd,d-„d-e0j7ƒZSeTƒ UeSjV¡e0du�rüdZWdZXd.ZYd/ZZn Gd0d1„d1e0j7ƒZ[eTƒ Ue[jV¡e\ddd.d/d2d3d d4d5d6d7d8d9d:d;dd?d@dAdBdC�Z]e dDgdE¢ƒZ^e dFgdG¢ƒZ_e dHgdI¢ƒZ`e dJe`jadKƒZbe dLdMdNgƒZce dOdPdQ decja¡ƒZee dRgdS¢ƒZfedTdU�dVdW„ƒZgdXdY„ZhedZd[„ƒZid\d]„Zjd^d_„Zke&jlZld`da„Zmdbdc„Znddde„Zodfdg„Zpdhdi„Zqdjdk„Zrdldm„Zsdndo„Ztdpaudqdr„Zvd‘dsdt„Zwdudv„Zxdwdx„Zydydz„Zzd{d|„Z{da|d}d~„Z}dd€„Z~d�d‚„Zdƒd„„Z€Gd…d†„d†e�ƒZ‚e&jƒZƒe&j„Z„e&j…Z…d‡dˆ„Z†d’d‰dŠ„Z‡d‹dŒ„Zˆd�dŽ„Z‰Gd�d�„d�e�ƒZŠdS)“z Windows platform implementation.éN)Ú namedtupleé)Ú_common)Ú AccessDenied)Ú conn_tmap)Úconn_to_ntuple)Údebug)ÚENCODING)Ú ENCODING_ERRS)Ú isfile_strict)Úmemoize)Úmemoize_when_activated)Ú NoSuchProcess)Úparse_environ_block)ÚTimeoutExpired)Ú usage_percent)Úlong)Ú lru_cache)ÚPY3©Úrange)Úunicode)ÚABOVE_NORMAL_PRIORITY_CLASS)ÚBELOW_NORMAL_PRIORITY_CLASS)ÚHIGH_PRIORITY_CLASS)ÚIDLE_PRIORITY_CLASS)ÚNORMAL_PRIORITY_CLASS)ÚREALTIME_PRIORITY_CLASS)Ú_psutil_windowszdll load failedéz3this Windows version is too old (< Windows Vista); z:psutil 3.4.2 is the latest version which supports Windows z2000, XP and 2003 server)éé)Úwin_service_iterÚwin_service_getrrrrrrÚIOPRIO_VERYLOWÚ IOPRIO_LOWÚ IOPRIO_NORMALÚ IOPRIO_HIGHÚCONN_DELETE_TCBÚAF_LINKZ DELETE_TCBi+Z__pypy__éÿÿÿÿÚ AddressFamilyr)c@s$eZdZeZeZeZeZeZeZdS)ÚPriorityN) Ú__name__Ú __module__Ú __qualname__rrrrrr©r0r0ú7/usr/lib64/python3.9/site-packages/psutil/_pswindows.pyr,ms r,ér c@seZdZdZdZdZdZdS)Ú IOPriorityrrr2r N)r-r.r/r$r%r&r'r0r0r0r1r3}sr3r!éééé é é é é éééééééé)Ú num_handlesÚ ctx_switchesÚ user_timeÚ kernel_timeÚ create_timeÚ num_threadsÚ io_rcountÚ io_wcountÚ io_rbytesÚ io_wbytesÚio_count_othersÚio_bytes_othersÚnum_page_faultsÚ peak_wsetÚwsetÚpeak_paged_poolÚ paged_poolÚpeak_non_paged_poolÚnon_paged_poolÚpagefileÚ peak_pagefileÚ mem_privateÚ scputimes)ÚuserÚsystemÚidleÚ interruptÚdpcÚsvmem)ÚtotalZ availableÚpercentÚusedÚfreeÚpmem) ÚrssÚvmsrPrQrRrSrTZpeak_nonpaged_poolZ nonpaged_poolrWrXZprivateÚpfullmem)ÚussÚ pmmap_groupedÚpathrfÚ pmmap_extz addr perms ú Úpio)Z read_countZ write_countÚ read_bytesÚ write_bytesÚ other_countZ other_bytesi)ÚmaxsizecCs@d | d¡dd…¡}t |¡}|t|ƒd…}tj ||¡S)z�Convert paths using native DOS format like: "\Device\HarddiskVolume1\Windows\systemew\file.txt" into: "C:\Windows\systemew\file.txt" ú\Nr )ÚjoinÚsplitÚcextZwin32_QueryDosDeviceÚlenÚosrk)ÚsZrawdriveZ driveletterZ remainderr0r0r1Úconvert_dos_pathÀs rzcCs&tr|St|tƒr|S| tt¡SdS)zmEncode a unicode string to a byte string by using the default fs encoding + "replace" error handler. N)rÚ isinstanceÚstrÚencoder r )r