Using Win32 functions in Visual FoxPro Image Gallery
Memory Management
..msdn
CopyMemory
FillMemory
GetProcessHeap
GetProcessHeaps
GlobalAlloc
GlobalFree
GlobalLock
GlobalMemoryStatus
GlobalReAlloc
GlobalSize
GlobalUnlock
HeapAlloc
HeapCompact
HeapFree
HeapLock
HeapReAlloc
HeapSize
HeapUnlock
HeapValidate
HeapWalk
LocalAlloc
LocalFree
LocalSize
VirtualAllocEx
VirtualFreeEx
ZeroMemory
Code examples:
Copying strings through the global memory block
Enumerating network resources
Opening the Page Setup dialog box to specify the attributes of a printed page
Passing data records between VFP applications via the Clipboard
Enumerating network resources

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:
This is an example of the output produced by the code sample below:
Microsoft Terminal Services
        \\tsclient
                \\tsclient\Y
                \\tsclient\E
                \\tsclient\D
                \\tsclient\C
Microsoft Windows Network
        $PCC
        PCCBASE
                \\DTS
                        \\DTS\_office
                        \\DTS\winapi
                        \\DTS\database
                        \\DTS\corp
                \\BASEDONALD
                \\BASESRV
                        \\BASESRV\Group_Docs
                        \\BASESRV\Group-Folders
                        \\BASESRV\Share
                        \\BASESRV\ofcscan
                        \\BASESRV\SERVERSW
                        \\BASESRV\ACCPAC
        WORKGROUP
                \\CHARLES-07PCBC
                \\MARIE-07PCBC
                \\PETER_PAN
                \\OFFICEUSER
                \\TOSHIBA
                \\MARIE-NB1
Web Client Network
LogMeIn Virtual Disk Network

See also:
  • Mapping and disconnecting network drives in FoxPro application
  • Get the list of servers of the specified type in the primary domain (WinNT only)

  •  
      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:
    • ~
    4175 bytes  
    Created: 2002-06-28 11:08:28  
    Modified: 2009-01-03 15:26:33  
    Visits in 7 days: 124  
    Listed functions:
    GlobalAlloc
    GlobalFree
    GlobalLock
    GlobalUnlock
    WNetCloseEnum
    WNetEnumResource
    WNetOpenEnum
    Printer friendly API declarations
    My comment:
    Feb.20, 2006: completely rewritten.

    Test NetResourcesRoot and BaseNetResource classes as follows:

    LOCAL oNetResources As NetResourcesRoot
    oNetResources = CREATEOBJECT("NetResourcesRoot")
    DO ShowResources WITH oNetResources, 0

    PROCEDURE ShowResources(oContainer, nLevel)
            LOCAL oRs As BaseNetResource

            FOR EACH oRs IN oContainer.netresources
                    WITH oRs
                            ? REPLICATE(" ", nLevel*4) + .remotename
                            IF oRs.IsContainer()
                                    DO ShowResources WITH oRs, nLevel+1
                            ENDIF
                    ENDWITH
            NEXT

    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.76.170)
    3 sec.Example: 'Configuring DEVMODE structure for a printer'
    4.26 hrs.Function: 'CeRegOpenKeyEx'
     Example: 'Verifying a file using the Authenticode policy provider'
    4.49 hrs.Example: 'Confining Windows calculator inside the VFP main window'
     Function: 'NetGroupEnum'
    7.32 hrs.Example: 'GetProcessVersion points at target OS'
    18.03 hrs.Example: 'Displaying Windows shell folders in TreeView control with Visual FoxPro FLL'
     Example: 'Uploading file to the FTP server using InternetWriteFile'
    23.46 hrs.Example: 'How to empty the Recycle Bin'
     Example: 'Quering waveform-audio output devices'
    Google
    Advertise here!