2.5.09

Codigo para saltar heuristicas

Holas aki les paso el code para saltar heuristicas creo ke al ver
la programacion ke se usa sabemos de ke es C, y ps ya el otro codigo
kedaria a imaginacion de uds
Hasta el dia de hoy funciona...

#include < windows.h >
#include < stdio.h >
// SHGetSpecialFolderPath
typedef BOOL (WINAPI *MY_SHGETSPECIALFOLDERPATH)(HWND ,LPTSTR ,int ,BOOL );
void main(void)
{
HINSTANCE hinstLib;
char PathWinProc[256];
MY_SHGETSPECIALFOLDERPATH my_SHGetSpecialFolderPath;
// LPSTR fun;
// FARPROC ProcAdd;
printf ("Dinamic Load SHGetSpecialFolderPath()\r\n");
//SHGetSpecialFolderPath

// fun = (LPSTR)"SHGetSpecialFolderPathA";
hinstLib = LoadLibrary("shell32.dll");
if ( hinstLib != NULL)
{
my_SHGetSpecialFolderPath = (MY_SHGETSPECIALFOLDERPATH) GetProcAddress(hinstLib,"SHGetSpecialFolderPathA");
if ( my_SHGetSpecialFolderPath != NULL)
{

memset(PathWinProc,0,sizeof(PathWinProc));
my_SHGetSpecialFolderPath(NULL,PathWinProc,38,FALSE);
printf ("PathWinProc: %s\r\n",PathWinProc);
}else printf (" Error GetProcAddress()\r\n");
}
}

No hay comentarios:

Publicar un comentario