Click here to Skip to main content
15,900,511 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Derive Class from CTime Pin
David Crow1-Mar-07 2:39
David Crow1-Mar-07 2:39 
QuestionWin Service problem Pin
david bagaturia28-Feb-07 21:38
david bagaturia28-Feb-07 21:38 
AnswerRe: Win Service problem Pin
JudyL_MD1-Mar-07 2:44
JudyL_MD1-Mar-07 2:44 
GeneralRe: Win Service problem Pin
david bagaturia1-Mar-07 3:11
david bagaturia1-Mar-07 3:11 
GeneralRe: Win Service problem Pin
JudyL_MD1-Mar-07 3:45
JudyL_MD1-Mar-07 3:45 
GeneralRe: Win Service problem Pin
david bagaturia1-Mar-07 18:58
david bagaturia1-Mar-07 18:58 
QuestionAbout Driver priority Pin
mt_samiei28-Feb-07 21:32
mt_samiei28-Feb-07 21:32 
Questionhow can i get all computer in the lan. Pin
bios808628-Feb-07 21:31
bios808628-Feb-07 21:31 
hi I have enumed all computer in my workgroup by API function NetServerEnum,but i can't enum more about another workgroup's computer.
so my question is how can i get all computer in lan.

my code is here
CString strTemp;
CString strname="";
LPSERVER_INFO_101 pBuf = NULL;
DWORD dwLevel = 101;
DWORD dwPrefMaxLen = MAX_PREFERRED_LENGTH;
DWORD dwEntriesRead = 0;
DWORD dwTotalEntries = 0;
DWORD dwTotalCount = 0;
DWORD dwServerType = SV_TYPE_DOMAIN_ENUM ;
DWORD dwResumeHandle = 0;

NET_API_STATUS nStatus;
unsigned short * pszServerName = NULL;
char szOut[2048];

// DWORD i;
// DWORD dwServerType = SV_TYPE_DOMAIN_ENUM; // all servers
// LPSERVER_INFO_101 pTmpBuf;
// Call the NetServerEnum function to retrieve information
// for all servers, specifying information level 101.
nStatus = NetServerEnum(pszServerName,
dwLevel,
(LPBYTE *) &pBuf,
dwPrefMaxLen,
&dwEntriesRead,
&dwTotalEntries,
dwServerType,
NULL,
&dwResumeHandle);


thanks!


AnswerRe: how can i get all computer in the lan. Pin
bios80861-Mar-07 15:17
bios80861-Mar-07 15:17 
QuestionAbout DirectX??? Pin
siddharthsan28-Feb-07 21:18
siddharthsan28-Feb-07 21:18 
AnswerRe: About DirectX??? Pin
Mark Salsbery1-Mar-07 8:00
Mark Salsbery1-Mar-07 8:00 
QuestionNeed to draw background of edit control Pin
Nishad S28-Feb-07 21:16
Nishad S28-Feb-07 21:16 
AnswerRe: Need to draw background of edit control Pin
baerten28-Feb-07 22:41
baerten28-Feb-07 22:41 
GeneralRe: Need to draw background of edit control Pin
Nishad S28-Feb-07 23:39
Nishad S28-Feb-07 23:39 
AnswerRe: Need to draw background of edit control Pin
Hamid_RT28-Feb-07 23:35
Hamid_RT28-Feb-07 23:35 
Questionnew operator Pin
prithaa28-Feb-07 21:07
prithaa28-Feb-07 21:07 
AnswerRe: new operator Pin
Cedric Moonen28-Feb-07 21:16
Cedric Moonen28-Feb-07 21:16 
GeneralRe: new operator Pin
prithaa28-Feb-07 21:56
prithaa28-Feb-07 21:56 
Questionhow to use SetPrinterDataEx() Pin
mo_nica88128-Feb-07 20:58
mo_nica88128-Feb-07 20:58 
AnswerRe: how to use SetPrinterDataEx() Pin
prasad_som28-Feb-07 23:13
prasad_som28-Feb-07 23:13 
Questionnew operator not understood Pin
prithaa28-Feb-07 20:01
prithaa28-Feb-07 20:01 
AnswerRe: new operator not understood Pin
Cedric Moonen28-Feb-07 20:13
Cedric Moonen28-Feb-07 20:13 
SuggestionRe: new operator not understood Pin
Pranit Kothari27-Oct-11 19:14
Pranit Kothari27-Oct-11 19:14 
GeneralRe: new operator not understood Pin
Cedric Moonen27-Oct-11 20:19
Cedric Moonen27-Oct-11 20:19 
AnswerRe: new operator not understood Pin
ThatsAlok28-Feb-07 20:27
ThatsAlok28-Feb-07 20:27 

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.