mirror of
https://github.com/Artikash/Example-Extension.git
synced 2024-09-20 11:43:06 +08:00
15 lines
742 B
C++
15 lines
742 B
C++
// ExampleExtension.cpp : Defines the exported functions for the DLL application.
|
||
//
|
||
|
||
#include "stdafx.h"
|
||
#define CURRENT_SELECT 0x1000
|
||
|
||
extern "C"
|
||
{
|
||
void __declspec(dllexport) OnSentence(LPCWSTR sentence, DWORD64 info)
|
||
{
|
||
bool sentenceInCurrentlySelectedTextThread = info & CURRENT_SELECT > 0;
|
||
MessageBoxW(nullptr, sentence, L"Example", MB_OK);
|
||
}
|
||
}
|