Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get info from a pointer ?
Message
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00772050
Message ID:
00886087
Views:
14
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform