2025-11-28 00:35:46 +09:00

38 lines
596 B
C

/* Copyright (c) Microsoft Corporation. All rights reserved. */
#include "windows.h"
#include "radutil.h"
extern LPCWSTR pwszDllType;
static HMODULE hModule;
BOOL
WINAPI
DllMain(
HINSTANCE hInstance,
DWORD dwReason,
LPVOID lpReserved
)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
hModule = hInstance;
DisableThreadLibraryCalls(hInstance);
}
return TRUE;
}
STDAPI
DllRegisterServer( VOID )
{
return RadiusExtensionInstall(hModule, pwszDllType, TRUE);
}
STDAPI
DllUnregisterServer( VOID )
{
return RadiusExtensionInstall(hModule, pwszDllType, FALSE);
}