网站首页  词典首页

请输入您要查询的函数:

 

术语 netfileclose
释义 NetFileClose
语法:
C++
NET_API_STATUS NetFileClose(
__in LMSTR servername,
__in DWORD fileid
);
NetFileClose功能
部队资源关闭。此功能时,可以使用一个错误阻止任何其他方式结束。您应该谨慎使用NetFileClose,因为它不写在客户端系统文件关闭之前缓存文件数据。
参数
服务器名 [in]
指针指向一个字符串,它指定的DNS或NetBIOS的远程服务器上的功能是执行的名称。如果该参数为NULL,则使用本地计算机。
这个字符串是Unicode或FORCE_UNICODE如果_WIN32_WINNT定义。
fileid [in]
指定打开的资源实例文件的标识符结束。
返回值
如果函数成功,返回值是NERR_Success。
如果函数失败,返回值可以是下面的错误代码之一。
返回codeDescription
ERROR_ACCESS_DENIEDThe用户没有获得所需的信息。
ERROR_FILE_NOT_FOUNDThe文件未找到。
备注
管理员或服务器操作员本地组的成员才可以成功地执行NetFileClose功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderLmshare.h(包括Lm.h)
LibraryNetapi32.lib
DLLNetapi32.dll
参见
网络管理概述
网络管理功能
NetFile功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==NetFileClose Function
Forces a resource to close. This function can be used when an error prevents closure by any other means. You should use NetFileClose with caution because it does not write data cached on the client system to the file before closing the file.
Syntax
C++
NET_API_STATUS NetFileClose(
__in LMSTR servername,
__in DWORD fileid
);
Parameters
servername [in]
Pointer to a string that specifies the DNS or NetBIOS name of the remote server on which the function is to execute. If this parameter is NULL, the local computer is used.
This string is Unicode if _WIN32_WINNT or FORCE_UNICODE is defined.
fileid [in]
Specifies the file identifier of the opened resource instance to close.
Return Value
If the function succeeds, the return value is NERR_Success.
If the function fails, the return value can be one of the following error codes.
Return codeDescription
ERROR_ACCESS_DENIEDThe user does not have access to the requested information.
ERROR_FILE_NOT_FOUNDThe file was not found.

Remarks
Only members of the Administrators or Server Operators local group can successfully execute the NetFileClose function.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderLmshare.h (include Lm.h)
LibraryNetapi32.lib
DLLNetapi32.dll
See Also
Network Management Overview
Network Management Functions
NetFile Functions
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/bb525377(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:27