getlasterror
Strange GetLastError return in Managed C++
I have a really strange problem with GetLastError and managed C++. GetLastError is returning something very strange after transitioning from unmanaged code to managed code.[详细]
2023-04-11 17:48 分类:问答GetThreadContext returning error 6, Invalid Handle?
#include <iostream> #include <Windows.h> using std::cout; using std::endl; using std::cin; int main()[详细]
2023-04-05 20:48 分类:问答GetLastError called in a catch block yields incorrect value
Fun exploring some legacy code today. Ran into this little number: function Func1() { DWORD dwError; try {[详细]
2023-04-05 00:27 分类:问答Exaustive lists of all possible errors for various Windows API calls?
CreateFile for example. When I get INVALID_HANDLE_VALUE, what are all the possible values that can be returned by GetLastError? MSDN doesn\'t say. It mentions some and I can guess others, but how (if[详细]
2023-03-16 09:13 分类:问答ReadFile() says it failed, but the error code is ERROR_SUCCESS
I\'m using ReadFile() on Windows to read data from a serial port. This code was working fine at one point in time, but it\'s now failing and I\'m trying to track down the source of the problem, so I d[详细]
2023-02-26 20:48 分类:问答OpenProcess error 87 invalid parameter
I\'m trying to write a program which executes make.exe from MinGW distribution in the current directory and makes use of its STDOUT data and exit code. I have a handle to process STDOUT where I fetch[详细]
2023-02-10 19:47 分类:问答Errorcode in MySQL procedure
We have been facing a small problem in MySQL procedure. We have placed some exception handlers inside the procedure. But we want to retrieve the errorcode of any error that can occur inside a procedur[详细]
2023-01-27 23:47 分类:问答Getting Access Denied While Accessing the Named Pipe from Another System
I have a Named Pipe and It Works Fine While I access开发者_开发问答 it using a Client which runs on My System[详细]
2023-01-15 12:14 分类:问答What causes CreateDirectory to return ERROR_ACCESS_DENIED?
In another question, we established that yes, CreateDirectory occasionally fails with the undocumented GetLastError value of ERROR_ACCESS_DENIED, and that the right way to handle the situation is prob[详细]
2023-01-14 09:09 分类:问答when CreateDirectory returns ERROR_ACCESS_DENIED and "shouldn't"
My Win32 app A1 (actually a collection of processes) is trying to use CreateDirectory to create a directory D1 within parent directory P. The path to P is the value of the TMP environment variable, wh[详细]
2023-01-12 06:50 分类:问答