# 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

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_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_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_USESHOWWINDOW = 1
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 CloseHandle(*args, **kwargs): # real signature unknown
    """ Close handle. """
    pass

def ConnectNamedPipe(*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 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 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 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 OpenFileMapping(*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 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 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_module(cls, *args, **kwargs): # real signature unknown
        """
        Find the built-in module.
        
                If 'path' is ever specified then the search is considered a failure.
        
                This method is deprecated.  Use find_spec() instead.
        """
        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 module_repr(module): # reliably restored by inspect
        """
        Return repr for the module.
        
                The method is deprecated.  The import machinery does the job itself.
        """
        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 (if defined)"""


    _ORIGIN = 'built-in'
    __dict__ = None # (!) real value is "mappingproxy({'__module__': '_frozen_importlib', '__doc__': 'Meta path import for built-in modules.\\n\\n    All methods are either class or static methods to avoid the need to\\n    instantiate the class.\\n\\n    ', '_ORIGIN': 'built-in', 'module_repr': <staticmethod(<function BuiltinImporter.module_repr at 0x000001E5EE9428E0>)>, 'find_spec': <classmethod(<function BuiltinImporter.find_spec at 0x000001E5EE942980>)>, 'find_module': <classmethod(<function BuiltinImporter.find_module at 0x000001E5EE942A20>)>, 'create_module': <staticmethod(<function BuiltinImporter.create_module at 0x000001E5EE942AC0>)>, 'exec_module': <staticmethod(<function BuiltinImporter.exec_module at 0x000001E5EE942B60>)>, 'get_code': <classmethod(<function BuiltinImporter.get_code at 0x000001E5EE942CA0>)>, 'get_source': <classmethod(<function BuiltinImporter.get_source at 0x000001E5EE942DE0>)>, 'is_package': <classmethod(<function BuiltinImporter.is_package at 0x000001E5EE942F20>)>, 'load_module': <classmethod(<function _load_module_shim at 0x000001E5EE941C60>)>, '__dict__': <attribute '__dict__' of 'BuiltinImporter' objects>, '__weakref__': <attribute '__weakref__' of 'BuiltinImporter' objects>})"


# variables with complex values

__spec__ = None # (!) real value is "ModuleSpec(name='_winapi', loader=<class '_frozen_importlib.BuiltinImporter'>, origin='built-in')"

