• 大小: 88KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-04
  • 语言: 其他
  • 标签: Winring0  

资源简介

Ring0级系统CPU、IO、PCI和内存访问工具;一款强大的windows底层驱动开发包,自行开发Windows底层工具必备的开发包;内有示例详解,一步上手

资源截图

代码片段和文件信息

//-----------------------------------------------------------------------------
//     Author : hiyohiyo
//       Mail : hiyohiyo@crystalmark.info
//        Web : http://openlibsys.org/
//    License : The modified BSD license
//
//                     Copyright 2007-2008 OpenLibSys.org. All rights reserved.
//-----------------------------------------------------------------------------

#include “stdafx.h“
#include “OlsSample.h“
#include “OlsSampleDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#endif

#ifdef RUN_TIME_DYNAMIC_linkING
#include “../../dll/OlsApiInit.h“
#else // for Load-Time Dynamic linking
#include “../../dll/OlsApi.h“
#ifdef _M_X64
#pragma comment(lib “../../../release/WinRing0x64.lib“)
#else
#pragma comment(lib “../../../release/WinRing0.lib“)
#endif
#endif

// COlsSampleApp

BEGIN_MESSAGE_MAP(COlsSampleApp CWinApp)
ON_COMMAND(ID_HELP &CWinApp::onhelp)
END_MESSAGE_MAP()


// COlsSampleApp construction

COlsSampleApp::COlsSampleApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}


// The one and only COlsSampleApp object

COlsSampleApp theApp;


// COlsSampleApp initialization

BOOL COlsSampleApp::InitInstance()
{
// InitCommonControlsEx() is required on Windows XP if an application
// manifest specifies use of ComCtl32.dll version 6 or later to enable
// visual styles.  Otherwise any window creation will fail.
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// Set this to include all the common control classes you want to use
// in your application.
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);

CWinApp::InitInstance();

#ifdef RUN_TIME_DYNAMIC_linkING
m_hOpenLibSys = NULL;
if(! InitOpenLibSys(&m_hOpenLibSys))
{
AfxMessageBox(_T(“DLL Load Error!!“));
return FALSE;
}
#else
if(! InitializeOls())
{
AfxMessageBox(_T(“Error InitializeOls()!!“));
return FALSE;
}
#endif

COlsSampleDlg dlg;
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();

#ifdef RUN_TIME_DYNAMIC_linkING
DeinitOpenLibSys(&m_hOpenLibSys);
#else
DeinitializeOls();
#endif

return FALSE;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    I.A....       608  2012-04-19 17:49  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\ReadMe.txt

    I.A....      1274  2008-01-02 11:42  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\COPYRIGHT.txt

     文件        630  2012-04-19 17:17  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\Driver.h

     文件      20127  2012-04-19 17:16  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\OlsApi.h

     文件      20127  2012-04-19 17:19  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\vxd\OlsApi.h

     文件      10757  2012-04-19 17:16  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\OlsApiInit.h

     文件      10757  2012-04-19 17:19  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\vxd\OlsApiInit.h

     文件       5280  2012-04-19 17:16  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\OlsApiInitDef.h

     文件       5280  2012-04-19 17:18  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\vxd\OlsApiInitDef.h

     文件       2907  2012-04-19 17:16  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\OlsApiInitExt.h

     文件       2907  2012-04-19 17:18  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\vxd\OlsApiInitExt.h

     文件       2337  2012-04-19 17:16  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\OlsDef.h

     文件       1727  2012-04-19 17:15  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\OlsDll.h

     文件       1727  2012-04-19 17:18  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\vxd\OlsDll.h

     文件       5411  2012-04-19 17:16  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\OlsIoctl.h

     文件        916  2012-04-19 17:21  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\sample\cpp\OlsSample.h

     文件       1140  2012-04-19 17:20  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\sample\cpp\OlsSampleDlg.h

     文件       3318  2012-04-19 17:18  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\sys\OpenLibSys.h

     文件       3555  2012-04-19 17:19  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\vxd\OpenLS.h

     文件        404  2012-04-19 17:16  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\resource.h

     文件        819  2012-04-19 17:20  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\sample\cpp\resource.h

     文件        719  2012-04-19 17:15  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\stdafx.h

     文件       2316  2012-04-19 17:20  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\sample\cpp\stdafx.h

     文件      17307  2012-04-19 17:18  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\sys\OpenLibSys.c

     文件      14022  2012-04-19 17:19  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\vxd\OpenLS.c

     文件       7740  2012-04-19 17:17  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\Driver.cpp

     文件      31944  2012-04-19 17:15  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\OlsApi.cpp

     文件      32508  2012-04-19 17:19  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\vxd\OlsApi.cpp

     文件       9100  2012-04-19 17:16  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\source\dll\OlsDll.cpp

     文件       2228  2012-04-19 17:21  WinRing0-v1.3.1b-Source-&-Binaries-x86-x64-XPM\sample\cpp\OlsSample.cpp

............此处省略31个文件信息

评论

共有 条评论