⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 apidata.cpp

📁 此为本书的配套光盘.本书不但由浅入深地讲解了软件保护技术
💻 CPP
字号:
/********************************************************************

	Copyright (c) Beijing Feitian Technologies
	http://www.FTSafe.com

	File :		APIData.cpp	

	Created:	2003/11/05

	Author:		yihai
	
	Purpose:	?

	Revision:	?

*********************************************************************/

#include <stdafx.h>

#include "apidata.h"


SHL_IMPORT_TABLE g_shl_import_table[] ={
{ 0x3C190,"KERNEL32.DLL" },
{ 0,"LCMapStringA" },
{ 0,"LCMapStringW" },
{ 0,"GetStringTypeA" },
{ 0,"GetStringTypeW" },
{ 0,"IsBadReadPtr" },
{ 0,"IsBadCodePtr" },
{ 0,"SetUnhandledExceptionFilter" },
{ 0,"SetStdHandle" },
{ 0,"CompareStringA" },
{ 0,"CompareStringW" },
{ 0,"SetEnvironmentVariableA" },
{ 0,"IsBadWritePtr" },
{ 0,"GetProfileStringA" },
{ 0,"VirtualAlloc" },
{ 0,"VirtualFree" },
{ 0,"HeapCreate" },
{ 0,"HeapDestroy" },
{ 0,"GetVersionExA" },
{ 0,"GetEnvironmentVariableA" },
{ 0,"GetFileType" },
{ 0,"GetStdHandle" },
{ 0,"SetHandleCount" },
{ 0,"GetEnvironmentStringsW" },
{ 0,"GetEnvironmentStrings" },
{ 0,"FreeEnvironmentStringsW" },
{ 0,"FreeEnvironmentStringsA" },
{ 0,"UnhandledExceptionFilter" },
{ 0,"GetTimeZoneInformation" },
{ 0,"GetACP" },
{ 0,"HeapSize" },
{ 0,"HeapReAlloc" },
{ 0,"RaiseException" },
{ 0,"TerminateProcess" },
{ 0,"HeapFree" },
{ 0,"HeapAlloc" },
{ 0,"ExitProcess" },
{ 0,"GetCommandLineA" },
{ 0,"GetStartupInfoA" },
{ 0,"RtlUnwind" },
{ 0,"GetTickCount" },
{ 0,"FileTimeToLocalFileTime" },
{ 0,"FileTimeToSystemTime" },
{ 0,"SetErrorMode" },
{ 0,"SystemTimeToFileTime" },
{ 0,"LocalFileTimeToFileTime" },
{ 0,"GetFileSize" },
{ 0,"GetOEMCP" },
{ 0,"GetCPInfo" },
{ 0,"GetProcessVersion" },
{ 0,"GetCurrentDirectoryA" },
{ 0,"TlsGetValue" },
{ 0,"LocalReAlloc" },
{ 0,"TlsSetValue" },
{ 0,"EnterCriticalSection" },
{ 0,"GlobalReAlloc" },
{ 0,"LeaveCriticalSection" },
{ 0,"TlsFree" },
{ 0,"GlobalHandle" },
{ 0,"DeleteCriticalSection" },
{ 0,"TlsAlloc" },
{ 0,"InitializeCriticalSection" },
{ 0,"LocalAlloc" },
{ 0,"SizeofResource" },
{ 0,"GlobalFlags" },
{ 0,"GetShortPathNameA" },
{ 0,"GetThreadLocale" },
{ 0,"GetStringTypeExA" },
{ 0,"GetVolumeInformationA" },
{ 0,"FindFirstFileA" },
{ 0,"FindClose" },
{ 0,"DeleteFileA" },
{ 0,"MoveFileA" },
{ 0,"SetEndOfFile" },
{ 0,"UnlockFile" },
{ 0,"LockFile" },
{ 0,"FlushFileBuffers" },
{ 0,"SetFilePointer" },
{ 0,"WriteFile" },
{ 0,"ReadFile" },
{ 0,"CreateFileA" },
{ 0,"GetCurrentProcess" },
{ 0,"DuplicateHandle" },
{ 0,"FormatMessageA" },
{ 0,"LocalFree" },
{ 0,"WideCharToMultiByte" },
{ 0,"InterlockedIncrement" },
{ 0,"InterlockedDecrement" },
{ 0,"SetLastError" },
{ 0,"MulDiv" },
{ 0,"MultiByteToWideChar" },
{ 0,"GetLastError" },
{ 0,"GetDiskFreeSpaceA" },
{ 0,"GetFileTime" },
{ 0,"SetFileTime" },
{ 0,"GetFullPathNameA" },
{ 0,"GetTempFileNameA" },
{ 0,"lstrcpynA" },
{ 0,"GetFileAttributesA" },
{ 0,"LoadLibraryA" },
{ 0,"FreeLibrary" },
{ 0,"GetVersion" },
{ 0,"lstrcatA" },
{ 0,"GlobalGetAtomNameA" },
{ 0,"GlobalFindAtomA" },
{ 0,"lstrcpyA" },
{ 0,"GetModuleHandleA" },
{ 0,"GetProcAddress" },
{ 0,"lstrlenA" },
{ 0,"WritePrivateProfileStringA" },
{ 0,"GlobalAddAtomA" },
{ 0,"CloseHandle" },
{ 0,"GetModuleFileNameA" },
{ 0,"GlobalAlloc" },
{ 0,"GlobalDeleteAtom" },
{ 0,"lstrcmpiA" },
{ 0,"GetCurrentThread" },
{ 0,"GetCurrentThreadId" },
{ 0,"lstrcmpA" },
{ 0,"GlobalLock" },
{ 0,"GlobalUnlock" },
{ 0,"GlobalFree" },
{ 0,"LockResource" },
{ 0,"GetPrivateProfileStringA" },
{ 0,"FindResourceA" },
{ 0,"LoadResource" },
{ 0,"GetPrivateProfileIntA" },

{ 0x3C3D0,"USER32.DLL" },
{ 0,"TabbedTextOutA" },
{ 0,"EndPaint" },
{ 0,"GetWindowDC" },
{ 0,"ClientToScreen" },
{ 0,"IsRectEmpty" },
{ 0,"FindWindowA" },
{ 0,"PtInRect" },
{ 0,"SetRect" },
{ 0,"GetDC" },
{ 0,"ReleaseDC" },
{ 0,"LoadCursorA" },
{ 0,"DestroyCursor" },
{ 0,"LoadIconA" },
{ 0,"MapWindowPoints" },
{ 0,"GetSysColor" },
{ 0,"AdjustWindowRectEx" },
{ 0,"ScreenToClient" },
{ 0,"EqualRect" },
{ 0,"DeferWindowPos" },
{ 0,"BeginDeferWindowPos" },
{ 0,"CopyRect" },
{ 0,"EndDeferWindowPos" },
{ 0,"ScrollWindow" },
{ 0,"GetScrollInfo" },
{ 0,"SetScrollInfo" },
{ 0,"ShowScrollBar" },
{ 0,"GetScrollRange" },
{ 0,"SetScrollRange" },
{ 0,"GetScrollPos" },
{ 0,"SetScrollPos" },
{ 0,"GetTopWindow" },
{ 0,"IsChild" },
{ 0,"GetCapture" },
{ 0,"WinHelpA" },
{ 0,"GetClassInfoA" },
{ 0,"RegisterClassA" },
{ 0,"GetMenu" },
{ 0,"GetMenuItemCount" },
{ 0,"GetSubMenu" },
{ 0,"GetMenuItemID" },
{ 0,"DefWindowProcA" },
{ 0,"CreateWindowExA" },
{ 0,"GetClassLongA" },
{ 0,"SetPropA" },
{ 0,"UnhookWindowsHookEx" },
{ 0,"GetPropA" },
{ 0,"CallWindowProcA" },
{ 0,"RemovePropA" },
{ 0,"GetMessageTime" },
{ 0,"GetMessagePos" },
{ 0,"GetForegroundWindow" },
{ 0,"SetForegroundWindow" },
{ 0,"RegisterWindowMessageA" },
{ 0,"OffsetRect" },
{ 0,"IntersectRect" },
{ 0,"SystemParametersInfoA" },
{ 0,"IsIconic" },
{ 0,"GetWindowPlacement" },
{ 0,"GetWindowRect" },
{ 0,"MapDialogRect" },
{ 0,"DrawTextA" },
{ 0,"SetWindowContextHelpId" },
{ 0,"wsprintfA" },
{ 0,"SetFocus" },
{ 0,"ShowWindow" },
{ 0,"LockWindowUpdate" },
{ 0,"MoveWindow" },
{ 0,"SetWindowLongA" },
{ 0,"GetDlgCtrlID" },
{ 0,"GetWindowTextLengthA" },
{ 0,"GetWindowTextA" },
{ 0,"SetWindowTextA" },
{ 0,"IsDialogMessageA" },
{ 0,"SetDlgItemTextA" },
{ 0,"SendDlgItemMessageA" },
{ 0,"GetMenuCheckMarkDimensions" },
{ 0,"GetMenuState" },
{ 0,"ModifyMenuA" },
{ 0,"SetMenuItemBitmaps" },
{ 0,"CheckMenuItem" },
{ 0,"EnableMenuItem" },
{ 0,"GetFocus" },
{ 0,"GetMessageA" },
{ 0,"TranslateMessage" },
{ 0,"DispatchMessageA" },
{ 0,"GetKeyState" },
{ 0,"CallNextHookEx" },
{ 0,"ValidateRect" },
{ 0,"IsWindowVisible" },
{ 0,"PeekMessageA" },
{ 0,"GetCursorPos" },
{ 0,"UpdateWindow" },
{ 0,"UnregisterClassA" },
{ 0,"HideCaret" },
{ 0,"ShowCaret" },
{ 0,"ExcludeUpdateRgn" },
{ 0,"DrawFocusRect" },
{ 0,"DefDlgProcA" },
{ 0,"IsWindowUnicode" },
{ 0,"EnableWindow" },
{ 0,"GetDCEx" },
{ 0,"InvertRect" },
{ 0,"SetWindowsHookExA" },
{ 0,"GetLastActivePopup" },
{ 0,"MessageBoxA" },
{ 0,"SetCursor" },
{ 0,"ShowOwnedPopups" },
{ 0,"PostMessageA" },
{ 0,"PostQuitMessage" },
{ 0,"GetNextDlgTabItem" },
{ 0,"EndDialog" },
{ 0,"GetActiveWindow" },
{ 0,"SetActiveWindow" },
{ 0,"IsWindow" },
{ 0,"GetSystemMetrics" },
{ 0,"CreateDialogIndirectParamA" },
{ 0,"DestroyWindow" },
{ 0,"GrayStringA" },
{ 0,"PostThreadMessageA" },
{ 0,"GetWindow" },
{ 0,"RegisterClipboardFormatA" },
{ 0,"GetParent" },
{ 0,"GetWindowLongA" },
{ 0,"GetDlgItem" },
{ 0,"IsWindowEnabled" },
{ 0,"SendMessageA" },
{ 0,"InvalidateRect" },
{ 0,"ReleaseCapture" },
{ 0,"SetCapture" },
{ 0,"GetClientRect" },
{ 0,"FillRect" },
{ 0,"LoadBitmapA" },
{ 0,"InflateRect" },
{ 0,"WindowFromPoint" },
{ 0,"KillTimer" },
{ 0,"SetTimer" },
{ 0,"GetTabbedTextExtentA" },
{ 0,"MessageBeep" },
{ 0,"GetNextDlgGroupItem" },
{ 0,"CopyAcceleratorTableA" },
{ 0,"CharNextA" },
{ 0,"DestroyIcon" },
{ 0,"GetSysColorBrush" },
{ 0,"GetMenuStringA" },
{ 0,"InsertMenuA" },
{ 0,"GetClassNameA" },
{ 0,"LoadStringA" },
{ 0,"GetSystemMenu" },
{ 0,"DeleteMenu" },
{ 0,"AppendMenuA" },
{ 0,"SetParent" },
{ 0,"IsZoomed" },
{ 0,"BringWindowToTop" },
{ 0,"UnpackDDElParam" },
{ 0,"ReuseDDElParam" },
{ 0,"SetMenu" },
{ 0,"LoadMenuA" },
{ 0,"DestroyMenu" },
{ 0,"GetDesktopWindow" },
{ 0,"TranslateAcceleratorA" },
{ 0,"LoadAcceleratorsA" },
{ 0,"SetRectEmpty" },
{ 0,"wvsprintfA" },
{ 0,"CharUpperA" },
{ 0,"SetWindowPos" },
{ 0,"BeginPaint" },

{ 0x3C050,"GDI32.DLL" },
{ 0,"SelectObject" },
{ 0,"SetBkMode" },
{ 0,"SetPolyFillMode" },
{ 0,"SetROP2" },
{ 0,"SetStretchBltMode" },
{ 0,"SetMapMode" },
{ 0,"SetViewportOrgEx" },
{ 0,"OffsetViewportOrgEx" },
{ 0,"SetViewportExtEx" },
{ 0,"ScaleViewportExtEx" },
{ 0,"SetWindowOrgEx" },
{ 0,"SetWindowExtEx" },
{ 0,"ScaleWindowExtEx" },
{ 0,"SelectClipRgn" },
{ 0,"ExcludeClipRect" },
{ 0,"IntersectClipRect" },
{ 0,"MoveToEx" },
{ 0,"LineTo" },
{ 0,"SetTextAlign" },
{ 0,"GetCurrentPositionEx" },
{ 0,"DeleteObject" },
{ 0,"CreateRectRgn" },
{ 0,"RestoreDC" },
{ 0,"GetViewportExtEx" },
{ 0,"GetWindowExtEx" },
{ 0,"CreateSolidBrush" },
{ 0,"CreatePatternBrush" },
{ 0,"PtVisible" },
{ 0,"RectVisible" },
{ 0,"TextOutA" },
{ 0,"ExtTextOutA" },
{ 0,"Escape" },
{ 0,"GetTextExtentPoint32A" },
{ 0,"GetTextMetricsA" },
{ 0,"StretchDIBits" },
{ 0,"CreateCompatibleBitmap" },
{ 0,"GetCharWidthA" },
{ 0,"CreateFontA" },
{ 0,"CreateRectRgnIndirect" },
{ 0,"CreateFontIndirectA" },
{ 0,"GetTextColor" },
{ 0,"GetBkColor" },
{ 0,"GetNearestColor" },
{ 0,"GetStretchBltMode" },
{ 0,"GetPolyFillMode" },
{ 0,"GetTextAlign" },
{ 0,"GetBkMode" },
{ 0,"GetROP2" },
{ 0,"GetTextFaceA" },
{ 0,"GetWindowOrgEx" },
{ 0,"GetMapMode" },
{ 0,"SetRectRgn" },
{ 0,"CombineRgn" },
{ 0,"SaveDC" },
{ 0,"LPtoDP" },
{ 0,"DeleteDC" },
{ 0,"CreateDCA" },
{ 0,"SetAbortProc" },
{ 0,"StartDocA" },
{ 0,"StartPage" },
{ 0,"EndPage" },
{ 0,"EndDoc" },
{ 0,"AbortDoc" },
{ 0,"GetViewportOrgEx" },
{ 0,"CreatePen" },
{ 0,"DPtoLP" },
{ 0,"Rectangle" },
{ 0,"GetStockObject" },
{ 0,"PatBlt" },
{ 0,"GetObjectA" },
{ 0,"SetBkColor" },
{ 0,"SetTextColor" },
{ 0,"GetClipBox" },
{ 0,"GetDeviceCaps" },
{ 0,"CreateBitmap" },
{ 0,"CreateCompatibleDC" },
{ 0,"CreateDIBitmap" },
{ 0,"GetTextExtentPointA" },
{ 0,"BitBlt" },

{ 0x3C67C,"COMDLG32.DLL" },
{ 0,"GetFileTitleA" },
{ 0,"PrintDlgA" },
{ 0,"GetSaveFileNameA" },
{ 0,"CommDlgExtendedError" },
{ 0,"GetOpenFileNameA" },

{ 0x3C66C,"WINSPOOL.DRV" },
{ 0,"OpenPrinterA" },
{ 0,"DocumentPropertiesA" },
{ 0,"ClosePrinter" },

{ 0x3C000,"ADVAPI32.DLL" },
{ 0,"RegCreateKeyA" },
{ 0,"RegCloseKey" },
{ 0,"RegEnumKeyA" },
{ 0,"RegOpenKeyA" },
{ 0,"RegDeleteKeyA" },
{ 0,"RegCreateKeyExA" },
{ 0,"RegOpenKeyExA" },
{ 0,"RegQueryValueExA" },
{ 0,"RegSetValueExA" },
{ 0,"RegDeleteValueA" },
{ 0,"RegSetValueA" },
{ 0,"RegQueryValueA" },
{ 0,"GetFileSecurityA" },
{ 0,"SetFileSecurityA" },

{ 0x3C3BC,"SHELL32.DLL" },
{ 0,"DragQueryFileA" },
{ 0,"DragFinish" },
{ 0,"SHGetFileInfoA" },
{ 0,"ExtractIconA" },

{ 0x3C03C,"COMCTL32.DLL" },
{ 0,"ImageList_AddMasked" },
{ 1,(char*)0x11 },
{ 0,"ImageList_Destroy" },
{ 0,"ImageList_Create" },

{ 0x3C6D4,"OLEDLG.DLL" },
{ 1,(char*)0x8 },

{ 0x3C694,"OLE32.DLL" },
{ 0,"CoFreeUnusedLibraries" },
{ 0,"OleUninitialize" },
{ 0,"OleInitialize" },
{ 0,"CoTaskMemAlloc" },
{ 0,"CoTaskMemFree" },
{ 0,"CreateILockBytesOnHGlobal" },
{ 0,"StgCreateDocfileOnILockBytes" },
{ 0,"StgOpenStorageOnILockBytes" },
{ 0,"CoGetClassObject" },
{ 0,"CLSIDFromString" },
{ 0,"CLSIDFromProgID" },
{ 0,"CoRegisterMessageFilter" },
{ 0,"CoRevokeClassObject" },
{ 0,"OleFlushClipboard" },
{ 0,"OleIsCurrentClipboard" },

{ 0x3C3B4,"OLEPRO32.DLL" },
{ 1,(char*)0xFD },

{ 0x3C38C,"OLEAUT32.DLL" },
{ 1,(char*)0x6 },
{ 1,(char*)0x4 },
{ 1,(char*)0x9 },
{ 1,(char*)0xB9 },
{ 1,(char*)0xA },
{ 1,(char*)0xC },
{ 1,(char*)0x2 },
{ 1,(char*)0x96 },
{ 1,(char*)0x7 },

}; // end of g_shl_import_table

int GetDataSize()
{
	int nCount = sizeof(g_shl_import_table)/sizeof(g_shl_import_table[0]);
	return nCount;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -