Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Commit f8f8a22

Browse files
committed
实现百度网盘不带密码分享下载
1 parent 00658f7 commit f8f8a22

18 files changed

+4697
-0
lines changed

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#忽略这些依赖的库文件可以到
2+
#发布页面下载https://github.com/cool2528/baiduCDP/releases
3+
/.vs
4+
/include
5+
/lib
6+
/LocalStorage
7+
8+
#防止编译器生成的文件也上传
9+
/Debug
10+
/Release
11+
#这些都是vs项目生成的文件
12+
*.aps
13+
*.suo
14+
*.db
15+
*.dll
16+
*.lib
17+
*.sdf
18+
*.db
19+
*.iobj
20+
*.ipdb
21+
*.ipch
22+
*.1.tlog
23+
*.log
24+
*.pch
25+
*.pdb

BaiduCdp.rc

4.55 KB
Binary file not shown.

BaiduCdp.sln

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2013
4+
VisualStudioVersion = 12.0.21005.1
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BaiduCdp", "BaiduCdp.vcxproj", "{34066ECC-24F2-4940-BB0B-1A119ACF43FE}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Win32 = Debug|Win32
11+
Release|Win32 = Release|Win32
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{34066ECC-24F2-4940-BB0B-1A119ACF43FE}.Debug|Win32.ActiveCfg = Debug|Win32
15+
{34066ECC-24F2-4940-BB0B-1A119ACF43FE}.Debug|Win32.Build.0 = Debug|Win32
16+
{34066ECC-24F2-4940-BB0B-1A119ACF43FE}.Release|Win32.ActiveCfg = Release|Win32
17+
{34066ECC-24F2-4940-BB0B-1A119ACF43FE}.Release|Win32.Build.0 = Release|Win32
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
EndGlobal

BaiduCdp.vcxproj

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
</ItemGroup>
13+
<PropertyGroup Label="Globals">
14+
<ProjectGuid>{34066ECC-24F2-4940-BB0B-1A119ACF43FE}</ProjectGuid>
15+
<Keyword>Win32Proj</Keyword>
16+
<RootNamespace>BaiduCdp</RootNamespace>
17+
</PropertyGroup>
18+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
19+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
20+
<ConfigurationType>Application</ConfigurationType>
21+
<UseDebugLibraries>true</UseDebugLibraries>
22+
<PlatformToolset>v140_xp</PlatformToolset>
23+
<CharacterSet>Unicode</CharacterSet>
24+
</PropertyGroup>
25+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
26+
<ConfigurationType>Application</ConfigurationType>
27+
<UseDebugLibraries>false</UseDebugLibraries>
28+
<PlatformToolset>v120</PlatformToolset>
29+
<WholeProgramOptimization>true</WholeProgramOptimization>
30+
<CharacterSet>Unicode</CharacterSet>
31+
</PropertyGroup>
32+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
33+
<ImportGroup Label="ExtensionSettings">
34+
</ImportGroup>
35+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
36+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
37+
</ImportGroup>
38+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
39+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
40+
</ImportGroup>
41+
<PropertyGroup Label="UserMacros" />
42+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
43+
<LinkIncremental>true</LinkIncremental>
44+
</PropertyGroup>
45+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
46+
<LinkIncremental>false</LinkIncremental>
47+
</PropertyGroup>
48+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
49+
<ClCompile>
50+
<PrecompiledHeader>
51+
</PrecompiledHeader>
52+
<WarningLevel>Level3</WarningLevel>
53+
<Optimization>Disabled</Optimization>
54+
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;CURL_STATICLIB;D_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
55+
<SDLCheck>false</SDLCheck>
56+
<AdditionalIncludeDirectories>e:\boost_1_67_0;.\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
57+
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
58+
</ClCompile>
59+
<Link>
60+
<SubSystem>Windows</SubSystem>
61+
<GenerateDebugInformation>true</GenerateDebugInformation>
62+
<AdditionalLibraryDirectories>E:\boost_1_67_0\lib32-msvc-14.0;.\lib</AdditionalLibraryDirectories>
63+
<AdditionalDependencies>ws2_32.lib;wldap32.lib;Crypt32.lib;%(AdditionalDependencies)</AdditionalDependencies>
64+
</Link>
65+
</ItemDefinitionGroup>
66+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
67+
<ClCompile>
68+
<WarningLevel>Level3</WarningLevel>
69+
<PrecompiledHeader>
70+
</PrecompiledHeader>
71+
<Optimization>MaxSpeed</Optimization>
72+
<FunctionLevelLinking>true</FunctionLevelLinking>
73+
<IntrinsicFunctions>true</IntrinsicFunctions>
74+
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
75+
<SDLCheck>true</SDLCheck>
76+
</ClCompile>
77+
<Link>
78+
<SubSystem>Windows</SubSystem>
79+
<GenerateDebugInformation>true</GenerateDebugInformation>
80+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
81+
<OptimizeReferences>true</OptimizeReferences>
82+
</Link>
83+
</ItemDefinitionGroup>
84+
<ItemGroup>
85+
<ClCompile Include="Http_Request.cpp" />
86+
<ClCompile Include="main.cpp" />
87+
<ClCompile Include="PanParse.cpp" />
88+
<ClCompile Include="WkeWindow.cpp" />
89+
</ItemGroup>
90+
<ItemGroup>
91+
<ClInclude Include="base64.h" />
92+
<ClInclude Include="GlobalHeader.h" />
93+
<ClInclude Include="Http_Request.h" />
94+
<ClInclude Include="PanParse.h" />
95+
<ClInclude Include="resource.h" />
96+
<ClInclude Include="wke.h" />
97+
<ClInclude Include="WkeWindow.h" />
98+
</ItemGroup>
99+
<ItemGroup>
100+
<ResourceCompile Include="BaiduCdp.rc" />
101+
</ItemGroup>
102+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
103+
<ImportGroup Label="ExtensionTargets">
104+
</ImportGroup>
105+
</Project>

