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
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "NET_API_STATUS" in [All]

advapi32

.

internal static extern NET_API_STATUS NetValidatePasswordPolicy(

.

    public NET_API_STATUS ValidationStatus;

.

internal enum NET_API_STATUS : uint

.

private static extern NET_API_STATUS NetValidatePasswordPolicyFree(ref IntPtr OutputArg);

.

        NET_API_STATUS status = NetValidatePasswordPolicy(serverName, IntPtr.Zero, NET_VALIDATE_PASSWORD_TYPE.NetValidatePasswordChange, inputPointer, ref outputPointer);

.

        if (status == NET_API_STATUS.NERR_Success)

.

            if (outputArgs.ValidationStatus == NET_API_STATUS.NERR_Success)

Enums

.
Summary
NET_API_STATUS consists of the error codes returned by the Network Management API functions (netapi32.dll).
.

    /// #define NET_API_STATUS DWORD

.

    public enum NET_API_STATUS : uint

.

Public Enum NET_API_STATUS as UInteger

netapi32

.

    [DllImport("Netapi32.dll", CharSet = CharSet.Auto/*, SetLastError=true //Return value (NET_API_STATUS) contains error */)]

.

[2014-02-27] The function does not set the last error value, the error is returned directly and is in NET_API_STATUS format /Stoyan Sabev/

.

[DllImport("Netapi32.dll", CharSet=CharSet.Unicode/*, SetLastError=true //Return value (NET_API_STATUS) contains error */)]

.

[Stoyan Sabev] The function does not set the last error value, the error is returned directly and is NET_API_STATUS form

.

    'NET_API_STATUS NetFileClose(

.

    'NET_API_STATUS NetFileEnum(

.

    As NET_API_STATUS

.

NET_API_STATUS - Possible return values are NERR_Success and ERROR_NOT_ENOUGH_MEMORY

.

Public Enum NET_API_STATUS As UInteger

.

        As NET_API_STATUS

.

        (ByVal lpBuffer As IntPtr) As NET_API_STATUS

.

        Dim status As NET_API_STATUS

.

            If status = NET_API_STATUS.NERR_Success Then

.

     As NET_API_STATUS

.

NET_API_STATUS - Possible value are NERR_Success, ERROR_NOT_ENOUGH_MEMORY and ERROR_INVALID_PARAMETER.

.

     If NetRemoteComputerSupports(ComputerName, Wanted, supports) = NET_API_STATUS.NERR_Success Then

.

NET_API_STATUS NetSessionDel(

.

using NET_API_STATUS = System.UInt32;

.

internal static extern NET_API_STATUS NetUseAdd(

.

using NET_API_STATUS = System.UInt32;

.

        internal static extern NET_API_STATUS NetUseEnum(

.

    ByRef resumeHandle As IntPtr) As NET_API_STATUS


 
Access PInvoke.net directly from VS: