Click here to Skip to main content
15,922,533 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
SuggestionRe: C++ class question Pin
David Crow8-Dec-20 7:19
David Crow8-Dec-20 7:19 
AnswerRe: C++ class question Pin
Joe Woodbury8-Dec-20 10:00
professionalJoe Woodbury8-Dec-20 10:00 
AnswerRe: C++ class question Pin
CPallini8-Dec-20 21:29
mveCPallini8-Dec-20 21:29 
GeneralRe: C++ class question Pin
pkfox9-Dec-20 3:19
professionalpkfox9-Dec-20 3:19 
GeneralRe: C++ class question Pin
CPallini9-Dec-20 7:28
mveCPallini9-Dec-20 7:28 
AnswerRe: C++ class question Pin
Daniel Pfeffer9-Dec-20 1:19
professionalDaniel Pfeffer9-Dec-20 1:19 
AnswerRe: C++ class question Pin
Richard MacCutchan9-Dec-20 3:43
mveRichard MacCutchan9-Dec-20 3:43 
GeneralRe: C++ class question Pin
pkfox9-Dec-20 4:53
professionalpkfox9-Dec-20 4:53 
GeneralRe: C++ class question Pin
Richard MacCutchan9-Dec-20 5:42
mveRichard MacCutchan9-Dec-20 5:42 
GeneralRe: C++ class question Pin
pkfox9-Dec-20 6:05
professionalpkfox9-Dec-20 6:05 
GeneralRe: C++ class question Pin
Richard MacCutchan9-Dec-20 6:10
mveRichard MacCutchan9-Dec-20 6:10 
GeneralRe: C++ class question Pin
pkfox9-Dec-20 11:02
professionalpkfox9-Dec-20 11:02 
QuestionDROPEFFECT_NONE does not work in conjunction with CF_HDROP Pin
Member 119022653-Dec-20 7:42
Member 119022653-Dec-20 7:42 
QuestionRe: DROPEFFECT_NONE does not work in conjunction with CF_HDROP Pin
David Crow4-Dec-20 7:04
David Crow4-Dec-20 7:04 
AnswerRe: DROPEFFECT_NONE does not work in conjunction with CF_HDROP Pin
Member 119022656-Dec-20 12:48
Member 119022656-Dec-20 12:48 
QuestionNetserverenum function return false detail Pin
Member 141178532-Dec-20 23:43
Member 141178532-Dec-20 23:43 
AnswerRe: Netserverenum function return false detail Pin
Richard MacCutchan3-Dec-20 0:06
mveRichard MacCutchan3-Dec-20 0:06 
GeneralRe: Netserverenum function return false detail Pin
Member 141178533-Dec-20 20:38
Member 141178533-Dec-20 20:38 
GeneralRe: Netserverenum function return false detail Pin
Victor Nijegorodov3-Dec-20 20:42
Victor Nijegorodov3-Dec-20 20:42 
GeneralRe: Netserverenum function return false detail Pin
Member 141178533-Dec-20 21:42
Member 141178533-Dec-20 21:42 
GeneralRe: Netserverenum function return false detail Pin
Richard MacCutchan3-Dec-20 22:48
mveRichard MacCutchan3-Dec-20 22:48 
AnswerRe: Netserverenum function return false detail Pin
Randor 3-Dec-20 22:35
professional Randor 3-Dec-20 22:35 
GeneralRe: Netserverenum function return false detail Pin
Member 141178537-Dec-20 3:26
Member 141178537-Dec-20 3:26 
I am using the NetServerEnum function to enumerate the network and printing all records. But I'm getting the same SV type for MAC OS system and Windows10 system. Also, sv101_version_major and sv101_version_minor are wrong. Kindly let me know how this function works, and from where I am getting these values. What is the limitation of this API.

printed logs using the provided example is:

NetServerEnum(pszServerName,
dwLevel,
(LPBYTE *) & pBuf,
dwPrefMaxLen,
&dwEntriesRead,
&dwTotalEntries,
dwServerType,
pszDomainName,
&dwResumeHandle);

//Printing logs:
printf("\tPlatform: %d\n", pTmpBuf->sv101_platform_id);
wprintf(L"\tName: %s\n", pTmpBuf->sv101_name);
printf("\tVersion: %d.%d\n",
pTmpBuf->sv101_version_major,
pTmpBuf->sv101_version_minor);
printf("\tType: %d", pTmpBuf->sv101_type);

Output=>

Platform: 500
Name: MACMINI-558088
Version: 6.1 //<==VERSION is common among both UNIX and MAC
Type: 4099 //<==SAME SV_TYPE
Platform:500
Name: MAILSRV
Version: 6.1 //<==VERSION is common among both UNIX and MAC
Type: 8493571
Platform:500
Name: WIN1019H2X64
Version: 10.0
Type: 4099 //<==SAME SV_TYPE

Where macmini is MAC and mailsrv is Unix system. sv_type of macmini and WIN1019H2X64 is the same. sv101_version_major and sv101_version_minor are the same for UNIX and MAC systems, which use SAMBA. Kindly let me know why it is? So I can differentiate these systems using predefined macros in lmserver.h.

GeneralRe: Netserverenum function return false detail Pin
Randor 7-Dec-20 7:04
professional Randor 7-Dec-20 7:04 
GeneralRe: Netserverenum function return false detail Pin
Member 141178538-Dec-20 2:25
Member 141178538-Dec-20 2:25 

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.