Example-Extension/ExampleExtension/ExampleExtension.cpp
2018-05-26 06:22:38 -04:00

15 lines
742 B
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 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);
}
}