# encoding: utf-8
# module _winapi
# from (built-in)
# by generator 1.147
# no doc
# no imports

# Variables with simple values

ABOVE_NORMAL_PRIORITY_CLASS = 32768

BELOW_NORMAL_PRIORITY_CLASS = 16384

COPYFILE2_CALLBACK_CHUNK_FINISHED = 2
COPYFILE2_CALLBACK_CHUNK_STARTED = 1

COPYFILE2_CALLBACK_ERROR = 6

COPYFILE2_CALLBACK_POLL_CONTINUE = 5

COPYFILE2_CALLBACK_STREAM_FINISHED = 4
COPYFILE2_CALLBACK_STREAM_STARTED = 3

COPYFILE2_PROGRESS_CANCEL = 1
COPYFILE2_PROGRESS_CONTINUE = 0
COPYFILE2_PROGRESS_PAUSE = 4
COPYFILE2_PROGRESS_QUIET = 3
COPYFILE2_PROGRESS_STOP = 2

COPY_FILE_ALLOW_DECRYPTED_DESTINATION = 8

COPY_FILE_COPY_SYMLINK = 2048

COPY_FILE_FAIL_IF_EXISTS = 1

COPY_FILE_NO_BUFFERING = 4096
COPY_FILE_NO_OFFLOAD = 262144

COPY_FILE_OPEN_SOURCE_FOR_WRITE = 4

COPY_FILE_REQUEST_COMPRESSED_TRAFFIC = 268435456

COPY_FILE_REQUEST_SECURITY_PRIVILEGES = 8192

COPY_FILE_RESTARTABLE = 2

COPY_FILE_RESUME_FROM_PAUSE = 16384

CREATE_BREAKAWAY_FROM_JOB = 16777216

CREATE_DEFAULT_ERROR_MODE = 67108864

CREATE_NEW_CONSOLE = 16

CREATE_NEW_PROCESS_GROUP = 512

CREATE_NO_WINDOW = 134217728

DETACHED_PROCESS = 8

DUPLICATE_CLOSE_SOURCE = 1

DUPLICATE_SAME_ACCESS = 2

ERROR_ACCESS_DENIED = 5

ERROR_ALREADY_EXISTS = 183

ERROR_BROKEN_PIPE = 109

ERROR_IO_PENDING = 997

ERROR_MORE_DATA = 234

ERROR_NETNAME_DELETED = 64

ERROR_NO_DATA = 232

ERROR_NO_SYSTEM_RESOURCES = 1450

ERROR_OPERATION_ABORTED = 995

ERROR_PIPE_BUSY = 231
ERROR_PIPE_CONNECTED = 535

ERROR_PRIVILEGE_NOT_HELD = 1314

ERROR_SEM_TIMEOUT = 121

FILE_FLAG_FIRST_PIPE_INSTANCE = 524288

FILE_FLAG_OVERLAPPED = 1073741824

FILE_GENERIC_READ = 1179785
FILE_GENERIC_WRITE = 1179926

FILE_MAP_ALL_ACCESS = 983071

FILE_MAP_COPY = 1
FILE_MAP_EXECUTE = 32
FILE_MAP_READ = 4
FILE_MAP_WRITE = 2

FILE_TYPE_CHAR = 2
FILE_TYPE_DISK = 1
FILE_TYPE_PIPE = 3
FILE_TYPE_REMOTE = 32768
FILE_TYPE_UNKNOWN = 0

GENERIC_READ = 2147483648
GENERIC_WRITE = 1073741824

HIGH_PRIORITY_CLASS = 128

IDLE_PRIORITY_CLASS = 64

INFINITE = 4294967295

INVALID_HANDLE_VALUE = 18446744073709551615

LCMAP_FULLWIDTH = 8388608
LCMAP_HALFWIDTH = 4194304
LCMAP_HIRAGANA = 1048576
LCMAP_KATAKANA = 2097152

LCMAP_LINGUISTIC_CASING = 16777216

LCMAP_LOWERCASE = 256

LCMAP_SIMPLIFIED_CHINESE = 33554432

LCMAP_TITLECASE = 768

LCMAP_TRADITIONAL_CHINESE = 67108864

LCMAP_UPPERCASE = 512

