Demo entry 6346782

1

   

Submitted by anonymous on Feb 13, 2017 at 06:33
Language: C++. Code size: 734 Bytes.

BOOL InitNexacroView(LPCWSTR lpstrPath)
{
	if (g_ModuleView)
		return TRUE;

	wchar_t path[_MAX_PATH];

	_tcscpy(path, lpstrPath);

	if (path[_tcslen(path) - 1] != '\\')
		_tcscat(path, L"\\nexacroview.dll");
	else
		_tcscat(path, L"nexacroview.dll");

	g_ModuleView = LoadLibrary(path);

	if (g_ModuleView)
	{
		fn_InitInstacne = (FN_INITINSTANCE)GetProcAddress(g_ModuleView, "InitInstance");
		fn_Run = (FN_RUN)GetProcAddress(g_ModuleView, "Run");
		fn_UnInstance = (FN_UNINSTANCE)GetProcAddress(g_ModuleView, "UnInstance");
		fn_SetWindowRect = (FN_SETWINDOWRECT)GetProcAddress(g_ModuleView, "SetWindowRect");
		fn_Quit = (FN_QUIT)GetProcAddress(g_ModuleView, "Quit");
		return TRUE;
	}

	return FALSE;
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).