网站首页  词典首页

请输入您要查询的函数:

 

术语 rmaddfilter
释义 RmAddFilter
语法:
C++
DWORD WINAPI RmAddFilter(
__in DWORD dwSessionHandle,
__in_opt LPCWSTR strFilename,
__in_opt RM_UNIQUE_PROCESS *Application,
__in_opt LPCWSTR strShortServiceName,
__in RM_FILTER_ACTION ActionType
);
RmAddFilter功能
修改关机或重新启动应用到应用程序或服务的行动。主要安装程序可以调用RmAddFilter函数多次。最近调用覆盖以前的任何修改相同的文件,程序或服务。
参数
dwSessionHandle [in]
句柄到现有的重新启动管理会议。
strFilename [中,可选]
一个指向 null 结尾的字符串指针值,包含完整路径应用程序的可执行文件。修改关机或重新启动行动申请的,这是由完整路径引用的应用程序。 This parameter must be NULL if the Application or strServiceShortName parameter is non-NULL.
应用[中,可选]
一个应用程序RM_UNIQUE_PROCESS结构的指针。修改关机或重新启动行动申请的,这是由RM_UNIQUE_PROCESS结构引用的应用程序。此参数必须为NULL,如果strFilename或strShortServiceName参数非空。
strShortServiceName [中,可选]
一个指向 null 结尾的字符串指针值,包含短期服务的名称。修改关机或重新启动行动申请的是短期服务所引用的文件服务。此参数必须为NULL,如果strFilename或应用参数非空。
ActionType [in]
一个RM_FILTER_ACTION枚举值,指定类型的修改适用。
返回值
这是最近收到的错误。该函数可以返回的系统错误在Winerror.h中定义的代码之一。
ValueMeaning
ERROR_SUCCESS
0The功能成功完成。
ERROR_BAD_ARGUMENTS
160One或多个参数不正确。此错误值返回的重新启动管理器的功能,如果一个NULL指针或0传递作为参数,需要一个非空和非零值。
ERROR_SESSION_CREDENTIAL_CONFLICT
1219This错误中学时返回安装调用这个函数。此功能只适用于小学安装。
要求:
client最低支持Vista
server最低支持 Windows Server 2008
HeaderRestartManager.h
LibraryRstrtmgr.lib
DLLRstrtmgr.dll
参见
RmGetFilterList
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==RmAddFilter Function
Modifies the shutdown or restart actions that are applied to an application or service. The primary installer can call the RmAddFilter function multiple times. The most recent call overrides any previous modifications to the same file, process, or service.
Syntax
C++
DWORD WINAPI RmAddFilter(
__in DWORD dwSessionHandle,
__in_opt LPCWSTR strFilename,
__in_opt RM_UNIQUE_PROCESS *Application,
__in_opt LPCWSTR strShortServiceName,
__in RM_FILTER_ACTION ActionType
);
Parameters
dwSessionHandle [in]
A handle to an existing Restart Manager session.
strFilename [in, optional]
A pointer to a null-terminated string value that contains the full path to the application's executable file. Modifications to shutdown or restart actions are applied for the application that is referenced by the full path. This parameter must be NULL if the Application or strServiceShortName parameter is non-NULL.
Application [in, optional]
A pointer to a RM_UNIQUE_PROCESS structure for the application. Modifications to shutdown or restart actions are applied for the application that is referenced by the RM_UNIQUE_PROCESS structure. This parameter must be NULL if the strFilename or strShortServiceName parameter is non-NULL.
strShortServiceName [in, optional]
A pointer to a null-terminated string value that contains the short service name. Modifications to shutdown or restart actions are applied for the service that is referenced by short service filename. This parameter must be NULL if the strFilename or Application parameter is non-NULL.
ActionType [in]
An RM_FILTER_ACTION enumeration value that specifies the type of modification to be applied.
Return Value
This is the most recent error received. The function can return one of the system error codes that are defined in Winerror.h.
ValueMeaning
ERROR_SUCCESS
0The function completed successfully.
ERROR_BAD_ARGUMENTS
160One or more arguments are not correct. This error value is returned by the Restart Manager function if a NULL pointer or 0 is passed in as a parameter that requires a non-null and non-zero value.
ERROR_SESSION_CREDENTIAL_CONFLICT
1219This error is returned when a secondary installer calls this function. This function is only available to primary installers.

Requirements
Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderRestartManager.h
LibraryRstrtmgr.lib
DLLRstrtmgr.dll
See Also
RmGetFilterList
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa373657(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