Click here to Skip to main content
15,894,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Netserverenum function return false detail Pin
Randor 7-Dec-20 7:04
professional Randor 7-Dec-20 7:04 
Member 14117853 wrote:
Kindly let me know how this function works, and from where I am getting these values.
These values are set by the other side. Meaning that MACMINI-558088 broadcasts/announces itself and sets those values itself.

The Netserverenum function will simply echo/repeat what MACMINI-558088 claims to be. If your SAMBA configuration file is set to announce as "Win95" then Netserverenum will print Windows 95.

Member 14117853 wrote:
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?
Did you invest any time reading my last post? I already told you that you can edit the SAMBA configuration file and modify these values.

smb.conf[^]

Scroll down and look at
[announce as]
This specifies what type of server nmbd(8) will announce itself as, to a network neighborhood browse list. By default this is set to Windows NT. The valid options are : "NT Server" (which can also be written as "NT"), "NT Workstation", "Win95" or "WfW" meaning Windows NT Server, Windows NT Workstation, Windows 95 and Windows for Workgroups respectively. Do not change this parameter unless you have a specific need to stop Samba appearing as an NT server as this may prevent Samba servers from participating as browser servers correctly.

Default: announce as = NT Server

Example: announce as = Win95
[announce version]
This specifies the major and minor version numbers that nmbd will use when announcing itself as a server. The default is 4.9. Do not change this parameter unless you have a specific need to set a Samba server to be a downlevel server.

Default: announce version = 4.9

Example: announce version = 2.0


By the way... these are not C++ issues, you are basically asking for SAMBA support in the C++ forum.

Best Wishes,
-David Delaune
GeneralRe: Netserverenum function return false detail Pin
Member 141178538-Dec-20 2:25
Member 141178538-Dec-20 2:25 
QuestionWhy can't I print my watermark in chrome and edge? Pin
Member 148726812-Dec-20 20:28
Member 148726812-Dec-20 20:28 
AnswerRe: Why can't I print my watermark in chrome and edge? Pin
Richard MacCutchan2-Dec-20 23:05
mveRichard MacCutchan2-Dec-20 23:05 
AnswerRe: Why can't I print my watermark in chrome and edge? Pin
Randor 3-Dec-20 8:29
professional Randor 3-Dec-20 8:29 
Questionto bool or not to bool? Pin
Member 1498043325-Nov-20 8:36
Member 1498043325-Nov-20 8:36 
AnswerRe: to bool or not to bool? Pin
Mircea Neacsu25-Nov-20 9:10
Mircea Neacsu25-Nov-20 9:10 
GeneralRe: to bool or not to bool? Pin
Member 1498043325-Nov-20 17:44
Member 1498043325-Nov-20 17:44 
AnswerRe: to bool or not to bool? Pin
Mircea Neacsu25-Nov-20 17:55
Mircea Neacsu25-Nov-20 17:55 
AnswerRe: to bool or not to bool? Pin
Daniel Pfeffer26-Nov-20 7:17
professionalDaniel Pfeffer26-Nov-20 7:17 
QuestionEDITED Using template in C++ - run time error Pin
Member 1498043323-Nov-20 6:07
Member 1498043323-Nov-20 6:07 
AnswerRe: Using template in C++ Pin
Richard MacCutchan23-Nov-20 6:25
mveRichard MacCutchan23-Nov-20 6:25 
GeneralRe: Using template in C++ Pin
Member 1498043324-Nov-20 14:34
Member 1498043324-Nov-20 14:34 
GeneralRe: Using template in C++ Pin
Dave Kreskowiak24-Nov-20 19:01
mveDave Kreskowiak24-Nov-20 19:01 
GeneralRe: Using template in C++ Pin
Richard MacCutchan24-Nov-20 22:13
mveRichard MacCutchan24-Nov-20 22:13 
GeneralRe: Using template in C++ Pin
Member 1498043325-Nov-20 6:58
Member 1498043325-Nov-20 6:58 
GeneralRe: Using template in C++ Pin
jeron125-Nov-20 7:23
jeron125-Nov-20 7:23 
GeneralRe: Using template in C++ Pin
Richard MacCutchan25-Nov-20 7:42
mveRichard MacCutchan25-Nov-20 7:42 

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.