www.pudn.com > dvKrnlData.rar > KrnlDataClient.cpp


// KrnlDataClient.cpp : Defines the entry point for the console application. 
// 
 
#include "stdafx.h" 
 
const char DEVICE_NAME[] = "\\\\.\\dvKrnlDataDevice"; 
const int LOG_BIN_NUM = 16; 
 
char *GetFileName(char *szPath) 
{ 
    if(strchr(szPath, '\\') == NULL) 
    { 
        return szPath; 
    } 
 
    char *szTemp = szPath; 
    char *szRet; 
    while( szTemp != NULL ) 
    { 
        szRet = szTemp + 1; 
        szTemp = strchr(szRet, '\\'); 
    } 
     
    return szRet; 
} 
 
void PrintUsage(char *szExe) 
{ 
    printf(  
        "=========================Usage=========================\n" 
        "%s