Using Win32 functions in Visual FoxPro Image Gallery
COM
..msdn
CLSIDFromString
CoCreateGuid
CoTaskMemFree
CreateStreamOnHGlobal
GetHGlobalFromStream
StringFromGUID2
Code examples:
CreateStreamOnHGlobal
..msdn    Add comment     W32 Constants      Translate this page
The CreateStreamOnHGlobal function creates a stream object stored in global memory.
Code examples:
Declaration:
WINOLEAPI CreateStreamOnHGlobal(
  HGLOBAL hGlobal,
  BOOL fDeleteOnRelease,
  LPSTREAM* ppstm
);
FoxPro declaration:
DECLARE INTEGER CreateStreamOnHGlobal IN ole32;
    INTEGER   hGlobal,;
    INTEGER   fDeleteOnRelease,;
    INTEGER @ ppstm

Parameters:
hGlobal
[in] Memory handle allocated by the GlobalAlloc function. The handle must be allocated as movable and nondiscardable.

fDeleteOnRelease
[in] Whether the underlying handle for this stream object should be automatically freed when the stream object is released. If set to FALSE, the caller must free the hGlobal after the final release.

ppstm
[out] Address of IStream* pointer variable that receives the interface pointer to the new stream object. Its value cannot be NULL.
Return value:
Returns S_OK (0) if the stream object was created successfully.
Word Index links for the CreateStreamOnHGlobal :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-08-12 21:03:52
Modified: 2004-08-12 21:09:00
Visited in last 7 days: 3
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.37), 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.126.144)
14 sec.Function: 'CommDlgExtendedError'
26 sec.Function: 'Escape'
38 sec.Function: 'GetKeyState'
52 sec.Function: 'FindNextVolume'
1.1 min.
Function group: 'Common Dialog Box'
1.32 min.Function: 'DeleteMenu'
1.53 min.Function: 'CreateWindowEx'
1.73 min.Function: 'AssocQueryString'
1.97 min.Function: 'EnumJobs'
2.18 min.Article: 'ApiViewer for Visual FoxPro '
Google
Advertise here!