Windows-powershell / PowerShell-master /src /System.Management.Automation /engine /Interop /Windows /NetShareEnum.cs
Download PowerShell-master/src/System.Management.Automation/engine/Interop/Windows/NetShareEnum.cs from MegaBites-AI/Windows-powershell: direct link, hf CLI and curl.
- Browser
- Download file 741 Bytes
-
https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/System.Management.Automation/engine/Interop/Windows/NetShareEnum.cs
- Command line
-
hf download hf://datasets/MegaBites-AI/Windows-powershell/PowerShell-master/src/System.Management.Automation/engine/Interop/Windows/NetShareEnum.cs
-
curl -L -o NetShareEnum.cs https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/src/System.Management.Automation/engine/Interop/Windows/NetShareEnum.cs
741 Bytes
| // Copyright (c) Microsoft Corporation. | |
| // Licensed under the MIT License. | |
| using System.Runtime.InteropServices; | |
| internal static partial class Interop | |
| { | |
| internal static unsafe partial class Windows | |
| { | |
| internal const int MAX_PREFERRED_LENGTH = -1; | |
| internal const int STYPE_DISKTREE = 0; | |
| internal const int STYPE_MASK = 0x000000FF; | |
| [] | |
| internal static partial int NetShareEnum( | |
| string serverName, | |
| int level, | |
| out nint bufptr, | |
| int prefMaxLen, | |
| out uint entriesRead, | |
| out uint totalEntries, | |
| ref uint resumeHandle); | |
| } | |
| } | |