Salve a tutti! Ho un progetto in C# che sto convertendo in VB.Net, ma non so come tradurre questa parte di codice... non so simulare i puntatori :
TBBUTTON è una struttura.
Grazie mille a tutti!!!!

codice:
// TBButton
fixed ( TBBUTTON* pTBButton = & tbButton )
{
	IntPtr ipTBButton = new IntPtr( pTBButton );

	int b = ( int ) User32.SendMessage( hToolbar, TB.GETBUTTON, ( IntPtr ) i, ipRemoteBuffer );
	if ( b == 0 ) { Debug.Assert( false ); return false; }

	// this is fixed
	Int32 dwBytesRead = 0;
	IntPtr ipBytesRead = new IntPtr( & dwBytesRead );

	bool b2 = Kernel32.ReadProcessMemory(
		hProcess,
		ipRemoteBuffer,
		ipTBButton,
		new UIntPtr( ( uint ) sizeof( TBBUTTON ) ),
		ipBytesRead );

	if ( ! b2 ) { Debug.Assert( false ); return false; }
}
codice:
[ StructLayout( LayoutKind.Sequential ) ]
internal struct TBBUTTON 
{
	public Int32 iBitmap;
	public Int32 idCommand;
	public byte fsState;
	public byte fsStyle;
	public byte bReserved1;
	public byte bReserved2;
	public UInt32 dwData;
	public IntPtr iString;
};