| Цитата | Currently, the only state to which a TCP connection can be set is MIB_TCP_STATE_DELETE_TCB.
|
dwState стоит в MIB_TCP_STATE_DELETE_TCB?
| Цитата | On Windows Vista and later, the SetTcpEntry function can only be called by a user logged on as a member of the Administrators group. If SetTcpEntry is called by a user that is not a member of the Administrators group, the function call will fail and ERROR_ACCESS_DENIED is returned.
|
Вызывается от имени Администратора?
| Цитата | The SetTcpEntry function can also fail because of user account control (UAC) on Windows Vista and later. If an application that contains this function is executed by a user logged on as a member of the Administrators group other than the built-in Administrator, this call will fail unless the application has been marked in the manifest file with a requestedExecutionLevel set to requireAdministrator. If the application lacks this manifest file, a user logged on as a member of the Administrators group other than the built-in Administrator must then be executing the application in an enhanced shell as the built-in Administrator (RunAs administrator) for this function to succeed.
|
В manifest'е прописано?
|