Changes the logic of the current method so that it will work as expected
on a NanoServer instance. Replaces the ctypes.addressof with
ctypes.pointer in order to avoid OS memory violation errors.
Change-Id: I971b60d1a84c1250a8e8d2f82351324faabff836
Closes-Bug: #1643915