Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get info from a pointer ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00772050
Message ID:
00886087
Vues:
15
Hi Bernhart,

It's not a complete code but an examole that shows how to use Heap allocation class function to extract particular piece of info. Please create a new thread an explain what you're after.

>Hi sergey,
>
>When i try i have "variable lnHandle not found"
>
>What can i do ?
>
>bernhart
>
>>
>>Download Heap allocation class File #9482.
Declare Integer GetPrinter in WinSpool.Drv as WS_GetPrinter ;
>>		Integer hPrinter, ;
>>		Integer Level, ;
>>		String  @pPrinter, ;
>>		Integer cbBuf, ;
>>		Integer @pcbNeeded
>>
>>SET PROCEDURE TO clsheap
>>lnNeeded = 4096
>>lcBuffer = REPLICATE( CHR(0), lnNeeded)
>>lnOK = WS_GetPrinter( lnHandle, 2, @lcBuffer, lnNeeded, @lnNeeded )
>>lcDriverName = GetMemString(DwordToNum(SUBSTR(lcBuffer,13,4)))
>>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform