Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

VB Help

Thread Tools
 
Search this Thread
 
Old 01 July 2003, 09:50 AM
  #1  
SiDHEaD
Scooby Regular
Thread Starter
 
SiDHEaD's Avatar
 
Join Date: Apr 2002
Location: Birmingham
Posts: 9,196
Likes: 0
Received 0 Likes on 0 Posts
Post

Anyone got the API useage for disconnecting all (or selected) open share connections on a machine.

Andy
Old 01 July 2003, 10:27 AM
  #2  
rogp
Scooby Regular
 
rogp's Avatar
 
Join Date: Mar 2003
Posts: 455
Likes: 0
Received 0 Likes on 0 Posts
Post

I have no doubt Mr. Wallis will be able to help on this......
Old 01 July 2003, 11:06 AM
  #3  
IWatkins
Scooby Regular
 
IWatkins's Avatar
 
Join Date: Mar 2000
Location: Gloucestershire, home of the lawnmower.
Posts: 4,531
Likes: 0
Received 0 Likes on 0 Posts
Post

NetShareDel will delete a named share but you'll have to build the list to be deleted first. Haven't got the Win32 API in front of me so can't help further just now.

Cheers

Ian
Old 01 July 2003, 11:43 AM
  #4  
SiDHEaD
Scooby Regular
Thread Starter
 
SiDHEaD's Avatar
 
Join Date: Apr 2002
Location: Birmingham
Posts: 9,196
Likes: 0
Received 0 Likes on 0 Posts
Post

I dont want to remove the share. Basically we have some crap software which people have to connect to a share on another pc. That pc keeps running out of connections because the program doesnt close sessions properly.

I need something to periodically boot off all open connections.

Andy
Old 01 July 2003, 12:52 PM
  #5  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Post

just looking for you..

montitor API calls and then run srvmgr ??

David
Old 01 July 2003, 12:57 PM
  #6  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Post

http://support.microsoft.com/default...NoWebContent=1
Old 01 July 2003, 12:58 PM
  #7  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Post

http://www.planet-source-code.com/vb...714&lngWId=-10

Trending Topics

Old 01 July 2003, 01:02 PM
  #8  
David_Wallis
Scooby Regular
 
David_Wallis's Avatar
 
Join Date: Nov 2001
Location: Leeds - It was 562.4bhp@28psi on Optimax, How much closer to 600 with race fuel and a bigger turbo?
Posts: 15,239
Likes: 0
Received 1 Like on 1 Post
Post

they arent specific share management examples but looks like you will have to manage the share from the machine its shared on? if that makes sense.. then enumerate the connections to that share.

David
Old 01 July 2003, 02:28 PM
  #9  
SiDHEaD
Scooby Regular
Thread Starter
 
SiDHEaD's Avatar
 
Join Date: Apr 2002
Location: Birmingham
Posts: 9,196
Likes: 0
Received 0 Likes on 0 Posts
Post

Thanks for the links i'll have a look thru. I looked on PSC myself and got fed up of it timing out!

The program can run on the "server" machine, so that's not a problem. Just need to stop all these files being "open" as its causing the RPC to respond with "too many connections open".

Cheers,

Andy




All times are GMT +1. The time now is 12:23 PM.