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

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

How to Share webservice object to all user