350{
357
358
359
360
361 if (pszInetAddr ==
NULL)
362 {
365 }
366
369 {
372 }
373
374
375 if (
strlen(pszEthAddr) != 17)
376 {
379 }
380
381 for (
i = 0;
i < 17;
i++)
382 {
384 continue;
385
387 {
390 }
391 }
392
393
394
396
397
399 if (pIpNetTable ==
NULL)
400 {
404 }
405
406 ZeroMemory(pIpNetTable,
sizeof(*pIpNetTable));
407
410 {
411 _tprintf(
_T(
"GetIpNetTable failed: %lu\n"), dwError);
414 }
415
416
418 if (pAddHost ==
NULL)
419 {
423 }
424
426
427
428
429 if (pszIfAddr)
430 {
432 {
434 }
435 }
436 else
437 {
438
439
440
442 }
443
444
446
447
448
449 for (
i = 0;
i < 6;
i++)
450 {
460 }
461
462
463 pAddHost->
dwAddr = dwIpAddr;
464
465
466
468
469
470
473 {
476 }
477
479 if (pIpNetTable !=
NULL)
481 if (pAddHost !=
NULL)
483
484 return dwError;
485}
ACPI_SIZE strlen(const char *String)
ULONG WSAAPI inet_addr(IN CONST CHAR FAR *cp)
VOID PrintMessage(DWORD dwMessage)
VOID PrintMessageV(DWORD dwMessage,...)
DWORD DoFormatMessage(VOID)
#define ERROR_NOT_ENOUGH_MEMORY
#define ERROR_INVALID_PARAMETER
#define HeapFree(x, y, z)
static void cleanup(void)
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
_Must_inspect_result_ _In_ USAGE _In_ USHORT _In_ USAGE Usage
_Check_return_ _CRTIMP int __cdecl sscanf(_In_z_ const char *_Src, _In_z_ _Scanf_format_string_ const char *_Format,...)
DWORD WINAPI GetIpNetTable(PMIB_IPNETTABLE pIpNetTable, PULONG pdwSize, BOOL bOrder)
DWORD WINAPI SetIpNetEntry(PMIB_IPNETROW pArpEntry)
struct _MIB_IPNETTABLE * PMIB_IPNETTABLE
struct _MIB_IPNETROW MIB_IPNETROW
struct _MIB_IPNETROW * PMIB_IPNETROW
BYTE bPhysAddr[MAXLEN_PHYSADDR]
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size