IStiDeviceControl::WriteToErrorLog method (stiusd.h)
The IStiDeviceControl::WriteToErrorLog method allows a user-mode still image minidriver to write a message into the still image error log.
HRESULT WriteToErrorLog( DWORD dwMessageType, LPCWSTR pszMessage, DWORD dwErrorCode );
Caller-supplied constant value representing the message type. The following values are defined in Sti.h:
Caller-supplied pointer to a message string to be written to the log file.
If the operation succeeds, the method returns S_OK. Otherwise, it returns one of the STIERR-prefixed error codes defined in stierr.h.
The still image error log file is named sti_trace.log and is located in the Windows directory. Control Panel allows a user to select which still image error types (informational, warning, or error) are written to the error log (see Nonmodifiable Registry Entries).
Error messages should be reserved for critical error conditions, such as device hardware failures. Informational messages can be used for your own debugging purposes. Logged messages aren't visible to users, but they might be used by a support engineer to help debug a user's problems.
A still image minidriver receives an IStiDeviceControl interface pointer as input to its IStiUSD::Initialize method.
|Header||stiusd.h (include Stiusd.h)|
Submit and view feedback for