Can GetNetworkParams be called before main has started

  • Thread starter Thread starter EvenAn
  • Start date Start date
E

EvenAn

Guest
Windows Version 10.0.17763 Build 17763
Building With Visual C++ 2013

Both running on VmWare, hosted on a Win10 system



Hello, I am working With a code coverage tool (CTC),

and it seems to be the case that my application hangs at startup.

Apparently there is a call to IPHLPAPI.DLL!_GetNetworkParams@8() Unknown,

and this Call ends up being stuck in ntdll.dll!_NtWaitForSingleObject@12() Unknown

The call is from _initterm, which I assume goes through the list of constructors, and

calls them


So the question is. Is it safe to call GetNetworkParams before main has started execution,

or is there a risk that something will fail in this case ?



This is the call stack:

ntdll.dll!_NtWaitForSingleObject@12() Unknown

KernelBase.dll!WaitForSingleObjectEx() Unknown
KernelBase.dll!_WaitForSingleObject@8() Unknown
winnsi.dll!NsiRpcRegisterChangeNotificationEx() Unknown
winnsi.dll!_NsiRpcRegisterChangeNotification@28() Unknown
IPHLPAPI.DLL!InternalRegisterChangeNotification() Unknown
IPHLPAPI.DLL!NetioRegisterAddressChangeNotification() Unknown
IPHLPAPI.DLL!_NotifyUnicastIpAddressChange@20() Unknown
dnsapi.dll!Ip_RegisterNotification() Unknown
dnsapi.dll!NetInfo_Get() Unknown
dnsapi.dll!_Config_GetDnsServerList@12() Unknown
dnsapi.dll!_Config_GetDnsServerListIp4@8() Unknown
dnsapi.dll!DnsQueryConfig() Unknown
IPHLPAPI.DLL!_AllocateAndGetFixedInfo@4() Unknown
IPHLPAPI.DLL!_GetNetworkParams@8() Unknown
ctcmsnt.dll!01395339() Unknown
[Frames below may be incorrect and/or missing, no symbols loaded for ctcmsnt.dll]
ntdll.dll!_NtClose@4() Unknown
KernelBase.dll!CloseHandle() Unknown
ctcmsnt.dll!013956bc() Unknown
ctcmsnt.dll!01395879() Unknown
ctcmsnt.dll!01380f01() Unknown
ctcmsnt.dll!01362e83() Unknown
ctcmsnt.dll!013625a5() Unknown
ctcmsnt.dll!013763e1() Unknown
ctcmsnt.dll!01351424() Unknown
msvcrt.dll!vscan_fn() Unknown
msvcrt.dll!_sscanf() Unknown
ntdll.dll!_NtClose@4() Unknown
> msvcr120d.dll!_initterm(void (void) * * pfbegin, void (void) * * pfend) Line 955 C


Regards,

Even

Continue reading...
 
Back
Top