Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Using the CopyFile
Winsock: how to retrieve a service information corresponding to a service name
Winsock: initializing the service in the VFP application
Locking and unlocking file of a VFP table
Reading Internet Query options
Retrieving the IP-to-physical address mapping table
Using IsChild() for testing ThisForm.ShowWindow property
Using the Semaphore object
Who owns the Windows Clipboard
Building a tree of subdirectories for a given path using FindFile functions
Hiding mouse cursor
Obtaining heap handles and enumerating memory blocks for the current VFP session (WinNT only)
Pocket PC: System Registry Viewer
Current System information
How to drag a Form not using its Titlebar or Caption
Reading current hardware profile
Retrieving information about all users currently logged on to the workstation (WinNT only)
How to play a waveform sound (a WAV file in particular)
Memory usage info for current VFP session (WinNT only)
Determining whether or not the system is connected to the Internet
Enumerating connections made to a shared resource for the local computer (WinNT only)
Retrieving geometrical parameters of the system desktop window
Retrieving graphic capabilities of default printer
Saying "Hello World!" with VFP and WinAPI
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: 61  
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.231.49)
7.25 min.Example: 'Quering a waveform-audio input device'
8.55 hrs.Example: 'How to change the name and the size of the font in the MessageBox dialog'
 Example: 'Creating a device context for the specified printer'
11.1 hrs.Example: 'WAV file player'
 Example: 'Deleting files into the Recycle Bin'
11.22 hrs.Example: 'How to retrieve information about a cache entry (Internet Explorer)'
11.23 hrs.Example: 'How to print FoxPro form'
12.27 hrs.
Function group: 'GDI+ Pen'
16.54 hrs.Example: 'Opening access to the Microsoft Internet functions for the application'
 Function: 'GetForegroundWindow'
Function group: 'Window'
Google
Advertise here!