Click here to Skip to main content
16,012,223 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Parallel Lines Pin
Paul Selormey24-Jul-03 2:23
Paul Selormey24-Jul-03 2:23 
QuestionLocal domain name and adapters? Pin
Dominik Reichl23-Jul-03 21:48
Dominik Reichl23-Jul-03 21:48 
AnswerRe: Local domain name and adapters? Pin
Toni7824-Jul-03 0:08
Toni7824-Jul-03 0:08 
GeneralRe: Local domain name and adapters? Pin
Dominik Reichl24-Jul-03 0:59
Dominik Reichl24-Jul-03 0:59 
GeneralRe: Local domain name and adapters? Pin
Toni7824-Jul-03 1:16
Toni7824-Jul-03 1:16 
AnswerRe: Local domain name and adapters? Pin
yitzhak24-Jul-03 0:14
yitzhak24-Jul-03 0:14 
GeneralRe: Local domain name and adapters? Pin
Dominik Reichl24-Jul-03 0:45
Dominik Reichl24-Jul-03 0:45 
AnswerRe: Local domain name and adapters? Pin
Ryan Binns24-Jul-03 1:57
Ryan Binns24-Jul-03 1:57 
Dominik Reichl wrote:
how can I get the local domain name (normally something like WORKGROUP)? The method should work on both NT-systems and 9x.

NetWkstaUserGetInfo() will give you the information, but will only work with WinNT/2k/XP. Win9x systems have the same function, but it is a 16-bit function callable by 16-bit code only, exported from netapi.dll. You can only do it using 16-bit code, and using thunking to interoperate with 32-bit code. Yes, it's complex, and No, I don't know exactly how to do it, but's it's possible Smile | :)

This[^] article gives the information. The first call to NetWkstaGetInfo() will provide you with the domain name - look up the docs for NetWkstaGetInfo() to work out how to extract the information.

Hope this helps,

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

AnswerRe: Local domain name and adapters? Pin
QuiJohn24-Jul-03 2:28
QuiJohn24-Jul-03 2:28 
GeneralAscii Pin
JensB23-Jul-03 21:39
JensB23-Jul-03 21:39 
GeneralRe: Ascii Pin
Dominik Reichl23-Jul-03 21:50
Dominik Reichl23-Jul-03 21:50 
GeneralRe: Ascii Pin
JensB23-Jul-03 22:50
JensB23-Jul-03 22:50 
GeneralP2P and SOCKS Pin
Derek Lakin23-Jul-03 21:32
Derek Lakin23-Jul-03 21:32 
GeneralRe: P2P and SOCKS Pin
Ryan Binns23-Jul-03 21:45
Ryan Binns23-Jul-03 21:45 
GeneralRe: P2P and SOCKS Pin
Derek Lakin23-Jul-03 21:53
Derek Lakin23-Jul-03 21:53 
Generalargh! CHotkeyctrl Pin
sheesh-ka-bob23-Jul-03 20:50
sheesh-ka-bob23-Jul-03 20:50 
GeneralRe: argh! CHotkeyctrl Pin
Dominik Reichl23-Jul-03 21:56
Dominik Reichl23-Jul-03 21:56 
GeneralTarget Build Pin
yitzhak23-Jul-03 19:41
yitzhak23-Jul-03 19:41 
GeneralRe: Target Build Pin
Toni7823-Jul-03 20:06
Toni7823-Jul-03 20:06 
GeneralRe: Target Build Pin
yitzhak23-Jul-03 21:53
yitzhak23-Jul-03 21:53 
GeneralRe: Target Build Pin
Toni7823-Jul-03 22:47
Toni7823-Jul-03 22:47 
QuestionHow to programmatically "lock computer"? Pin
Abin23-Jul-03 18:18
Abin23-Jul-03 18:18 
AnswerRe: How to programmatically "lock computer"? Pin
Ryan Binns23-Jul-03 18:47
Ryan Binns23-Jul-03 18:47 
GeneralRe: How to programmatically "lock computer"? Pin
Abin23-Jul-03 19:16
Abin23-Jul-03 19:16 
GeneralRe: How to programmatically "lock computer"? Pin
Ryan Binns23-Jul-03 19:21
Ryan Binns23-Jul-03 19:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.