168{
177
179 {
181 {
182 if (bWorkstation ==
FALSE)
184 continue;
185 }
186
188 {
189 if (bServer ==
FALSE)
191 continue;
192 }
193
195 {
196
198 {
202 }
203 else
204 {
208 }
209 return 0;
210 }
211
213 {
214
216 {
221 }
222 else
223 {
228 }
229 return 0;
230 }
231 }
232
233 if (bServer)
234 {
237 goto done;
238
240 {
242 continue;
243
245 {
247 lValue =
wcstol(
p, &endptr, 10);
248 if (*endptr != 0)
249 {
252 goto done;
253 }
254
255 if (lValue < -1 || lValue > 65535)
256 {
259 goto done;
260 }
261
264 }
266 {
269 }
271 {
274 {
277 goto done;
278 }
279
282 }
283 else
284 {
289 goto done;
290 }
291 }
292
293 if (bModify)
294 {
298 }
299 else
300 {
302 }
303 }
304 else if (bWorkstation)
305 {
307 }
308 else
309 {
315 }
316
317done:
318 if (ServerInfo !=
NULL)
320
323
325}
static VOID PrintErrorMessage(DWORD dwError)
void ConPuts(FILE *fp, LPCWSTR psz)
VOID PrintNetMessage(DWORD dwMessage)
VOID PrintMessageStringV(DWORD dwMessage,...)
VOID PrintMessageString(DWORD dwMessage)
static INT DisplayServerConfig(PSERVER_INFO_102 ServerInfo)
static INT DisplayWorkstationConfig(VOID)
NET_API_STATUS WINAPI NetApiBufferFree(LPVOID Buffer)
NET_API_STATUS WINAPI NetServerSetInfo(_In_ LPWSTR servername, _In_ DWORD level, _In_ LPBYTE buf, _Out_ LPDWORD parm_err)
NET_API_STATUS WINAPI NetServerGetInfo(LMSTR servername, DWORD level, LPBYTE *bufptr)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_Check_return_ long __cdecl wcstol(_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr, _In_ int _Radix)
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
_Check_return_ _CRTIMP int __cdecl _wcsnicmp(_In_reads_or_z_(_MaxCount) const wchar_t *_Str1, _In_reads_or_z_(_MaxCount) const wchar_t *_Str2, _In_ size_t _MaxCount)