SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Feb 2004
    Location
    Illinois
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Is there a way to disable Network Ports using WINAPI calls

    Hi,

    Presently I am doing a test scenario in which i need to disable the Network port and Modem port ( or disable LAN connetion and modem connetion).

    Is it possible thru WINAPI calls?

    if someone tried this could please share the code with me?

    Thanks in advance

  2. #2
    Member
    Join Date
    Aug 2006
    Posts
    344
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Is there a way to disable Network Ports using

    Well, you could always make a hack to do it through GUI automation, if there is no WINAPI support.

  3. #3
    Senior Member
    Join Date
    Oct 2002
    Location
    England
    Posts
    368
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Is there a way to disable Network Ports using

    As daluu says there's no specific api call to do this, but if you just want to enable/disable a NIC, then you could write a WMI script (see
    http://msdn2.microsoft.com/en-us/library/aa394595.aspx) and then call it with a SYS_Execute from within Silktest.

    Regards
    Peat

  4. #4
    Senior Member
    Join Date
    Aug 2004
    Location
    Dublin, Ireland
    Posts
    237
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Is there a way to disable Network Ports using

    Do a search on the forum, there were commands posted not so long ago to disable/enable components in the device manager, that should work for what you want to do

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.00%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 09:42 AM.

Copyright BetaSoft Inc.