Desktop Functions: Smart Device Functions:
|
Search Results for "GetLastError" in [All]rapi
public static extern int CeGetLastError(); function info on msdn at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceactsy/html/cerefCeGetLastErrorRAPI.asp 2: CeMoveFile Returns 0 for failure. Use CeGetLastError() and CeRapiGetError() to see errors on failure. credui
''' <returns><c>True</c> on success; otherwise <c>False</c>. For extended error information, call the GetLastError() function.</returns>
''' If the password cannot be decrypted, the function returns FALSE, an a call to the GetLastError function will return the value ERROR_NOT_CAPABLE.</param>
''' <returns><c>True</c> on success; otherwise <c>False</c>. For extended error information, call the GetLastError() function.</returns> ws2_325: send If no error occurs, sendto returns the total number of bytes sent, which can be less than the number indicated by len. Otherwise, a value of SOCKET_ERROR is returned, and a specific error code can be retrieved by calling WSAGetLastError. 6: SendTo If no error occurs, sendto returns the total number of bytes sent, which can be less than the number indicated by len. Otherwise, a value of SOCKET_ERROR is returned, and a specific error code can be retrieved by calling WSAGetLastError.
static extern Int32 WSAGetLastError();
Declare Function WSAGetLastError Lib "ws2_32.dll" () As Int32 winspool8: ClosePrinter As always, only do SetLastError=true if you actually intend to call GetLastError. As always, only do SetLastError=true if you actually intend to call GetLastError. 10: OpenPrinter As always, only do SetLastError=true if you actually intend to call GetLastError (This includes throwing a Win32Exception if the call fails) 11: WritePrinter
// If you did not succeed, GetLastError may give more information wtsapi3212: WTSOpenServer As always, only do SetLastError=true if you actually intend to call GetLastError.
/// If the function fails, the return value is zero. To get extended error information, call GetLastError.
/// If the function fails, the return value is zero. To get extended error information, call GetLastError. irprops
/// <returns>If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError.</returns>
/// Returns NULL upon failure. Call the GetLastError function for more information on the error. The following table describe common errors:</returns> setupapi15: SetupCopyOEMInf SP_COPY_NOOVERWRITE Copy only if the specified files don't currently exist in the INF directory. If the INF does currently exist, this API will fail and GetLastError returns ERROR_FILE_EXISTS. In this case, the existing INF file's filename will be placed into the appropriate field in the destination INF file's information output buffers. in Size of the DestinationInfFileName buffer, in characters, or zero if the buffer is not specified. If DestinationInfFileName is specified and this buffer size is less than the size required to return the destination INF filename (including full path), this function will fail. In this case GetLastError will return ERROR_INSUFFICIENT_BUFFER. The SetupCopyOEMInf function failed. For extended error information, call GetLastError.
ErrorCode = GetLastError(); in Zero-based index to the list of interfaces in the device information set. You should first call this function with the MemberIndex parameter set to zero to obtain the first interface. Then, repeatedly increment MemberIndex and retrieve an interface until this function fails and GetLastError returns ERROR_NO_MORE_ITEMS (259). If the function fails, the return value is zero. To get extended error information, call GetLastError. A call to SetupDiEnumDeviceInterfaces retrieves a pointer to a structure that identifies a specific device interface in the previously retrieved DeviceInfoSet array. The call specifies a device interface by passing an array index. To retrieve information about all of the device interfaces, an application can loop through the array, incrementing the array index until the function returns zero, indicating that there are no more interfaces. The GetLastError API function then returns No more data is available. If the function could not find a line, the return value is zero. To get extended error information, call GetLastError. If this function finds the next line, the return value is a nonzero value. Otherwise, the return value is zero. To get extended error information, call GetLastError. The function returns a nonzero value if it finds a matching line. Otherwise, the return value is zero. To get extended error information, call GetLastError.
If the function fails, the return value is zero. To get extended error information, call GetLastError. If this function is called with a ReturnBuffer of NULL and a ReturnBufferSize of zero, the function puts the buffer size needed to hold the specified data into the variable pointed to by RequiredSize. If the function succeeds in this, the return value is a nonzero value. Otherwise, the return value is zero and extended error information can be obtained by calling GetLastError. You can call the function once to get the required buffer size, allocate the necessary memory, and then call the function a second time to retrieve the data. Using this technique, you can avoid errors due to an insufficient buffer size. 23: SetupOpenInfFile
The function returns a handle to the opened INF file if it is successful. Otherwise, the return value is INVALID_HANDLE_VALUE. Extended error information can be retrieved by a call to GetLastError. If the load fails because the INF file type does not match InfClass, the function returns INVALID_HANDLE_VALUE and a call to GetLastError returns ERROR_CLASS_MISMATCH. icmp24: IcmpSendEcho
printf("IcmpCreatefile returned error: %ld\n", GetLastError()); shlwapi25: PathFileExists
/// <returns>Returns TRUE if the file exists, or FALSE otherwise. Call GetLastError for extended error information.</returns>
''' <returns>Returns TRUE if the file exists, or FALSE otherwise. Call GetLastError for extended error information.</returns> wininet26: FtpCommand Return Values : Returns TRUE if successful, or FALSE otherwise. To get a specific error message, call GetLastError. 27: FtpGetFile
[DllImport("wininet.dll", EntryPoint = "GetLastError")]
public static extern long GetLastError(); 28: InternetConnect
* Returns a valid handle to the FTP, Gopher, or HTTP session if the connection is successful, or NULL otherwise. To get extended error information, call GetLastError. An application can also use InternetGetLastResponseInfo to determine why access to the service was denied. Enums
// will fail and GetLastError() will indicate ERROR_PASSWORD_RESTRICTION
' will fail and GetLastError() will indicate ERROR_PASSWORD_RESTRICTION 30: WTSINFO
/// This value returns <B>FALSE</B>. If you call <see cref="GetLastError"/> to get extended error information, <B>GetLastError</B> returns <B>ERROR_NOT_SUPPORTED</B>.
/// This value returns <B>FALSE</B>. If you call <see cref="GetLastError"/> to get extended error information, <B>GetLastError</B> returns <B>ERROR_NOT_SUPPORTED</B>.
/// This value returns <B>FALSE</B>. If you call <see cref="GetLastError"/> to get extended error information, <B>GetLastError</B> returns <B>ERROR_NOT_SUPPORTED</B>.
/// This value returns <B>FALSE</B>. If you call <see cref="GetLastError"/> to get extended error information, <B>GetLastError</B> returns <B>ERROR_NOT_SUPPORTED</B>.
/// This value returns <B>FALSE</B>. If you call <see cref="GetLastError"/> to get extended error information, <B>GetLastError</B> returns <B>ERROR_NOT_SUPPORTED</B>.
/// This value returns <B>FALSE</B>. If you call <see cref="GetLastError"/> to get extended error information, <B>GetLastError</B> returns <B>ERROR_NOT_SUPPORTED</B>. ConstantsOne of the many error codes returned by GetLastError, which should not be used within the .NET framework. Instead you must use Marshal.GetLastWin32Error(). 32: WINERROR It is documented that you should NOT use the pinvoke GetLastError() due to the fact that the runtime gdi3233: CreateDIBSection If the function succeeds, the return value is a handle to the newly created device-independent bitmap (and ppvBits will point to the bitmap’s bit values). If the function fails, the return value is NULL (and ptr ppvBits will be NULL). To get extended error information, call GetLastError. user3234: CreateWindowEx
/// <para>If the function fails, the return value is NULL. To get extended error information, call GetLastError.</para>
''' <para>If the function fails, the return value is NULL. To get extended error information, call GetLastError.</para> When you call this function, the WndProc function must respond to the WM_NCCREATE message by returning TRUE. If it does not, the creation process will fail. A null handle will be returned from CreateWindowEx and GetLastError will return 0. See MSDN on WM_NCCREATE (http://msdn.microsoft.com/en-us/library/ms632635.aspx) and also WM_CREATE (http://msdn.microsoft.com/en-us/library/ms632619.aspx). You can have your WndProc call DefWindowProc, which will take care of this issue. 35: DdeGetLastError 36: DestroyWindow
/// <returns>If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError.</returns>
''' <returns>If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError.</returns> If the clipboard is not owned, the return value is NULL. To get extended error information, call GetLastError. 38: GetDC Windows NT/2000/XP: To get extended error information, call GetLastError. 39: GetDCEx Windows NT/2000/XP: To get extended error information, call GetLastError. 40: GetLastError
static extern TODO GetLastError(TODO);
Declare Function GetLastError Lib "kernel32.dll" (TODO) As TODO 41: GetScrollBarInfo
int nLatError = GetLastError(); // in kernel32.dll
/// If the function fails, the return value is zero. To get extended error information, call GetLastError. 43: GetWindowTex
/// call GetLastError. 44: MoveWindow
/// <br />To get extended error information, call GetLastError.
''' <para>If the function fails, the return value is zero. To get extended error information, call GetLastError.</para></returns> 45: PostMessage MSDN says: If the function fails, the return value is zero. To get extended error information, call GetLastError.
/// information, call GetLastError. 47: RemoveProp
/// <para>Windows Vista: RemoveProp is subject to the restrictions of User Interface Privilege Isolation (UIPI). A process can only call this function on a window belonging to a process of lesser or equal integrity level. When UIPI blocks property changes, GetLastError will return 5.</para> 48: SetProp
/// <para>Windows Vista: SetProp is subject to the restrictions of User Interface Privilege Isolation (UIPI). A process can only call this function on a window belonging to a process of lesser or equal integrity level. When UIPI blocks property changes, GetLastError will return 5.</para>
/// <returns>If the data handle and string are added to the property list, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError.</returns>
/// If the function fails, the return value is zero. To get extended error information, call GetLastError. 50: SetWindowsHookEx
/// <para>To get extended error information, call GetLastError.</para> 51: SetWindowText
/// To get extended error information, call GetLastError.
/// <see cref="!:https://msdn.microsoft.com/en-us/library/windows/desktop/ms679360%28v=vs.85%29.aspx">GetLastError</see> coredll53: CreateEvent
''' <returns>Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.</returns>
''' <returns>Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.</returns> 54: CreateMutex
//public static extern int GetLastError(); 55: CreateProcess You will need the above ProcessInfo class and may also want to use GetLastError and WaitForSingleObject. 56: DisableGestures Returns true if function succeeds; otherwise, false. To retrieve extended error information, call GetLastError 57: GetLastError
static extern Int32 GetLastError();
Declare Function GetLastError Lib "coredll.dll" () As Int32 It is recommended that you do not call the Win32 GetLastError method directly. Because of the way P/Invoke works, the error message may get reset between Win32 calls in your code. Instead, call the Marshal.GetLastWin32Error method, which can be combined with the ever useful Marshal.ThrowExceptionForHR method. See below for an example.
Int32 lastError = GetLastError();
lastError = GetLastError()
3 - SYSMEM_FAILED: Change failed. Use GetLastError to get more details. 59: SipSetCurrentIM
int error = Marshal.GetLastWin32Error(); // Equivalent to Win32 GetLastError() WAIT_FAILED indicates failure. To get extended error information, call GetLastError. Cut off search results after 60. Please refine your search. |