网站首页  词典首页

请输入您要查询的函数:

 

术语 isdebuggerpresent
释义 IsDebuggerPresent
语法:
C++
BOOL WINAPI IsDebuggerPresent(void);
IsDebuggerPresent函数
确定是否调用进程是由一个用户模式调试器调试。
参数
这个函数没有参数。
返回值
如果当前进程正处于调试器上下文中运行,则返回值为非零。
如果当前进程是不是在调试器下运行,返回值是零。
备注
此函数允许应用程序,以确定它是否正在被调试,以便它能够改变自己的行为。例如,一个应用程序可以提供更多的信息,使用OutputDebugString的功能如果被调试。
要确定是否远程进程正在调试,使用CheckRemoteDebuggerPresent功能。
要编译的应用程序使用此函数,定义为0x0400或更高_WIN32_WINNT宏。有关详细信息,请参阅使用Windows头。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
CheckRemoteDebuggerPresent
调试功能
OutputDebugString的
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==IsDebuggerPresent Function
Determines whether the calling process is being debugged by a user-mode debugger.
Syntax
C++
BOOL WINAPI IsDebuggerPresent(void);
Parameters
This function has no parameters.
Return Value
If the current process is running in the context of a debugger, the return value is nonzero.
If the current process is not running in the context of a debugger, the return value is zero.
Remarks
This function allows an application to determine whether or not it is being debugged, so that it can modify its behavior. For example, an application could provide additional information using the OutputDebugString function if it is being debugged.
To determine whether a remote process is being debugged, use the CheckRemoteDebuggerPresent function.
To compile an application that uses this function, define the _WIN32_WINNT macro as 0x0400 or later. For more information, see Using the Windows Headers .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
CheckRemoteDebuggerPresent
Debugging Functions
OutputDebugString
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms680345(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:23:48