mirror of
https://github.com/microsoft/PowerToys
synced 2024-11-22 00:03:48 +00:00
Add support for Everything both 32-bit and 64-bit
This commit is contained in:
parent
529b8c2183
commit
f9ff9af094
Binary file not shown.
@ -8,6 +8,7 @@ namespace Wox.Plugin.Everything
|
|||||||
{
|
{
|
||||||
public sealed class EverythingAPI
|
public sealed class EverythingAPI
|
||||||
{
|
{
|
||||||
|
|
||||||
#region Const
|
#region Const
|
||||||
const string EVERYTHING_DLL_NAME = "Everything.dll";
|
const string EVERYTHING_DLL_NAME = "Everything.dll";
|
||||||
#endregion
|
#endregion
|
||||||
@ -46,7 +47,7 @@ namespace Wox.Plugin.Everything
|
|||||||
private static extern StateCode Everything_GetLastError();
|
private static extern StateCode Everything_GetLastError();
|
||||||
|
|
||||||
[DllImport(EVERYTHING_DLL_NAME)]
|
[DllImport(EVERYTHING_DLL_NAME)]
|
||||||
private static extern bool Everything_Query();
|
private static extern bool Everything_Query(bool bWait);
|
||||||
|
|
||||||
[DllImport(EVERYTHING_DLL_NAME)]
|
[DllImport(EVERYTHING_DLL_NAME)]
|
||||||
private static extern void Everything_SortResultsByPath();
|
private static extern void Everything_SortResultsByPath();
|
||||||
@ -175,6 +176,27 @@ namespace Wox.Plugin.Everything
|
|||||||
return Search(keyWord, 0, int.MaxValue);
|
return Search(keyWord, 0, int.MaxValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void no()
|
||||||
|
{
|
||||||
|
switch (Everything_GetLastError())
|
||||||
|
{
|
||||||
|
case StateCode.CreateThreadError:
|
||||||
|
throw new CreateThreadException();
|
||||||
|
case StateCode.CreateWindowError:
|
||||||
|
throw new CreateWindowException();
|
||||||
|
case StateCode.InvalidCallError:
|
||||||
|
throw new InvalidCallException();
|
||||||
|
case StateCode.InvalidIndexError:
|
||||||
|
throw new InvalidIndexException();
|
||||||
|
case StateCode.IPCError:
|
||||||
|
throw new IPCErrorException();
|
||||||
|
case StateCode.MemoryError:
|
||||||
|
throw new MemoryErrorException();
|
||||||
|
case StateCode.RegisterClassExError:
|
||||||
|
throw new RegisterClassExException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Searches the specified key word.
|
/// Searches the specified key word.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -196,7 +218,9 @@ namespace Wox.Plugin.Everything
|
|||||||
Everything_SetSearch(keyWord);
|
Everything_SetSearch(keyWord);
|
||||||
Everything_SetOffset(offset);
|
Everything_SetOffset(offset);
|
||||||
Everything_SetMax(maxCount);
|
Everything_SetMax(maxCount);
|
||||||
if (!Everything_Query())
|
Everything_SetRegex(true);
|
||||||
|
|
||||||
|
if (!Everything_Query(true))
|
||||||
{
|
{
|
||||||
switch (Everything_GetLastError())
|
switch (Everything_GetLastError())
|
||||||
{
|
{
|
||||||
@ -218,7 +242,9 @@ namespace Wox.Plugin.Everything
|
|||||||
yield break;
|
yield break;
|
||||||
}
|
}
|
||||||
|
|
||||||
const int bufferSize = 256;
|
Everything_SortResultsByPath();
|
||||||
|
|
||||||
|
const int bufferSize = 4096;
|
||||||
StringBuilder buffer = new StringBuilder(bufferSize);
|
StringBuilder buffer = new StringBuilder(bufferSize);
|
||||||
for (int idx = 0; idx < Everything_GetNumResults(); ++idx)
|
for (int idx = 0; idx < Everything_GetNumResults(); ++idx)
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
@ -7,6 +8,7 @@ namespace Wox.Plugin.Everything
|
|||||||
{
|
{
|
||||||
public class Main : IPlugin
|
public class Main : IPlugin
|
||||||
{
|
{
|
||||||
|
Wox.Plugin.PluginInitContext context;
|
||||||
EverythingAPI api = new EverythingAPI();
|
EverythingAPI api = new EverythingAPI();
|
||||||
|
|
||||||
public List<Result> Query(Query query)
|
public List<Result> Query(Query query)
|
||||||
@ -14,20 +16,47 @@ namespace Wox.Plugin.Everything
|
|||||||
var results = new List<Result>();
|
var results = new List<Result>();
|
||||||
if (query.ActionParameters.Count > 0 && query.ActionParameters[0].Length > 0)
|
if (query.ActionParameters.Count > 0 && query.ActionParameters[0].Length > 0)
|
||||||
{
|
{
|
||||||
IEnumerable<string> enumerable = api.Search(query.ActionParameters[0]);
|
IEnumerable<string> enumerable = api.Search(query.ActionParameters[0], 0, 100);
|
||||||
foreach (string s in enumerable)
|
foreach (string s in enumerable)
|
||||||
{
|
{
|
||||||
Result r = new Result();
|
Result r = new Result();
|
||||||
r.Title = s;
|
r.Title = Path.GetFileName(s);
|
||||||
|
r.SubTitle = s;
|
||||||
|
r.Action = () =>
|
||||||
|
{
|
||||||
|
context.HideApp();
|
||||||
|
System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo();
|
||||||
|
info.UseShellExecute = true;
|
||||||
|
info.FileName = s;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
System.Diagnostics.Process.Start(info);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
context.ShowMsg("Could not start " + r.Title, ex.Message, null);
|
||||||
|
}
|
||||||
|
};
|
||||||
results.Add(r);
|
results.Add(r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
api.Reset();
|
||||||
|
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[System.Runtime.InteropServices.DllImport("kernel32.dll")]
|
||||||
|
private static extern int LoadLibrary(string name);
|
||||||
|
|
||||||
public void Init()
|
public void Init(Wox.Plugin.PluginInitContext context)
|
||||||
{
|
{
|
||||||
|
this.context = context;
|
||||||
|
|
||||||
|
LoadLibrary(Path.Combine(
|
||||||
|
Path.Combine(context.PluginMetadata.PluginDirecotry, (IntPtr.Size == 4) ? "x86" : "x64"),
|
||||||
|
"Everything.dll"
|
||||||
|
));
|
||||||
//init everything
|
//init everything
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,9 @@
|
|||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<StartupObject />
|
||||||
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
@ -76,7 +79,8 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PostBuildEvent>xcopy /Y $(TargetDir)$(TargetFileName) $(SolutionDir)Wox\bin\Debug\Plugins\Everything\
|
<PostBuildEvent>xcopy /Y $(TargetDir)$(TargetFileName) $(SolutionDir)Wox\bin\Debug\Plugins\Everything\
|
||||||
xcopy /Y $(TargetDir)plugin.ini $(SolutionDir)Wox\bin\Debug\Plugins\Everything\
|
xcopy /Y $(TargetDir)plugin.ini $(SolutionDir)Wox\bin\Debug\Plugins\Everything\
|
||||||
xcopy /Y $(ProjectDir)Everything.dll $(SolutionDir)Wox\bin\Debug\Plugins\Everything\</PostBuildEvent>
|
xcopy /Y $(ProjectDir)x86\Everything.dll $(SolutionDir)Wox\bin\Debug\Plugins\Everything\x86\
|
||||||
|
xcopy /Y $(ProjectDir)x64\Everything.dll $(SolutionDir)Wox\bin\Debug\Plugins\Everything\x64\</PostBuildEvent>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||||
Other similar extension points exist, see Microsoft.Common.targets.
|
Other similar extension points exist, see Microsoft.Common.targets.
|
||||||
|
Binary file not shown.
Binary file not shown.
1801
Plugins/Wox.Plugin.Everything/nativesrc/Everything.c
Normal file
1801
Plugins/Wox.Plugin.Everything/nativesrc/Everything.c
Normal file
File diff suppressed because it is too large
Load Diff
51
Plugins/Wox.Plugin.Everything/nativesrc/Everything.def
Normal file
51
Plugins/Wox.Plugin.Everything/nativesrc/Everything.def
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
LIBRARY Everything
|
||||||
|
|
||||||
|
EXPORTS
|
||||||
|
|
||||||
|
Everything_GetLastError
|
||||||
|
|
||||||
|
Everything_SetSearchA
|
||||||
|
Everything_SetSearchW
|
||||||
|
Everything_SetMatchPath
|
||||||
|
Everything_SetMatchCase
|
||||||
|
Everything_SetMatchWholeWord
|
||||||
|
Everything_SetRegex
|
||||||
|
Everything_SetMax
|
||||||
|
Everything_SetOffset
|
||||||
|
|
||||||
|
Everything_GetSearchA
|
||||||
|
Everything_GetSearchW
|
||||||
|
Everything_GetMatchPath
|
||||||
|
Everything_GetMatchCase
|
||||||
|
Everything_GetMatchWholeWord
|
||||||
|
Everything_GetRegex
|
||||||
|
Everything_GetMax
|
||||||
|
Everything_GetOffset
|
||||||
|
|
||||||
|
Everything_QueryA
|
||||||
|
Everything_QueryW
|
||||||
|
|
||||||
|
Everything_IsQueryReply
|
||||||
|
|
||||||
|
Everything_SortResultsByPath
|
||||||
|
|
||||||
|
Everything_GetNumFileResults
|
||||||
|
Everything_GetNumFolderResults
|
||||||
|
Everything_GetNumResults
|
||||||
|
Everything_GetTotFileResults
|
||||||
|
Everything_GetTotFolderResults
|
||||||
|
Everything_GetTotResults
|
||||||
|
|
||||||
|
Everything_IsVolumeResult
|
||||||
|
Everything_IsFolderResult
|
||||||
|
Everything_IsFileResult
|
||||||
|
|
||||||
|
Everything_GetResultFileNameA
|
||||||
|
Everything_GetResultFileNameW
|
||||||
|
Everything_GetResultPathA
|
||||||
|
Everything_GetResultPathW
|
||||||
|
Everything_GetResultFullPathNameA
|
||||||
|
Everything_GetResultFullPathNameW
|
||||||
|
|
||||||
|
Everything_Reset
|
||||||
|
|
95
Plugins/Wox.Plugin.Everything/nativesrc/Everything.h
Normal file
95
Plugins/Wox.Plugin.Everything/nativesrc/Everything.h
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
|
||||||
|
#ifndef _EVERYTHING_DLL_
|
||||||
|
#define _EVERYTHING_DLL_
|
||||||
|
|
||||||
|
#ifndef _INC_WINDOWS
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define EVERYTHING_OK 0
|
||||||
|
#define EVERYTHING_ERROR_MEMORY 1
|
||||||
|
#define EVERYTHING_ERROR_IPC 2
|
||||||
|
#define EVERYTHING_ERROR_REGISTERCLASSEX 3
|
||||||
|
#define EVERYTHING_ERROR_CREATEWINDOW 4
|
||||||
|
#define EVERYTHING_ERROR_CREATETHREAD 5
|
||||||
|
#define EVERYTHING_ERROR_INVALIDINDEX 6
|
||||||
|
#define EVERYTHING_ERROR_INVALIDCALL 7
|
||||||
|
|
||||||
|
#ifndef EVERYTHINGAPI
|
||||||
|
#define EVERYTHINGAPI __stdcall
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef EVERYTHINGUSERAPI
|
||||||
|
#define EVERYTHINGUSERAPI __declspec(dllimport)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// write search state
|
||||||
|
EVERYTHINGUSERAPI VOID EVERYTHINGAPI Everything_SetSearchW(LPCWSTR lpString);
|
||||||
|
EVERYTHINGUSERAPI VOID EVERYTHINGAPI Everything_SetSearchA(LPCSTR lpString);
|
||||||
|
EVERYTHINGUSERAPI VOID EVERYTHINGAPI Everything_SetMatchPath(BOOL bEnable);
|
||||||
|
EVERYTHINGUSERAPI VOID EVERYTHINGAPI Everything_SetMatchCase(BOOL bEnable);
|
||||||
|
EVERYTHINGUSERAPI VOID EVERYTHINGAPI Everything_SetMatchWholeWord(BOOL bEnable);
|
||||||
|
EVERYTHINGUSERAPI VOID EVERYTHINGAPI Everything_SetRegex(BOOL bEnable);
|
||||||
|
EVERYTHINGUSERAPI VOID EVERYTHINGAPI Everything_SetMax(DWORD dwMax);
|
||||||
|
EVERYTHINGUSERAPI VOID EVERYTHINGAPI Everything_SetOffset(DWORD dwOffset);
|
||||||
|
EVERYTHINGUSERAPI VOID EVERYTHINGAPI Everything_SetReplyWindow(HWND hWnd);
|
||||||
|
EVERYTHINGUSERAPI VOID EVERYTHINGAPI Everything_SetReplyID(DWORD nId);
|
||||||
|
|
||||||
|
// read search state
|
||||||
|
EVERYTHINGUSERAPI BOOL EVERYTHINGAPI Everything_GetMatchPath(VOID);
|
||||||
|
EVERYTHINGUSERAPI BOOL EVERYTHINGAPI Everything_GetMatchCase(VOID);
|
||||||
|
EVERYTHINGUSERAPI BOOL EVERYTHINGAPI Everything_GetMatchWholeWord(VOID);
|
||||||
|
EVERYTHINGUSERAPI BOOL EVERYTHINGAPI Everything_GetRegex(VOID);
|
||||||
|
EVERYTHINGUSERAPI DWORD EVERYTHINGAPI Everything_GetMax(VOID);
|
||||||
|
EVERYTHINGUSERAPI DWORD EVERYTHINGAPI Everything_GetOffset(VOID);
|
||||||
|
EVERYTHINGUSERAPI LPCSTR EVERYTHINGAPI Everything_GetSearchA(VOID);
|
||||||
|
EVERYTHINGUSERAPI LPCWSTR EVERYTHINGAPI Everything_GetSearchW(VOID);
|
||||||
|
EVERYTHINGUSERAPI DWORD EVERYTHINGAPI Everything_GetLastError(VOID);
|
||||||
|
EVERYTHINGUSERAPI HWND EVERYTHINGAPI Everything_GetReplyWindow(VOID);
|
||||||
|
EVERYTHINGUSERAPI DWORD EVERYTHINGAPI Everything_GetReplyID(VOID);
|
||||||
|
|
||||||
|
// execute query
|
||||||
|
EVERYTHINGUSERAPI BOOL EVERYTHINGAPI Everything_QueryA(BOOL bWait);
|
||||||
|
EVERYTHINGUSERAPI BOOL EVERYTHINGAPI Everything_QueryW(BOOL bWait);
|
||||||
|
|
||||||
|
// query reply
|
||||||
|
BOOL EVERYTHINGAPI Everything_IsQueryReply(UINT message,WPARAM wParam,LPARAM lParam,DWORD nId);
|
||||||
|
|
||||||
|
// write result state
|
||||||
|
EVERYTHINGUSERAPI VOID EVERYTHINGAPI Everything_SortResultsByPath(VOID);
|
||||||
|
|
||||||
|
// read result state
|
||||||
|
EVERYTHINGUSERAPI int EVERYTHINGAPI Everything_GetNumFileResults(VOID);
|
||||||
|
EVERYTHINGUSERAPI int EVERYTHINGAPI Everything_GetNumFolderResults(VOID);
|
||||||
|
EVERYTHINGUSERAPI int EVERYTHINGAPI Everything_GetNumResults(VOID);
|
||||||
|
EVERYTHINGUSERAPI int EVERYTHINGAPI Everything_GetTotFileResults(VOID);
|
||||||
|
EVERYTHINGUSERAPI int EVERYTHINGAPI Everything_GetTotFolderResults(VOID);
|
||||||
|
EVERYTHINGUSERAPI int EVERYTHINGAPI Everything_GetTotResults(VOID);
|
||||||
|
EVERYTHINGUSERAPI BOOL EVERYTHINGAPI Everything_IsVolumeResult(int nIndex);
|
||||||
|
EVERYTHINGUSERAPI BOOL EVERYTHINGAPI Everything_IsFolderResult(int nIndex);
|
||||||
|
EVERYTHINGUSERAPI BOOL EVERYTHINGAPI Everything_IsFileResult(int nIndex);
|
||||||
|
EVERYTHINGUSERAPI LPCWSTR EVERYTHINGAPI Everything_GetResultFileNameW(int nIndex);
|
||||||
|
EVERYTHINGUSERAPI LPCSTR EVERYTHINGAPI Everything_GetResultFileNameA(int nIndex);
|
||||||
|
EVERYTHINGUSERAPI LPCWSTR EVERYTHINGAPI Everything_GetResultPathW(int nIndex);
|
||||||
|
EVERYTHINGUSERAPI LPCSTR EVERYTHINGAPI Everything_GetResultPathA(int nIndex);
|
||||||
|
EVERYTHINGUSERAPI int Everything_GetResultFullPathNameW(int nIndex,LPWSTR wbuf,int wbuf_size_in_wchars);
|
||||||
|
EVERYTHINGUSERAPI int Everything_GetResultFullPathNameA(int nIndex,LPSTR buf,int bufsize);
|
||||||
|
EVERYTHINGUSERAPI VOID Everything_Reset(VOID);
|
||||||
|
|
||||||
|
#ifdef UNICODE
|
||||||
|
#define Everything_SetSearch Everything_SetSearchW
|
||||||
|
#define Everything_GetSearch Everything_GetSearchW
|
||||||
|
#define Everything_Query Everything_QueryW
|
||||||
|
#define Everything_GetResultFileName Everything_GetResultFileNameW
|
||||||
|
#define Everything_GetResultPath Everything_GetResultPathW
|
||||||
|
#else
|
||||||
|
#define Everything_SetSearch Everything_SetSearchA
|
||||||
|
#define Everything_GetSearch Everything_GetSearchA
|
||||||
|
#define Everything_Query Everything_QueryA
|
||||||
|
#define Everything_GetResultFileName Everything_GetResultFileNameA
|
||||||
|
#define Everything_GetResultPath Everything_GetResultPathA
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
287
Plugins/Wox.Plugin.Everything/nativesrc/Everything_IPC.h
Normal file
287
Plugins/Wox.Plugin.Everything/nativesrc/Everything_IPC.h
Normal file
@ -0,0 +1,287 @@
|
|||||||
|
|
||||||
|
// Everything IPC
|
||||||
|
|
||||||
|
#ifndef _EVERYTHING_IPC_H_
|
||||||
|
#define _EVERYTHING_IPC_H_
|
||||||
|
|
||||||
|
// C
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// 1 byte packing for our varible sized structs
|
||||||
|
#pragma pack(push, 1)
|
||||||
|
|
||||||
|
// WM_USER (send to the taskbar notification window)
|
||||||
|
// SendMessage(FindWindow(EVERYTHING_IPC_WNDCLASS,0),WM_USER,EVERYTHING_IPC_*,lParam)
|
||||||
|
// version format: major.minor.revision.build
|
||||||
|
// example: 1.1.4.309
|
||||||
|
#define EVERYTHING_IPC_GET_MAJOR_VERSION 0 // int major_version = (int)SendMessage(hwnd,WM_USER,EVERYTHING_IPC_GET_MAJOR_VERSION,0);
|
||||||
|
#define EVERYTHING_IPC_GET_MINOR_VERSION 1 // int minor_version = (int)SendMessage(hwnd,WM_USER,EVERYTHING_IPC_GET_MINOR_VERSION,0);
|
||||||
|
#define EVERYTHING_IPC_GET_REVISION 2 // int revision = (int)SendMessage(hwnd,WM_USER,EVERYTHING_IPC_GET_REVISION,0);
|
||||||
|
#define EVERYTHING_IPC_GET_BUILD_NUMBER 3 // int build = (int)SendMessage(hwnd,WM_USER,EVERYTHING_IPC_GET_BUILD,0);
|
||||||
|
|
||||||
|
// uninstall options
|
||||||
|
#define EVERYTHING_IPC_DELETE_START_MENU_SHORTCUTS 100 // SendMessage(hwnd,WM_USER,EVERYTHING_IPC_DELETE_START_MENU_SHORTCUTS,0);
|
||||||
|
#define EVERYTHING_IPC_DELETE_QUICK_LAUNCH_SHORTCUT 101 // SendMessage(hwnd,WM_USER,EVERYTHING_IPC_DELETE_QUICK_LAUNCH_SHORTCUT,0);
|
||||||
|
#define EVERYTHING_IPC_DELETE_DESKTOP_SHORTCUT 102 // SendMessage(hwnd,WM_USER,EVERYTHING_IPC_DELETE_DESKTOP_SHORTCUT,0);
|
||||||
|
#define EVERYTHING_IPC_DELETE_FOLDER_CONTEXT_MENU 103 // SendMessage(hwnd,WM_USER,EVERYTHING_IPC_DELETE_FOLDER_CONTEXT_MENU,0);
|
||||||
|
#define EVERYTHING_IPC_DELETE_RUN_ON_SYSTEM_STARTUP 104 // SendMessage(hwnd,WM_USER,EVERYTHING_IPC_DELETE_RUN_ON_SYSTEM_STARTUP,0);
|
||||||
|
|
||||||
|
// install options
|
||||||
|
#define EVERYTHING_IPC_CREATE_START_MENU_SHORTCUTS 200 // SendMessage(hwnd,WM_USER,EVERYTHING_IPC_CREATE_START_MENU_SHORTCUTS,0);
|
||||||
|
#define EVERYTHING_IPC_CREATE_QUICK_LAUNCH_SHORTCUT 201 // SendMessage(hwnd,WM_USER,EVERYTHING_IPC_CREATE_QUICK_LAUNCH_SHORTCUT,0);
|
||||||
|
#define EVERYTHING_IPC_CREATE_DESKTOP_SHORTCUT 202 // SendMessage(hwnd,WM_USER,EVERYTHING_IPC_CREATE_DESKTOP_SHORTCUT,0);
|
||||||
|
#define EVERYTHING_IPC_CREATE_FOLDER_CONTEXT_MENU 203 // SendMessage(hwnd,WM_USER,EVERYTHING_IPC_CREATE_FOLDER_CONTEXT_MENU,0);
|
||||||
|
#define EVERYTHING_IPC_CREATE_RUN_ON_SYSTEM_STARTUP 204 // SendMessage(hwnd,WM_USER,EVERYTHING_IPC_CREATE_RUN_ON_SYSTEM_STARTUP,0);
|
||||||
|
|
||||||
|
// get option status; 0 = no, 1 = yes, 2 = indeterminate (partially installed)
|
||||||
|
#define EVERYTHING_IPC_IS_START_MENU_SHORTCUTS 300 // int ret = (int)SendMessage(hwnd,WM_USER,EVERYTHING_IPC_IS_START_MENU_SHORTCUTS,0);
|
||||||
|
#define EVERYTHING_IPC_IS_QUICK_LAUNCH_SHORTCUT 301 // int ret = (int)SendMessage(hwnd,WM_USER,EVERYTHING_IPC_IS_QUICK_LAUNCH_SHORTCUT,0);
|
||||||
|
#define EVERYTHING_IPC_IS_DESKTOP_SHORTCUT 302 // int ret = (int)SendMessage(hwnd,WM_USER,EVERYTHING_IPC_IS_DESKTOP_SHORTCUT,0);
|
||||||
|
#define EVERYTHING_IPC_IS_FOLDER_CONTEXT_MENU 303 // int ret = (int)SendMessage(hwnd,WM_USER,EVERYTHING_IPC_IS_FOLDER_CONTEXT_MENU,0);
|
||||||
|
#define EVERYTHING_IPC_IS_RUN_ON_SYSTEM_STARTUP 304 // int ret = (int)SendMessage(hwnd,WM_USER,EVERYTHING_IPC_IS_RUN_ON_SYSTEM_STARTUP,0);
|
||||||
|
|
||||||
|
// find the everything window
|
||||||
|
#define EVERYTHING_IPC_WNDCLASS TEXT("EVERYTHING_TASKBAR_NOTIFICATION")
|
||||||
|
|
||||||
|
// find a everything search window
|
||||||
|
#define EVERYTHING_IPC_SEARCH_WNDCLASS TEXT("EVERYTHING")
|
||||||
|
|
||||||
|
// this global window message is sent to all top level windows when everything starts.
|
||||||
|
#define EVERYTHING_IPC_CREATED TEXT("EVERYTHING_IPC_CREATED")
|
||||||
|
|
||||||
|
// search flags for querys
|
||||||
|
#define EVERYTHING_IPC_MATCHCASE 0x00000001 // match case
|
||||||
|
#define EVERYTHING_IPC_MATCHWHOLEWORD 0x00000002 // match whole word
|
||||||
|
#define EVERYTHING_IPC_MATCHPATH 0x00000004 // include paths in search
|
||||||
|
#define EVERYTHING_IPC_REGEX 0x00000008 // enable regex
|
||||||
|
|
||||||
|
// item flags
|
||||||
|
#define EVERYTHING_IPC_FOLDER 0x00000001 // The item is a folder. (its a file if not set)
|
||||||
|
#define EVERYTHING_IPC_DRIVE 0x00000002 // The folder is a drive. Path will be an empty string.
|
||||||
|
// (will also have the folder bit set)
|
||||||
|
|
||||||
|
// the WM_COPYDATA message for a query.
|
||||||
|
#define EVERYTHING_IPC_COPYDATAQUERYA 1
|
||||||
|
#define EVERYTHING_IPC_COPYDATAQUERYW 2
|
||||||
|
|
||||||
|
// all results
|
||||||
|
#define EVERYTHING_IPC_ALLRESULTS 0xFFFFFFFF // all results
|
||||||
|
|
||||||
|
// macro to get the filename of an item
|
||||||
|
#define EVERYTHING_IPC_ITEMFILENAMEA(list,item) (CHAR *)((CHAR *)(list) + ((EVERYTHING_IPC_ITEMA *)(item))->filename_offset)
|
||||||
|
#define EVERYTHING_IPC_ITEMFILENAMEW(list,item) (WCHAR *)((CHAR *)(list) + ((EVERYTHING_IPC_ITEMW *)(item))->filename_offset)
|
||||||
|
|
||||||
|
// macro to get the path of an item
|
||||||
|
#define EVERYTHING_IPC_ITEMPATHA(list,item) (CHAR *)((CHAR *)(list) + ((EVERYTHING_IPC_ITEMW *)(item))->path_offset)
|
||||||
|
#define EVERYTHING_IPC_ITEMPATHW(list,item) (WCHAR *)((CHAR *)(list) + ((EVERYTHING_IPC_ITEMW *)(item))->path_offset)
|
||||||
|
|
||||||
|
//
|
||||||
|
// Varible sized query struct sent to everything.
|
||||||
|
//
|
||||||
|
// sent in the form of a WM_COPYDAYA message with EVERYTHING_IPC_COPYDATAQUERY as the
|
||||||
|
// dwData member in the COPYDATASTRUCT struct.
|
||||||
|
// set the lpData member of the COPYDATASTRUCT struct to point to your EVERYTHING_IPC_QUERY struct.
|
||||||
|
// set the cbData member of the COPYDATASTRUCT struct to the size of the
|
||||||
|
// EVERYTHING_IPC_QUERY struct minus the size of a CHAR plus the length of the search string in bytes plus
|
||||||
|
// one CHAR for the null terminator.
|
||||||
|
//
|
||||||
|
// NOTE: to determine the size of this structure use
|
||||||
|
// ASCII: sizeof(EVERYTHING_IPC_QUERYA) - sizeof(CHAR) + strlen(search_string)*sizeof(CHAR) + sizeof(CHAR)
|
||||||
|
// UNICODE: sizeof(EVERYTHING_IPC_QUERYW) - sizeof(WCHAR) + unicode_length_in_wchars(search_string)*sizeof(WCHAR) + sizeof(WCHAR)
|
||||||
|
//
|
||||||
|
// NOTE: Everything will only do one query per window.
|
||||||
|
// Sending another query when a query has not completed
|
||||||
|
// will cancel the old query and start the new one.
|
||||||
|
//
|
||||||
|
// Everything will send the results to the reply_hwnd in the form of a
|
||||||
|
// WM_COPYDAYA message with the dwData value you specify.
|
||||||
|
//
|
||||||
|
// Everything will return TRUE if successful.
|
||||||
|
// returns FALSE if not supported.
|
||||||
|
//
|
||||||
|
// If you query with EVERYTHING_IPC_COPYDATAQUERYW, the results sent from Everything will be Unicode.
|
||||||
|
//
|
||||||
|
|
||||||
|
typedef struct EVERYTHING_IPC_QUERYW
|
||||||
|
{
|
||||||
|
// the window that will receive the new results.
|
||||||
|
INT32 reply_hwnd;
|
||||||
|
|
||||||
|
// the value to set the dwData member in the COPYDATASTRUCT struct
|
||||||
|
// sent by Everything when the query is complete.
|
||||||
|
INT32 reply_copydata_message;
|
||||||
|
|
||||||
|
// search flags (see EVERYTHING_MATCHCASE | EVERYTHING_MATCHWHOLEWORD | EVERYTHING_MATCHPATH)
|
||||||
|
INT32 search_flags;
|
||||||
|
|
||||||
|
// only return results after 'offset' results (0 to return the first result)
|
||||||
|
// useful for scrollable lists
|
||||||
|
INT32 offset;
|
||||||
|
|
||||||
|
// the number of results to return
|
||||||
|
// zero to return no results
|
||||||
|
// EVERYTHING_IPC_ALLRESULTS to return ALL results
|
||||||
|
INT32 max_results;
|
||||||
|
|
||||||
|
// null terminated string. arbitrary sized search_string buffer.
|
||||||
|
INT32 search_string[1];
|
||||||
|
|
||||||
|
}EVERYTHING_IPC_QUERYW;
|
||||||
|
|
||||||
|
// ASCII version
|
||||||
|
typedef struct EVERYTHING_IPC_QUERYA
|
||||||
|
{
|
||||||
|
// the window that will receive the new results.
|
||||||
|
INT32 reply_hwnd;
|
||||||
|
|
||||||
|
// the value to set the dwData member in the COPYDATASTRUCT struct
|
||||||
|
// sent by Everything when the query is complete.
|
||||||
|
INT32 reply_copydata_message;
|
||||||
|
|
||||||
|
// search flags (see EVERYTHING_MATCHCASE | EVERYTHING_MATCHWHOLEWORD | EVERYTHING_MATCHPATH)
|
||||||
|
INT32 search_flags;
|
||||||
|
|
||||||
|
// only return results after 'offset' results (0 to return the first result)
|
||||||
|
// useful for scrollable lists
|
||||||
|
INT32 offset;
|
||||||
|
|
||||||
|
// the number of results to return
|
||||||
|
// zero to return no results
|
||||||
|
// EVERYTHING_IPC_ALLRESULTS to return ALL results
|
||||||
|
INT32 max_results;
|
||||||
|
|
||||||
|
// null terminated string. arbitrary sized search_string buffer.
|
||||||
|
INT32 search_string[1];
|
||||||
|
|
||||||
|
}EVERYTHING_IPC_QUERYA;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Varible sized result list struct received from Everything.
|
||||||
|
//
|
||||||
|
// Sent in the form of a WM_COPYDATA message to the hwnd specifed in the
|
||||||
|
// EVERYTHING_IPC_QUERY struct.
|
||||||
|
// the dwData member of the COPYDATASTRUCT struct will match the sent
|
||||||
|
// reply_copydata_message member in the EVERYTHING_IPC_QUERY struct.
|
||||||
|
//
|
||||||
|
// make a copy of the data before returning.
|
||||||
|
//
|
||||||
|
// return TRUE if you processed the WM_COPYDATA message.
|
||||||
|
//
|
||||||
|
|
||||||
|
typedef struct EVERYTHING_IPC_ITEMW
|
||||||
|
{
|
||||||
|
// item flags
|
||||||
|
DWORD flags;
|
||||||
|
|
||||||
|
// The offset of the filename from the beginning of the list structure.
|
||||||
|
// (wchar_t *)((char *)everything_list + everythinglist->name_offset)
|
||||||
|
DWORD filename_offset;
|
||||||
|
|
||||||
|
// The offset of the filename from the beginning of the list structure.
|
||||||
|
// (wchar_t *)((char *)everything_list + everythinglist->path_offset)
|
||||||
|
DWORD path_offset;
|
||||||
|
|
||||||
|
}EVERYTHING_IPC_ITEMW;
|
||||||
|
|
||||||
|
typedef struct EVERYTHING_IPC_ITEMA
|
||||||
|
{
|
||||||
|
// item flags
|
||||||
|
DWORD flags;
|
||||||
|
|
||||||
|
// The offset of the filename from the beginning of the list structure.
|
||||||
|
// (char *)((char *)everything_list + everythinglist->name_offset)
|
||||||
|
DWORD filename_offset;
|
||||||
|
|
||||||
|
// The offset of the filename from the beginning of the list structure.
|
||||||
|
// (char *)((char *)everything_list + everythinglist->path_offset)
|
||||||
|
DWORD path_offset;
|
||||||
|
|
||||||
|
}EVERYTHING_IPC_ITEMA;
|
||||||
|
|
||||||
|
typedef struct EVERYTHING_IPC_LISTW
|
||||||
|
{
|
||||||
|
// the total number of folders found.
|
||||||
|
DWORD totfolders;
|
||||||
|
|
||||||
|
// the total number of files found.
|
||||||
|
DWORD totfiles;
|
||||||
|
|
||||||
|
// totfolders + totfiles
|
||||||
|
DWORD totitems;
|
||||||
|
|
||||||
|
// the number of folders available.
|
||||||
|
DWORD numfolders;
|
||||||
|
|
||||||
|
// the number of files available.
|
||||||
|
DWORD numfiles;
|
||||||
|
|
||||||
|
// the number of items available.
|
||||||
|
DWORD numitems;
|
||||||
|
|
||||||
|
// index offset of the first result in the item list.
|
||||||
|
DWORD offset;
|
||||||
|
|
||||||
|
// arbitrary sized item list.
|
||||||
|
// use numitems to determine the actual number of items available.
|
||||||
|
EVERYTHING_IPC_ITEMW items[1];
|
||||||
|
|
||||||
|
}EVERYTHING_IPC_LISTW;
|
||||||
|
|
||||||
|
typedef struct EVERYTHING_IPC_LISTA
|
||||||
|
{
|
||||||
|
// the total number of folders found.
|
||||||
|
DWORD totfolders;
|
||||||
|
|
||||||
|
// the total number of files found.
|
||||||
|
DWORD totfiles;
|
||||||
|
|
||||||
|
// totfolders + totfiles
|
||||||
|
DWORD totitems;
|
||||||
|
|
||||||
|
// the number of folders available.
|
||||||
|
DWORD numfolders;
|
||||||
|
|
||||||
|
// the number of files available.
|
||||||
|
DWORD numfiles;
|
||||||
|
|
||||||
|
// the number of items available.
|
||||||
|
DWORD numitems;
|
||||||
|
|
||||||
|
// index offset of the first result in the item list.
|
||||||
|
DWORD offset;
|
||||||
|
|
||||||
|
// arbitrary sized item list.
|
||||||
|
// use numitems to determine the actual number of items available.
|
||||||
|
EVERYTHING_IPC_ITEMA items[1];
|
||||||
|
|
||||||
|
}EVERYTHING_IPC_LISTA;
|
||||||
|
|
||||||
|
#ifdef UNICODE
|
||||||
|
#define EVERYTHING_IPC_COPYDATAQUERY EVERYTHING_IPC_COPYDATAQUERYW
|
||||||
|
#define EVERYTHING_IPC_ITEMFILENAME EVERYTHING_IPC_ITEMFILENAMEW
|
||||||
|
#define EVERYTHING_IPC_ITEMPATH EVERYTHING_IPC_ITEMPATHW
|
||||||
|
#define EVERYTHING_IPC_QUERY EVERYTHING_IPC_QUERYW
|
||||||
|
#define EVERYTHING_IPC_ITEM EVERYTHING_IPC_ITEMW
|
||||||
|
#define EVERYTHING_IPC_LIST EVERYTHING_IPC_LISTW
|
||||||
|
#else
|
||||||
|
#define EVERYTHING_IPC_COPYDATAQUERY EVERYTHING_IPC_COPYDATAQUERYA
|
||||||
|
#define EVERYTHING_IPC_ITEMFILENAME EVERYTHING_IPC_ITEMFILENAMEA
|
||||||
|
#define EVERYTHING_IPC_ITEMPATH EVERYTHING_IPC_ITEMPATHA
|
||||||
|
#define EVERYTHING_IPC_QUERY EVERYTHING_IPC_QUERYA
|
||||||
|
#define EVERYTHING_IPC_ITEM EVERYTHING_IPC_ITEMA
|
||||||
|
#define EVERYTHING_IPC_LIST EVERYTHING_IPC_LISTA
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// restore packing
|
||||||
|
#pragma pack(pop)
|
||||||
|
|
||||||
|
// end extern C
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // _EVERYTHING_H_
|
||||||
|
|
26
Plugins/Wox.Plugin.Everything/nativesrc/dll.sln
Normal file
26
Plugins/Wox.Plugin.Everything/nativesrc/dll.sln
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||||
|
# Visual Studio 2010
|
||||||
|
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dll", "dll.vcxproj", "{7C90030E-6EDB-445E-A61B-5540B7355C59}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Win32 = Debug|Win32
|
||||||
|
Debug|x64 = Debug|x64
|
||||||
|
Release|Win32 = Release|Win32
|
||||||
|
Release|x64 = Release|x64
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{7C90030E-6EDB-445E-A61B-5540B7355C59}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
|
{7C90030E-6EDB-445E-A61B-5540B7355C59}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
|
{7C90030E-6EDB-445E-A61B-5540B7355C59}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
|
{7C90030E-6EDB-445E-A61B-5540B7355C59}.Debug|x64.Build.0 = Debug|x64
|
||||||
|
{7C90030E-6EDB-445E-A61B-5540B7355C59}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
{7C90030E-6EDB-445E-A61B-5540B7355C59}.Release|Win32.Build.0 = Release|Win32
|
||||||
|
{7C90030E-6EDB-445E-A61B-5540B7355C59}.Release|x64.ActiveCfg = Release|x64
|
||||||
|
{7C90030E-6EDB-445E-A61B-5540B7355C59}.Release|x64.Build.0 = Release|x64
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
288
Plugins/Wox.Plugin.Everything/nativesrc/dll.vcxproj
Normal file
288
Plugins/Wox.Plugin.Everything/nativesrc/dll.vcxproj
Normal file
@ -0,0 +1,288 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Debug|x64">
|
||||||
|
<Configuration>Debug</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|Win32">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>Win32</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
<Configuration>Release</Configuration>
|
||||||
|
<Platform>x64</Platform>
|
||||||
|
</ProjectConfiguration>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup Label="Globals">
|
||||||
|
<ProjectGuid>{7C90030E-6EDB-445E-A61B-5540B7355C59}</ProjectGuid>
|
||||||
|
<RootNamespace>dll</RootNamespace>
|
||||||
|
<Keyword>Win32Proj</Keyword>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<UseOfMfc>false</UseOfMfc>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<UseOfMfc>false</UseOfMfc>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||||
|
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||||
|
<CharacterSet>MultiByte</CharacterSet>
|
||||||
|
<PlatformToolset>v90</PlatformToolset>
|
||||||
|
</PropertyGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||||
|
<ImportGroup Label="ExtensionSettings">
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
|
||||||
|
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||||
|
<Import Project="$(VCTargetsPath)Microsoft.CPP.UpgradeFromVC71.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
<PropertyGroup Label="UserMacros" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion>
|
||||||
|
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Debug\</OutDir>
|
||||||
|
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Debug\</IntDir>
|
||||||
|
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
|
||||||
|
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</OutDir>
|
||||||
|
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</IntDir>
|
||||||
|
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
|
||||||
|
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Release\</OutDir>
|
||||||
|
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Release\</IntDir>
|
||||||
|
<IgnoreImportLibrary Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</IgnoreImportLibrary>
|
||||||
|
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
|
||||||
|
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</OutDir>
|
||||||
|
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</IntDir>
|
||||||
|
<IgnoreImportLibrary Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</IgnoreImportLibrary>
|
||||||
|
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
|
||||||
|
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||||
|
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||||
|
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||||
|
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
|
||||||
|
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||||
|
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||||
|
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||||
|
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||||
|
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
|
<ClCompile>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<PreprocessorDefinitions>BZ_NO_STDIO;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<MinimalRebuild>true</MinimalRebuild>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<OutputFile>$(OutDir)Everything.dll</OutputFile>
|
||||||
|
<ModuleDefinitionFile>
|
||||||
|
</ModuleDefinitionFile>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<GenerateMapFile>true</GenerateMapFile>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<StackReserveSize>0</StackReserveSize>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||||
|
<DataExecutionPrevention>
|
||||||
|
</DataExecutionPrevention>
|
||||||
|
<TargetMachine>MachineX86</TargetMachine>
|
||||||
|
</Link>
|
||||||
|
<Manifest>
|
||||||
|
<AdditionalManifestFiles>%(AdditionalManifestFiles)</AdditionalManifestFiles>
|
||||||
|
</Manifest>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
|
<Midl>
|
||||||
|
<TargetEnvironment>X64</TargetEnvironment>
|
||||||
|
</Midl>
|
||||||
|
<ClCompile>
|
||||||
|
<Optimization>Disabled</Optimization>
|
||||||
|
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<MinimalRebuild>true</MinimalRebuild>
|
||||||
|
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
|
||||||
|
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||||
|
<CompileAs>CompileAsC</CompileAs>
|
||||||
|
</ClCompile>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>ComCtl32.lib;UxTheme.lib;Ws2_32.lib;shlwapi.lib;ole32.lib;htmlhelp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<OutputFile>$(OutDir)Everything.dll</OutputFile>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<ProgramDatabaseFile>$(OutDir)dll.pdb</ProgramDatabaseFile>
|
||||||
|
<SubSystem>Console</SubSystem>
|
||||||
|
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||||
|
<DataExecutionPrevention>
|
||||||
|
</DataExecutionPrevention>
|
||||||
|
<TargetMachine>MachineX64</TargetMachine>
|
||||||
|
</Link>
|
||||||
|
<Manifest>
|
||||||
|
<AdditionalManifestFiles>%(AdditionalManifestFiles)</AdditionalManifestFiles>
|
||||||
|
</Manifest>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
|
<PreBuildEvent>
|
||||||
|
<Command>
|
||||||
|
</Command>
|
||||||
|
</PreBuildEvent>
|
||||||
|
<ClCompile>
|
||||||
|
<Optimization>MaxSpeed</Optimization>
|
||||||
|
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||||
|
<OmitFramePointers>false</OmitFramePointers>
|
||||||
|
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||||
|
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<PreprocessorDefinitions>BZ_NO_STDIO;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>Sync</ExceptionHandling>
|
||||||
|
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<FloatingPointModel>Fast</FloatingPointModel>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<DebugInformationFormat>
|
||||||
|
</DebugInformationFormat>
|
||||||
|
<CallingConvention>Cdecl</CallingConvention>
|
||||||
|
<CompileAs>CompileAsC</CompileAs>
|
||||||
|
</ClCompile>
|
||||||
|
<PreLinkEvent>
|
||||||
|
<Command>
|
||||||
|
</Command>
|
||||||
|
</PreLinkEvent>
|
||||||
|
<ProjectReference>
|
||||||
|
<LinkLibraryDependencies>true</LinkLibraryDependencies>
|
||||||
|
</ProjectReference>
|
||||||
|
<Link>
|
||||||
|
<ShowProgress>NotSet</ShowProgress>
|
||||||
|
<OutputFile>$(OutDir)Everything.dll</OutputFile>
|
||||||
|
<AdditionalManifestDependencies>%(AdditionalManifestDependencies)</AdditionalManifestDependencies>
|
||||||
|
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||||
|
<ModuleDefinitionFile>everything.def</ModuleDefinitionFile>
|
||||||
|
<GenerateDebugInformation>false</GenerateDebugInformation>
|
||||||
|
<GenerateMapFile>true</GenerateMapFile>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<StackReserveSize>0</StackReserveSize>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<LinkTimeCodeGeneration>
|
||||||
|
</LinkTimeCodeGeneration>
|
||||||
|
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||||
|
<DataExecutionPrevention>
|
||||||
|
</DataExecutionPrevention>
|
||||||
|
<TargetMachine>MachineX86</TargetMachine>
|
||||||
|
</Link>
|
||||||
|
<Manifest>
|
||||||
|
<AdditionalManifestFiles>%(AdditionalManifestFiles)</AdditionalManifestFiles>
|
||||||
|
<SuppressStartupBanner>false</SuppressStartupBanner>
|
||||||
|
<VerboseOutput>false</VerboseOutput>
|
||||||
|
</Manifest>
|
||||||
|
<PostBuildEvent>
|
||||||
|
<Command>
|
||||||
|
</Command>
|
||||||
|
</PostBuildEvent>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
|
<Midl>
|
||||||
|
<TargetEnvironment>X64</TargetEnvironment>
|
||||||
|
</Midl>
|
||||||
|
<ClCompile>
|
||||||
|
<Optimization>MaxSpeed</Optimization>
|
||||||
|
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
|
||||||
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
|
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||||
|
<OmitFramePointers>false</OmitFramePointers>
|
||||||
|
<WholeProgramOptimization>false</WholeProgramOptimization>
|
||||||
|
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||||
|
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
<StringPooling>true</StringPooling>
|
||||||
|
<ExceptionHandling>
|
||||||
|
</ExceptionHandling>
|
||||||
|
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||||
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
<FloatingPointModel>Fast</FloatingPointModel>
|
||||||
|
<PrecompiledHeader>
|
||||||
|
</PrecompiledHeader>
|
||||||
|
<WarningLevel>Level3</WarningLevel>
|
||||||
|
<DebugInformationFormat>
|
||||||
|
</DebugInformationFormat>
|
||||||
|
<CompileAs>CompileAsC</CompileAs>
|
||||||
|
</ClCompile>
|
||||||
|
<ProjectReference>
|
||||||
|
<LinkLibraryDependencies>true</LinkLibraryDependencies>
|
||||||
|
</ProjectReference>
|
||||||
|
<Link>
|
||||||
|
<AdditionalDependencies>comctl32.lib;UxTheme.lib;Ws2_32.lib;HTMLHelp.lib;msimg32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||||
|
<ShowProgress>NotSet</ShowProgress>
|
||||||
|
<OutputFile>$(OutDir)Everything.dll</OutputFile>
|
||||||
|
<AdditionalManifestDependencies>%(AdditionalManifestDependencies)</AdditionalManifestDependencies>
|
||||||
|
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||||
|
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||||
|
<SubSystem>Windows</SubSystem>
|
||||||
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
|
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||||
|
<LinkTimeCodeGeneration>
|
||||||
|
</LinkTimeCodeGeneration>
|
||||||
|
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||||
|
<DataExecutionPrevention>
|
||||||
|
</DataExecutionPrevention>
|
||||||
|
<TargetMachine>MachineX64</TargetMachine>
|
||||||
|
</Link>
|
||||||
|
<Manifest>
|
||||||
|
<AdditionalManifestFiles>%(AdditionalManifestFiles)</AdditionalManifestFiles>
|
||||||
|
<SuppressStartupBanner>false</SuppressStartupBanner>
|
||||||
|
<VerboseOutput>false</VerboseOutput>
|
||||||
|
</Manifest>
|
||||||
|
</ItemDefinitionGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="Everything.c" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="Everything.def" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="Everything.h" />
|
||||||
|
<ClInclude Include="Everything_IPC.h" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
<ImportGroup Label="ExtensionTargets">
|
||||||
|
</ImportGroup>
|
||||||
|
</Project>
|
27
Plugins/Wox.Plugin.Everything/nativesrc/dll.vcxproj.filters
Normal file
27
Plugins/Wox.Plugin.Everything/nativesrc/dll.vcxproj.filters
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<ItemGroup>
|
||||||
|
<Filter Include="src">
|
||||||
|
<UniqueIdentifier>{072e536f-0b4e-4b52-bbf4-45486ca2a90b}</UniqueIdentifier>
|
||||||
|
<Extensions>cpp;c;cxx;def;odl;idl;hpj;bat;asm</Extensions>
|
||||||
|
</Filter>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="Everything.c">
|
||||||
|
<Filter>src</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="Everything.def">
|
||||||
|
<Filter>src</Filter>
|
||||||
|
</None>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="Everything.h">
|
||||||
|
<Filter>src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="Everything_IPC.h">
|
||||||
|
<Filter>src</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
BIN
Plugins/Wox.Plugin.Everything/x86/Everything.dll
Normal file
BIN
Plugins/Wox.Plugin.Everything/x86/Everything.dll
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user