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:

   public enum SHARE_TYPE : uint
     [Flags]
    public enum SHARE_TYPE : uint
    {
        STYPE_DISK = 0,  // Disk Share
        STYPE_DISKTREE = 0,  // Disk Share
        STYPE_PRINTQ = 1,    // Print Queue
        STYPE_DEVICE = 2,    // Communication Device
        STYPE_IPC = 3,       // IPC (Interprocess communication) Share
        STYPE_HIDDEN_DISK = 0x80000000,  // Admin Disk Shares
        STYPE_HIDDEN_PRINT = 0x80000001,  // Admin Print Shares
        STYPE_HIDDEN_DEVICE = 0x80000002,  // Admin Device Shares
        STYPE_HIDDEN_IPC = 0x80000003,  // Admin IPC Shares
        STYPE_HIDDEN = 0x80000000,  // Admin Disk Shares
        // Need to add flags for
        // STYPE_TEMPORARY
    }

}

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:

[2012-08-02] C# definition based upon http://msdn.microsoft.com/en-us/library/windows/desktop/bb525408(v=vs.85).aspx

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
Edit This Page
Find References
Show Printable Version
Revisions