- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everybody,
can any one help me find the way to detect the name of the domain to which the PC belongs.
my purpose is to check wether the user of my application belongs to a specific domain. if that is not the case, an error will thrown and the use of the application will be blocked.
It is a way to make sure that the application i am working on, will not go out the society to which i am developping.
thank you in advance.
can any one help me find the way to detect the name of the domain to which the PC belongs.
my purpose is to check wether the user of my application belongs to a specific domain. if that is not the case, an error will thrown and the use of the application will be blocked.
It is a way to make sure that the application i am working on, will not go out the society to which i am developping.
thank you in advance.
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - imeca
Hello everybody,
can any one help me find the way to detect the name of the domain to which the PC belongs.
my purpose is to check wether the user of my application belongs to a specific domain. if that is not the case, an error will thrown and the use of the application will be blocked.
It is a way to make sure that the application i am working on, will not go out the society to which i am developping.
thank you in advance.
can any one help me find the way to detect the name of the domain to which the PC belongs.
my purpose is to check wether the user of my application belongs to a specific domain. if that is not the case, an error will thrown and the use of the application will be blocked.
It is a way to make sure that the application i am working on, will not go out the society to which i am developping.
thank you in advance.
http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/12320.mspx?mfr=true
To read the information from registry, use RegOpenKey[Ex], RegQueryValue[Ex] and RegCloseKey (use IFWIN).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Jugoslav Dujic
http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/12320.mspx?mfr=true
To read the information from registry, use RegOpenKey[Ex], RegQueryValue[Ex] and RegCloseKey (use IFWIN).
Thanks Jugoslav for your answer, but can i ask you to provide me with a little example showing the use of such instructions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - imeca
Thanks Jugoslav for your answer, but can i ask you to provide me with a little example showing the use of such instructions
Here's a quick one:
http://software.intel.com/en-us/forums/showthread.php?t=45725
Note that they forgot to call RegCloseKey. Pay attention that "Key" should be a C-style string, i.e. "SOFTWAREMicrosoftWindows NTCurrentVersionWinlogon"//char(0)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Jugoslav Dujic
Here's a quick one:
http://software.intel.com/en-us/forums/showthread.php?t=45725
Note that they forgot to call RegCloseKey. Pay attention that "Key" should be a C-style string, i.e. "SOFTWAREMicrosoftWindows NTCurrentVersionWinlogon"//char(0)
thank you again yugoslave,
since i am not a programmer originally, i couldn't take advantage of the link you suggested to me.
however, i used another way. Probably it is a longer way, but it worked fine.
i used a dos instruction (net config workstation) through the fortran code. I asked the code to get the result in a file. all what i had to do, then,is to read that file and stop at the line beginning with "workstation domain" and get the domain name i am searching for.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page