Variable type: "out long"
Posted: Mon Jan 28, 2019 3:12 pm
I try to change this csharp Code
[DllImport("Everything64.dll")]
public static extern bool Everything_GetResultDateModified(UInt32 nIndex, out long lpFileTime);
to vb.net code
Public Declare Function Everything_GetResultDateModified Lib "Everything32.dll" (ByVal nIndex As UInt32, ByVal lpFileTime As Long) As UInt32
but it dosen't work. the "out long" type is not known in vb.net. error: "PInvokeStackImbalance" - I tryed with "long" "double" "date" "obejct" - nothing works.
is there a syntax-list available for vb.net like in the SDK example for csharp? it would be great.
thanks a lot
[DllImport("Everything64.dll")]
public static extern bool Everything_GetResultDateModified(UInt32 nIndex, out long lpFileTime);
to vb.net code
Public Declare Function Everything_GetResultDateModified Lib "Everything32.dll" (ByVal nIndex As UInt32, ByVal lpFileTime As Long) As UInt32
but it dosen't work. the "out long" type is not known in vb.net. error: "PInvokeStackImbalance" - I tryed with "long" "double" "date" "obejct" - nothing works.
is there a syntax-list available for vb.net like in the SDK example for csharp? it would be great.
thanks a lot