mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
pywin32: Fix PyNETRESOURCE descriptor members wrongly marked as readonly (#10574)
This commit is contained in:
@@ -1173,22 +1173,14 @@ class PyMSG: ...
|
||||
|
||||
@final
|
||||
class PyNETRESOURCE:
|
||||
@property
|
||||
def dwScope(self) -> int: ...
|
||||
@property
|
||||
def dwType(self) -> int: ...
|
||||
@property
|
||||
def dwDisplayType(self) -> int: ...
|
||||
@property
|
||||
def dwUsage(self) -> int: ...
|
||||
@property
|
||||
def lpComment(self): ...
|
||||
@property
|
||||
def lpLocalName(self): ...
|
||||
@property
|
||||
def lpProvider(self): ...
|
||||
@property
|
||||
def lpRemoteName(self): ...
|
||||
dwScope: int
|
||||
dwType: int
|
||||
dwDisplayType: int
|
||||
dwUsage: int
|
||||
lpComment: str | None
|
||||
lpLocalName: str | None
|
||||
lpProvider: str | None
|
||||
lpRemoteName: str | None
|
||||
|
||||
class PyNET_VALIDATE_AUTHENTICATION_INPUT_ARG: ...
|
||||
class PyNET_VALIDATE_PASSWORD_CHANGE_INPUT_ARG: ...
|
||||
|
||||
@@ -12,7 +12,7 @@ def WNetAddConnection2(
|
||||
Flags: int = ...,
|
||||
) -> None: ...
|
||||
def WNetAddConnection3(
|
||||
HwndParent: int,
|
||||
HwndParent: int | _win32typing.PyHANDLE,
|
||||
NetResource: _win32typing.PyNETRESOURCE,
|
||||
Password: Incomplete | None = ...,
|
||||
UserName: Incomplete | None = ...,
|
||||
@@ -20,8 +20,8 @@ def WNetAddConnection3(
|
||||
) -> None: ...
|
||||
def WNetCancelConnection2(name: str, flags, force) -> None: ...
|
||||
def WNetOpenEnum(scope, _type, usage, resource: _win32typing.PyNETRESOURCE) -> int: ...
|
||||
def WNetCloseEnum(handle: int) -> None: ...
|
||||
def WNetEnumResource(handle: int, maxExtries: int = ...) -> list[_win32typing.PyNETRESOURCE]: ...
|
||||
def WNetCloseEnum(handle: _win32typing.PyHANDLE) -> None: ...
|
||||
def WNetEnumResource(handle: _win32typing.PyHANDLE, maxExtries: int = ...) -> list[_win32typing.PyNETRESOURCE]: ...
|
||||
def WNetGetUser(connection: str | None = ...) -> str: ...
|
||||
def WNetGetUniversalName(localPath: str, infoLevel) -> str: ...
|
||||
def WNetGetResourceInformation(NetResource: _win32typing.PyNETRESOURCE) -> tuple[_win32typing.PyNETRESOURCE, Incomplete]: ...
|
||||
|
||||
Reference in New Issue
Block a user