⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lmimain.cpp

📁 SimpleLAP源码的配套设置和调用代码
💻 CPP
字号:

#include <windows.h>
#include "LmiGlobals.h"
#include "LmiDialog.h"
#include "resource.h"
#include <lap.h>



//
//	Module entry point.  This is called when the DLL is loaded.  This is not
//	the control panel or password prompt entry point.
//
BOOL WINAPI DllMain(

	HANDLE	hModule,
	DWORD	dwReason,
	LPVOID	lpvReserved )
{

    if ( dwReason == DLL_PROCESS_ATTACH )
        g_hInstance = (HINSTANCE)hModule;

    return TRUE;
}



BOOL InitLAP(InitLap* il)
{
    return TRUE; 
}


void DeinitLAP()
{
    return;
}

VOID VerifyUserStart(
  const GUID* AEKey,
  LPCWSTR pwszAEDisplayText,
  HWND hWndParent,
  DWORD dwOptions,
  PVOID pExtended
)
{
	// NOOPP
}

VOID VerifyUserStop()
{
	//NOOPP
}

VOID VerifyUserToTop()
{
	//NOOPP
}

BOOL VerifyUser(const GUID *AEKey,
                LPCWSTR pwszAEDisplayText,
                HWND   hwndParent,
                DWORD dwOptions,
                PVOID pExtended
                )
{
	// Prompt the user and handle all the custom security stuff
	LmiDialog_DoModal( hwndParent, TRUE );
	return true;
}

BOOL LAPCreateEnrollmentConfigDialog(HWND hwndParent,DWORD dwOptions)
{
	// Prompt the user and handle all the custom security stuff
	LmiDialog_DoModal( (HWND)hwndParent, FALSE );
	return false;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -