|
윈도우 서버 2008 R2에서 sticky notes 실행하기
소스코드 slc.c
#include <windows.h>
BOOL WINAPI DllMain(
HINSTANCE hinstDLL,
DWORD fdwReason,
LPVOID lpvReserved
)
{
return TRUE;
}
extern "C" __declspec(dllexport) HRESULT WINAPI SLGetWindowsInformationDWORD(
PCWSTR pwszValueName,
DWORD *pdwValue
)
{
*pdwValue = 1;
return S_OK;
}
첨부파일은 서버 2008에서 작동하는 Sticky Notes - slc.dll compiled by msftguy
소스코드를 64비트로 컴파일 하고 slc.dll 교체하면 x64 스티키 노트 작동하고
32비트로 컴파일하고 slc.dll 교체하면 x86 스티키 노트 Entry Point Not Found 에러가 뜹니다.
사용한 툴: Mingw, Visual Studio 2008
|