How can find out values return by NetServerEnum is machine or any other hardware device?
-
Hi all, i m using NetServerEnum function to find out all machines of network. but some time my network printer and fax machine also display in result of NetServerEnum. so please tell me how can find out values return by NetServerEnum is machine or any other hardware device. so i can leave these hardware devices. i want to conside only client os machines. thanks in advance.
To accomplish great things, we must not only act, but also dream; not only plan, but also believe.
-
Hi all, i m using NetServerEnum function to find out all machines of network. but some time my network printer and fax machine also display in result of NetServerEnum. so please tell me how can find out values return by NetServerEnum is machine or any other hardware device. so i can leave these hardware devices. i want to conside only client os machines. thanks in advance.
To accomplish great things, we must not only act, but also dream; not only plan, but also believe.
Use the servertype input parameter to filter what you get. See here: http://msdn.microsoft.com/en-us/library/aa370623(VS.85).aspx[^]
SkyWalker
-
Use the servertype input parameter to filter what you get. See here: http://msdn.microsoft.com/en-us/library/aa370623(VS.85).aspx[^]
SkyWalker
i find out the value of servertype.
CString tenp;
temp.Format(_T("Type: %d"), pTmpBuf->sv101_type);
AfxMessageBox(temp);it returns value in some number ,how can identified its vallid os machine or any other hardware device. thanks in advance.
To accomplish great things, we must not only act, but also dream; not only plan, but also believe.
-
i find out the value of servertype.
CString tenp;
temp.Format(_T("Type: %d"), pTmpBuf->sv101_type);
AfxMessageBox(temp);it returns value in some number ,how can identified its vallid os machine or any other hardware device. thanks in advance.
To accomplish great things, we must not only act, but also dream; not only plan, but also believe.
I think you have already a list of values and their meanings for servertype in the link I provided. Is this not enough?
SkyWalker