Variable type: "out long"

Plug-in and third party software discussion.
Post Reply
Icewather
Posts: 2
Joined: Sun Jan 27, 2019 9:48 pm

Variable type: "out long"

Post by Icewather »

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
void
Developer
Posts: 16665
Joined: Fri Oct 16, 2009 11:31 pm

Re: Variable type: "out long"

Post by void »

Added Visual Basic SDK example with Everything_GetResultSize and Everything_GetResultDateModified:
/support/everything/sdk/visual_basic/
Icewather
Posts: 2
Joined: Sun Jan 27, 2019 9:48 pm

Re: Variable type: "out long"

Post by Icewather »

Thanks a lot!! great! you helped me very much!!
Post Reply