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

📄 bindfiledlg.h

📁 修改教主的捆绑器代码,觉的满好的.功能:能捆绑任意exe程序,解压后能同时运行.缺点:暂时不能捆绑任意的文件.
💻 H
字号:
// BindFileDlg.h : header file
//

#if !defined(AFX_BINDFILEDLG_H__B9147DEB_DD8D_44E0_8264_AA1DB6C1A237__INCLUDED_)
#define AFX_BINDFILEDLG_H__B9147DEB_DD8D_44E0_8264_AA1DB6C1A237__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "HyperLink.h"
#include "sys/stat.h"  //加入状态显示头文件
#include "SYS/TYPES.H" //加入类型定义头文件

#pragma pack(1)

typedef struct ICONRESDIR { 
   BYTE Width; 
   BYTE Height; 
   BYTE ColorCount; 
   BYTE reserved; 
} ICONRESDIR;  //图标结构

typedef struct tagRESDIR { 
   ICONRESDIR   Icon; 
   WORD    Planes; 
   WORD    BitCount; 
   DWORD   BytesInRes; 
   WORD  IconCursorId; 
} RESDIR; 

typedef struct NEWHEADER { 
   WORD Reserved; 
   WORD ResType; 
   WORD ResCount; 
} NEWHEADER, *PNEWHEADER; 

typedef struct {
     const RESDIR* pcResDir;
     BYTE* pMatchIcon;
} my_enum_res_callback_data;


/////////////////////////////////////////////////////////////////////////////
// CBindFileDlg dialog

class CBindFileDlg : public CDialog
{
// Construction
public:
	CBindFileDlg(CWnd* pParent = NULL);	// standard constructor

public:
	_off_t prog1_length ;
   	TCHAR my_name[MAX_PATH];
    BYTE *buf ;
	CString his_name;


	void Create_Process(const char* temp_exe, BOOL async);//创建分解文件时的进程
	void Unbind_and_Run(); //分解已合并的文件,同时运行它们
    bool Bind_Files(); //将二个可执行文件绑定在一起
    BYTE* find_match_icon(const RESDIR* pcResDir); //查询匹配图标
	void list_my_icons(); //列出所有图标

// Dialog Data
	//{{AFX_DATA(CBindFileDlg)
	enum { IDD = IDD_BINDFILE_DIALOG };
	CHyperLink	m_URL;
	CListCtrl	m_List;
	CString	m_DestPathName;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBindFileDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CBindFileDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnAddfile();
	afx_msg void OnDelfile();
	virtual void OnOK();
	afx_msg void OnBindFiles();
	afx_msg void OnDestDir();
	afx_msg void OnClose();
	afx_msg void OnButtonselecticon();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_BINDFILEDLG_H__B9147DEB_DD8D_44E0_8264_AA1DB6C1A237__INCLUDED_)

⌨️ 快捷键说明

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