Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Displaying Windows shell folders in TreeView control with Visual FoxPro FLL
GDI+: Color Transparency
How to download a file from HTTP server using URL Monikers functions
How to start the screen saver and how to find whether the screen saver is active
Reading Internet Query options
Retrieving long values associated with the class of the VFP window
WAV file recorder
Displaying all TCP connections for the local system
Displaying the drive type value
How to display a dialog box with which the user can add a data source (DSN)
How to play a waveform sound (a WAV file in particular)
Pocket PC: retrieving data from the Contacts Database
Retrieving the priority class for the current process
Enhanced GetFont dialog
GDI+: cropping images
How to display a Task Dialog (Vista)
Using the GradientFill function
Determining if an Active Network Connection is Available
GDI+: retrieving list of available image encoders and image decoders
Printing text on the main VFP window
Retrieving graphic capabilities of your display
Retrieving window and menu help context identifiers
Testing if a connection to an Url can be established
Yet another modal dialog: now HTML-based
Retrieving the System Time adjustment

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 GetLastError IN kernel32 
 
    DECLARE SHORT GetSystemTimeAdjustment IN kernel32.dll;
        INTEGER @ lpTimeAdjustment,;
        INTEGER @ lpTimeIncrement,;
        SHORT   @ lpTimeAdjustmentDisabled
 
    STORE 0 TO lpTimeAdjustment, lpTimeIncrement,;
        lpTimeAdjustmentDisabled
 
    IF GetSystemTimeAdjustment (@lpTimeAdjustment,;
        @lpTimeIncrement, @lpTimeAdjustmentDisabled) = 1
 
        ? "The time adjustment is: " +;
            Iif(lpTimeAdjustmentDisabled=0, "ENABLED", "disabled")
        ?
        ? "The number of 100-nanosecond units "
        ? "added to the time-of-day clock "
        ? "at each periodic time adjustment: "
        ?? lpTimeAdjustment
        ?
        ? "The interval, "
        ? "counted in 100-nanosecond units, "
        ? "between periodic time adjustments: "
        ?? lpTimeIncrement
    ELSE
        ? "GetSystemTimeAdjustment calling error: "
        ?? GetLastError()
    ENDIF
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
849 bytes  
Created: 2001-07-25 12:00:00  
Modified: 2001-09-28 16:45:22  
Visits in 7 days: 43  
Listed functions:
GetLastError
GetSystemTimeAdjustment
Printer friendly API declarations
My comment:
WinNT only. This function is not supported under Win9*
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 (23.22.252.150)
7 sec.Function: 'NetShareDel'
37.47 min.Example: 'Initiating Inet connection using a modem'
37.52 min.Function: 'waveInReset'
3.05 hrs.Example: 'Pocket PC: custom RAPI class for operating with the Object Store Databases'
5.15 hrs.Function: 'GlobalAlloc'
Function group: 'Memory Management'
7.38 hrs.Example: 'Obtaining list of tables stored in an ODBC Data Source'
 Example: 'Storing screen shot of a form to enhanced metafile (*.emf)'
 Example: 'Creating an Open dialog box to specify the drive, directory, and name of a file to open (Shell32 version)'
13.44 hrs.Example: 'Form Magnifier'
 Example: 'How to print picture stored in enhanced-format metafile (*.emf)'
Google
Advertise here!