Add files via upload
This commit is contained in:
parent
67b05408ef
commit
1682f6b28b
30 changed files with 404 additions and 0 deletions
31
HelloFar.sln
Normal file
31
HelloFar.sln
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 16
|
||||||
|
VisualStudioVersion = 16.0.30114.105
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HelloFar", "HelloFar\HelloFar.vcxproj", "{7C8F5DAB-2516-4DE9-9F85-D10807CA47D2}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|x64 = Debug|x64
|
||||||
|
Debug|x86 = Debug|x86
|
||||||
|
Release|x64 = Release|x64
|
||||||
|
Release|x86 = Release|x86
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{7C8F5DAB-2516-4DE9-9F85-D10807CA47D2}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{7C8F5DAB-2516-4DE9-9F85-D10807CA47D2}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{7C8F5DAB-2516-4DE9-9F85-D10807CA47D2}.Debug|x86.ActiveCfg = Debug|Win32
|
||||||
|
{7C8F5DAB-2516-4DE9-9F85-D10807CA47D2}.Debug|x86.Build.0 = Debug|Win32
|
||||||
|
{7C8F5DAB-2516-4DE9-9F85-D10807CA47D2}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{7C8F5DAB-2516-4DE9-9F85-D10807CA47D2}.Release|x64.Build.0 = Release|x64
|
||||||
|
{7C8F5DAB-2516-4DE9-9F85-D10807CA47D2}.Release|x86.ActiveCfg = Release|Win32
|
||||||
|
{7C8F5DAB-2516-4DE9-9F85-D10807CA47D2}.Release|x86.Build.0 = Release|Win32
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
|
SolutionGuid = {8694F54E-5326-4071-9291-202E6870A59E}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
47
HelloFar/HelloFar.cpp
Normal file
47
HelloFar/HelloFar.cpp
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
#include "pch.h"
|
||||||
|
|
||||||
|
#include "version.hpp"
|
||||||
|
#include "guid.hpp"
|
||||||
|
|
||||||
|
static struct PluginStartupInfo Info;
|
||||||
|
|
||||||
|
void WINAPI GetGlobalInfoW(struct GlobalInfo* Info)
|
||||||
|
{
|
||||||
|
Info->StructSize = sizeof(struct GlobalInfo);
|
||||||
|
Info->MinFarVersion = FARMANAGERVERSION;
|
||||||
|
Info->Version = PLUGIN_VERSION;
|
||||||
|
Info->Guid = MainGuid;
|
||||||
|
Info->Title = PLUGIN_NAME;
|
||||||
|
Info->Description = PLUGIN_DESC;
|
||||||
|
Info->Author = PLUGIN_AUTHOR;
|
||||||
|
}
|
||||||
|
|
||||||
|
void WINAPI SetStartupInfoW(const struct PluginStartupInfo* startupInfo)
|
||||||
|
{
|
||||||
|
Info = *startupInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
void WINAPI GetPluginInfoW(struct PluginInfo* pluginInfo)
|
||||||
|
{
|
||||||
|
pluginInfo->StructSize = sizeof(*pluginInfo);
|
||||||
|
pluginInfo->Flags = PF_EDITOR;
|
||||||
|
|
||||||
|
static const wchar_t* PluginMenuStrings[1];
|
||||||
|
PluginMenuStrings[0] = Info.GetMsg(&MainGuid, 0);
|
||||||
|
pluginInfo->PluginMenu.Guids = &MenuGuid;
|
||||||
|
pluginInfo->PluginMenu.Strings = PluginMenuStrings;
|
||||||
|
pluginInfo->PluginMenu.Count = ARRAYSIZE(PluginMenuStrings);
|
||||||
|
}
|
||||||
|
|
||||||
|
HANDLE WINAPI OpenW(const struct OpenInfo* OInfo)
|
||||||
|
{
|
||||||
|
const wchar_t* MsgItems[] =
|
||||||
|
{
|
||||||
|
Info.GetMsg(&MainGuid, 0),
|
||||||
|
Info.GetMsg(&MainGuid, 1),
|
||||||
|
Info.GetMsg(&MainGuid, 2),
|
||||||
|
};
|
||||||
|
|
||||||
|
Info.Message(&MainGuid, NULL, FMSG_NONE, L"Contents", MsgItems, ARRAYSIZE(MsgItems), 1);
|
||||||
|
return NULL;
|
||||||
|
}
|
7
HelloFar/HelloFar.def
Normal file
7
HelloFar/HelloFar.def
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
LIBRARY HelloFar
|
||||||
|
; DESCRIPTION 'Hello Plugin'
|
||||||
|
EXPORTS
|
||||||
|
GetGlobalInfoW
|
||||||
|
SetStartupInfoW
|
||||||
|
GetPluginInfoW
|
||||||
|
OpenW
|
180
HelloFar/HelloFar.vcxproj
Normal file
180
HelloFar/HelloFar.vcxproj
Normal file
|
@ -0,0 +1,180 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<VCProjectVersion>16.0</VCProjectVersion>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
<ProjectGuid>{7c8f5dab-2516-4de9-9f85-d10807ca47d2}</ProjectGuid>
|
||||||
|
<RootNamespace>HelloFar</RootNamespace>
|
||||||
|
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>true</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<UseDebugLibraries>false</UseDebugLibraries>
|
||||||
|
<PlatformToolset>v142</PlatformToolset>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
|
<CharacterSet>Unicode</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="Shared">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<LinkIncremental>true</LinkIncremental>
|
||||||
|
<IncludePath>C:\Users\Acer\Downloads\FarManager-master\far;$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<LinkIncremental>false</LinkIncremental>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>WIN32;_DEBUG;HELLOFAR_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ConformanceMode>true</ConformanceMode>
|
||||||
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
|
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<EnableUAC>false</EnableUAC>
|
||||||
|
<ModuleDefinitionFile>HelloFar.def</ModuleDefinitionFile>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>WIN32;NDEBUG;HELLOFAR_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ConformanceMode>true</ConformanceMode>
|
||||||
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
|
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<EnableUAC>false</EnableUAC>
|
||||||
|
<ModuleDefinitionFile>HelloFar.def</ModuleDefinitionFile>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>_DEBUG;HELLOFAR_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ConformanceMode>true</ConformanceMode>
|
||||||
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
|
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
||||||
|
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<EnableUAC>false</EnableUAC>
|
||||||
|
<ModuleDefinitionFile>HelloFar.def</ModuleDefinitionFile>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<ClCompile>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<SDLCheck>true</SDLCheck>
|
||||||
|
<PreprocessorDefinitions>NDEBUG;HELLOFAR_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<ConformanceMode>true</ConformanceMode>
|
||||||
|
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||||
|
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<EnableUAC>false</EnableUAC>
|
||||||
|
<ModuleDefinitionFile>HelloFar.def</ModuleDefinitionFile>
|
||||||
|
</Link>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="framework.h" />
|
||||||
|
<ClInclude Include="guid.hpp" />
|
||||||
|
<ClInclude Include="pch.h" />
|
||||||
|
<ClInclude Include="version.hpp" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="HelloFar.cpp" />
|
||||||
|
<ClCompile Include="pch.cpp">
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
|
||||||
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="HelloFar.def" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
44
HelloFar/HelloFar.vcxproj.filters
Normal file
44
HelloFar/HelloFar.vcxproj.filters
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="Исходные файлы">
|
||||||
|
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cc;cxx;c++;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Файлы заголовков">
|
||||||
|
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||||
|
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
|
||||||
|
</Filter>
|
||||||
|
<Filter Include="Файлы ресурсов">
|
||||||
|
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||||
|
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="framework.h">
|
||||||
|
<Filter>Файлы заголовков</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="pch.h">
|
||||||
|
<Filter>Файлы заголовков</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="version.hpp">
|
||||||
|
<Filter>Файлы заголовков</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="guid.hpp">
|
||||||
|
<Filter>Файлы заголовков</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="pch.cpp">
|
||||||
|
<Filter>Исходные файлы</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="HelloFar.cpp">
|
||||||
|
<Filter>Исходные файлы</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="HelloFar.def">
|
||||||
|
<Filter>Исходные файлы</Filter>
|
||||||
|
</None>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
4
HelloFar/HelloFar.vcxproj.user
Normal file
4
HelloFar/HelloFar.vcxproj.user
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup />
|
||||||
|
</Project>
|
8
HelloFar/HelloFar_en.hlf
Normal file
8
HelloFar/HelloFar_en.hlf
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
.Language=English,English (English)
|
||||||
|
.PluginContents=HelloFar
|
||||||
|
|
||||||
|
@Contents
|
||||||
|
$ #HelloFar#
|
||||||
|
|
||||||
|
This is my first test plugin for Far Manager.
|
||||||
|
It's just show message "Hello".
|
5
HelloFar/HelloFar_en.lng
Normal file
5
HelloFar/HelloFar_en.lng
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
.Language=English,English (English)
|
||||||
|
|
||||||
|
"HelloFar"
|
||||||
|
"Hello!"
|
||||||
|
"Close"
|
8
HelloFar/HelloFar_ru.hlf
Normal file
8
HelloFar/HelloFar_ru.hlf
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
.Language=Russian,Russian (Русский)
|
||||||
|
.PluginContents=HelloFar
|
||||||
|
|
||||||
|
@Contents
|
||||||
|
$ #HelloFar#
|
||||||
|
|
||||||
|
Это мой первый пробный плагин для Far Manager.
|
||||||
|
Он просто печатает сообщение "Привет".
|
5
HelloFar/HelloFar_ru.lng
Normal file
5
HelloFar/HelloFar_ru.lng
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
.Language=Russian,Russian (Русский)
|
||||||
|
|
||||||
|
"HelloFar"
|
||||||
|
"Привет!"
|
||||||
|
"Закрыть"
|
19
HelloFar/dllmain.cpp
Normal file
19
HelloFar/dllmain.cpp
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
// dllmain.cpp : Определяет точку входа для приложения DLL.
|
||||||
|
#include "pch.h"
|
||||||
|
|
||||||
|
BOOL APIENTRY DllMain( HMODULE hModule,
|
||||||
|
DWORD ul_reason_for_call,
|
||||||
|
LPVOID lpReserved
|
||||||
|
)
|
||||||
|
{
|
||||||
|
switch (ul_reason_for_call)
|
||||||
|
{
|
||||||
|
case DLL_PROCESS_ATTACH:
|
||||||
|
case DLL_THREAD_ATTACH:
|
||||||
|
case DLL_THREAD_DETACH:
|
||||||
|
case DLL_PROCESS_DETACH:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
5
HelloFar/framework.h
Normal file
5
HelloFar/framework.h
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#define WIN32_LEAN_AND_MEAN // Исключите редко используемые компоненты из заголовков Windows
|
||||||
|
// Файлы заголовков Windows
|
||||||
|
#include <windows.h>
|
9
HelloFar/guid.hpp
Normal file
9
HelloFar/guid.hpp
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <initguid.h>
|
||||||
|
|
||||||
|
// {512fffeb - 6ebc - 4307 - 99ba - aae718d5d56d}
|
||||||
|
DEFINE_GUID(MainGuid, 0x512fffeb, 0x6ebc, 0x4307, 0x99, 0xba, 0xaa, 0xe7, 0x18, 0xd5, 0xd5, 0x6d);
|
||||||
|
|
||||||
|
// {661f3773 - eefd - 45ae - b81a - d11a86ef882e}
|
||||||
|
DEFINE_GUID(MenuGuid, 0x661f3773, 0xeefd, 0x45ae, 0xb8, 0x1a, 0xd1, 0x1a, 0x86, 0xef, 0x88, 0x2e);
|
5
HelloFar/pch.cpp
Normal file
5
HelloFar/pch.cpp
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
// pch.cpp: файл исходного кода, соответствующий предварительно скомпилированному заголовочному файлу
|
||||||
|
|
||||||
|
#include "pch.h"
|
||||||
|
|
||||||
|
// При использовании предварительно скомпилированных заголовочных файлов необходим следующий файл исходного кода для выполнения сборки.
|
13
HelloFar/pch.h
Normal file
13
HelloFar/pch.h
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
// pch.h: это предварительно скомпилированный заголовочный файл.
|
||||||
|
// Перечисленные ниже файлы компилируются только один раз, что ускоряет последующие сборки.
|
||||||
|
// Это также влияет на работу IntelliSense, включая многие функции просмотра и завершения кода.
|
||||||
|
// Однако изменение любого из приведенных здесь файлов между операциями сборки приведет к повторной компиляции всех(!) этих файлов.
|
||||||
|
// Не добавляйте сюда файлы, которые планируете часто изменять, так как в этом случае выигрыша в производительности не будет.
|
||||||
|
|
||||||
|
#ifndef PCH_H
|
||||||
|
#define PCH_H
|
||||||
|
|
||||||
|
// Добавьте сюда заголовочные файлы для предварительной компиляции
|
||||||
|
#include "framework.h"
|
||||||
|
|
||||||
|
#endif //PCH_H
|
10
HelloFar/version.hpp
Normal file
10
HelloFar/version.hpp
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <plugin.hpp>
|
||||||
|
|
||||||
|
#define PLUGIN_BUILD 0
|
||||||
|
#define PLUGIN_DESC L"Hello Plugin for Far Manager x64"
|
||||||
|
#define PLUGIN_NAME L"HelloFar"
|
||||||
|
#define PLUGIN_FILENAME L"HelloFar.dll"
|
||||||
|
#define PLUGIN_AUTHOR L"CodePicker13"
|
||||||
|
#define PLUGIN_VERSION MAKEFARVERSION(FARMANAGERVERSION_MAJOR,FARMANAGERVERSION_MINOR,FARMANAGERVERSION_REVISION,PLUGIN_BUILD,VS_RELEASE)
|
2
HelloFar/x64/Debug/HelloFar.log
Normal file
2
HelloFar/x64/Debug/HelloFar.log
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
HelloFar.cpp
|
||||||
|
HelloFar.vcxproj -> C:\Users\Acer\VisualStudio\source\repos\HelloFar\x64\Debug\HelloFar.dll
|
BIN
HelloFar/x64/Debug/HelloFar.obj
Normal file
BIN
HelloFar/x64/Debug/HelloFar.obj
Normal file
Binary file not shown.
BIN
HelloFar/x64/Debug/HelloFar.pch
Normal file
BIN
HelloFar/x64/Debug/HelloFar.pch
Normal file
Binary file not shown.
BIN
HelloFar/x64/Debug/HelloFar.tlog/CL.command.1.tlog
Normal file
BIN
HelloFar/x64/Debug/HelloFar.tlog/CL.command.1.tlog
Normal file
Binary file not shown.
BIN
HelloFar/x64/Debug/HelloFar.tlog/CL.read.1.tlog
Normal file
BIN
HelloFar/x64/Debug/HelloFar.tlog/CL.read.1.tlog
Normal file
Binary file not shown.
BIN
HelloFar/x64/Debug/HelloFar.tlog/CL.write.1.tlog
Normal file
BIN
HelloFar/x64/Debug/HelloFar.tlog/CL.write.1.tlog
Normal file
Binary file not shown.
2
HelloFar/x64/Debug/HelloFar.tlog/HelloFar.lastbuildstate
Normal file
2
HelloFar/x64/Debug/HelloFar.tlog/HelloFar.lastbuildstate
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.26.28801:TargetPlatformVersion=10.0.18362.0:
|
||||||
|
Debug|x64|C:\Users\Acer\VisualStudio\source\repos\HelloFar\|
|
BIN
HelloFar/x64/Debug/HelloFar.tlog/HelloFar.write.1u.tlog
Normal file
BIN
HelloFar/x64/Debug/HelloFar.tlog/HelloFar.write.1u.tlog
Normal file
Binary file not shown.
BIN
HelloFar/x64/Debug/HelloFar.tlog/link.command.1.tlog
Normal file
BIN
HelloFar/x64/Debug/HelloFar.tlog/link.command.1.tlog
Normal file
Binary file not shown.
BIN
HelloFar/x64/Debug/HelloFar.tlog/link.read.1.tlog
Normal file
BIN
HelloFar/x64/Debug/HelloFar.tlog/link.read.1.tlog
Normal file
Binary file not shown.
BIN
HelloFar/x64/Debug/HelloFar.tlog/link.write.1.tlog
Normal file
BIN
HelloFar/x64/Debug/HelloFar.tlog/link.write.1.tlog
Normal file
Binary file not shown.
BIN
HelloFar/x64/Debug/pch.obj
Normal file
BIN
HelloFar/x64/Debug/pch.obj
Normal file
Binary file not shown.
BIN
HelloFar/x64/Debug/vc142.idb
Normal file
BIN
HelloFar/x64/Debug/vc142.idb
Normal file
Binary file not shown.
BIN
HelloFar/x64/Debug/vc142.pdb
Normal file
BIN
HelloFar/x64/Debug/vc142.pdb
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue