[
Keywords |
Classes |
Data |
Functions
]
Quick Index
Classes
- CServiceManager
-
Provides enhanced remote control functions for Windows NT Services.
- CSimpleProcessAPI
-
Provide simple and cross-platform API to processes and modules.
- CWindowsRegistry
-
Provides an easier access to the Windows Registry.
Back to the top of WhoSLocking
Data
Back to the top of WhoSLocking
Global Functions
- LPTSTR WindowsGetErrorText(DWORD dwErrorCode, LPTSTR lpszBuf, DWORD dwSize);
Back to the top of WhoSLocking
LPTSTR WindowsGetErrorText(DWORD dwErrorCode, LPTSTR lpszBuf, DWORD dwSize);
#include "WindowsErrorText.h"
Purpose: return the text for a given Windows Error Code
Parameters:
- in dwErrorCode
- WIN32 error code (e.g. returned by "GetLastError")
- in lpszBuf
- buffer where the error text will be written
- in dwSize
- size of the buffer (maximum size for the error text)
Return value : LPTSTR = error text (points to lpszBuf)
Description : This function is a wrapper for many error-handling
functions from WIN32. It searches for error text
in the following locations:
- In the Operating System, using function FormatMessage (...FORMAT_MESSAGE_FROM_SYSTEM...)
- In specific modules, using function FormatMessage (...FORMAT_MESSAGE_FROM_HMODULE...):
- wininet.dll (Win32 Internet Errors)
- mqutil.dll (Microsoft Message Queue Errors)
- In Extended Internet Errors, using function InternetGetLastResponseInfo()
If no error text is found, this function still builds an error message
with the format "Error Code 0x%X (%d)" (the error code is shown is hexadecimal
and in decimal).
LPTSTR WindowsGetErrorText(DWORD dwErrorCode, LPTSTR lpszBuf, DWORD dwSize);
Back to the top of WhoSLocking
Generated from source by the Cocoon utilities on Thu Feb 10 12:02:41 2000
.
Report problems to jkotula@stratasys.com