EditSecurity.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:CodeReader 作者: jasonrbr 项目源码 文件源码
def GetObjectInformation(self):
        """Identifies object whose security will be modified, and determines options available
           to the end user"""
        flags=SI_ADVANCED|SI_EDIT_ALL|SI_PAGE_TITLE|SI_RESET
        if os.path.isdir(self.FileName):
            flags|=SI_CONTAINER
        hinstance=0  ## handle to module containing string resources
        servername=''  ## name of authenticating server if not local machine
        objectname=os.path.split(self.FileName)[1]
        pagetitle='Python ACL Editor'
        if os.path.isdir(self.FileName):
            pagetitle+=' (dir)'
        else:
            pagetitle+=' (file)'
        objecttype=IID_NULL
        return flags, hinstance, servername, objectname, pagetitle, objecttype
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号