File: servicemanager.pyi

package info (click to toggle)
typeshed 0.0~git20221107.4f381af-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 18,036 kB
  • sloc: python: 3,216; sh: 62; makefile: 13
file content (34 lines) | stat: -rw-r--r-- 1,293 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from _typeshed import Incomplete

def CoInitializeEx() -> None: ...
def CoUninitialize() -> None: ...
def RegisterServiceCtrlHandler(serviceName: str, callback, extra_args: bool = ...): ...
def LogMsg(errorType, eventId, inserts: tuple[str, Incomplete] | None = ...) -> None: ...
def LogInfoMsg(msg: str) -> None: ...
def LogErrorMsg(msg: str) -> None: ...
def LogWarningMsg(msg: str) -> None: ...
def PumpWaitingMessages(): ...
def Debugging(newVal: int = ...): ...
def Initialize(eventSourceName: str | None = ..., eventSourceFile: str | None = ...) -> None: ...
def Finalize() -> None: ...
def PrepareToHostSingle(klass: Incomplete | None = ...) -> None: ...
def PrepareToHostMultiple(service_name: str, klass) -> None: ...
def RunningAsService(): ...
def SetEventSourceName(sourceName: str, registerNow: bool = ...) -> None: ...
def StartServiceCtrlDispatcher(*args, **kwargs): ...  # incomplete

COINIT_APARTMENTTHREADED: int
COINIT_DISABLE_OLE1DDE: int
COINIT_MULTITHREADED: int
COINIT_SPEED_OVER_MEMORY: int
EVENTLOG_AUDIT_FAILURE: int
EVENTLOG_AUDIT_SUCCESS: int
EVENTLOG_ERROR_TYPE: int
EVENTLOG_INFORMATION_TYPE: int
EVENTLOG_WARNING_TYPE: int
PYS_SERVICE_STARTED: int
PYS_SERVICE_STARTING: int
PYS_SERVICE_STOPPED: int
PYS_SERVICE_STOPPING: int

class startup_error(Exception): ...