IntPtr to a boolean in VB?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: M K (mark_at_nospamcenturycolor.com)
Date: 12/09/04


Date: Thu, 9 Dec 2004 08:59:16 -0800

Wrapping an unmanaged DLL I've got this declaration:
 '------------------------------------------Set Attribute Value
 Declare Auto Function KSetAttributeValue Lib "DCSPro4SLR.dll"_
Alias "KPDCSetAttributeValue" (ByVal inRef As IntPtr, ByVal inAttrID As
Integer,_
ByVal inType As KPDCDataTypes, ByVal inAttrSize As Integer, ByVal
inAttrValue As IntPtr) As Integer

So, inType is an enumerator that tells the function what type (Integer,
String, Boolean) inAttrValue is, or actually is pointing to. So how to I
create a pointer to a boolean? I've created pointers that get passed by
reference and filled by the unmanaged library, but I haven't filled a pointer
myself.

Thanks.