Desktop Functions: Smart Device Functions:
|
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') netapi322: NetUserEnum
// WINERROR.h Constants3: WINERROR advapi32You 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" ( _
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); 12: OpenThreadToken
private const int ERROR_NO_TOKEN = 1008; //From VC\PlatformSDK\Include\WinError.h 13: RegOpenKey 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. 14: RegOpenKeyEx 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. secur3215: LsaLogonUser
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)); |