-
大小: 15.18MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-06-16
- 语言: 其他
- 标签: VProtect.2.1
资源简介
VProtect.2.1.0.1030.Demo
代码片段和文件信息
#include
#include “resource.h“
//包含Vprotect Sdk头文件
//Include VProtect Sdk HeadFile
#include “..\..\..\sdk\C++\Virtualize_Sdk.h“
#include “..\..\..\sdk\C++\VP_License_Sdk.h“
BOOL Test_GetHardId(HWND HMain)
{
VP_SDK_VIRTUALIZE
char *PHardId = new char[256];
ZeroMemory(PHardId256);
DWORD Len = VP_Sdk_GetHardWareIdA(VP_SDK_INDEX_GETHARDWAREIDAPHardId);
if (Len)
{
SetDlgItemTextA(HMainIDC_HARDIDPHardId);
}
delete []PHardId;
return Len;
}
BOOL Test_GetUserName(HWND HMain)
{
VP_SDK_VIRTUALIZE
char *PUserName = new char[256];
ZeroMemory(PUserName256);
DWORD Len = VP_Sdk_GetUserNameA(VP_SDK_INDEX_GETUSERNAMEAPUserName);
if (Len)
{
SetDlgItemTextA(HMainIDC_HARDIDPUserName);
}
delete []PUserName;
return Len;
}
BOOL Test_RegDeCode(HWND HMain)
{
//使用了注册解码SDK不能和其他加密SDK嵌套
//RegDeCode Sdk Cannot Uses With Other Sdk
if (VP_Sdk_IsRegister(VP_SDK_INDEX_ISREGISTER))
{
VP_SDK_REGDECODE_START
MessageBoxW(HMainL“Reg DeCode Modal A \n Just Run In Register Version“L“VPROTECT“64);
VP_SDK_REGDECODE_END
}
else
{
MessageBoxW(HMainL“Current Is Not Register Version“L“VPROTECT“64);
}
VP_SDK_REGDECODE_START
MessageBoxW(HMainL“Reg DeCode Modal B \n Just Run In Register Version“L“VPROTECT“64);
VP_SDK_REGDECODE_END
}
BOOL OnCommand(HWND hDlgint pEventID)
{
VP_SDK_MUTATION
switch (pEventID)
{
case ID_ISREG:
{
if (VP_Sdk_IsRegister(VP_SDK_INDEX_ISREGISTER))
{
MessageBoxW(hDlgL“This Is Register Version“L“About“64);
}
else
{
MessageBoxW(hDlgL“This Is Demo Version“L“About“64);
}
}
break;
case ID_GETHARDID:
{
return Test_GetHardId(hDlg);
}
break;
case ID_GETUSERNAME:
{
return Test_GetUserName(hDlg);
}
break;
case ID_REGDECODE:
{
return Test_RegDeCode(hDlg);
}
break;
case IDCANCEL:
{
EndDialog(hDlgIDCANCEL);
}
break;
}
return TRUE;
}
INT_PTR CALLBACK DlgProc(HWND hDlg UINT message WPARAM wParam LPARAM lParam)
{
switch (message)
{
case WM_INITDIALOG:
return (INT_PTR)TRUE;
case WM_COMMAND:
return OnCommand(hDlgLOWORD(wParam));
}
return (INT_PTR)FALSE;
}
int APIENTRY WinMain(HINSTANCE hInstance
HINSTANCE hPrevInstance
LPTSTR lpCmdLine
int nCmdShow)
{
DialogBox(hInstance MAKEINTRESOURCE(IDD_VPROTECT) NULL DlgProc);
return 0;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2011-10-30 16:25 Bin\
文件 616960 2011-10-30 13:50 Bin\CloudLicense.dll
文件 557056 2011-10-30 13:50 Bin\Vp_License.dll
文件 60 2010-12-04 15:37 BuyNow.url
目录 0 2011-08-27 13:57 DialogRes\
文件 4463 2011-08-27 13:47 DialogRes\LicenseDlg.rc
文件 885 2011-04-17 20:33 DialogRes\LicenseDlg.sln
文件 7680 2011-08-27 13:56 DialogRes\LicenseDlg.suo
文件 4053 2011-08-27 13:49 DialogRes\LicenseDlg.vcproj
文件 1095 2011-04-30 22:54 DialogRes\resource.h
文件 3584 2011-08-27 13:49 DialogRes\VPLicenseDlg.dll
文件 382 2011-04-19 21:30 DialogRes\自定义方法.txt
目录 0 2011-05-08 23:40 Examples\
目录 0 2011-05-08 23:40 Examples\C++\
目录 0 2011-05-08 23:40 Examples\C++\License&Sdk\
文件 2549 2010-09-24 15:17 Examples\C++\License&Sdk\Example.cpp
文件 33980 2010-07-09 21:07 Examples\C++\License&Sdk\Lisence.aps
文件 2553 2010-07-09 21:07 Examples\C++\License&Sdk\Lisence.rc
文件 879 2010-07-09 20:39 Examples\C++\License&Sdk\Lisence.sln
文件 11264 2010-09-24 15:18 Examples\C++\License&Sdk\Lisence.suo
文件 4014 2010-09-24 15:18 Examples\C++\License&Sdk\Lisence.vcproj
文件 763 2010-07-09 21:02 Examples\C++\License&Sdk\resource.h
目录 0 2011-05-08 23:40 Examples\C++\SdkMark\
文件 951 2010-11-05 13:20 Examples\C++\SdkMark\C++.cpp
文件 871 2010-09-19 21:19 Examples\C++\SdkMark\C++.sln
文件 21504 2010-11-05 13:20 Examples\C++\SdkMark\C++.suo
文件 4716 2010-11-05 13:20 Examples\C++\SdkMark\C++.vcproj
文件 1 2006-11-20 16:11 Examples\C++\SdkMark\ClassDiagram1.cd
文件 1159 2010-09-19 21:19 Examples\C++\SdkMark\ReadMe.txt
文件 208 2010-09-19 21:19 Examples\C++\SdkMark\stdafx.cpp
文件 233 2010-09-19 21:19 Examples\C++\SdkMark\stdafx.h
............此处省略91个文件信息
评论
共有 条评论