Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to view system icons for the classes installed on the local machine
Obtaining I/O counts for the current process
Reading the state of mouse buttons within DO WHILE loop
Retrieveing information about the active window (even if it is not owned by the calling process)
Retrieving information about the main VFP window
Using the GetTempFileName
Using vendor-neutral SQL constructs
Verifying a file using the Authenticode policy provider
A procedure for setting file times
Copying strings through the global memory block
Finding the path to the VFP executable running
GDI+: Color Transparency
GDI+: Storing DLL icon resources in image files
How to download this reference`s archive through WinInet functions using InternetOpenUrl
Obtaining heap handles and enumerating memory blocks for the current VFP session (WinNT only)
Obtaining physical parameters for a drive: sectors, clusters, cylinders...
Obtaining Shell32.dll version
Retrieving the name of the primary domain controller (PDC) and join status information (NT/2000/XP)
Enumerating ODBC Data Sources available on the local computer
Obtaining OS memory performance information
Pocket PC: Folder Viewer
Returning some basic information for the specified INF file
Current keyboard type
Obtaining names of local and global groups for current user (WinNT/XP/2K)
Reading and setting system access privileges for the current process

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:
A privilege is the right of an account, such as a user or group account, to perform various system-related operations on the local computer, such as shutting down the system, loading device drivers, or changing the system time.

 
  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:
  • ~
6351 bytes  
Created: 2009-02-05 11:49:21  
Modified: 2009-02-05 13:40:34  
Visits in 7 days: 70  
Listed functions:
AdjustTokenPrivileges
CloseHandle
GetCurrentProcess
GetLastError
GetTokenInformation
LookupPrivilegeDisplayName
LookupPrivilegeName
LookupPrivilegeValue
OpenProcessToken
Printer friendly API declarations
My comment:
Read about Privileges on MSDN.
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.22.25.119)
20.35 min.Example: 'An alternative way of setting Form.Closable to False'
20.4 min.Example: 'Adding and deleting User Accounts'
55.78 min.Function: 'SetMapMode'
55.88 min.Function: 'FindText'
Function group: 'Common Dialog Box'
2.24 hrs.Function: 'GetInterfaceInfo'
Function group: 'IP Helper'
3.61 hrs.Example: 'How to Start a Process as Another User (NT/XP/2K)'
 Example: 'Using Change Notification Objects to monitor changes to the printer or print server'
5.92 hrs.Example: 'Converting path to original case'
 Example: 'Enumerating ODBC drivers available on the local computer'
8.41 hrs.Example: 'Initiating Inet connection using a modem'
Google
Advertise here!