How to decrease RegConnectRegistry timeout?


hi,

when connecting remote registry using regconnectregistry() api call, have wait 2 minutes call fail if remote computer not available. how can decrease timeout value e.g. 30 seconds?

regards,
philipp kerling

hi,

you may check whether remote computer either pinging system.net.networkinformation.ping ( http://msdn2.microsoft.com/en-us/library/system.net.networkinformation.ping.aspx  ) or enumerating network computers netservenum , checking yout target in list ( see http://pinvoke.net/default.aspx/netapi32/netserverenum.html ).

regards,


Architecture  >  Architecture General



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'