MCPcopy Create free account
hub / github.com/Atarity/Lightpack / getEventSourceName

Function getEventSourceName

Software/hooks/hooks.cpp:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40WCHAR *getEventSourceName(char *executableName) {
41 LPWSTR wstrResult = (LPWSTR)malloc(MAX_PATH*2);
42 WCHAR wstrBuf[MAX_PATH];
43 mbstowcs(wstrBuf, executableName, sizeof(wstrBuf));
44 wcscpy(wstrResult, L"prismatik-hooks.dll ");
45 wcscat(wstrResult, wstrBuf);
46
47 return wstrResult;
48}
49
50HOOKSDLL_API BOOL APIENTRY DllMain(HINSTANCE hModule, DWORD fdwReason, LPVOID lpReserved) {
51 UNREFERENCED_PARAMETER(lpReserved);

Callers 1

DllMainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected