I am calling GetGlyphIndices from Vb.Net. I am using a single character string. I get the correct value in the indices array for the character '6' but not for characters requiring 2 bytes to be returned.
Does anyone have any experience with this API call? My next step is to write the C equivalent and make sure I can get it working without interop.
My pinvoke declaration is:
<DllImport("gdi32.dll", EntryPoint:="GetGlyphIndicesW")> _
Private Shared Function GetGlyphIndices(ByVal hDC As IntPtr,
ByVal Text As String,
ByVal Count As Int32,
<MarshalAs(UnmanagedType.LPArray)> ByVal Indices() As UInt16,
ByVal Mode As Int32) As Int32
End Function
I have tried variations on this to no avail.