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:
Using the NetMessageBufferSend to send messages on the network
NetMessageNameEnum
..msdn    Add comment     W32 Constants      Translate this page
Lists the message aliases that receive messages on a specified computer. The function requires that the messenger service be started.
Code examples:
Using the NetMessageBufferSend to send messages on the network
Declaration:
NET_API_STATUS NetMessageNameEnum(
    LPCWSTR servername,
    DWORD level,
    LPBYTE* bufptr,
    DWORD prefmaxlen,
    LPDWORD entriesread,
    LPDWORD totalentries,
    LPDWORD resume_handle
);
FoxPro declaration:
DECLARE INTEGER NetMessageNameEnum IN netapi32;
    STRING    servername,;
    INTEGER   lvl,;
    INTEGER @ bufptr,;
    INTEGER   prefmaxlen,;
    INTEGER @ entriesread,;
    INTEGER @ totalentries,;
    INTEGER   resume_handle
Parameters:
servername
[in] Pointer to a constant 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.

level
Set to zero.

bufptr
[out] Pointer to the buffer that receives the data

prefmaxlen
[in] Specifies the preferred maximum length of the returned data, in bytes. If you specify MAX_PREFERRED_LENGTH, the function allocates the amount of memory required for the data.

entriesread
[out] Pointer to a value that receives the count of elements actually enumerated.
totalentries

[out] Pointer to a value that receives the total number of entries that could have been enumerated from the current resume position.

resume_handle
[in, out] Pointer to a value that contains a resume handle which is used to continue an existing message alias search.

Return value:
If the function succeeds, the return value is NERR_Success (0).
My comment:
The bufptr allocated by the system and must be freed using the NetApiBufferFree function.

Only members of the Administrators local group can successfully execute the NetMessageNameEnum function on a remote server.

Note that this is Unicode function.

See also: NetMessageNameAdd, NetMessageNameDel.
Word Index links for the NetMessageNameEnum :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2005-09-14 14:04:13
Modified: 2005-09-14 14:15:23
Visited in last 7 days: 29
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 (23.22.136.56)
12 sec.
Function group: 'Font and Text'
26 sec.Function: 'NetServerGetInfo'
Function group: 'Network Management'
38 sec.
54 sec.Function: 'GetSystemDirectory'
Function group: 'System Information'
1.12 min.Function: 'mmioRead'
Function group: 'Windows Multimedia'
1.37 min.Function: 'CeGetTempPath'
Function group: 'Remote Application Programming (RAPI)'
1.6 min.Function: 'mmioSeek'
Function group: 'Windows Multimedia'
1.83 min.Function: 'PlaySound'
Function group: 'Windows Multimedia'
2.08 min.Links
2.32 min.Function: 'NetFileGetInfo'
Function group: 'Network Management'
Google
Advertise here!