BaiduCdp.vcxproj.filters

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="源文件">
5+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<Filter Include="头文件">
9+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
11+
</Filter>
12+
<Filter Include="资源文件">
13+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15+
</Filter>
16+
<Filter Include="BaiduParse">
17+
<UniqueIdentifier>{e8fec2f2-1e54-4228-a65b-4d83b388d88d}</UniqueIdentifier>
18+
</Filter>
19+
</ItemGroup>
20+
<ItemGroup>
21+
<ClCompile Include="main.cpp">
22+
<Filter>源文件</Filter>
23+
</ClCompile>
24+
<ClCompile Include="WkeWindow.cpp">
25+
<Filter>源文件</Filter>
26+
</ClCompile>
27+
<ClCompile Include="PanParse.cpp">
28+
<Filter>BaiduParse</Filter>
29+
</ClCompile>
30+
<ClCompile Include="Http_Request.cpp">
31+
<Filter>BaiduParse</Filter>
32+
</ClCompile>
33+
</ItemGroup>
34+
<ItemGroup>
35+
<ClInclude Include="WkeWindow.h">
36+
<Filter>头文件</Filter>
37+
</ClInclude>
38+
<ClInclude Include="GlobalHeader.h">
39+
<Filter>头文件</Filter>
40+
</ClInclude>
41+
<ClInclude Include="wke.h">
42+
<Filter>头文件</Filter>
43+
</ClInclude>
44+
<ClInclude Include="base64.h">
45+
<Filter>BaiduParse</Filter>
46+
</ClInclude>
47+
<ClInclude Include="PanParse.h">
48+
<Filter>BaiduParse</Filter>
49+
</ClInclude>
50+
<ClInclude Include="Http_Request.h">
51+
<Filter>BaiduParse</Filter>
52+
</ClInclude>
53+
<ClInclude Include="resource.h">
54+
<Filter>头文件</Filter>
55+
</ClInclude>
56+
</ItemGroup>
57+
<ItemGroup>
58+
<ResourceCompile Include="BaiduCdp.rc">
59+
<Filter>资源文件</Filter>
60+
</ResourceCompile>
61+
</ItemGroup>
62+
</Project>

GlobalHeader.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#ifndef __GLOBALHEADER__
2+
#define __GLOBALHEADER__
3+
#include "wke.h"
4+
#include <windows.h>
5+
#include <string>
6+
#include <vector>
7+
typedef struct {
8+
wkeWebView window;
9+
std::wstring url;
10+
} Application;
11+
#define MBDLL_NAME L"node.dll"
12+
#define APP_NAME L"BaiduCdp"
13+
#define CLOSE_MSG "close"
14+
#define MAX_MSG "max"
15+
#define MIN_MSG "min"
16+
#define HOST_NAME "http://baiducdp.com"
17+
extern Application app;
18+
#endif

0 commit comments

Comments
 (0)