网站首页  词典首页

请输入您要查询的函数:

 

术语 openntmssession
释义 OpenNtmsSession
语法:
C++
HANDLE OpenNtmsSession(
__in LPCTSTR lpServer,
__in LPCTSTR lpApplication,
DWORD dwOptions
);
OpenNtmsSession功能
[移动存储管理不再作为Windows 7和Windows服务器2008 R2提供。]
该OpenNtmsSession函数建立了一个与丹参服务器会话。
参数
lpServer [in]
丹参服务器的名称。如果该参数为NULL,当前计算机的名称使用。
lpApplication [in]
唯一的字符串标识应用程序。该名称标识的资源和经营者的要求。此参数是可选的,可以为null。
dwOptions
版权所有;必须为零。
返回值
如果OpenNtmsSession成功,它返回一个句柄,唯一标识本次会议。如果函数失败,则返回INVALID_HANDLE_VALUE。 To retrieve more information, call the GetLastError function.这个函数可以返回下列值之一。
ValueMeaning
ERROR_INVALID_COMPUTERNAMEThe计算机名称中指定格式中没有一个有效的格式。
参数值ERROR_INVALID_PARAMETEROne是无效的。
ERROR_NO_NETWORKThe网络未启动或无法使用。
ERROR_NOT_CONNECTEDUnable连接到RSM服务。
ERROR_NOT_READYRSM服务尚未启动。应用程序应该等待,然后重试。
ERROR_SUCCESSThe功能是成功的。
INVALID_HANDLE_VALUERSM无法打开会话。
RPC_S_NO_INTERFACESThe服务使用您的应用程序比旧版本的丹参。
备注
该OpenNtmsSession函数返回一个会议上与其他丹参用于处理功能,建立与RSM数据库连接,初始化应用程序的罗申子系统。
当OpenNtmsSession返回时,应用程序可以执行丹参操作。
会话是线程安全的,但不能在进程间通过。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
客户端 支持 Windows Vista
服务器 支持 Windows Server 2008
HeaderNtmsapi.h
LibraryNtmsapi.lib
DLLNtmsapi.dll
Unicode和ANSI namesOpenNtmsSessionW(Unicode)和OpenNtmsSessionA(ANSI)的
参见
会话管理功能
CloseNtmsSession
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==OpenNtmsSession Function
[ Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]
The OpenNtmsSession function sets up a session with a RSM server.
Syntax
C++
HANDLE OpenNtmsSession(
__in LPCTSTR lpServer,
__in LPCTSTR lpApplication,
DWORD dwOptions
);
Parameters
lpServer [in]
RSM server name. If this parameter is NULL, the current computer name is used.
lpApplication [in]
Unique character string that identifies the application. This name identifies resources and operator requests. This parameter is optional and may be NULL.
dwOptions
Reserved; must be zero.
Return Value
If OpenNtmsSession succeeds, it returns a handle that uniquely identifies this session. If the function fails, it returns INVALID_HANDLE_VALUE. To retrieve more information, call the GetLastError function. This function can return one of the following values.
ValueMeaning
ERROR_INVALID_COMPUTERNAMEThe computer name format that was specified was not in a valid format.
ERROR_INVALID_PARAMETEROne of the parameter values was not valid.
ERROR_NO_NETWORKThe network is not started or not available.
ERROR_NOT_CONNECTEDUnable to connect to the RSM service.
ERROR_NOT_READYRSM service has not started. The application should wait and retry.
ERROR_SUCCESSThe function was successful.
INVALID_HANDLE_VALUERSM cannot open a session.
RPC_S_NO_INTERFACESThe service is using an older version of RSM than your application.

Remarks
The OpenNtmsSession function returns a session handle used with other RSM functions, establishes a connection with the RSM database, and initializes the RSM subsystem for the application.
When OpenNtmsSession returns, the application can perform RSM operations.
Sessions are thread-safe but cannot be passed among processes.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
End of client supportWindows Vista
End of server supportWindows Server 2008
HeaderNtmsapi.h
LibraryNtmsapi.lib
DLLNtmsapi.dll
Unicode and ANSI namesOpenNtmsSessionW (Unicode) and OpenNtmsSessionA (ANSI)
See Also
Session Management Functions
CloseNtmsSession
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb540721(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:58