Desktop Functions: Smart Device Functions:
|
Search Results for "REASON" in [All]rapi1: CeRapiInvoke BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) Delegates
CopyProgressCallbackReason dwCallbackReason, Constants3: PROPERTYKEY
public static PropertyKey PKEY_ParentalRatingReason = new PropertyKey( 0x10984E0A, 0xF9F2, 0x4321, 0xB7, 0xEF, 0xBA, 0xF1, 0x95, 0xAF, 0x43, 0x19, 100);
public static Guid FMTID_ParentalRatingReason = new Guid("10984E0A-F9F2-4321-B7EF-BAF195AF4319"); 4: REASON
private const UInt32 SHTDN_REASON_MAJOR_OTHER = 0x00000000;
private const UInt32 SHTDN_REASON_MINOR_OTHER = 0x00000000;
private const UInt32 SHTDN_REASON_FLAG_PLANNED = 0x80000000;
Private Const SHTDN_REASON_MAJOR_OTHER = 0
Private Const SHTDN_REASON_MINOR_OTHER = 0
Private Const SHTDN_REASON_FLAG_PLANNED = &H80000000 5: WINERROR
/// Logon failure: user account restriction. Possible reasons are blank passwords not allowed, logon hour restrictions, or a policy restriction has been enforced.
/// The modification was not permitted for security reasons.
/// The attribute is not allowed to be replicated to the GC because of security reasons.
/// For security reasons, the operation must be run on the destination DC.
/// For security reasons, the source DC must be NT4SP4 or greater.
/// Rejected for administrative reasons - bad credentials.
/// Failed to obtain Kerberos server credentials for ISAKMP/ERROR_IPSEC_IKE service. Kerberos authentication will not function. The most likely reason for this is lack of domain membership. This is normal if your computer is a member of a workgroup.
/// The transaction failed to commit for an unknown reason. The transaction was aborted. winmmWhen recording waveform audio, usually buffers are allocated with unmanaged functions and kept in an IntPtr() array; for this reason the function is provided in two versions, one processing a WAVEHDR ByRef and the other working with an IntPtr. mapi327: MAPIAddress MSDN says that MAPI does not strictly adhere to the COM standard. Perhaps this is one reason why MS won't support this.
For some unknown reason, you need to pass lpszName as a new object, not an existing reference, otherwise you get an AccessViolationException. cfgmgr32vetoType, If not NULL, this points to a location that, if the removal request fails, receives a PNP_VETO_TYPE-typed value indicating the reason for the failure. coredllGetting at the device id is relatively straight forward but requires either some C++ or a reasonable amount of interop code. The api is something like this: odbccp32SQLInstallerError does not post error values for itself. SQLInstallerError returns SQL_NO_DATA when it is unable to retrieve any error information (in which case pfErrorCode is undefined). If SQLInstallerError cannot access error values for any reason that would normally return SQL_ERROR, SQLInstallerError returns SQL_ERROR but does not post any error values. If either the lpszErrorMsg argument is NULL or the cbErrorMsgMax is less than or equal to 0, this function returns SQL_ERROR. If the buffer for the error message is too short, SQLInstallerError returns SQL_SUCCESS_WITH_INFO and returns the correct pfErrorCode value for SQLInstallerError. setupapi
PNP_VETO_TYPE veto; // PNP_VETO_TYPE enumeration is used to identify the reason for rejection urlmon
/// security reasons". This function gets around those reasons.
/// security reasons". This function gets around those reasons. user3215: CreateWindowEx
/// <para>This function typically fails for one of the following reasons:</para>
''' <para>This function typically fails for one of the following reasons:</para> 16: DragDetect This seems to work reasonably: 17: ExitWindowsEx
static extern bool ExitWindowsEx(ExitWindows uFlags, ShutdownReason dwReason);
static extern bool ExitWindowsEx(uint uFlags, uint dwReason);
ByVal dwReason As ShutdownReason) As <MarshalAs(UnmanagedType.Bool)> Boolean
static extern bool ExitWindowsEx(uint uFlags, uint dwReason);
ExitWindowsEx(ExitWindows.LogOff, ShutdownReason.MajorOther | ShutdownReason.MinorOther); Changed the sample code Reason parameter from "&" to "ShutdownReason.MajorOther | ShutdownReason.MinorOther". Amperstand (&) is the binary AND condition, and the values ANDed together would be zero. The intended condition is that the flags be ORed together. (|) 18: MessageBox
static extern bool ShutdownBlockReasonCreate(IntPtr hWnd, [MarshalAs(UnmanagedType.LPWStr)] string reason);
Declare Function ShutdownBlockReasonCreate Lib "user32.dll" (ByVal hWnd As IntPtr, <Runtime.InteropServices.MarshalAs(Runtime.InteropServices.UnmanagedType.LPWStr)> ByVal reason As String) As Boolean reason - The reason the application must block system shutdown.
if (!ShutdownBlockReasonCreate(handleForShutdownBlocker, UIMessages.GetString("ShutdownBlockReason"))) {
log.Error(string.Format("Failed calling ShutdownBlockReasonCreate. Error code: {0}, blocking form handle: {1}", error, handleForShutdownBlocker));
static extern bool ShutdownBlockReasonDestroy(IntPtr hWnd);
Declare Function ShutdownBlockReasonDestroy Lib "user32.dll" (hWnd As IntPtr) As Boolean wlanapi
[Out] out WLAN_HOSTED_NETWORK_REASON pFailReason,
[Out] out WLAN_HOSTED_NETWORK_REASON pFailReason,
[Out] out WLAN_HOSTED_NETWORK_REASON pFailReason,
[Out] out WLAN_HOSTED_NETWORK_REASON pFailReason,
[Out] out WLAN_HOSTED_NETWORK_REASON pFailReason,
[Out] out WLAN_HOSTED_NETWORK_REASON pFailReason,
[Out] out WLAN_HOSTED_NETWORK_REASON pFailReason,
Public Shared Function WlanHostedNetwrokStartUsing(hClientHandle As IntPtr, <Out> pFailReason As WLAN_HOSTED_NETWORK_REASON, pReserved As IntPtr) As UInteger
[Out] out WLAN_HOSTED_NETWORK_REASON pFailReason,
public static extern uint WlanReasonCodeToString(uint dwReasonCode,uint dwBufferSize,string pStringBuffer,IntPtr pReserved);
Declare Function WlanReasonCodeToString Lib "wlanapi.dll" (TODO) As TODO
uint pwdReasonCode=524289,dwBufferSize=64;
WlanReasonCodeToString(pwdReasonCode,dwBufferSize,pStringBuffer,new IntPtr()); Structures
public uint dwReason; 31: DCB The reason is that the highest value within enum DtrControl is 2, and highest valye within enum RtsControl is 3. 32: FILETIME There is no reason not to use [System.Runtime.InteropServices.ComTypes.FILETIME], but there still is a need for conversion to [DateTime]: The reason it was not working, is the + operator between "((long) high) << 32" and "low". I changed this to the | operator.
public UInt32 ReasonMask;
<FieldOffset(8)> Public ReasonMask As Integer 'DWORD ReasonMask; 34: USN_RECORD
public UInt32 Reason;
<FieldOffset(40)> Public Reason As Integer 'DWORD Reason;
public USNJournalReason Reason;
enum USNJournalReason : UInt32 The history of this shows that IntPtrs for pDot11Ssid and pDesiredBssidList were changed to DOT11_SSID[] and DOT11_LIST[]. Then it should have some kind of explanation about the reason. Interfaces
int Abort(int hrReason, int options); 37: IUIApplication
int uReasonCode); Enums39: HRESULT
///The transaction failed to commit for an unknown reason. The transaction was aborted.
[Description("The transaction failed to commit for an unknown reason. The transaction was aborted.")]
'''The transaction failed to commit for an unknown reason. The transaction was aborted.
<Description("The transaction failed to commit for an unknown reason. The transaction was aborted.")> _ 40: RM_REBOOT_REASON
/// Describes the reasons a restart of the system is needed.
public enum RM_REBOOT_REASON : uint
RmRebootReasonNone = 0x0,
RmRebootReasonPermissionDenied = 0x1,
RmRebootReasonSessionMismatch = 0x2,
RmRebootReasonCriticalProcess = 0x4,
RmRebootReasonCriticalService = 0x8,
RmRebootReasonDetectedSelf = 0x10 41: ShutdownReason 42: WindowsMessages
''' Reason for the notification.
public enum WLAN_HOSTED_NETWORK_REASON
wlan_hosted_network_reason_success = 0,
wlan_hosted_network_reason_unspecified,
wlan_hosted_network_reason_bad_parameters,
wlan_hosted_network_reason_service_shutting_down,
wlan_hosted_network_reason_insufficient_resources,
wlan_hosted_network_reason_elevation_required,
wlan_hosted_network_reason_read_only,
wlan_hosted_network_reason_persistence_failed,
wlan_hosted_network_reason_crypt_error,
wlan_hosted_network_reason_impersonation,
wlan_hosted_network_reason_stop_before_start,
wlan_hosted_network_reason_interface_available,
wlan_hosted_network_reason_interface_unavailable,
wlan_hosted_network_reason_miniport_stopped,
wlan_hosted_network_reason_miniport_started,
wlan_hosted_network_reason_incompatible_connection_started,
wlan_hosted_network_reason_incompatible_connection_stopped,
wlan_hosted_network_reason_user_action,
wlan_hosted_network_reason_client_abort,
wlan_hosted_network_reason_ap_start_failed,
wlan_hosted_network_reason_peer_arrived,
wlan_hosted_network_reason_peer_departed,
wlan_hosted_network_reason_peer_timeout,
wlan_hosted_network_reason_gp_denied,
wlan_hosted_network_reason_service_unavailable,
wlan_hosted_network_reason_device_change,
wlan_hosted_network_reason_properties_change,
wlan_hosted_network_reason_virtual_station_blocking_use,
wlan_hosted_network_reason_service_available_on_virtual_station
Enum WLAN_HOSTED_NETWORK_REASON kernel3244: AttachConsole,
/// always pass this with AttachConsole in .NET for stability reasons and mainly because 45: AttachConsole
/// always pass this with AttachConsole in .NET for stability reasons and mainly because 46: CopyFile
CopyProgressCallbackReason dwCallbackReason,
enum CopyProgressCallbackReason : uint
private CopyProgressResult CopyProgressHandler(long total, long transferred, long streamSize, long StreamByteTrans, uint dwStreamNumber,CopyProgressCallbackReason reason, IntPtr hSourceFile, IntPtr hDestinationFile, IntPtr lpData)
ByVal dwStreamNumber As UInteger, ByVal dwCallbackReason As CopyProgressCallbackReason, _
Private Enum CopyProgressCallbackReason As UInteger
Private Function CopyProgressHandler(ByVal total As Long, ByVal transferred As Long, ByVal streamSize As Long, ByVal StreamByteTrans As Long, ByVal dwStreamNumber As UInteger, ByVal reason As CopyProgressCallbackReason, _ 47: CopyFileEx
CopyProgressCallbackReason dwCallbackReason,
enum CopyProgressCallbackReason : uint
private CopyProgressResult CopyProgressHandler(long total, long transferred, long streamSize, long StreamByteTrans, uint dwStreamNumber,CopyProgressCallbackReason reason, IntPtr hSourceFile, IntPtr hDestinationFile, IntPtr lpData)
ByVal dwStreamNumber As UInteger, ByVal dwCallbackReason As CopyProgressCallbackReason, _
Private Enum CopyProgressCallbackReason As UInteger
Private Function CopyProgressHandler(ByVal total As Long, ByVal transferred As Long, ByVal streamSize As Long, ByVal StreamByteTrans As Long, ByVal dwStreamNumber As UInteger, ByVal reason As CopyProgressCallbackReason, _ 48: GetShortPathName I was trying to put the "GetShortName" into a module and calling it from my Form (as I am used to doing). What I found, and it works for some reason, was to put this in my module: 49: MoveFile
CopyProgressCallbackReason dwCallbackReason,
enum CopyProgressCallbackReason : uint
private CopyProgressResult CopyProgressHandler(long total, long transferred, long streamSize, long StreamByteTrans, uint dwStreamNumber,CopyProgressCallbackReason reason, IntPtr hSourceFile, IntPtr hDestinationFile, IntPtr lpData)
CopyProgressCallbackReason dwCallbackReason,
enum CopyProgressCallbackReason : uint
private CopyProgressResult CopyProgressHandler(long total, long transferred, long streamSize, long StreamByteTrans, uint dwStreamNumber,CopyProgressCallbackReason reason, IntPtr hSourceFile, IntPtr hDestinationFile, IntPtr lpData)
++info.srWindow.Bottom; // reasons for these is unknown 52: SetFilePointer The third argument (lpNewFilePointer) is of type LARGE_INTEGER, which has a size of 64 bits. For this reason use a UInt64 for this argument. (See sample below) 53: SetFilePointerEx The third argument (lpNewFilePointer) is of type LARGE_INTEGER, which has a size of 64 bytes. For this reason use a UInt64 for this argument. (See sample below) SetThreadAffinityMask() alters the Win32 thread affinity mask. The same Win32 thread may be used for multiple different System.Threading.Thread instances (I believe not concurrently, but the underlying Win32 thread will be reused for performance reasons once an existing System.Threading.ThreadStart delegate exits). shlwapi55: IPreviewHandler This interface does NOT have a way to tell the preview handler what file it should show!! For this reason, all preview handler COM objects must also support at least one of IInitializeWithFile or IInitializeWithStream, which is how they get this crucial piece of information. 56: PathBuildRoot
/// <returns>Returns the address of the constructed root path. If the call fails for any reason (for example, an invalid drive number), szRoot is returned unchanged.</returns>
''' <returns>Returns the address of the constructed root path. If the call fails for any reason (for example, an invalid drive number), szRoot is returned unchanged.</returns> 57: StrCmpLogicalW gdi3258: TextOut
//afterwards. If you for some reason don't want to do this you can use a advapi3259: CryptDestroyHash 60: InitiateShutdown
UInt32 dwReason);
ByVal dwReason As UInt32) As UInt32 ' returns ERROR_SUCCESS (&H0) if successful Cut off search results after 60. Please refine your search. |