Code:
// dll.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <Windows.h>

extern BOOL WINAPI SetDllDirectoryA(LPCTSTR lpathName);

int _tmain(int argc, _TCHAR* argv[])
{
	SetDllDirectoryA("C:\\DLLHell");
	return 0;
}
Code:
The program '[6028] dll.exe: Native' has exited with code 0 (0x0).
Funktioniert unter VC++ 2010 Express zumindest.