Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Setting properties of the window: caption and user-defined value
Using an Event Object. Part A: running an application that creates an Event object
Reading Internet Query options
Retrieving the names of all sections in an initialization file
Returning some basic information for the specified INF file
Using Path functions from Shell Lightweight Utility APIs (shlapi.dll)
How to download a file from HTTP server using URL Monikers functions
Retrieving information about MS-DOS device names using QueryDosDevice (WinNT only)
Retrieving the rectangle area where the mouse cursor is confined
How to get Special Folders paths
Obtaining I/O counts for the current process
Reading data from INI files
Using Shell for performing operations on files
Using the Semaphore object
Closing Windows
How to write and read Window Properties for the specified window
Obtaining the bounding rectangle for the specified device context
Running a regular FoxPro form while main VFP window is minimized
Setting the volume label
Testing Transparent Menu Class with top-level form (requires VFP9)
How to generate UUID values
Retrieving the System Time adjustment
GDI+: converting text strings to images and saving in a graphics file
GetFileOwner - Get the owner of an NTFS file
Setting the date and time that a file was created

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
Versions:
click to open
 
  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:
  • ~
1790 bytes  
Created: 2001-07-25 12:00:00  
Modified: 2011-12-10 09:20:22  
Visits in 7 days: 116  
Listed functions:
CloseHandle
GetLastError
GetSystemTime
GetSystemTimeAsFileTime
OpenFile
SetFileTime
SystemTimeToFileTime
Printer friendly API declarations
My comment:
The file handle must have been created with GENERIC_WRITE access to the file.

I tried to create the handle by using native FOPEN() function with different attributes. It did not work.

You can change any of three file time values or a combination of them. But not all file systems can record creation and last access time and not all file systems record them in the same manner. This way you can set the creation time to be later than its access and modification times.

* * *
In C# version, I use managed FileInfo object instead of accessing file times through the System.Runtime.InteropServices namespace.
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.42.16)
3.51 hrs.Example: 'Winsock: retrieving information from a host database for a given host name'
 Function: 'GdipScaleMatrix'
Function group: 'GDI+ Matrix'
3.63 hrs.Example: 'How to disable the Windows Clipboard (VFP9)'
Language: 'C#'
3.64 hrs.Example: 'Windows Shell Icons displayed and exported to ICO files (Vista)'
6.21 hrs.Example: 'Displaying the drive type value'
 Function: 'ControlService'
13.09 hrs.Example: 'Converting a hexadecimal string to an integer'
17.02 hrs.Function: 'SHAddToRecentDocs'
 Function: 'CreatePopupMenu'
20.71 hrs.Function: 'ImpersonateLoggedOnUser'
Google
Advertise here!