网站首页  词典首页

请输入您要查询的函数:

 

术语 getprintprocessordirectory
释义 GetPrintProcessorDirectory
语法:
BOOL GetPrintProcessorDirectory(
__in LPTSTR pName,
__in LPTSTR pEnvironment,
__in DWORD Level,
__out LPBYTE pPrintProcessorInfo,
__in DWORD cbBuf,
__out LPDWORD pcbNeeded
);
GetPrintProcessorDirectory功能
该GetPrintProcessorDirectory函数检索的指定服务器上的打印处理器目录的路径。
参数
pName [in]
一个指向 null 结尾的字符串指针,指定服务器的名称。如果该参数为NULL,则返回本地路径。
pEnvironment [in]
一个指向 null 结尾的字符串指针,指定环境(例如,Windows x86的时,Windows IA64的,或Windows x64)的。如果该参数为NULL,则调用应用程序和客户机(不是目标应用程序和打印服务器)是目前使用的环境。
Level [in]
结构Level。此值必须为1。
pPrintProcessorInfo [out]
阿一个缓冲区,它接收路径的指针。请注意,对于以前的操作系统为Windows Server 2003警司1,路径是在为服务器上的本地格式,而不是真正的远程格式。例如,给出的路径为“%WinDir%资料\\的System32 \\ Spool \\ Prtprocs \\%环境%”,而不是“\\ \\服务器名\\打印$ \\ Prtprocs \\%环境%”,即使远程服务器调用。对于作业系统的Windows Server 2003警司1和更高版本,真正的远程路径返回。
cbBuf [in]
缓冲区的大小指向pPrintProcessorInfo。
pcbNeeded [out]
一个值,指定复制的功能,如果成功,或所需的字节数,如果cbBuf太小字节数的指针。
返回值
如果函数成功,返回值是一个非零值。
如果函数失败,返回值是零。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinspool.h(头文件:winuser.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode和ANSI namesGetPrintProcessorDirectoryW(Unicode)和GetPrintProcessorDirectoryA(ANSI)的
参见
Printing and Print Spooler Overview
Printing and Print Spooler 函数
AddPrintProcessor
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetPrintProcessorDirectory Function
The GetPrintProcessorDirectory function retrieves the path for the print processor directory on the specified server.
Syntax
BOOL GetPrintProcessorDirectory(
__in LPTSTR pName,
__in LPTSTR pEnvironment,
__in DWORD Level,
__out LPBYTE pPrintProcessorInfo,
__in DWORD cbBuf,
__out LPDWORD pcbNeeded
);
Parameters
pName [in]
A pointer to a null-terminated string that specifies the name of the server. If this parameter is NULL, a local path is returned.
pEnvironment [in]
A pointer to a null-terminated string that specifies the environment (for example, Windows x86, Windows IA64, or Windows x64). If this parameter is NULL, the current environment of the calling application and client machine (not of the destination application and print server) is used.
Level [in]
The structure level. This value must be 1.
pPrintProcessorInfo [out]
A pointer to a buffer that receives the path. Note that, for operating systems prior to Windows Server 2003 SP 1, the path is in the local format for the server, not the true remote format. For example, the path is given as "%Windir%\\System32\\Spool\\Prtprocs\\%Environment%" instead of "\\\\ServerName\\Print$\\Prtprocs\\%Environment%", even when called for a remote server. For the operating systems Windows Server 2003 SP 1 and later, the true remote path is returned.
cbBuf [in]
The size of the buffer pointed to by pPrintProcessorInfo.
pcbNeeded [out]
A pointer to a value that specifies the number of bytes copied if the function succeeds, or the number of bytes required if cbBuf is too small.
Return Value
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinspool.h (include Windows.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode and ANSI namesGetPrintProcessorDirectoryW (Unicode) and GetPrintProcessorDirectoryA (ANSI)
See Also
Printing and Print Spooler Overview
Printing and Print Spooler Functions
AddPrintProcessor
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144917(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:18:08