add progId generator and example
This commit is contained in:
7
.gitignore
vendored
7
.gitignore
vendored
@ -1,3 +1,10 @@
|
||||
# Custom ignore
|
||||
# ignore build directory
|
||||
builds/
|
||||
Debug_MB/
|
||||
Debug_UNICODE/
|
||||
Release_UNICODE/
|
||||
|
||||
## Ignore Visual Studio temporary files, build results, and
|
||||
## files generated by popular Visual Studio add-ons.
|
||||
##
|
||||
|
50
wfassoc.sln
50
wfassoc.sln
@ -9,28 +9,38 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "wfassoc_example", "wfassoc_
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
Debug_MB|x64 = Debug_MB|x64
|
||||
Debug_MB|x86 = Debug_MB|x86
|
||||
Debug_UNICODE|x64 = Debug_UNICODE|x64
|
||||
Debug_UNICODE|x86 = Debug_UNICODE|x86
|
||||
Release_UNICODE|x64 = Release_UNICODE|x64
|
||||
Release_UNICODE|x86 = Release_UNICODE|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{4AAC8F0C-3E1C-4584-B682-05BBF96A813F}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{4AAC8F0C-3E1C-4584-B682-05BBF96A813F}.Debug|x64.Build.0 = Debug|x64
|
||||
{4AAC8F0C-3E1C-4584-B682-05BBF96A813F}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{4AAC8F0C-3E1C-4584-B682-05BBF96A813F}.Debug|x86.Build.0 = Debug|Win32
|
||||
{4AAC8F0C-3E1C-4584-B682-05BBF96A813F}.Release|x64.ActiveCfg = Release|x64
|
||||
{4AAC8F0C-3E1C-4584-B682-05BBF96A813F}.Release|x64.Build.0 = Release|x64
|
||||
{4AAC8F0C-3E1C-4584-B682-05BBF96A813F}.Release|x86.ActiveCfg = Release|Win32
|
||||
{4AAC8F0C-3E1C-4584-B682-05BBF96A813F}.Release|x86.Build.0 = Release|Win32
|
||||
{AD275AD7-CBD5-41CA-AB24-BB707B3F7534}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{AD275AD7-CBD5-41CA-AB24-BB707B3F7534}.Debug|x64.Build.0 = Debug|x64
|
||||
{AD275AD7-CBD5-41CA-AB24-BB707B3F7534}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{AD275AD7-CBD5-41CA-AB24-BB707B3F7534}.Debug|x86.Build.0 = Debug|Win32
|
||||
{AD275AD7-CBD5-41CA-AB24-BB707B3F7534}.Release|x64.ActiveCfg = Release|x64
|
||||
{AD275AD7-CBD5-41CA-AB24-BB707B3F7534}.Release|x64.Build.0 = Release|x64
|
||||
{AD275AD7-CBD5-41CA-AB24-BB707B3F7534}.Release|x86.ActiveCfg = Release|Win32
|
||||
{AD275AD7-CBD5-41CA-AB24-BB707B3F7534}.Release|x86.Build.0 = Release|Win32
|
||||
{4AAC8F0C-3E1C-4584-B682-05BBF96A813F}.Debug_MB|x64.ActiveCfg = Debug|x64
|
||||
{4AAC8F0C-3E1C-4584-B682-05BBF96A813F}.Debug_MB|x64.Build.0 = Debug|x64
|
||||
{4AAC8F0C-3E1C-4584-B682-05BBF96A813F}.Debug_MB|x86.ActiveCfg = Debug|Win32
|
||||
{4AAC8F0C-3E1C-4584-B682-05BBF96A813F}.Debug_MB|x86.Build.0 = Debug|Win32
|
||||
{4AAC8F0C-3E1C-4584-B682-05BBF96A813F}.Debug_UNICODE|x64.ActiveCfg = Debug|x64
|
||||
{4AAC8F0C-3E1C-4584-B682-05BBF96A813F}.Debug_UNICODE|x64.Build.0 = Debug|x64
|
||||
{4AAC8F0C-3E1C-4584-B682-05BBF96A813F}.Debug_UNICODE|x86.ActiveCfg = Debug|Win32
|
||||
{4AAC8F0C-3E1C-4584-B682-05BBF96A813F}.Debug_UNICODE|x86.Build.0 = Debug|Win32
|
||||
{4AAC8F0C-3E1C-4584-B682-05BBF96A813F}.Release_UNICODE|x64.ActiveCfg = Release|x64
|
||||
{4AAC8F0C-3E1C-4584-B682-05BBF96A813F}.Release_UNICODE|x64.Build.0 = Release|x64
|
||||
{4AAC8F0C-3E1C-4584-B682-05BBF96A813F}.Release_UNICODE|x86.ActiveCfg = Release|Win32
|
||||
{4AAC8F0C-3E1C-4584-B682-05BBF96A813F}.Release_UNICODE|x86.Build.0 = Release|Win32
|
||||
{AD275AD7-CBD5-41CA-AB24-BB707B3F7534}.Debug_MB|x64.ActiveCfg = Debug_UNICODE|x64
|
||||
{AD275AD7-CBD5-41CA-AB24-BB707B3F7534}.Debug_MB|x64.Build.0 = Debug_UNICODE|x64
|
||||
{AD275AD7-CBD5-41CA-AB24-BB707B3F7534}.Debug_MB|x86.ActiveCfg = Debug_MB|Win32
|
||||
{AD275AD7-CBD5-41CA-AB24-BB707B3F7534}.Debug_MB|x86.Build.0 = Debug_MB|Win32
|
||||
{AD275AD7-CBD5-41CA-AB24-BB707B3F7534}.Debug_UNICODE|x64.ActiveCfg = Debug_UNICODE|x64
|
||||
{AD275AD7-CBD5-41CA-AB24-BB707B3F7534}.Debug_UNICODE|x64.Build.0 = Debug_UNICODE|x64
|
||||
{AD275AD7-CBD5-41CA-AB24-BB707B3F7534}.Debug_UNICODE|x86.ActiveCfg = Debug_UNICODE|Win32
|
||||
{AD275AD7-CBD5-41CA-AB24-BB707B3F7534}.Debug_UNICODE|x86.Build.0 = Debug_UNICODE|Win32
|
||||
{AD275AD7-CBD5-41CA-AB24-BB707B3F7534}.Release_UNICODE|x64.ActiveCfg = Release_UNICODE|x64
|
||||
{AD275AD7-CBD5-41CA-AB24-BB707B3F7534}.Release_UNICODE|x64.Build.0 = Release_UNICODE|x64
|
||||
{AD275AD7-CBD5-41CA-AB24-BB707B3F7534}.Release_UNICODE|x86.ActiveCfg = Release_UNICODE|Win32
|
||||
{AD275AD7-CBD5-41CA-AB24-BB707B3F7534}.Release_UNICODE|x86.Build.0 = Release_UNICODE|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
@ -1,10 +1,26 @@
|
||||
#include "wfassoc.h"
|
||||
#include <strsafe.h>
|
||||
|
||||
// private function and variable declearions.
|
||||
|
||||
/// <summary>
|
||||
/// Convert multi byte string to wide char string
|
||||
/// Notice: this function will allocate memory for returns and it should be released safely.
|
||||
/// </summary>
|
||||
/// <param name="source">The string will be converted</param>
|
||||
/// <param name="error">The error happend during converting</param>
|
||||
/// <returns>The string has been converted. If return NULL, it mean that the converting failed.</returns>
|
||||
WCHAR* ConvMultiByteToWideChar(CHAR* source);
|
||||
|
||||
#define LEGACY_PROGID_FORMATA "%s.%s.%d"
|
||||
#define LEGACY_PROGID_FORMATW L"%s.%s.%d"
|
||||
#define SAFE_FREE(obj) if(obj!=NULL)free(obj);
|
||||
|
||||
// public function implements.
|
||||
|
||||
WFERROR WFInstallApplicationW(WFAPP_PROFILEW* profile) {
|
||||
if (profile->WFVersion != WFVERSION) return WFERROR_INVALID_VERSION;
|
||||
|
||||
return WFERROR_OK;
|
||||
}
|
||||
|
||||
@ -13,6 +29,8 @@ WFERROR WFInstallApplicationA(WFAPP_PROFILEA* profile) {
|
||||
}
|
||||
|
||||
WFERROR WFUninstallApplicationW(WFAPP_PROFILEW* profile) {
|
||||
if (profile->WFVersion != WFVERSION) return WFERROR_INVALID_VERSION;
|
||||
|
||||
return WFERROR_OK;
|
||||
}
|
||||
|
||||
@ -41,3 +59,27 @@ WFERROR WFGenerateProgIDA(CHAR* vendor, CHAR* component, INT version, CHAR* resu
|
||||
}
|
||||
return WFERROR_OK;
|
||||
}
|
||||
|
||||
|
||||
// private function and variable implements.
|
||||
|
||||
WCHAR* ConvMultiByteToWideChar(CHAR* source) {
|
||||
WCHAR* dest = NULL;
|
||||
size_t sourceLength = strlen(source);
|
||||
|
||||
int destLength = MultiByteToWideChar(CP_ACP, 0, source, sourceLength, NULL, 0);
|
||||
if (destLength <= 0) return NULL;
|
||||
destLength += 10;
|
||||
|
||||
dest = (WCHAR*)malloc(sizeof(WCHAR) * destLength);
|
||||
if (dest == NULL) return NULL;
|
||||
|
||||
memset(dest, 0, sizeof(WCHAR) * destLength);
|
||||
int error = MultiByteToWideChar(CP_ACP, 0, source, sourceLength, dest, destLength);
|
||||
if (error <= 0) {
|
||||
free(dest);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return dest;
|
||||
}
|
@ -4,6 +4,22 @@
|
||||
#include <Windows.h>
|
||||
#include <sal.h>
|
||||
|
||||
// quick marco for developer and should not be used in wfassoc self
|
||||
|
||||
#ifdef UNICODE
|
||||
#define WFAPP_PROFILE WFAPP_PROFILEW
|
||||
#define WFInstallApplication WFInstallApplicationW
|
||||
#define WFUninstallApplication WFUninstallApplicationW
|
||||
#define WFGenerateProgID WFGenerateProgIDW
|
||||
#else
|
||||
#define WFAPP_PROFILE WFAPP_PROFILEA
|
||||
#define WFInstallApplication WFInstallApplicationA
|
||||
#define WFUninstallApplication WFUninstallApplicationA
|
||||
#define WFGenerateProgID WFGenerateProgIDA
|
||||
#endif
|
||||
|
||||
// useful macro
|
||||
|
||||
#define WFVERSION 0
|
||||
#define WFSUCCESS(expr) (!expr)
|
||||
#define WFFAILED(expr) expr
|
||||
@ -25,9 +41,13 @@ typedef enum _WFERROR {
|
||||
/// </summary>
|
||||
WFERROR_INSUFFICIENT_BUFFER = 2,
|
||||
/// <summary>
|
||||
/// Some essential pointer variable is NULL
|
||||
/// Some essential pointer variable is NULL.
|
||||
/// </summary>
|
||||
WFERROR_NULLPTR = 3
|
||||
WFERROR_NULLPTR = 3,
|
||||
/// <summary>
|
||||
/// The encoding of string has error.
|
||||
/// </summary>
|
||||
WFERROR_ENCODING = 4
|
||||
}WFERROR;
|
||||
|
||||
/// <summary>
|
||||
@ -64,8 +84,29 @@ typedef struct _WFAPP_PROFILEW {
|
||||
/// wfassoc Narrow Character Set Profile Struct
|
||||
/// </summary>
|
||||
typedef struct _WFAPP_PROFILEA {
|
||||
/// <summary>
|
||||
/// wfassoc version. Fill it with `WFVERSION` in your application. This field is used for version checking.
|
||||
/// </summary>
|
||||
INT WFVersion;
|
||||
CHAR* ApplicationName;
|
||||
/// <summary>
|
||||
/// The path to locate your application.
|
||||
/// </summary>
|
||||
CHAR* AppPath;
|
||||
/// <summary>
|
||||
/// The command will be executed when opening files.
|
||||
/// </summary>
|
||||
CHAR* AppCommand;
|
||||
/// <summary>
|
||||
/// Your application's ProgID.
|
||||
/// For more detail about how to create your ProgID, please browse: https://docs.microsoft.com/en-us/windows/win32/shell/fa-progids
|
||||
/// We also provide a generator for creating legacy ProgID. Use `WFGenerateProgID` to create a legacy ProgID.
|
||||
/// </summary>
|
||||
CHAR* ProgID;
|
||||
/// <summary>
|
||||
/// Your application supported file extensions.
|
||||
/// The structure of this field is connecting all supported extensions with dot(.) end to end. For example:
|
||||
/// `.jpg\0.png\0.gif\0`
|
||||
/// </summary>
|
||||
CHAR* SupportedTypes;
|
||||
}WFAPP_PROFILEA;
|
||||
|
||||
|
@ -72,9 +72,11 @@
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)builds\Debug\</OutDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)builds\Release\</OutDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
|
@ -1,14 +1,22 @@
|
||||
#include "../wfassoc/wfassoc.h"
|
||||
#include <stdio.h>
|
||||
#include <tchar.h>
|
||||
|
||||
#define COMMAND_MAX_LENGTH 128
|
||||
|
||||
WFAPP_PROFILEW* create_profile();
|
||||
WCHAR* create_progId();
|
||||
void* free_profile(WFAPP_PROFILEW* profile);
|
||||
WFAPP_PROFILE* create_profile();
|
||||
TCHAR* create_progId();
|
||||
void free_profile(WFAPP_PROFILE* profile);
|
||||
|
||||
int main(int argc, char* args[]) {
|
||||
|
||||
// alloc application profile
|
||||
WFAPP_PROFILE* profile = create_profile();
|
||||
if (profile == NULL) {
|
||||
puts("Error: Fail to allocating profile structure.\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
// alloc input string and check it
|
||||
char* input_str = malloc(sizeof(char) * (COMMAND_MAX_LENGTH + 1));
|
||||
if (input_str == NULL) return;
|
||||
@ -17,9 +25,9 @@ int main(int argc, char* args[]) {
|
||||
while (TRUE) {
|
||||
gets_s(input_str, COMMAND_MAX_LENGTH);
|
||||
if (!strcmp(input_str, "install")) {
|
||||
|
||||
_tprintf(TEXT("%s\n"), profile->ProgID);
|
||||
} else if (!strcmp(input_str, "uninstall")) {
|
||||
|
||||
_tprintf(TEXT("%s\n"), profile->ProgID);
|
||||
} else if (!strcmp(input_str, "quit")) {
|
||||
break;
|
||||
}
|
||||
@ -27,17 +35,18 @@ int main(int argc, char* args[]) {
|
||||
|
||||
//free input string
|
||||
free(input_str);
|
||||
return 0;
|
||||
}
|
||||
|
||||
WFAPP_PROFILEW* create_profile() {
|
||||
WFAPP_PROFILEW* profile = (WFAPP_PROFILEW*)malloc(sizeof(WFAPP_PROFILEW));
|
||||
WFAPP_PROFILE* create_profile() {
|
||||
WFAPP_PROFILE* profile = (WFAPP_PROFILE*)malloc(sizeof(WFAPP_PROFILE));
|
||||
if (profile == NULL) return NULL;
|
||||
memset(profile, 0, sizeof(WFAPP_PROFILEW));
|
||||
memset(profile, 0, sizeof(WFAPP_PROFILE));
|
||||
|
||||
profile->WFVersion = WFVERSION;
|
||||
profile->AppPath = L"";
|
||||
profile->AppCommand = L"";
|
||||
profile->SupportedTypes = L".png\0.jpg\0";
|
||||
profile->AppPath = TEXT("E:\\pineapple-picture\\ppic.exe");
|
||||
profile->AppCommand = TEXT("E:\\pineapple-picture\\ppic.exe \"%1\"");
|
||||
profile->SupportedTypes = TEXT(".png\0.jpg\0");
|
||||
profile->ProgID = create_progId();
|
||||
if (profile->ProgID == NULL) {
|
||||
free_profile(profile);
|
||||
@ -47,17 +56,18 @@ WFAPP_PROFILEW* create_profile() {
|
||||
return profile;
|
||||
}
|
||||
|
||||
wchar_t* create_progId() {
|
||||
WCHAR* progid;
|
||||
TCHAR* create_progId() {
|
||||
TCHAR* progid = NULL;
|
||||
int progIdSize;
|
||||
if (WFFAILED(WFGenerateProgIDW(L"PineapplePicture", L"Image", 0, NULL, &progIdSize))) {
|
||||
if (WFFAILED(WFGenerateProgID(TEXT("PineapplePicture"), TEXT("Image"), 0, NULL, &progIdSize))) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
progid = (WCHAR*)malloc(sizeof(WCHAR) * progIdSize);
|
||||
progid = (TCHAR*)malloc(sizeof(TCHAR) * progIdSize);
|
||||
if (progid == NULL) return NULL;
|
||||
memset(progid, 0, sizeof(TCHAR) * progIdSize);
|
||||
|
||||
if (WFFAILED(WFGenerateProgIDW(L"PineapplePicture", L"Image", 0, NULL, &progIdSize))) {
|
||||
if (WFFAILED(WFGenerateProgID(TEXT("PineapplePicture"), TEXT("Image"), 0, progid, &progIdSize))) {
|
||||
free(progid);
|
||||
return NULL;
|
||||
}
|
||||
@ -65,7 +75,7 @@ wchar_t* create_progId() {
|
||||
return progid;
|
||||
}
|
||||
|
||||
void* free_profile(WFAPP_PROFILEW* profile) {
|
||||
void free_profile(WFAPP_PROFILE* profile) {
|
||||
if (profile->ProgID != NULL) free(profile->ProgID);
|
||||
free(profile);
|
||||
}
|
||||
|
@ -1,20 +1,28 @@
|
||||
<?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>
|
||||
<ProjectConfiguration Include="Debug_MB|Win32">
|
||||
<Configuration>Debug_MB</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<ProjectConfiguration Include="Debug_MB|x64">
|
||||
<Configuration>Debug_MB</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<ProjectConfiguration Include="Debug_UNICODE|Win32">
|
||||
<Configuration>Debug_UNICODE</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release_UNICODE|Win32">
|
||||
<Configuration>Release_UNICODE</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug_UNICODE|x64">
|
||||
<Configuration>Debug_UNICODE</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release_UNICODE|x64">
|
||||
<Configuration>Release_UNICODE</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
@ -26,26 +34,38 @@
|
||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>NotSet</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug_UNICODE|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug_MB|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_UNICODE|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug_UNICODE|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug_MB|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_UNICODE|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
@ -57,32 +77,47 @@
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug_UNICODE|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'">
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug_MB|Win32'" Label="PropertySheets">
|
||||
<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'">
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release_UNICODE|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|x64'">
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug_UNICODE|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug_MB|x64'" Label="PropertySheets">
|
||||
<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_UNICODE|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'">
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug_UNICODE|Win32'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)builds\Debug\</OutDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug_MB|Win32'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)builds\Debug\</OutDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_UNICODE|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
<OutDir>$(SolutionDir)builds\Release\</OutDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug_UNICODE|x64'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug_MB|x64'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_UNICODE|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug_UNICODE|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
@ -95,7 +130,20 @@
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug_MB|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<CompileAs>CompileAsC</CompileAs>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release_UNICODE|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
@ -112,7 +160,7 @@
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug_UNICODE|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
@ -124,7 +172,19 @@
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug_MB|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release_UNICODE|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
|
Reference in New Issue
Block a user