bbman 12 Junior Poster

I want to check degbugger and write a function like this code to call API debug "IsDebuggerPresent" :

Code:

#include <windows.h>
bool checkdbg(){
	int i = 1;
	__asm{
		call IsDebuggerPresent //gọi api debug
		test eax, eax
		jne L1
		mov i,0
		L1 : 
	}
if(i == 0) return false;
else return true;
}

But when compile,VS2010 can not find IsDebuggerPresent to call.Please help me !