Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Using the GetLogicalDriveStrings
Winsock: initializing the service in the VFP application
Winsock: retrieving information from a host database for a given host name
Creating a directory on the FTP
GDI+: reading and writing metadata in JPEG and TIFF files
GDI+: Using Scale and Shear transformations
Reading and setting system access privileges for the current process
GDI+: rotating images using matrix transformations
Using the MessageBox Win32 function
An alternative way of setting Form.Closable to False
DiskFreeSpace class
GDI+: Storing DLL icon resources in image files
Saving available locale records into a cursor
Using named pipes for interprocess communication
Accessing a CD device (cdaudio) with Multimedia Command Strings
GDI+: converting text strings to images and saving in a graphics file
How to drag a Form not using its Titlebar or Caption
How to save registry key including its subkeys and values to a file
Retrieving the rectangle area where the mouse cursor is confined
Who is the first in viewing the Clipboard
How to hot-track menu item selection in top-level form (requires VFP9)
Using the CopyFile
Who owns the Windows Clipboard
Closing Windows
Retrieving the name of the primary domain controller (PDC) and join status information (NT/2000/XP)

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
 
  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:
  • ~
2153 bytes  
Created: 2001-10-16 23:40:10  
Modified: 2011-12-10 09:20:22  
Visits in 7 days: 117  
Listed functions:
NetApiBufferFree
NetApiBufferSize
NetGetDCName
NetGetJoinInformation
Printer friendly API declarations
My comment:
Notice that SERVERNAME and DOMAIN name parameters are declared as Integers, not Strings, and are set to zero.

This is done to pass NULL values to the function instead of string values. In this case the local computer is used (SERVERNAME), and the function returns the name of the domain controller for the primary domain (DOMAIN).

Error 2453 means that your computer is not joined to domain. Use NetJoinDomain function or go through the network settings to join a domain.
Word Index links for this example:
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-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.234.180.187)
4 sec.Example: 'Disk in drive A:'
1.86 hrs.Function: 'GdipScaleMatrix'
 Function: 'CeGetVersionEx'
Function group: 'Remote Application Programming (RAPI)'
4.09 hrs.Example: 'Obtaining provider name for a specific type of network'
 Function: 'PathFileExists'
Function group: 'Shell Lightweight Utility APIs -- Path Functions'
 Function: 'GetTempFileName'
5.7 hrs.Function: 'SQLBindCol'
Function group: 'ODBC API'
 Example: 'Power capabilities of the system: battery, UPS, sleep and hibernation modes, processor throttling'
6.85 hrs.Function: 'RegOpenKeyEx'
 Example: 'Obtaining the System and Windows folder names'
Google
Advertise here!