MCPcopy Create free account
hub / github.com/Schnocker/NoEye / GetProcAddressA

Function GetProcAddressA

NoEye_Service/CMap.cpp:396–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394 return Status;
395 }
396 FARPROC GetProcAddressA(WDLL* wDll, LPCSTR lpName)
397 {
398
399 LPWSTR wName = 0;
400 INT NameSize = 0;
401 FARPROC Function = 0;
402 NameSize = MultiByteToWideChar(CP_UTF8, 0, lpName, -1, NULL, 0);
403 if (!NameSize)
404 {
405 SetLastError(4031);
406 return FALSE;
407 }
408 wName = new wchar_t[NameSize];
409 if (!wName)
410 {
411 SetLastError(4032);
412 return FALSE;
413 }
414 if (!MultiByteToWideChar(CP_UTF8, 0, lpName, -1, wName, NameSize))
415 {
416 SetLastError(4033);
417 if (wName) delete wName;
418 return FALSE;
419 }
420 Function = GetProcAddressW(wDll, wName);
421 if (wName) delete wName;
422
423 return Function;
424 }
425 FARPROC GetProcAddressW(WDLL* wDll, LPCWSTR lpName)
426 {
427

Callers

nothing calls this directly

Calls 1

GetProcAddressWFunction · 0.85

Tested by

no test coverage detected