massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / _winapi.pyi
1 from typing import Any, Union, Tuple, Optional, Dict, NoReturn, Sequence\r
2 \r
3 CREATE_NEW_CONSOLE: int\r
4 CREATE_NEW_PROCESS_GROUP: int\r
5 DUPLICATE_CLOSE_SOURCE: int\r
6 DUPLICATE_SAME_ACCESS: int\r
7 ERROR_ALREADY_EXISTS: int\r
8 ERROR_BROKEN_PIPE: int\r
9 ERROR_IO_PENDING: int\r
10 ERROR_MORE_DATA: int\r
11 ERROR_NETNAME_DELETED: int\r
12 ERROR_NO_DATA: int\r
13 ERROR_NO_SYSTEM_RESOURCES: int\r
14 ERROR_OPERATION_ABORTED: int\r
15 ERROR_PIPE_BUSY: int\r
16 ERROR_PIPE_CONNECTED: int\r
17 ERROR_SEM_TIMEOUT: int\r
18 FILE_FLAG_FIRST_PIPE_INSTANCE: int\r
19 FILE_FLAG_OVERLAPPED: int\r
20 FILE_GENERIC_READ: int\r
21 FILE_GENERIC_WRITE: int\r
22 GENERIC_READ: int\r
23 GENERIC_WRITE: int\r
24 INFINITE: int\r
25 NMPWAIT_WAIT_FOREVER: int\r
26 NULL: int\r
27 OPEN_EXISTING: int\r
28 PIPE_ACCESS_DUPLEX: int\r
29 PIPE_ACCESS_INBOUND: int\r
30 PIPE_READMODE_MESSAGE: int\r
31 PIPE_TYPE_MESSAGE: int\r
32 PIPE_UNLIMITED_INSTANCES: int\r
33 PIPE_WAIT: int\r
34 PROCESS_ALL_ACCESS: int\r
35 PROCESS_DUP_HANDLE: int\r
36 STARTF_USESHOWWINDOW: int\r
37 STARTF_USESTDHANDLES: int\r
38 STD_ERROR_HANDLE: int\r
39 STD_INPUT_HANDLE: int\r
40 STD_OUTPUT_HANDLE: int\r
41 STILL_ACTIVE: int\r
42 SW_HIDE: int\r
43 WAIT_ABANDONED_0: int\r
44 WAIT_OBJECT_0: int\r
45 WAIT_TIMEOUT: int\r
46 \r
47 def CloseHandle(handle: int) -> None: ...\r
48 def ConnectNamedPipe(handle: int, overlapped: Union[int, bool] = ...) -> None: ...\r
49 def CreateFile(file_name: str, desired_access: int, share_mode: int, security_attributes: int, creation_disposition: int, flags_and_attributes: int, template_file: int) -> int: ...\r
50 def CreateJunction(src_path: str, dest_path: str) -> None: ...\r
51 def CreateNamedPipe(name: str, open_mode: int, pipe_mode: int, max_instances: int, out_buffer_size: int, in_buffer_size: int, default_timeout: int, security_attributes: int) -> int: ...\r
52 def CreatePipe(pipe_attrs: Any, size: int) -> Tuple[int, int]: ...\r
53 def CreateProcess(application_name: Optional[str], command_line: Optional[str], proc_attrs: Any, thread_attrs: Any, inherit_handles: bool, creation_flags: int, env_mapping: Dict[str, str], cwd: Optional[str], startup_info: Any) -> Tuple[int, int, int, int]: ...\r
54 def DuplicateHandle(source_process_handle: int, source_handle: int, target_process_handle: int, desired_access: int, inherit_handle: bool, options: int = ...) -> int: ...\r
55 def ExitProcess(ExitCode: int) -> NoReturn: ...\r
56 def GetACP() -> int: ...\r
57 def GetFileType(handle: int) -> int: ...\r
58 def GetCurrentProcess() -> int: ...\r
59 def GetExitCodeProcess(process: int) -> int: ...\r
60 def GetLastError() -> int: ...\r
61 def GetModuleFileName(module_handle: int) -> str: ...\r
62 def GetStdHandle(std_handle: int) -> int: ...\r
63 def GetVersion() -> int: ...\r
64 def OpenProcess(desired_access: int, inherit_handle: bool, process_id: int) -> int: ...\r
65 def PeekNamedPipe(handle: int, size: int = ...) -> Union[Tuple[int, int], Tuple[bytes, int, int]]: ...\r
66 def ReadFile(handle: int, size: int, overlapped: Union[int, bool] = ...) -> Tuple[bytes, int]: ...\r
67 def SetNamedPipeHandleState(named_pipe: int, mode: int, max_collection_count: int, collect_data_timeout: int) -> None: ...\r
68 def TerminateProcess(handle: int, exit_code: int) -> None: ...\r
69 def WaitForMultipleObjects(handle_seq: Sequence[int], wait_flag: bool, milliseconds: int = ...) -> int: ...\r
70 def WaitForSingleObject(handle: int, milliseconds: int) -> int: ...\r
71 def WaitNamedPipe(name: str, timeout: int) -> None: ...\r
72 def WriteFile(handle: int, buffer: bytes, overlapped: Union[int, bool] = ...): ...\r
73 \r
74 class Overlapped:\r
75     event: int = ...\r
76     def GetOverlappedResult(self, wait: bool) -> Tuple[int, int]: ...\r
77     def cancel(self) -> None: ...\r
78     def getbuffer(self) -> Optional[bytes]: ...\r