Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

ShareType (Enums)
 
.
Summary
Defines the values of the Type field for the SHARE_INFO_2 struct

C# Definition:

  /// <summary>Type of share</summary>
  public enum ShareType {
    /// <summary>Disk share</summary>
    Disk = 0,
    /// <summary>Printer share</summary>
    Printer = 1,
    /// <summary>Device share</summary>
    Device = 2,
    /// <summary>IPC share</summary>
    IPC = 3,
    /// <summary>Special share</summary>
    /// <remarks>
    /// 2147483648 - Disk drive (Administrative share)
    /// 2147483649 - Print queue (Administrative share)
    /// 2147483650 - Device (Administrative share)
    /// 2147483651 - IPC (Administrative share)
    /// </remarks>
    Special = -2147483648, // 0x80000000,

}

VB Definition:

  #Region "SHARE_TYPE Enumeration Definition"
    ' <summary>Type of share</summary>
    Public Enum ShareType
      ' <summary>Disk Share</summary>
      Disk = 0
      ' <summary>Printer Share</summary>
      Printer = 1
      ' <summary>Device Share</summary>
      Device = 2
      ' <summary>IPC Share</summary>
      IPC = 3
      ' <summary>Special Share</summary>
      ' <remarks>
      ' Add this value to one of the above values
      ' to get an Administrative Share of that type
      ' </remarks>
      Special = &H80000000
    End Enum
  #End Region

Notes:

None.

Documentation
 

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it!

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions