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

Search Results for "WINERROR" in [All]

credui

.

      else errorcode = 1326; //Else display an error message inside the dialog next time (The errorcodes are defined in 'winerror.h')

netapi32

.

    // WINERROR.h

Constants

advapi32

.

You can use the LsaNtStatusToWinError function to convert the NTSTATUS code to a Windows error code.

.

        Throw New Win32Exception(LsaNtStatusToWinError(ret))

.

        Throw New Win32Exception(LsaNtStatusToWinError(ret))

.

NTSTATUS can be converted to a Windows error using LsaNtStatusToWinError

.

    internal static extern int LsaNtStatusToWinError(int NTSTATUS);

.

        throw new Win32Exception(Win32Sec.LsaNtStatusToWinError((int)ret));

.

        throw new Win32Exception(Win32Sec.LsaNtStatusToWinError((int)ret));

.

        Throw New Win32Exception(LsaNtStatusToWinError(ret))

.

        Throw New Win32Exception(LsaNtStatusToWinError(ret))

.

    internal static extern int LsaNtStatusToWinError(int NTSTATUS);

.

        throw new Win32Exception(Win32Sec.LsaNtStatusToWinError((int)ret));

.

        throw new Win32Exception(Win32Sec.LsaNtStatusToWinError((int)ret));

.

        throw new Win32Exception(Win32Sec.LsaNtStatusToWinError((int)ret));

.

        throw new Win32Exception(Win32Sec.LsaNtStatusToWinError((int)ret));

.

        throw new Win32Exception(Win32Sec.LsaNtStatusToWinError((int)ret));

.

        throw new Win32Exception(Win32Sec.LsaNtStatusToWinError(ret));

.

static extern uint LsaNtStatusToWinError(uint status);

.

    Private Declare Function LsaNtStatusToWinError Lib "advapi32.dll" ( _

.
Documentation
[LsaNtStatusToWinError] on MSDN
.

    uint aWinErrorCode = 0; //contains the last error

.

        aWinErrorCode = LsaNtStatusToWinError( aOpenPolicyResult );

.

        if( aWinErrorCode == Win32Constants.STATUS_SUCCESS )

.

            aWinErrorCode = LsaNtStatusToWinError( aLSAResult );

.

        aWinErrorCode = (uint)GetLastError();

.

    return aWinErrorCode;

.

            UInt32 winErrorCode = LsaNtStatusToWinError(resultPolicy);

.

            if (winErrorCode != 0)

.

                throw new Win32Exception(winErrorCode, "OpenPolicy failed: ");

.

            UInt32 winErrorCode = LsaNtStatusToWinError(ntstatus);

.

            if (winErrorCode != 0)

.

                throw new Exception("RetreivePrivateData failed: " + winErrorCode);

.

            UInt32 winErrorCode = LsaNtStatusToWinError(ntstatus);

.

            if (winErrorCode != 0)

.

                throw new Exception("RetreivePrivateData failed: " + winErrorCode);

.

        private static extern UInt32 LsaNtStatusToWinError(UInt32 status);

.

        Throw New Win32Exception(LsaNtStatusToWinError(ret))

.

        Throw New Win32Exception(LsaNtStatusToWinError(ret))

.

        Throw New Win32Exception(LsaNtStatusToWinError(ret))

.

        Throw New Win32Exception(LsaNtStatusToWinError(ret))

.

    private static extern uint LsaNtStatusToWinError(

.

        uint winErrorCode = LsaNtStatusToWinError(ntsResult);

.

        if (winErrorCode != 0)

.

        throw new Exception("LsaOpenPolicy failed: " + winErrorCode);

.

        uint winErrorCode = LsaNtStatusToWinError(ntsResult);

.

        if (winErrorCode != 0)

.

        throw new Exception("LsaClose failed: " + winErrorCode);

.

        uint winErrorCode = LsaNtStatusToWinError(ntsResult);

.

        if (winErrorCode != 0)

.

        throw new Exception("LsaFreeMemory failed: " + winErrorCode);

.

        uint winErrorCode = LsaNtStatusToWinError(result);

.

        if (winErrorCode != 0)

.

        throw new Exception("StorePrivateData failed: " + winErrorCode);

.

        uint winErrorCode = LsaNtStatusToWinError(ntsResult);

.

        if (winErrorCode != 0)

.

        throw new Exception("RetreivePrivateData failed: " + winErrorCode);

.

    private const int ERROR_NO_TOKEN = 1008; //From VC\PlatformSDK\Include\WinError.h

.

If the function fails, the return value is a nonzero error code defined in Winerror.h. You can use the FormatMessage function with the FORMAT_MESSAGE_FROM_SYSTEM flag to get a generic description of the error.

.

If the function fails, the return value is a nonzero error code defined in Winerror.h. You can use the FormatMessage function with the FORMAT_MESSAGE_FROM_SYSTEM flag to get a generic description of the error.

secur32

.

                public enum WinErrors : uint

.

                public static extern WinErrors LsaNtStatusToWinError(WinStatusCodes status);

.

                            throw new System.ComponentModel.Win32Exception((int)OSCalls.LsaNtStatusToWinError(status));

.

                                    throw new System.ComponentModel.Win32Exception((int)OSCalls.LsaNtStatusToWinError(status));

.

                                    throw new System.ComponentModel.Win32Exception((int)OSCalls.LsaNtStatusToWinError(status));


 
Access PInvoke.net directly from VS: