Using Win32 functions in Visual FoxPro Image Gallery
Remote Procedure Call (RPC)
RpcStringFree
UuidCompare
UuidCreate
UuidCreateNil
UuidCreateSequential
UuidFromString
UuidToString
Code examples:
How to generate UUID values
How to generate UUID values

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 generate GUID values
  •  
    FOR nIndex=1 TO 10
        ? GetUUID()
    NEXT
    * end of main
     
    PROCEDURE GetUUID()
        DECLARE INTEGER UuidCreate IN Rpcrt4 STRING @Uuid
        DECLARE INTEGER RpcStringFree IN Rpcrt4 LONG @StringUuid
     
        DECLARE INTEGER UuidToString IN Rpcrt4;
            STRING @Uuid, LONG @StringUuid
     
        DECLARE RtlMoveMemory IN kernel32 As MemToStr;
            STRING @, INTEGER, INTEGER
     
        LOCAL cUUID, hBuffer, nBufsize, cResult
        cResult=""
        hBuffer=0
        cUUID=REPLICATE(CHR(0), 16)
     
        = UuidCreate(@cUUID)
     
        IF UuidToString(@cUUID, @hBuffer)=0
            nBufsize=36
            cResult=REPLICATE(CHR(0), nBufsize)
            MemToStr(@cResult, hBuffer, nBufsize)
            RpcStringFree(@hBuffer)
        ENDIF
        cResult=UPPER(STRTRAN(m.cResult, CHR(0), ""))
    RETURN m.cResult
     

    User rating: 0/10 (0 votes)
    Rate this code sample:
    • ~
    706 bytes  
    Created: 2001-07-12 12:00:00  
    Modified: 2010-01-27 10:32:01  
    Visits in 7 days: 76  
    Listed functions:
    RpcStringFree
    UuidCreate
    UuidToString
    Printer friendly API declarations
    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 (50.19.155.235)
    3 sec.Function: 'CopyFileTransacted'
    1.97 hrs.Function: 'DeleteService'
    5.6 hrs.Example: 'Retrieving top-child window for the VFP form'
     Example: 'Custom FTP Class for Visual FoxPro application'
    11.88 hrs.Function: 'CreateHardLink'
    Function group: 'File Management'
     Function: 'LookupAccountName'
    Function group: 'Security'
    14.68 hrs.Example: 'Displaying all TCP connections for the local system'
     Example: 'Retrieving geometrical parameters of the system desktop window'
    1 day(s)Example: 'Displaying bitmap using the AlphaBlend function'
     Example: 'Creating a directory on the FTP'
    Language: 'C#'
    Google
    Advertise here!