Using Win32 functions in Visual FoxPro Image Gallery
COM
..msdn
CLSIDFromString
CoCreateGuid
CoTaskMemFree
CreateStreamOnHGlobal
GetHGlobalFromStream
StringFromGUID2
Code examples:
Custom GDI+ class
Enumerating devices installed on the local machine
How to generate GUID values
Smart Card Database Query Functions
Winsock: retrieving information about available transport protocols
StringFromGUID2
..msdn    Add comment     W32 Constants      Translate this page
Converts a globally unique identifier (GUID) into a string of printable characters.
Code examples:
Custom GDI+ class
Enumerating devices installed on the local machine
How to generate GUID values
Smart Card Database Query Functions
Winsock: retrieving information about available transport protocols
Declaration:
int StringFromGUID2(
  REFGUID rguid,
  LPOLESTR lpsz,
  int cchMax
);
FoxPro declaration:
DECLARE INTEGER StringFromGUID2 IN ole32;
    STRING    rguid,;
    STRING  @ lpsz,;
    INTEGER   cchMax

Parameters:
rguid
[in] GUID to be converted.

lpsz
[out] Pointer to a caller-allocated string variable to contain the resulting string on return.

cchMax
[in] Number of characters available in the buffer indicated by lpsz.
Return value:
The number of characters in the returned string, including the null terminator or zero if the array at lpsz is too small to contain a string representation of a GUID.
My comment:
The string that the lpsz parameter receives has a format like that of the following sample:
{557cf400-1a04-11d3-9a73-0000f81ef32e}

See also: CLSIDFromString
Word Index links for the StringFromGUID2 :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-07-15 11:13:54
Modified: 2007-05-14 12:44:11
Visited in last 7 days: 108
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.82.79.109)
21 sec.Function: 'JetCloseTable'
45 sec.Function: 'NetUserEnum'
1.1 min.Function: 'GetFileSize'
1.52 min.Function: 'SQLExecDirect'
1.87 min.Function: 'UuidCreate'
2.3 min.Function: 'WSARecv'
2.7 min.
Function group: 'Debugging'
3.12 min.Function: 'IsMenu'
3.6 min.Function: 'CeRegEnumValue'
4.02 min.Function: 'SQLAllocHandle'
Google
Advertise here!