Using Win32 functions in Visual FoxPro Image Gallery
Network Management
..msdn
NetApiBufferFree
NetApiBufferSize
NetConnectionEnum
NetFileClose
NetFileEnum
NetFileGetInfo
NetGetDCName
NetGroupEnum
NetLocalGroupEnum
NetMessageBufferSend
NetMessageNameAdd
NetMessageNameDel
NetMessageNameEnum
NetScheduleJobAdd
NetScheduleJobDel
NetScheduleJobEnum
NetServerEnum
NetServerGetInfo
NetSessionEnum
NetShareAdd
NetShareDel
NetShareEnum
NetShareSetInfo
NetUserAdd
NetUserChangePassword
NetUserDel
NetUserEnum
NetUserGetGroups
NetUserGetInfo
NetUserGetLocalGroups
NetUserSetInfo
NetWkstaGetInfo
NetWkstaTransportEnum
NetWkstaUserEnum
Code examples:
NetFileClose
..msdn    Add comment     W32 Constants      Translate this page
The NetFileClose function forces a resource to close.
Code examples:
Declaration:
NET_API_STATUS NetFileClose(
    LMSTR servername,
    DWORD fileid
);
FoxPro declaration:
DECLARE INTGER NetFileClose IN netapi32;
    STRING servername,;
    LONG 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.

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 (0).
My comment:
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.

If servername parameter is NULL, the local computer is used.

See also: NetFileEnum, NetFileGetInfo
Word Index links for the NetFileClose :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2007-05-24 11:00:57
Modified: 2007-05-24 11:04:26
Visited in last 7 days: 16
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.198.2.110)
10 sec.Function: 'CryptReleaseContext'
Function group: 'Cryptography Reference'
29 sec.
40 sec.Function: 'mmioFlush'
Function group: 'Windows Multimedia'
49 sec.Function: 'mmioDescend'
Function group: 'Windows Multimedia'
1.02 min.
Function group: 'Remote Application Programming (RAPI)'
1.18 min.Examples
1.38 min.
1.92 min.Function: 'getnameinfo'
Function group: 'Windows Sockets 2 (Winsock)'
2.15 min.Function: 'WSAWaitForMultipleEvents'
Function group: 'Windows Sockets 2 (Winsock)'
2.35 min.Function: 'SQLFetch'
Function group: 'ODBC API'
Google
Advertise here!