develooper Front page | perl.perl6.users | Postings from December 2022

Tip: use of pointers example

From:
ToddAndMargo via perl6-users
Date:
December 2, 2022 01:40
Subject:
Tip: use of pointers example
Message ID:
4e441bfc-6a8a-6b19-a8c9-da431ab27253@zoho.com
Hi All,

Windows 11 pro 22H2

The following is a test example of the use of
pointers for calling Windows DLL's and
for copying data out of structures when given
a pointer to the structure.

Before you tell me there is an easier way to
get the computer name out of "GetComputerNameA,"
this is to show the use of pointers and to
specifically test "memcpy_s".

https://pastebin.com/ni3J5hvD

HTH someone else
-T


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About