LOCALE_NAME_INVARIANT = ''

LOCALE_NAME_MAX_LENGTH = 85

LOCALE_NAME_SYSTEM_DEFAULT = '!x-sys-default-locale'

LOCALE_NAME_USER_DEFAULT = None

MEM_COMMIT = 4096
MEM_FREE = 65536
MEM_IMAGE = 16777216
MEM_MAPPED = 262144
MEM_PRIVATE = 131072
MEM_RESERVE = 8192

NMPWAIT_WAIT_FOREVER = 4294967295

NORMAL_PRIORITY_CLASS = 32

NULL = 0

OPEN_EXISTING = 3

PAGE_EXECUTE = 16

PAGE_EXECUTE_READ = 32
PAGE_EXECUTE_READWRITE = 64
PAGE_EXECUTE_WRITECOPY = 128

PAGE_GUARD = 256
PAGE_NOACCESS = 1
PAGE_NOCACHE = 512
PAGE_READONLY = 2
PAGE_READWRITE = 4
PAGE_WRITECOMBINE = 1024
PAGE_WRITECOPY = 8

PIPE_ACCESS_DUPLEX = 3
PIPE_ACCESS_INBOUND = 1

PIPE_READMODE_MESSAGE = 2

PIPE_TYPE_MESSAGE = 4

PIPE_UNLIMITED_INSTANCES = 255

PIPE_WAIT = 0

PROCESS_ALL_ACCESS = 2097151

PROCESS_DUP_HANDLE = 64

REALTIME_PRIORITY_CLASS = 256

SEC_COMMIT = 134217728
SEC_IMAGE = 16777216

SEC_LARGE_PAGES = 2147483648

SEC_NOCACHE = 268435456
SEC_RESERVE = 67108864
SEC_WRITECOMBINE = 1073741824

STARTF_FORCEOFFFEEDBACK = 128
STARTF_FORCEONFEEDBACK = 64
STARTF_PREVENTPINNING = 8192
STARTF_RUNFULLSCREEN = 32
STARTF_TITLEISAPPID = 4096
STARTF_TITLEISLINKNAME = 2048
STARTF_UNTRUSTEDSOURCE = 32768
STARTF_USECOUNTCHARS = 8
STARTF_USEFILLATTRIBUTE = 16
STARTF_USEHOTKEY = 512
STARTF_USEPOSITION = 4
STARTF_USESHOWWINDOW = 1
STARTF_USESIZE = 2
STARTF_USESTDHANDLES = 256

STD_ERROR_HANDLE = 4294967284

STD_INPUT_HANDLE = 4294967286

STD_OUTPUT_HANDLE = 4294967285

STILL_ACTIVE = 259

SW_HIDE = 0

SYNCHRONIZE = 1048576

WAIT_ABANDONED_0 = 128

WAIT_OBJECT_0 = 0

WAIT_TIMEOUT = 258

# functions

def BatchedWaitForMultipleObjects(*args, **kwargs): # real signature unknown
    """
    Supports a larger number of handles than WaitForMultipleObjects
    
    Note that the handles may be waited on other threads, which could cause
    issues for objects like mutexes that become associated with the thread
    that was waiting for them. Objects may also be left signalled, even if
    the wait fails.
    
    It is recommended to use WaitForMultipleObjects whenever possible, and
    only switch to BatchedWaitForMultipleObjects for scenarios where you
    control all the handles involved, such as your own thread pool or
    files, and all wait objects are left unmodified by a wait (for example,
    manual reset events, threads, and files/pipes).
    
    Overlapped handles returned from this module use manual reset events.
    """
    pass

def CloseHandle(*args, **kwargs): # real signature unknown
    """ Close handle. """
    pass

def ConnectNamedPipe(*args, **kwargs): # real signature unknown
    pass

def CopyFile2(*args, **kwargs): # real signature unknown
    """
    Copies a file from one name to a new name.
    
    This is implemented using the CopyFile2 API, which preserves all stat
    and metadata information apart from security attributes.
    
    progress_routine is reserved for future use, but is currently not
    implemented. Its value is ignored.
    """
    pass

def CreateEventW(*args, **kwargs): # real signature unknown
    pass

