mirror of
https://github.com/ENSL/NS.git
synced 2024-11-27 06:42:54 +00:00
4f13237895
Change CRLF to LF in repo.
31 lines
813 B
C++
31 lines
813 B
C++
#ifdef _WIN32
|
|
#ifndef AVH_DEBUG_UTIL_H
|
|
#define AVH_DEBUG_UTIL_H
|
|
|
|
#ifdef _WIN32
|
|
#include "winsani_in.h"
|
|
#include <windows.h>
|
|
#include "winsani_out.h"
|
|
#endif
|
|
#include <iostream>
|
|
|
|
/**
|
|
* Writes the call stack for a context to the stream.
|
|
*/
|
|
void LogStack(std::ostream& stream, CONTEXT& c, HANDLE hThread);
|
|
|
|
/**
|
|
* Writes information about an exception to the stream.
|
|
*/
|
|
void LogException(std::ostream& stream, EXCEPTION_POINTERS* pExp);
|
|
|
|
/**
|
|
* Sends an e-mail. Line breaks in the message should be specified with a
|
|
* carriage return character followed by a new line character. If the mail
|
|
* could not be sent the function returns false.
|
|
*/
|
|
bool SendMail(const char* serverName, const char* fromAddress, const char* fromName,
|
|
const char* toAddress, const char* subject, const char* message);
|
|
|
|
#endif
|
|
#endif
|