Merrion
Well-known member
The structure PRINTER_NOTIFY_OPTIONS_TYPE has a pointer to a variable length array of 16 bit integer flags as its last member. In VB-Classic I filled this by using the VarPtr keyword....how do I go about doing this in VB.Net?
i.e.
which is populated....
Thanks in advance,
Duncan
i.e.
Code:
Private Structure PRINTER_NOTIFY_OPTIONS_TYPE
Dim wType As Int16
Dim wReserved0 As Int16
Dim dwReserved1 As Int32
Dim dwReserved2 As Int32
Dim Count As Int32 \\Number of elements in the array
Dim pFields As Int32 \\Pointer to the array
End Type
which is populated....
Code:
Dim arTypes(0) As Int16
arTypes(0) = Job_Notify_Indexes.JOB_NOTIFY_FIELD_STATUS
With pTypeJob
.wType = Printer_Notification_Types.JOB_NOTIFY_TYPE
.Count = 1
.pFields = ???? (was VarPtr(arTypes(0))
End With
Thanks in advance,
Duncan