def CreateFile(*args, **kwargs): # real signature unknown
    pass

def CreateFileMapping(*args, **kwargs): # real signature unknown
    pass

def CreateJunction(*args, **kwargs): # real signature unknown
    pass

def CreateMutexW(*args, **kwargs): # real signature unknown
    pass

def CreateNamedPipe(*args, **kwargs): # real signature unknown
    pass

def CreatePipe(*args, **kwargs): # real signature unknown
    """
    Create an anonymous pipe.
    
      pipe_attrs
        Ignored internally, can be None.
    
    Returns a 2-tuple of handles, to the read and write ends of the pipe.
    """
    pass

def CreateProcess(*args, **kwargs): # real signature unknown
    """
    Create a new process and its primary thread.
    
      command_line
        Can be str or None
      proc_attrs
        Ignored internally, can be None.
      thread_attrs
        Ignored internally, can be None.
    
    The return value is a tuple of the process handle, thread handle,
    process ID, and thread ID.
    """
    pass

def DuplicateHandle(*args, **kwargs): # real signature unknown
    """
    Return a duplicate handle object.
    
    The duplicate handle refers to the same object as the original
    handle. Therefore, any changes to the object are reflected
    through both handles.
    """
    pass

def ExitProcess(*args, **kwargs): # real signature unknown
    pass

def GetACP(*args, **kwargs): # real signature unknown
    """ Get the current Windows ANSI code page identifier. """
    pass

def GetCurrentProcess(*args, **kwargs): # real signature unknown
    """ Return a handle object for the current process. """
    pass

def GetExitCodeProcess(*args, **kwargs): # real signature unknown
    """ Return the termination status of the specified process. """
    pass

def GetFileType(*args, **kwargs): # real signature unknown
    pass

def GetLastError(*args, **kwargs): # real signature unknown
    pass

def GetLongPathName(*args, **kwargs): # real signature unknown
    """
    Return the long version of the provided path.
    
    If the path is already in its long form, returns the same value.
    
    The path must already be a 'str'. If the type is not known, use
    os.fsdecode before calling this function.
    """
    pass

def GetModuleFileName(*args, **kwargs): # real signature unknown
    """
    Return the fully-qualified path for the file that contains module.
    
    The module must have been loaded by the current process.
    
    The module parameter should be a handle to the loaded module
    whose path is being requested. If this parameter is 0,
    GetModuleFileName retrieves the path of the executable file
    of the current process.
    """
    pass

def GetShortPathName(*args, **kwargs): # real signature unknown
    """
    Return the short version of the provided path.
    
    If the path is already in its short form, returns the same value.
    
    The path must already be a 'str'. If the type is not known, use
    os.fsdecode before calling this function.
    """
    pass

def GetStdHandle(*args, **kwargs): # real signature unknown
    """
    Return a handle to the specified standard device.
    
      std_handle
        One of STD_INPUT_HANDLE, STD_OUTPUT_HANDLE, or STD_ERROR_HANDLE.
    
    The integer associated with the handle object is returned.
    """
    pass

def GetVersion(*args, **kwargs): # real signature unknown
    """ Return the version number of the current operating system. """
    pass

def LCMapStringEx(*args, **kwargs): # real signature unknown
    pass

def MapViewOfFile(*args, **kwargs): # real signature unknown
    pass

def NeedCurrentDirectoryForExePath(*args, **kwargs): # real signature unknown
    pass

def OpenEventW(*args, **kwargs): # real signature unknown
    pass

def OpenFileMapping(*args, **kwargs): # real signature unknown
    pass

def OpenMutexW(*args, **kwargs): # real signature unknown
    pass

def OpenProcess(*args, **kwargs): # real signature unknown
    pass

def PeekNamedPipe(*args, **kwargs): # real signature unknown
    pass

def ReadFile(*args, **kwargs): # real signature unknown
    pass

def ReleaseMutex(*args, **kwargs): # real signature unknown
    pass

def ResetEvent(*args, **kwargs): # real signature unknown
    pass

def SetEvent(*args, **kwargs): # real signature unknown
    pass

def SetNamedPipeHandleState(*args, **kwargs): # real signature unknown
    pass

