massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / paramiko / paramiko / _winapi.pyi
1 import builtins
2 import ctypes
3 import sys
4 from types import TracebackType
5 from typing import Any, Type, TypeVar
6
7 if sys.platform == "win32":
8
9     _T = TypeVar("_T")
10     def format_system_message(errno: int) -> str | None: ...
11     class WindowsError(builtins.WindowsError):
12         def __init__(self, value: int | None = ...) -> None: ...
13         @property
14         def message(self) -> str: ...
15         @property
16         def code(self) -> int: ...
17     def handle_nonzero_success(result: int) -> None: ...
18     GMEM_MOVEABLE: int
19     GlobalAlloc: Any
20     GlobalLock: Any
21     GlobalUnlock: Any
22     GlobalSize: Any
23     CreateFileMapping: Any
24     MapViewOfFile: Any
25     UnmapViewOfFile: Any
26     RtlMoveMemory: Any
27     class MemoryMap:
28         name: str
29         length: int
30         security_attributes: Any = ...
31         pos: int
32         filemap: Any = ...
33         view: Any = ...
34         def __init__(self, name: str, length: int, security_attributes: Any | None = ...) -> None: ...
35         def __enter__(self: _T) -> _T: ...
36         def seek(self, pos: int) -> None: ...
37         def write(self, msg: bytes) -> None: ...
38         def read(self, n: int) -> bytes: ...
39         def __exit__(
40             self, exc_type: Type[BaseException] | None, exc_val: BaseException | None, tb: TracebackType | None
41         ) -> None: ...
42     READ_CONTROL: int
43     STANDARD_RIGHTS_REQUIRED: int
44     STANDARD_RIGHTS_READ: int
45     STANDARD_RIGHTS_WRITE: int
46     STANDARD_RIGHTS_EXECUTE: int
47     STANDARD_RIGHTS_ALL: int
48     POLICY_VIEW_LOCAL_INFORMATION: int
49     POLICY_VIEW_AUDIT_INFORMATION: int
50     POLICY_GET_PRIVATE_INFORMATION: int
51     POLICY_TRUST_ADMIN: int
52     POLICY_CREATE_ACCOUNT: int
53     POLICY_CREATE_SECRET: int
54     POLICY_CREATE_PRIVILEGE: int
55     POLICY_SET_DEFAULT_QUOTA_LIMITS: int
56     POLICY_SET_AUDIT_REQUIREMENTS: int
57     POLICY_AUDIT_LOG_ADMIN: int
58     POLICY_SERVER_ADMIN: int
59     POLICY_LOOKUP_NAMES: int
60     POLICY_NOTIFICATION: int
61     POLICY_ALL_ACCESS: int
62     POLICY_READ: int
63     POLICY_WRITE: int
64     POLICY_EXECUTE: int
65     class TokenAccess:
66         TOKEN_QUERY: int
67     class TokenInformationClass:
68         TokenUser: int
69     class TOKEN_USER(ctypes.Structure):
70         num: int
71     class SECURITY_DESCRIPTOR(ctypes.Structure):
72         SECURITY_DESCRIPTOR_CONTROL: Any
73         REVISION: int
74     class SECURITY_ATTRIBUTES(ctypes.Structure):
75         nLength: int
76         lpSecurityDescriptor: Any
77         def __init__(self, *args: Any, **kwargs: Any) -> None: ...
78         @property
79         def descriptor(self) -> Any: ...
80         @descriptor.setter
81         def descriptor(self, value: Any) -> None: ...
82     def GetTokenInformation(token: Any, information_class: Any) -> Any: ...
83     def OpenProcessToken(proc_handle: Any, access: Any) -> Any: ...
84     def get_current_user() -> TOKEN_USER: ...
85     def get_security_attributes_for_user(user: TOKEN_USER | None = ...) -> SECURITY_ATTRIBUTES: ...