section.h

来自「一个用BCB写的壳!」· C头文件 代码 · 共 38 行

H
38
字号
// Section.h: interface for the CSection class.
//
//////////////////////////////////////////////////////////////////////
#ifndef section_h
#define section_h
#pragma once

#include "stdafx.h"

namespace PE {

class CSection
{
public:
    CSection(CSection const &rSection);
    void Resize(DWORD dwNewSize);
    DWORD GetData(LPBYTE pData) const;
    void GetHeader(IMAGE_SECTION_HEADER &hdr) const;
    BOOL WithinFO(DWORD dwFO) const;
    BOOL WithinRVA(DWORD dwRVA) const;
    void SetData(LPBYTE pData, DWORD cbData);
    void SetHeader(IMAGE_SECTION_HEADER &hdrNew);
    CSection();
    virtual ~CSection();

    friend class CPortableExecutable;

protected: // Functions
    void Cleanup(void);

protected:
	 DWORD m_dwSize;
	 LPBYTE m_pData;
	 IMAGE_SECTION_HEADER m_hdr;
};

}
#endif

⌨️ 快捷键说明

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