Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
List of addresses in the AutoDial mapping database
Using LoadLibrary
Extracting the name and extension parts of a path string
Extended OS Version info
Retrieving long values associated with the class of the VFP window
Retrieving the priority class for the current process
Validating the heap of the calling process
Who owns the Windows Clipboard
GetProcessVersion points at target OS
Memory usage info for current VFP session (WinNT only)
Retrieving default spooling directory name
Retrieving the name of the primary domain controller (PDC) and join status information (NT/2000/XP)
Displaying the drive type value
Enumerating files opened on the network
How to fill a buffer with random bytes using Cryptography API Functions
Pocket PC: System Registry Viewer
Retrieving a handle to DLL and address of an exported function in it
Using Shell for performing operations on files
Converting characters to upper or lower case
How to check whether the system is 32-bit or 64-bit
Joining local computer to a domain (XP/2000)
Reading keys in the specified section of the Win.ini file
StrDup returns a pointer to the duplicate of a source VFP string
URL: converting unsafe characters and spaces into escape sequences
GetFileOwner - Get the owner of an NTFS file

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
Before you begin:
The first version of this code sample was based on VB-to-VFP translation from VB example posted on DevX.com. For a given file the function returns account and domain names in a string.
 
  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:
  • ~
3259 bytes  
Created: 2004-02-25 20:58:36  
Modified: 2009-02-03 15:26:42  
Visits in 7 days: 76  
Listed functions:
GetFileSecurity
GetLastError
GetNamedSecurityInfo
GetSecurityDescriptorOwner
LocalFree
LocalSize
LookupAccountSid
Printer friendly API declarations
My comment:
A local computer is assumed. Otherwise change cSystemName value in the code from Chr(0) to the target computer name (null-terminated). The owner can be a serial port as well.
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)
9.09 hrs.Example: 'How to remove a directory that is not empty'
 Example: 'Setting the date and time that a file was created'
12.6 hrs.Example: 'Winsock: retrieving information from a host database for a given host name'
 Function: 'GdipScaleMatrix'
Function group: 'GDI+ Matrix'
12.72 hrs.Example: 'How to disable the Windows Clipboard (VFP9)'
Language: 'C#'
12.73 hrs.Example: 'Windows Shell Icons displayed and exported to ICO files (Vista)'
15.3 hrs.Example: 'Displaying the drive type value'
 Function: 'ControlService'
22.18 hrs.Example: 'Converting a hexadecimal string to an integer'
1 day(s)Function: 'SHAddToRecentDocs'
Google
Advertise here!