Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
305 views
in Technique[技术] by (71.8m points)

Create c or c++ program that only Use ntdll.dll

I want to write a program in C or C ++ in Visual Studio that uses only the ntdll library and has no graphical interface. (Import functions only from ntdll.dll)

Can anyone guide me?

my Test code here :

int main()
{
    int a = 1;
    int b = 2;
    return a + b;
}

Update

I made some changes in my project and set "Ignore All Default Libraries" to "yes" , put "ntdll.lib" on "additional dependency" and set "Entry Point" to "main".

But when I try to compile project I receive 3 link errors: Link Errors image


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...