Results 1 to 3 of 3

Thread: Getting current workgroup via API.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2000
    Location
    Gainesville, FL
    Posts
    131
    http://forums.vb-world.net/showthread.php?threadid=253

    Hello again.
    I'd like to retrieve the workgroup I am a part of via API.

    I can't find anything on it anywhere. The only thing I've found is
    http://forums.vb-world.net/showthread.php?threadid=253,
    but I'd have to use registry api to read it.
    I don't want that.

    Does anyone know how I can do it directly?
    (Like the GetUserName and GetComputerName api).

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Mar 2000
    Location
    Gainesville, FL
    Posts
    131
    Nevermind.
    Using my registry class module I can just do this:
    cWG = RegStuff.GetValue(HKEY_LOCAL_MACHINE, "System\CurrentControlSet\Services\VxD\VNETSUP", "Workgroup")



    much easiser

  3. #3
    Addicted Member
    Join Date
    Feb 2000
    Posts
    224
    If you can't pronounce my name, call me GURU

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width