Being that this needs to work in a driver (which never unloads!), is all I
need to do:
> For non-MFC:
> #include <new.h>
> Call _set_new_handler witha ptr to a function that throws
> std::bad_alloc.
_set_new_handler(DrvCrypt_newHandler)
DrvCrypt_newHandler() // I don't know parameters by heart
{
if(returned_NULL)
{
throw std::bad_alloc;
}
}
--
Kind regards, Dejan M. MVP for DDK
http://www.alfasp.com E-mail: [EMAIL PROTECTED]
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32 developers.
Alfa File Monitor - File monitoring library for Win32 developers.