Using Win32 functions in Visual FoxPro Image Gallery
Windows Networking
..msdn
NetGetJoinInformation
NetJoinDomain
NetUnjoinDomain
WNetAddConnection
WNetAddConnection2
WNetCancelConnection2
WNetCloseEnum
WNetConnectionDialog
WNetConnectionDialog1
WNetDisconnectDialog
WNetEnumResource
WNetGetConnection
WNetGetLastError
WNetGetNetworkInformation
WNetGetProviderName
WNetGetUniversalName
WNetGetUser
WNetOpenEnum
Code examples:
Obtaining provider name for a specific type of network
WNetGetProviderName
..msdn    Add comment     W32 Constants      Translate this page
The WNetGetProviderName function obtains the provider name for a specific type of network.
Code examples:
Obtaining provider name for a specific type of network
Declaration:
DWORD WNetGetProviderName(
  DWORD dwNetType,       // network type
  LPTSTR lpProviderName, // provider name buffer
  LPDWORD lpBufferSize   // size of buffer
);
FoxPro declaration:
DECLARE INTEGER WNetGetProviderName IN mpr;
    INTEGER   dwNetType,;
    STRING  @ lpProviderName,;
    INTEGER @ lpBufferSize

Parameters:
dwNetType
[in] Specifies the network type that is unique to the network.

lpProviderName
[out] Pointer to a buffer in which to return the network provider name.

lpBufferSize
[in/out] Specifies the size, in characters, of the buffer passed to the function.
Return value:
If the function succeeds, the return value is NO_ERROR (0).
My comment:
You can find a complete list of network types in the header file Winnetwk.h.
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-06-06 08:53:11
Modified: 2002-06-06 08:55:17
Visited in last 7 days: 18
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 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.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.87.70.14)
49 sec.Function: 'NetScheduleJobDel'
Function group: 'Network Management'
1.97 min.Function: 'CryptEnumProviders'
Function group: 'Cryptography Reference'
5.18 min.Function: 'NetApiBufferFree'
3 day(s)Function: 'GetForegroundWindow'
Function group: 'Window'
 Example: 'GDI+: how to make VFP controls visually shake and shudder'
 Function: 'GetTextExtentPoint32'
 Function: 'CeOpenDatabase'
Function group: 'Remote Application Programming (RAPI)'
 Function: 'timeGetDevCaps'
Function group: 'Windows Multimedia'
6 day(s)Function: 'JetCommitTransaction'
Function group: 'Extensible Storage Engine (ESE, Jet Blue)'
 Example: 'Running a regular FoxPro form while main VFP window is minimized'
Google
Advertise here!