Using Win32 functions in Visual FoxPro
Image Gallery
functions
•
examples
•
solutions
•
updates
•
about
•
links
•
articles
•
login
•
Shell Functions
..msdn
AssocQueryString
DllGetVersion
DragAcceptFiles
DragFinish
DragQueryFile
DragQueryPoint
FileIconInit
FindExecutable
GetFileNameFromBrowse
GetMenuContextHelpId
GetWindowContextHelpId
InetIsOffline
IsUserAnAdmin
PathMakeUniqueName
PathYetAnotherMakeUniqueName
RealDriveType
RestartDialog
SHAddToRecentDocs
SHBrowseForFolder
SHCreateDirectory
ShellAbout
ShellExecute
ShellExecuteEx
Shell_GetImageLists
Shell_NotifyIcon
SHEmptyRecycleBin
SHFileOperation
SHFormatDrive
SHGetFileInfo
SHGetFolderPath
SHGetPathFromIDList
SHGetSpecialFolderLocation
SHGetStockIconInfo
SHParseDisplayName
SHQueryRecycleBin
SHSimpleIDListFromPath
WinHelp
Code examples:
Accessing Adobe Reader 7.0 main menu from VFP application
Accessing examples contained in this reference from a VFP application
Accessing examples contained in this reference through Web Services
Accessing Windows Control Panel from VFP Application
GDI+: converting text strings to images and saving in a graphics file
GDI+: creating scaled copy of image file
GDI+: cropping images
GDI+: Drawing a Pie Chart
How to access a file using not its name but an alias (hard link)
How to control Adobe Reader 9.0 (SDI mode) from VFP application
How to display Windows On-Screen Keyboard
Mapping and disconnecting network drives
Reading the structure of VFP main menu
Saving HKEY_LOCAL_MACHINE\\Software\\ODBC Registry Entries to an XML file
Storing content of the Clipboard to a bitmap file
Using Shell for performing operations on files
Mapping and disconnecting network drives
User rating: 0/10 (0 votes)
Rate this code sample:
~
More code examples
Listed functions
Add comment
W32 Constants
Translate this page
Versions:
click to open
Before you begin:
Similar examples:
Connecting a local device to a network resource
Starting a dialog box for connecting to network resources (mapping network drive)
Enumerating Network Resources
Retrieving list of available disk drives
How to detect when a removable drive gets connected or disconnected
Members area. Log in to view this example.
User name:
Password:
Forgot your password?
Sign up for
the Membership
User rating: 0/10 (0 votes)
Rate this code sample:
~
9123 bytes
Created: 2003-02-18 19:21:15
Modified: 2011-12-10 09:20:22
Visits in 7 days: 304
Listed functions:
GetDriveType
GlobalAlloc
GlobalFree
GlobalSize
ShellExecute
WNetAddConnection2
WNetCancelConnection2
WNetGetConnection
My comment:
Jan.30, 2005: The FoxPro code has been rewritten with API functionality moved to non-visual LogicalDrive class.
* * *
Use Windows Script to map a network drive as follows:
oNet = CreateObject("WScript.Network")
oNet.MapNetworkDrive("Z:", "\\MyServer\Data")
Word Index links for this example:
Resource
dialog box
enumerating
network resource
network drive
disconnecting network drives
local device
removable drive
Frames not supported by your user agent
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.
Log in to post a comment
functions
•
examples
•
solutions
•
updates
•
about
•
links
•
articles
•
login
•
Copyright © 2001-2013
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.55-log), the Open Source standard SQL database,
AceHTML Freeware
Version 4, freeware HTML Editor of choice. Hosted by
Korax Online Inc.
Last Topics Visited
(54.235.20.17)
4.19 hrs.
Example: 'Start an executable from VFP application by using the CreateProcess'
8.47 hrs.
Example: 'Adding printer to the list of supported printers for the specified server'
Function: 'SetupDiGetClassImageIndex'
15 hrs.
Example: 'Using LoadLibrary'
Example: 'Using FrameRgn for displaying system colors'
16.53 hrs.
Example: 'Winsock: retrieving the host information corresponding to a network address'
1 day(s)
Example: 'Time in milliseconds represented as string (e.g. 1 hour 24 min 36 sec)'
Example: 'Using FtpCommand'
Example: 'Displaying printer-properties Property Sheet for the specified printer'
Function: 'GetWindowPlacement'
Function group: 'Window'
More last topics visited ...
Advertise here!