관리-도구
편집 파일: win.cpython-36.pyc
3 6�cY�, � @ s� d dl Z d dlZd dlmZ d dlmZ yd dlZd dlmZ W n ek r\ e d��Y nX ddl mZ dd d gZe j d�ZdZd ZdZdd� Ze� ZG dd � d e�ZG dd� de�ZG dd� de�ZG dd � d e�Zdd� Zdd� ZdS )� N)�winreg)� text_type)�wintypesz#Running tzwin on non-Windows system� )�tzrangebase�tzwin� tzwinlocal�tzres� z7SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zonesz4SOFTWARE\Microsoft\Windows\CurrentVersion\Time Zonesz4SYSTEM\CurrentControlSet\Control\TimeZoneInformationc C sL t jd t j�} yt j| t�j� t}W n tk r> t}Y nX | j� |S )N)r �ConnectRegistry�HKEY_LOCAL_MACHINE�OpenKey�TZKEYNAMENTZCloseZWindowsError�TZKEYNAME9X)�handle� TZKEYNAME� r �/usr/lib/python3.6/win.py� _settzkeyname s r c @ s6 e Zd ZdZejej�Zd dd�Z dd� Z dd� Zd S )r z{ Class for accessing `tzres.dll`, which contains timezone name related resources. .. versionadded:: 2.5.0 � tzres.dllc C s@ t jd�}tjtjtjt jf|j_|j| _t j|�| _ || _ d S )N�user32)�ctypesZWinDLLr Z HINSTANCEZUINT�LPWSTRZc_int�LoadStringWZargtypes�_tzres� tzres_loc)�selfr r r r r �__init__1 s ztzres.__init__c C s<