def TerminateProcess(*args, **kwargs): # real signature unknown
    """ Terminate the specified process and all of its threads. """
    pass

def UnmapViewOfFile(*args, **kwargs): # real signature unknown
    pass

def VirtualQuerySize(*args, **kwargs): # real signature unknown
    pass

def WaitForMultipleObjects(*args, **kwargs): # real signature unknown
    pass

def WaitForSingleObject(*args, **kwargs): # real signature unknown
    """
    Wait for a single object.
    
    Wait until the specified object is in the signaled state or
    the time-out interval elapses. The timeout value is specified
    in milliseconds.
    """
    pass

def WaitNamedPipe(*args, **kwargs): # real signature unknown
    pass

def WriteFile(*args, **kwargs): # real signature unknown
    pass

def _mimetypes_read_windows_registry(*args, **kwargs): # real signature unknown
    """
    Optimized function for reading all known MIME types from the registry.
    
    *on_type_read* is a callable taking *type* and *ext* arguments, as for
    MimeTypes.add_type.
    """
    pass

# classes

class Overlapped(object):
    """ OVERLAPPED structure wrapper """
    def cancel(self, *args, **kwargs): # real signature unknown
        pass

    def getbuffer(self, *args, **kwargs): # real signature unknown
        pass

    def GetOverlappedResult(self, *args, **kwargs): # real signature unknown
        pass

    def __init__(self, *args, **kwargs): # real signature unknown
        pass

    event = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """overlapped event handle"""



class __loader__(object):
    """
    Meta path import for built-in modules.
    
    All methods are either class or static methods to avoid the need to
    instantiate the class.
    """
    def create_module(spec): # reliably restored by inspect
        """ Create a built-in module """
        pass

    def exec_module(module): # reliably restored by inspect
        """ Exec a built-in module """
        pass

    @classmethod
    def find_spec(cls, *args, **kwargs): # real signature unknown
        pass

    @classmethod
    def get_code(cls, *args, **kwargs): # real signature unknown
        """ Return None as built-in modules do not have code objects. """
        pass

    @classmethod
    def get_source(cls, *args, **kwargs): # real signature unknown
        """ Return None as built-in modules do not have source code. """
        pass

    @classmethod
    def is_package(cls, *args, **kwargs): # real signature unknown
        """ Return False as built-in modules are never packages. """
        pass

    @classmethod
    def load_module(cls, *args, **kwargs): # real signature unknown
        """
        Load the specified module into sys.modules and return it.
        
        This method is deprecated.  Use loader.exec_module() instead.
        """
        pass

    def __init__(self, *args, **kwargs): # real signature unknown
        pass

    __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None)  # default
    """list of weak references to the object"""


    _ORIGIN = 'built-in'
    __dict__ = None # (!) real value is "mappingproxy({'__module__': '_frozen_importlib', '__firstlineno__': 971, '__doc__': 'Meta path import for built-in modules.\\n\\nAll methods are either class or static methods to avoid the need to\\ninstantiate the class.\\n\\n', '_ORIGIN': 'built-in', 'find_spec': <classmethod(<function BuiltinImporter.find_spec at 0x000001CF0EB33380>)>, 'create_module': <staticmethod(<function BuiltinImporter.create_module at 0x000001CF0EB33420>)>, 'exec_module': <staticmethod(<function BuiltinImporter.exec_module at 0x000001CF0EB334C0>)>, 'get_code': <classmethod(<function BuiltinImporter.get_code at 0x000001CF0EB33600>)>, 'get_source': <classmethod(<function BuiltinImporter.get_source at 0x000001CF0EB33740>)>, 'is_package': <classmethod(<function BuiltinImporter.is_package at 0x000001CF0EB33880>)>, 'load_module': <classmethod(<function _load_module_shim at 0x000001CF0EB32700>)>, '__static_attributes__': (), '__dict__': <attribute '__dict__' of 'BuiltinImporter' objects>, '__weakref__': <attribute '__weakref__' of 'BuiltinImporter' objects>})"
    __firstlineno__ = 971
    __static_attributes__ = ()


# variables with complex values

__spec__ = None # (!) real value is "ModuleSpec(name='_winapi', loader=<class '_frozen_importlib.BuiltinImporter'>, origin='built-in')"

