pywin32: Fix PyNETRESOURCE descriptor members wrongly marked as readonly (#10574)

This commit is contained in:
Avasam
2023-08-13 18:36:45 -04:00
committed by GitHub
parent 3a376e7eaa
commit d82a8325fa
2 changed files with 11 additions and 19 deletions

View File

@@ -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: ...

View File

@@ -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]: ...