Skip to content

zhaozhongshu/api_wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

api_wrapper

when we call some undocumented API, we should firstly declare the function type ,and then use LoadLibrary/GetProcAddress to get the API address. api_wrapper try to reduce such ugly work.

usage

when call NtCreateFile

R3API<NTSTATUS> fNtCreateFile("ntdll.dll", "NtCreateFile");
if(fNtCreateFile)
{
  NTSTATUS Status = fNtCreateFile(&devName,
    		SYNCHRONIZE | GENERIC_READ | FILE_READ_ATTRIBUTES,
    		&oa,
    		&Iosb,
    		NULL,
    		FILE_ATTRIBUTE_NORMAL,
    		0,
    		FILE_OPEN,
    		FILE_DIRECTORY_FILE,
    		NULL,
    		0);
}

R3API has two template argument, return type, call mode (default mode is std_call)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages