网站首页  词典首页

请输入您要查询的函数:

 

术语 getdevicedriverbasename
释义 GetDeviceDriverBaseName
语法:
C++
DWORD WINAPI GetDeviceDriverBaseName(
__in LPVOID ImageBase,
__out LPTSTR lpBaseName,
__in DWORD nSize
);
GetDeviceDriverBaseName功能
检索指定的设备驱动程序的基本名称。
参数
ImageBase [in]
该设备的驱动程序的加载地址。此值可以使用EnumDeviceDrivers检索功能。
lpBaseName [out]
一个缓冲区,接收设备驱动程序的基本名称的指针。
nSize [in]
该lpBaseName缓冲区的大小,以字符。如果缓冲区不够大,存储基地名称加上终止空字符,该字符串被截断。
返回值
如果函数成功,返回值指定了复制到缓冲区的字符串,不包括任何终止空字符的长度。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
与PSAPI版本的Windows 7和Windows Server 2008 R2的2起,这个函数被定义为K32GetDeviceDriverBaseName在Psapi.h和Kernel32.lib和Kernel32.dll出口。但是,您应该始终作为GetDeviceDriverBaseName调用这个函数。为了确保对程序将运行在Windows的早期版本的符号的正确决议,添加Psapi.lib到TARGETLIBS宏和编译程序与- DPSAPI_VERSION = 1。
实例
有关示例,请参见枚举系统中的所有设备驱动程序。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderPsapi.h
LibraryKernel32.lib在Windows 7和Windows Server 2008 R2的Psapi.lib在Windows Server 2008,Windows Vista中的Windows Server 2003,和Windows XP/2000
DLLKernel32.dll在Windows 7和Windows Server 2008 R2的Psapi.dll在Windows Server 2008,Windows Vista中的Windows Server 2003,和Windows XP/2000
Unicode和ANSI namesGetDeviceDriverBaseNameW(Unicode)和GetDeviceDriverBaseNameA(ANSI)的
参见
设备驱动程序信息
EnumDeviceDrivers
PSAPI函数
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GetDeviceDriverBaseName Function
Retrieves the base name of the specified device driver.
Syntax
C++
DWORD WINAPI GetDeviceDriverBaseName(
__in LPVOID ImageBase,
__out LPTSTR lpBaseName,
__in DWORD nSize
);
Parameters
ImageBase [in]
The load address of the device driver. This value can be retrieved using the EnumDeviceDrivers function.
lpBaseName [out]
A pointer to the buffer that receives the base name of the device driver.
nSize [in]
The size of the lpBaseName buffer, in characters. If the buffer is not large enough to store the base name plus the terminating null character, the string is truncated.
Return Value
If the function succeeds, the return value specifies the length of the string copied to the buffer, not including any terminating null character.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
Starting with PSAPI version 2 for Windows 7 and Windows Server 2008 R2, this function is defined as K32GetDeviceDriverBaseName in Psapi.h and exported in Kernel32.lib and Kernel32.dll. However, you should always call this function as GetDeviceDriverBaseName. To ensure correct resolution of symbols for programs that will run on earlier versions of Windows, add Psapi.lib to the TARGETLIBS macro and compile the program with –DPSAPI_VERSION=1.
Examples
For an example, see Enumerating all Device Drivers in the System .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderPsapi.h
LibraryKernel32.lib on Windows 7 and Windows Server 2008 R2, Psapi.lib on Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP/2000
DLLKernel32.dll on Windows 7 and Windows Server 2008 R2, Psapi.dll on Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP/2000
Unicode and ANSI namesGetDeviceDriverBaseNameW (Unicode) and GetDeviceDriverBaseNameA (ANSI)
See Also
Device Driver Information
EnumDeviceDrivers
PSAPI Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms683184(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 11:31:14