hyb
2025-11-04 668edf874b4f77214a8ff4513e60e3c1a973f532
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Ë
hñúhÉãó~—dZddlmZddlmZmZeje«Z    dZ
dZ dZ dZ dZd    Zdd
„Zdd „Zdd „Zd „Zy)z2
Read and write resources from/to Win32 PE files.
éN)Ú
pywintypesÚwin32apiééÁiiiic    ól—| t|«ndh}| t|«ndh}| t|«ndh}i}tttth}t j |dt«}    t j|«}d|vr|D    cgc]    }    |    |vsŒ|    ‘Œ }}    |D]«}        t j||    «}
d|vr|
D cgc]    } | |vsŒ| ‘Œ }
} |
D]u}     t j||    | «} d|vr| D cgc]    } | |vsŒ| ‘Œ } } | D]>}     t j||    | | «}|    |vri||    <| ||    vri||    | <|||    | | <Œ@ŒwŒ­t j|«|S#tj$r}|jd|vr‚g}Yd}~Œ d}~wwxYwcc}    w#tj$r}|jd|vr‚Yd}~Œ*d}~wwxYwcc} w#tj$r}|jd|vr‚Yd}~Œ.d}~wwxYwcc} w#tj$r}|jd|vr‚Yd}~Œ1d}~wwxYw)aâ
    Retrieve resources from the given PE file.
 
    filename: path to the PE file.
    types: a list of resource types (integers or strings) to search for (None = all).
    names: a list of resource names (integers or strings) to search for (None = all).
    languages: a list of resource languages (integers) to search for (None = all).
 
    Returns a dictionary of the form {type: {name: {language: data}}}, which might also be empty if no matching
    resources were found.
    NÚ*r)ÚsetÚERROR_RESOURCE_DATA_NOT_FOUNDÚERROR_RESOURCE_TYPE_NOT_FOUNDÚERROR_RESOURCE_NAME_NOT_FOUNDÚERROR_RESOURCE_LANG_NOT_FOUNDrÚ LoadLibraryExÚLOAD_LIBRARY_AS_DATAFILEÚEnumResourceTypesrÚerrorÚargsÚEnumResourceNamesÚEnumResourceLanguagesÚ LoadResourceÚ FreeLibrary)ÚfilenameÚtypesÚnamesÚ    languagesÚoutputÚ_IGNORE_EXCEPTIONSÚ module_handleÚavailable_typesÚeÚres_typeÚavailable_namesÚres_nameÚavailable_languagesÚres_langÚdatas               úVH:\Change_password\venv_build\Lib\site-packages\PyInstaller/utils/win32/winresource.pyÚ get_resourcesr's–€ð Ð+ŒCŒJ°#°€EØÐ+ŒCŒJ°#°€EØ"+Ð"7”I”¸c¸U€Ià €Fô    &Ü%Ü%Ü%ð    Ðô×*Ñ*¨8°QÔ8PÓQ€MðÜ"×4Ñ4°]ÓCˆð  %ÑØ4CÖY¨ÀxÐSXÒGXš8ÐYˆÐYà#ò%<ˆð    Ü&×8Ñ8¸ÈÓQˆOð eÑ Ø8GÖ]¨HÈ8ÐW\ÒK\šxÐ]ˆOÐ]à'ò    <ˆHð Ü&.×&DÑ&DÀ]ÐT\Ð^fÓ&gÐ#ð ˜)Ñ#Ø@SÖ&m°HÐW_ÐclÒWl¢xÐ&mÐ#Ð&mà/ò <ðÜ#×0Ñ0°ÀÈ(ÐT\Ó]Dð  6Ñ)Ø')F˜8Ñ$Ø 6¨(Ñ#3Ñ3Ø13F˜8Ñ$ XÑ.Ø7;xÑ  Ñ*¨8Ò4ñ <ñ    <ð%<ôP ×јÔ'à €Møôe × Ñ òØ 6‰6!‰9Ð.Ñ .Ø ØŽûðüò Zøô ×Ñò    Øv‰va‰yР2Ñ2ØÝ ûð    üò ^øô ×#Ñ#ò Ø—6‘6˜!‘9Ð$6Ñ6ØÝûð üò 'nøô "×'Ñ'òØ—v‘v˜a‘yÐ(:Ñ:ØÝûðús„Á%E    F FÂFÂ6    GÃGà G Ã+    G>Ã5G>ÄHÅF Å,FÆF ÆGÆ&F>Æ>GÇ G;ÇG6Ç6G;ÈH3    ÈH.    È.H3    c    óð—|dk(r td«‚| t|«ndh}| t|«ndh}t||g||«}|j|i«}|D].}|dk(rŒ    ||vri||<|D]}|dk(rŒ    |||vsŒd|||<ŒŒ0t    j
