windows-nt/Source/XPSP1/NT/net/rras/cm/customactions/cmsample/main.cpp

33 lines
751 B
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
//+----------------------------------------------------------------------------
//
// File: main.cpp
//
// Module: CMSAMPLE.DLL
//
// Synopsis: Main entry point for cmsample.dll
//
// Copyright (c) 2000 Microsoft Corporation
//
//+----------------------------------------------------------------------------
#include <windows.h>
extern "C" BOOL WINAPI DllMain(
HINSTANCE hinstDLL, // handle to DLL module
DWORD fdwReason, // reason for calling function
LPVOID lpvReserved // reserved
)
{
if (fdwReason == DLL_PROCESS_ATTACH)
{
//
// Disable the DLL_THREAD_ATTACH notification calls.
//
if (DisableThreadLibraryCalls(hinstDLL) == 0)
{
return FALSE;
}
}
return TRUE;
}