网站首页  词典首页

请输入您要查询的函数:

 

术语 deleteprinterkey
释义 DeletePrinterKey
语法:
DWORD DeletePrinterKey(
__in HANDLE hPrinter,
__in LPCTSTR pKeyName
);
DeletePrinterKey功能
该DeletePrinterKey函数删除一个指定的打印机指定的键及其所有子项。
参数
hPrinter [in]
句柄到打印机的功能为删除一个关键。使用OpenPrinter或添加打印机函数检索打印机处理。
pKeyName [in]
一个指向 null 结尾的字符串指针,指定键删除。使用反斜杠(\\)作为分隔符指定一个或多个子项的路径。
如果pKeyName是一个空字符串(""), DeletePrinterKey删除下面的顶级打印机的Level的关键所有的钥匙。如果pKeyName为NULL,DeletePrinterKey返回ERROR_INVALID_PARAMETER。
返回值
如果函数成功,返回值是ERROR_SUCCESS。
如果函数失败,返回值是一个系统错误代码。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinspool.h(头文件:winuser.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode和ANSI namesDeletePrinterKeyW(Unicode)和DeletePrinterKeyA(ANSI)的
参见
Printing and Print Spooler Overview
Printing and Print Spooler 函数
DeletePrinterDataEx
EnumPrinterDataEx
EnumPrinterKey
GetPrinterDataEx
OpenPrinter
SetPrinterDataEx
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==DeletePrinterKey Function
The DeletePrinterKey function deletes a specified key and all its subkeys for a specified printer.
Syntax
DWORD DeletePrinterKey(
__in HANDLE hPrinter,
__in LPCTSTR pKeyName
);
Parameters
hPrinter [in]
A handle to the printer for which the function deletes a key. Use the OpenPrinter or AddPrinter function to retrieve a printer handle.
pKeyName [in]
A pointer to a null-terminated string that specifies the key to delete. Use the backslash ( \\ ) character as a delimiter to specify a path with one or more subkeys.
If pKeyName is an empty string (""), DeletePrinterKey deletes all keys below the top-level key for the printer. If pKeyName is NULL, DeletePrinterKey returns ERROR_INVALID_PARAMETER.
Return Value
If the function succeeds, the return value is ERROR_SUCCESS.
If the function fails, the return value is a system error code.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinspool.h (include Windows.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode and ANSI namesDeletePrinterKeyW (Unicode) and DeletePrinterKeyA (ANSI)
See Also
Printing and Print Spooler Overview
Printing and Print Spooler Functions
DeletePrinterDataEx
EnumPrinterDataEx
EnumPrinterKey
GetPrinterDataEx
OpenPrinter
SetPrinterDataEx
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183548(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:47