Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get info from a pointer ?
Message
From
01/04/2003 10:15:56
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00772050
Message ID:
00772406
Views:
11
>>>DECLARE INTEGER GetPrinter IN winspool.drv ;
>>>INTEGER hPrinter, INTEGER Lvl, STRING @pPrinter,;
>>>INTEGER cbBuf, INTEGER @pcbNeeded
>>>
>>> Here is the structure of PRINTER_INFO_2 of GETPRINTER function
>>>
>>> pServerName As Long
>>> pPrinterName As Long
>>> pShareName As Long
>>> pPortName As Long
>>> pDriverName As Long
>>> pComment As Long
>>> pLocation As Long
>>> pDevMode As Long 'DEVMODE
>>> pSepFile As Long
>>> pPrintProcessor As Long
>>> pDatatype As Long
>>> pParameters As Long
>>> pSecurityDescriptor As Long 'SECURITY_DESCRIPTOR
>>> Attributes As Long
>>> Priority As Long
>>> DefaultPriority As Long
>>> StartTime As Long
>>> UntilTime As Long
>>> Status As Long
>>> cJobs As Long
>>> AveragePPM As Long
>>>
>>>How can i get the pDriverName value ?
>>
>>pDriverName = 0
>>RtlMoveMem(@pDriverName,SubStr(pPrinter,4*4+1,4),4)
>>Cetin
>
>What function is the RtlMoveMem? How would you declare it?

It'd be RtlMoveMemory.
"RtlMoveMemory moves memory either forward or backward, aligned or unaligned, in 4-byte blocks, followed by any remaining bytes."

Declare RtlMoveMemory In WIN32API ;
INTEGER @DestNumeric, ;
STRING @pVoidSource, ;
INTEGER nLength

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform