- This topic has 1 reply, 1 voice, and was last updated 14 years, 6 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
The TWAIN Resource site is designed to help TWAIN users and prospective users find resources in the community for TWAIN-related products and services. Become a member.
Home › Forums › TWAIN Classic › DSM_Entry use in C#
I am using SDM_Entry with Control, Identity and GetDefault, the last parameter requires IntPtr. I have TwIdentity = srcds that I need to pass in place of the last argument. Does anyone know how to pass it in place of th last parameter or how to convert it to IntrPtr in C#? I have experimented to use unsafe &srcds. As it seems C# does not allow the address conversion of struct.
Can anyone advie?
Never mind I have figured it:
[DllImport(“twain_32.dll”, EntryPoint = “#1”)]
private static extern TwRC foo([In, Out] TwIdentity origin, IntPtr zeroptr, TwDG dg, TwDAT dat, TwMSG msg, [In, Out] TwIdentity idds);