Labels: ,


#pragma data_seg(".SHARED")
char sharedvar[256] = {0}; // variables MUST be initialized,
#pragma data_seg()
#pragma comment(linker, "/section:.SHARED,RWS") //if you don't put this in the DLL, the data can't even be shared from function to function!

Labels:

COPY MEMORY

Standard

void *memcpy( void *dest, const void *src, size_t count );
returns the value of dest
Windows API

CopyMemory

MoveMemory


SecureZeroMemory(szPassword, sizeof(szPassword));
memset( szPassword, '*', sizeof(szPassword) ); //will replace the password, starting at szPassword, with the '*' character, for a length szPassword