Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Create share directory and remove share directory


Message #1 by "Vibha Prajapati" <vprajapati@i...> on Thu, 18 Jan 2001 20:22:54 -0000
> Problem # 1
> My program needs to create share drive in the code and after 
> the process
> has completed i want the code to remove the share created.  
> Does anybody
> know how to code this?
> 


Private Declare Function WNetUseConnection Lib "mpr.dll" _
   Alias "WNetUseConnectionA" ( _
   ByVal hwndOwner As Long, _
   ByRef lpNetResource As NETRESOURCE, _
   ByVal lpUsername As String, _
   ByVal lpPassword As String, _
   ByVal dwFlags As Long, _
   ByVal lpAccessName As Any, _
   ByRef lpBufferSize As Long, _
   ByRef lpResult As Long) _
   As Long

Private Declare Function WNetCancelConnection2 Lib "mpr.dll" _
   Alias "WNetCancelConnection2A" ( _
   ByVal lpName As String, _
   ByVal dwFlags As Long, _
   ByVal fForce As Long) _
   As Long

  Return to Index