Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Custom GDI+ class
Storing content of the Clipboard to a bitmap file
Storing screen shot of a form to bitmap file
GDI+: Implementing image scrolling with inertia
How to print FoxPro form
Capturing keyboard activity of another application with the Raw Input API (VFP9)
How to print a bitmap file
Obtaining names and positions for shortcuts located on the Windows Desktop
Displaying icons in the system tray (VFP9)
Extensible Storage Engine class library
Copying picture of the active form to the Clipboard using Enhanced Metafile API functions
Monitoring clipboard content changes (VFP9)
Displaying dimmed window behind VFP top-level form
Vertical Label control
Loading a string resource from an executable file
Browsing Windows Known Folders (Special Folders)
Pocket PC: custom RAPI class for operating with files and folders on mobile device
Enumerating devices installed on the local machine
How to change display settings: screen resolution, screen refresh rate
GDI+: sending image of FoxPro form to printer
Enumerating Processes -- WinNT
How to put a horizontal text scrolling on the form (a news line, marquee)
Printing Image File, programmatically set print page orientation to landscape
Splash Screen for the VFP application
Obtaining provider name for a specific type of network

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
DECLARE INTEGER WNetGetProviderName IN mpr;
    INTEGER dwNetType, STRING @lpProviderName,;
    INTEGER @lpBufferSize

#DEFINE NO_ERROR 0

#DEFINE WNNC_NET_MSNET      0x00010000
#DEFINE WNNC_NET_LANMAN     0x00020000
#DEFINE WNNC_NET_NETWARE    0x00030000
#DEFINE WNNC_NET_VINES      0x00040000
#DEFINE WNNC_NET_10NET      0x00050000
#DEFINE WNNC_NET_LOCUS      0x00060000
#DEFINE WNNC_NET_SUN_PC_NFS 0x00070000
#DEFINE WNNC_NET_LANSTEP    0x00080000
#DEFINE WNNC_NET_9TILES     0x00090000
#DEFINE WNNC_NET_LANTASTIC  0x000A0000
#DEFINE WNNC_NET_AS400      0x000B0000
#DEFINE WNNC_NET_FTP_NFS    0x000C0000
#DEFINE WNNC_NET_PATHWORKS  0x000D0000
#DEFINE WNNC_NET_LIFENET    0x000E0000
#DEFINE WNNC_NET_POWERLAN   0x000F0000
#DEFINE WNNC_NET_BWNFS      0x00100000
#DEFINE WNNC_NET_COGENT     0x00110000
#DEFINE WNNC_NET_FARALLON   0x00120000
#DEFINE WNNC_NET_APPLETALK  0x00130000
#DEFINE WNNC_NET_INTERGRAPH 0x00140000
#DEFINE WNNC_NET_SYMFONET   0x00150000
#DEFINE WNNC_NET_CLEARCASE  0x00160000
#DEFINE WNNC_NET_FRONTIER   0x00170000
#DEFINE WNNC_NET_BMC        0x00180000
#DEFINE WNNC_NET_DCE        0x00190000
#DEFINE WNNC_NET_DECORB     0x00200000
#DEFINE WNNC_NET_PROTSTOR   0x00210000
#DEFINE WNNC_NET_FJ_REDIR   0x00220000
#DEFINE WNNC_NET_DISTINCT   0x00230000
#DEFINE WNNC_NET_TWINS      0x00240000
#DEFINE WNNC_NET_RDR2SAMPLE 0x00250000

LOCAL lcProvider, lnBufsize, lnResult
lnBufsize = 250
lcProvider = Repli(Chr(0), lnBufsize)

lnResult = WNetGetProviderName (WNNC_NET_MSNET, @lcProvider, @lnBufsize)
IF lnResult = NO_ERROR
    ? "Provider name:", SUBSTR(lcProvider, 1, AT(Chr(0),lcProvider)-1)
ELSE
* 1222 -- ERROR_NO_NETWORK
*  234 -- ERROR_MORE_DATA
    ? "Error code:", lnResult
ENDIF

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
1739 bytes  
Created: 2002-06-06 08:52:17  
Modified: 2002-06-06 08:52:32  
Visits in 7 days: 41  
Listed functions:
WNetGetProviderName
Printer friendly API declarations
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
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.196.47.128)
6 sec.Example: 'Reading list of folders and files on FTP server'
13 sec.Example: 'GDI+: converting text strings to images and saving in a graphics file'
19 sec.Function: 'FindMediaType'
Function group: 'URL Monikers'
25 sec.Example: 'GDI+: Creating thumbnails to preview images in a directory'
34 sec.Function: 'GetDriveType'
Function group: 'File Management'
47 sec.Function: 'GdipGetImageRawFormat'
Function group: 'GDI+ Image'
53 sec.Function: 'FindNextFile'
Function group: 'File Management'
58 sec.Function: 'PrintDlgEx'
1.08 min.Example: 'Obtaining I/O counts for the current process'
1.25 min.Function: 'EnumPrinterData'
Function group: 'Printing and Print Spooler'
Google
Advertise here!