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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Simple question -Urgent!-

Simple question -Urgent!-

Scheduled Pinned Locked Moved C / C++ / MFC
questiondockerhelp
3 Posts 3 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.
  • E Offline
    E Offline
    Ernesto D
    wrote on last edited by
    #1

    Hi, how in Gods name, do i get the doman or workgroup name to wich my computer belongs to? i cant use GetComputerNameEx() cause the app must also run on W9x machines. ibe searched google, the msdn (online and my cd) and found nothing! i cant belive something so apparently simple would be so hard to find! the only thing i can think of right now, is to do the whole WNetopenEnum() / WNetEnumResource() stuff, look for my computer name, check from wich container i got it, etc. Theres GOT to be an easier way! Please help Thanks!

    I S 2 Replies Last reply
    0
    • E Ernesto D

      Hi, how in Gods name, do i get the doman or workgroup name to wich my computer belongs to? i cant use GetComputerNameEx() cause the app must also run on W9x machines. ibe searched google, the msdn (online and my cd) and found nothing! i cant belive something so apparently simple would be so hard to find! the only thing i can think of right now, is to do the whole WNetopenEnum() / WNetEnumResource() stuff, look for my computer name, check from wich container i got it, etc. Theres GOT to be an easier way! Please help Thanks!

      I Offline
      I Offline
      Ilamparithi
      wrote on last edited by
      #2

      Hi, Get the Local host name and use Netbios call to get Domain name. Iam not sure whether Netbios will return Workgroup name... Anyway, check out it... It will be helpful!! Best Regards, A.Ilamparithi

      1 Reply Last reply
      0
      • E Ernesto D

        Hi, how in Gods name, do i get the doman or workgroup name to wich my computer belongs to? i cant use GetComputerNameEx() cause the app must also run on W9x machines. ibe searched google, the msdn (online and my cd) and found nothing! i cant belive something so apparently simple would be so hard to find! the only thing i can think of right now, is to do the whole WNetopenEnum() / WNetEnumResource() stuff, look for my computer name, check from wich container i got it, etc. Theres GOT to be an easier way! Please help Thanks!

        S Offline
        S Offline
        Steve S
        wrote on last edited by
        #3

        Try Q155698, howto: retrieve current user and domain names on Windows 95 and 98. However, it requires use of 16-bit code, so you need to use thunks. The article points you at other articles, explaining how this can be done. Steve S

        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