Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to change display settings: screen resolution, screen refresh rate
Custom GDI+ class
Capturing keyboard activity of another application with the Raw Input API (VFP9)
How to display Windows On-Screen Keyboard
How to print a bitmap file
Using the LoadImage function to have a bitmap file loaded and displayed on VFP main window
Winsock: sending email messages (SMTP, port 25)
System Image List Viewer
Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera
Creating the Save dialog box to specify the drive, directory, and name of a file to save
Custom HttpRequest class (WinHTTP)
Printing Image File, programmatically set print page orientation to landscape
How to convert a bitmap file to monochrome format (1 bpp)
The window and its ancestors
Mapping and disconnecting network drives
How to download a file from the FTP server using FtpGetFile
Using EnumPrinters function to enumerate locally installed printers
Custom FTP Class for Visual FoxPro application
Displaying the associated icons and descriptions for files and folders
Displaying icons in the system tray (VFP9)
How to activate Windows Calculator
Drawing Windows predefined bitmaps using the LoadBitmap functions
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
Sending email messages with Simple MAPI
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: 71  
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 (107.21.156.140)
33.28 min.Function: 'InternetAttemptConnect'
Function group: 'Internet Functions (WinInet)'
33.33 min.
53.2 min.Example: 'How to display Windows On-Screen Keyboard'
53.27 min.Function: 'SHGetSpecialFolderLocation'
Function group: 'Shell Functions'
53.32 min.Example: 'Enumerating print processors and supporting data types installed on the specified server'
1.24 hrs.Example: 'Enumerating print jobs and retrieving information for default printer (JOB_INFO_1 structures)'
1.61 hrs.Function: 'MAPIResolveName'
Function group: 'Simple MAPI'
1.62 hrs.Example: 'How to create transparent areas inside a form -- punching holes in the form'
1.72 hrs.Example: 'Using vendor-neutral SQL constructs'
 Example: 'Bitmap Class for Visual FoxPro application'
Google
Advertise here!