win32wnet.WNetOpenEnum

PyHANDLE = WNetOpenEnum(scope, type , usage , resource )

Opens an Enumeration Handle for Enumerating Resources with win32wnet::WNetEnumResource

Parameters

scope : int

Specifies the scope of the enumeration.

type : int

Specifies the resource types to enumerate.

usage : int

Specifies the resource usage to be enumerated.

resource : PyNETRESOURCE

Python NETRESOURCE object.

Comments

See the Microsoft SDK for complete information on WNetOpenEnum.

Return Value

PyHANDLE representing the Win32 HANDLE for the open resource. This handle will be automatically be closed via win32wnet::WNetCloseEnum, but good style dictates it still be closed manually.