
    %
iR	                        d Z ddlZddlZddlZddlmZmZ ej                            ej	                  d         Z
 ede
            ej        e
d          d         Z ej        edej        ej                  Ze                    dej                  Ze                    ej                  Ze                                d         Ze                    e          Zd Zej                            e
ed           dS )	z
Demonstrates how to propagate a folder's view state to all its subfolders
The format of the ColInfo stream is apparently undocumented, but
it can be read raw from one folder and copied to another's view state.
    N)shellshellconzTemplate folder:ShellColInfo   c                    |D ]C}t           j                            ||          }t           j                            |          r t	          |           t          j        |d          d         }t          j        |dt          j	        t          j                  }|                    dt                     |                    dt          j                  }|                    t          j                  }|                    t$                     d }dD ]0}	|                    |	t&                              |	                     1d }Ed S )Nr   r   r   )AddressButtonsColVidWFlagsFFlagsSortSortDirShowCmd
FolderTypeModeRev)ospathjoinisdirprintr   SHILCreateFromPathSHGetViewStatePropertyBagr   SHGVSPB_FOLDERNODEFAULTS	pythoncomIID_IPropertyBagWritetemplate_streamRead
VT_UNKNOWNQueryInterfaceIID_IStreamtemplate_colinfotemplate_pb)
not_useddir_namefnamesfname
full_fnamepidlpbiunksattrs
             C:\Users\Dell Inspiron 16\Desktop\tws\AgrotaPowerBi\back-agrota-powerbi\mcp-client-agrota\venv\Lib\site-packages\win32comext/shell/demos/viewstate.pyupdate_colinfor2      s(    ! !W\\(E22
7==$$ 	*+J::1=D01*	 B HHY000779i&:;;D##I$9::AGG$%%%A 7 7 {//556666BC! !    )__doc__r   sysr   win32com.shellr   r   r   split
executabletemplate_folderr   r   template_pidlr   r   r   r&   r!   r"   template_iunkr#   r$   r    Stat
streamsizer%   r2   walk r3   r1   <module>r@      s=    
			 



     * * * * * * * *'--//2 / * * *((!<<Q?-e-%	    I,@AA..y/DEE!!##A&
"''
33 " " "J _nd 3 3 3 3 3r3   