mirror of
https://github.com/mirkobrombin/raven.git
synced 2026-11-05 21:56:33 +00:00
The program's library carries a manifest naming the private assembly raven.private, whose manifest and library are in a folder of that name beside the program; the library's import resolves there and the library reports that file as its own. Assisted-by: Claude Code:claude-opus-5-5 AI-Scope: the test fixture and its registration (cherry picked from commit b9278f1022a1ea1395f36214f7e973b5bb22e6d5)
12 lines
419 B
C
12 lines
419 B
C
#include <windows.h>
|
|
|
|
// A library whose own manifest (resource 2) depends on the private assembly raven.private, which declares private_target.dll.
|
|
BOOL WINAPI DllMainCRTStartup(HINSTANCE instance, DWORD reason, void *reserved)
|
|
{
|
|
(void)instance, (void)reason, (void)reserved;
|
|
return TRUE;
|
|
}
|
|
|
|
__declspec(dllimport) int private_value(void);
|
|
__declspec(dllexport) int middle_value(void) { return private_value() + 1; }
|