|d«}|j «D]3}||j «D]}t    j|||||«ŒŒ5t    j|d«y)aˆ
    Update or add a single resource in the PE file with the given binary data.
 
    filename: path to the PE file.
    data: binary data to write to the resource.
    res_type: resource type to add/update (integer or string).
    names: a list of resource names (integers or strings) to update (None = all).
    languages: a list of resource languages (integers) to update (None = all).
    rz"res_type cannot be a wildcard (*)!Nr)    Ú
ValueErrorr    r'ÚgetrÚBeginUpdateResourceÚkeysÚUpdateResourceÚEndUpdateResource)    rr%r rrÚ    resourcesr"r$rs             r&Úadd_or_update_resourcer0qs4€ð3‚ÜÐ=Ó>Ð>àÐ+ŒCŒJ°#°€EØ"+Ð"7”I”¸c¸U€Iô˜h¨¨
°E¸9ÓE€Ið— ‘ ˜h¨Ó+€Iàò
5ˆØ sŠ?Ø Ø ˜9Ñ $Ø"$ˆIhÑ à!ò    5ˆHؘ3ŠØØ˜y¨Ñ2Ò2Ø04    ˜(Ñ# HÒ-ñ        5ð
5ô×0Ñ0°¸1Ó=€MØ—N‘NÓ$òWˆØ! (Ñ+×0Ñ0Ó2ò    WˆHÜ × #Ñ # M°8¸XÀtÈXÕ Vñ    WðWô ×ј}¨aÕ0óc
óh—| t|«ndh}| t|«ndh}| t|«ndh}t||||«}|j«D]a\}}d|vr||vrŒ|j«D]@\}}    d|vr||vrŒ|    j«D]\}
} d|vr|
|vrŒt|| ||g|
g«Œ!ŒBŒcy)aÞ
    Update or add resources in the given PE file by copying them over from the specified source PE file.
 
    filename: path to the PE file.
    src_filename: path to the source PE file.
    types: a list of resource types (integers or strings) to add/update via copy for (None = all).
    names: a list of resource names (integers or strings) to add/update via copy (None = all).
    languages: a list of resource languages (integers) to add/update via copy (None = all).
    Nr)r    r'Úitemsr0) rÚ src_filenamerrrr/r Úresources_for_typer"Úresources_for_type_namer$r%s             r&Úcopy_resources_from_pe_filer7›sò€ð Ð+ŒCŒJ°#°€EØÐ+ŒCŒJ°#°€EØ"+Ð"7”I”¸c¸U€Iô˜l¨E°5¸)ÓD€Ià(1¯©Ó(9ò    YÑ$ˆÐ$Ø eÑ  °Ñ 5Ø Ø1C×1IÑ1IÓ1Kò    YÑ -ˆHÐ-ؘ%Ñ H°EÑ$9ØØ"9×"?Ñ"?Ó"Aò Y‘˜$ؘiÑ'¨H¸IÑ,EØÜ& x°°xÀ(ÀÈhÈZÕXñ Yñ    Yñ    Yr1có\—tj|d«}tj|d«y)z6
    Remove all resources from the given PE file:
    TFN)rr+r.)rrs  r&Úremove_all_resourcesr9¸s&€ô×0Ñ0°¸4Ó@€MÜ ×ј}¨eÕ4r1)NNN)NN)Ú__doc__ÚPyInstaller.logÚlogÚloggingÚPyInstaller.compatrrÚ    getLoggerÚ__name__ÚloggerrÚERROR_BAD_EXE_FORMATr
r r r r'r0r7r9©r1r&ú<module>rDs`ðñõ"ß3à    ˆ×    Ñ    ˜8Ó    $€àÐØÐØ $ÐØ $ÐØ $ÐØ $ÐóRój'1óTYó:5r1