Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Using FrameRgn for displaying system colors
Winsock: how to retrieve a service information corresponding to a port
Converting a decimal string to an integer
Copying strings through the global memory block
Pocket PC: base class
Saving HKEY_LOCAL_MACHINE\\Software\\ODBC Registry Entries to an XML file
Testing an ODBC connection for supporting specific functionality
Clipping mouse cursor area
Displaying all TCP connections for the local system
Displaying Windows shell folders in TreeView control with Visual FoxPro FLL
How to find when the application started
How to perform Base64 encoding/decoding using Cryptography API Functions
How to write and read Window Properties for the specified window
Retrieving various system metrics
Using GetSysColor
Yet another modal dialog: now HTML-based
Converting long file names to the short format and vice versa
GDI+: cropping images
How to build UDP responder
How to position the GETPRINTER() dialog
How to start the screen saver and how to find whether the screen saver is active
StrDup returns a pointer to the duplicate of a source VFP string
GDI+: retrieving list of available image encoders and image decoders
How to display the Print property sheet
Obtaining the System and Windows folder names

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
Before you begin:
See also:
  • How to get Special Folders paths
  • Retrieving default spooling directory
  •  
    DECLARE INTEGER GetWindowsDirectory IN kernel32;
        STRING @lpBuffer, INTEGER nSize
     
    DECLARE INTEGER GetSystemDirectory IN kernel32;
        STRING @ lpBuffer, INTEGER nSize
     
    LOCAL lpBuffer, nSizeRet
     
    lpBuffer = SPACE (250)
    nSizeRet = GetSystemDirectory(@lpBuffer, Len(lpBuffer))
    lpBuffer = SUBSTR (lpBuffer, 1, nSizeRet)
    ? lpBuffer
     
    lpBuffer = SPACE (250)
    nSizeRet = GetWindowsDirectory(@lpBuffer, Len(lpBuffer))
    lpBuffer = SUBSTR (lpBuffer, 1, nSizeRet)
    ? lpBuffer
     

    User rating: 0/10 (0 votes)
    Rate this code sample:
    • ~
    473 bytes  
    Created: 2001-07-12 12:00:00  
    Modified: 2007-05-28 13:00:10  
    Visits in 7 days: 40  
    Listed functions:
    GetSystemDirectory
    GetWindowsDirectory
    Printer friendly API declarations
    My comment:
    ? GetEnv("windir")
    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.212.158)
    3 sec.Example: 'Converting command-line string to a set of Unicode argument strings (WinNT only)'
    6 sec.Function: 'GdipDrawImageRectI'
    Function group: 'GDI+ Graphics'
    5.68 hrs.Example: 'How to find the application associated with a file name'
     Function: 'GetModuleFileNameEx'
    Function group: 'Performance Monitoring'
    5.92 hrs.Function: 'StrToIntEx'
    Function group: 'String'
     Example: 'Using GetNearestColor'
    8.67 hrs.Example: 'Displaying dimmed window behind VFP top-level form'
    8.68 hrs.Example: 'GDI+: Color Transparency'
     Solution: 'Extended MessageBox library (FLL) for Visual FoxPro'
    10.17 hrs.Function: 'RegSetValueEx'
    Function group: 'Registry'
    Google
    Advertise here!