Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. WNetOpenEnum

WNetOpenEnum

Scheduled Pinned Locked Moved Visual Basic
tutorialquestionhtmlcomsysadmin
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    giddy_guitarist
    wrote on last edited by
    #1

    ok, before even looking at some posts , i had an example source for using the WNetOpenEnum.But i dont understand anything .. what do the params. mean.. and how do i use it? These are the params.... . · dwScope Specifies the scope of the enumeration. This parameter can be one of the following values: RESOURCE_CONNECTED All currently connected resources (the dwUsage parameter is ignored). RESOURCE_GLOBALNET All resources on the network. RESOURCE_REMEMBERED All remembered (persistent) connections (dwUsage is ignored). · dwType Specifies the resource types to enumerate. This parameter can be a combination of the following values: RESOURCETYPE_ANY All resources (this value cannot be combined with RESOURCETYPE_DISK or RESOURCETYPE_PRINT). RESOURCETYPE_DISK All disk resources. RESOURCETYPE_PRINT All print resources. If a network provider cannot distinguish between print and disk resources, it may enumerate all resources. · dwUsage Specifies the resource usage to be enumerated. This parameter can be a combination of the following values: 0 All resources RESOURCEUSAGE_CONNECTABLE All connectable resources RESOURCEUSAGE_CONTAINER All container resources This parameter is ignored if the dwScope parameter is not RESOURCE_GLOBALNET. · lpNetResource Points to a NETRESOURCE structure specifying the container to enumerate. If this parameter is NULL, the root of the network is assumed. Windows organizes a network as a hierarchy; the root is the topmost container in the network. · lphEnum Points to a variable filled with an enumeration handle that can be used in a subsequent call to WNetEnumResource. i have only ONE workgrounp and i need to enumerate all the computers in IT.. .but could someone PLEASE EXPLAIN.. the API to me... or gimme a link to a TUTORIAL not some crazy source code =( . i might need to use this API later on for more complex things... also... .... this was the example..... http://gideon.110mb.com/code.html When i RUN this code i get C: UNC path C: ...WHAT THE HECK DOES IT :^)MEAN!? Thanx Gideon :^)

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups