Skip to content

Commit 0d1dea6

Browse files
committed
添加项目文件。
1 parent 4e3fcc7 commit 0d1dea6

29 files changed

+1616
-0
lines changed

Image/1.png

79.3 KB
Loading

Image/2.png

445 KB
Loading

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
MIT License
3+
4+
Copyright (c) 2018 - Present AzureGreen <zhangjiawei1006@gmail.com>
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.

NetView.sln

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.25420.1
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NetView", "NetView\NetView.vcxproj", "{4BA13140-C422-480F-8823-05E584D51F19}"
7+
EndProject
8+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NetViewPS", "NetView\NetViewPS.vcxproj", "{5B839F6B-F188-4375-8677-53C70C31977E}"
9+
ProjectSection(ProjectDependencies) = postProject
10+
{4BA13140-C422-480F-8823-05E584D51F19} = {4BA13140-C422-480F-8823-05E584D51F19}
11+
EndProjectSection
12+
EndProject
13+
Global
14+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
15+
Debug|x64 = Debug|x64
16+
Debug|x86 = Debug|x86
17+
Release|x64 = Release|x64
18+
Release|x86 = Release|x86
19+
EndGlobalSection
20+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
21+
{4BA13140-C422-480F-8823-05E584D51F19}.Debug|x64.ActiveCfg = Debug|x64
22+
{4BA13140-C422-480F-8823-05E584D51F19}.Debug|x64.Build.0 = Debug|x64
23+
{4BA13140-C422-480F-8823-05E584D51F19}.Debug|x86.ActiveCfg = Debug|Win32
24+
{4BA13140-C422-480F-8823-05E584D51F19}.Debug|x86.Build.0 = Debug|Win32
25+
{4BA13140-C422-480F-8823-05E584D51F19}.Release|x64.ActiveCfg = Release|x64
26+
{4BA13140-C422-480F-8823-05E584D51F19}.Release|x64.Build.0 = Release|x64
27+
{4BA13140-C422-480F-8823-05E584D51F19}.Release|x86.ActiveCfg = Release|Win32
28+
{4BA13140-C422-480F-8823-05E584D51F19}.Release|x86.Build.0 = Release|Win32
29+
{5B839F6B-F188-4375-8677-53C70C31977E}.Debug|x64.ActiveCfg = Debug|x64
30+
{5B839F6B-F188-4375-8677-53C70C31977E}.Debug|x86.ActiveCfg = Debug|Win32
31+
{5B839F6B-F188-4375-8677-53C70C31977E}.Release|x64.ActiveCfg = Release|x64
32+
{5B839F6B-F188-4375-8677-53C70C31977E}.Release|x86.ActiveCfg = Release|Win32
33+
EndGlobalSection
34+
GlobalSection(SolutionProperties) = preSolution
35+
HideSolutionNode = FALSE
36+
EndGlobalSection
37+
EndGlobal

NetView/NetView.cpp

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
// NetView.cpp : DLL 导出的实现。
2+
3+
4+
#include "stdafx.h"
5+
#include "resource.h"
6+
#include "NetView_i.h"
7+
#include "dllmain.h"
8+
9+
10+
using namespace ATL;
11+
12+
// 用于确定 DLL 是否可由 OLE 卸载。
13+
STDAPI DllCanUnloadNow(void)
14+
{
15+
return _AtlModule.DllCanUnloadNow();
16+
}
17+
18+
// 返回一个类工厂以创建所请求类型的对象。
19+
_Check_return_
20+
STDAPI DllGetClassObject(_In_ REFCLSID rclsid, _In_ REFIID riid, _Outptr_ LPVOID* ppv)
21+
{
22+
return _AtlModule.DllGetClassObject(rclsid, riid, ppv);
23+
}
24+
25+
// DllRegisterServer - 向系统注册表中添加项。
26+
STDAPI DllRegisterServer(void)
27+
{
28+
// 注册对象、类型库和类型库中的所有接口
29+
HRESULT hr = _AtlModule.DllRegisterServer();
30+
return hr;
31+
}
32+
33+
// DllUnregisterServer - 移除系统注册表中的项。
34+
STDAPI DllUnregisterServer(void)
35+
{
36+
HRESULT hr = _AtlModule.DllUnregisterServer();
37+
return hr;
38+
}
39+
40+
// DllInstall - 按用户和计算机在系统注册表中逐一添加/移除项。
41+
STDAPI DllInstall(BOOL bInstall, _In_opt_ LPCWSTR pszCmdLine)
42+
{
43+
HRESULT hr = E_FAIL;
44+
static const wchar_t szUserSwitch[] = L"user";
45+
46+
if (pszCmdLine != NULL)
47+
{
48+
if (_wcsnicmp(pszCmdLine, szUserSwitch, _countof(szUserSwitch)) == 0)
49+
{
50+
ATL::AtlSetPerUserRegistration(true);
51+
}
52+
}
53+
54+
if (bInstall)
55+
{
56+
hr = DllRegisterServer();
57+
if (FAILED(hr))
58+
{
59+
DllUnregisterServer();
60+
}
61+
}
62+
else
63+
{
64+
hr = DllUnregisterServer();
65+
}
66+
67+
return hr;
68+
}
69+
70+

NetView/NetView.def

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
; NetView.def : ����������
2+
3+
LIBRARY
4+
5+
EXPORTS
6+
DllCanUnloadNow PRIVATE
7+
DllGetClassObject PRIVATE
8+
DllRegisterServer PRIVATE
9+
DllUnregisterServer PRIVATE
10+
DllInstall PRIVATE

NetView/NetView.idl

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// NetView.idl : NetView�� IDL Դ
2+
//
3+
4+
// ���ļ����� MIDL ���ߴ�����
5+
// �������Ϳ�(NetView.tlb)�ͷ��ʹ������롣
6+
7+
import "oaidl.idl";
8+
import "ocidl.idl";
9+
10+
[
11+
object,
12+
uuid(C7EF3768-03B8-4A7C-A085-6EEA75D488B5),
13+
dual,
14+
nonextensible,
15+
pointer_default(unique)
16+
]
17+
interface INetViewDeskBand : IDispatch{
18+
};
19+
[
20+
uuid(B8321A6E-AC17-4004-8D3B-E65074F5EE15),
21+
version(1.0),
22+
]
23+
library NetViewLib
24+
{
25+
importlib("stdole2.tlb");
26+
[
27+
uuid(2D1DD8A1-4C3E-4DBD-9E4D-ECBFE406B726)
28+
]
29+
coclass NetViewDeskBand
30+
{
31+
[default] interface INetViewDeskBand;
32+
};
33+
};
34+

NetView/NetView.rc

5.74 KB
Binary file not shown.

NetView/NetView.rgs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
HKCR
2+
{
3+
}

0 commit comments

Comments
 (0)