'As Any' is not supported in 'Declare' statements
The Any data type was used with Declare statements in Visual Basic 6.0 and earlier versions to permit the use of arguments that could contain any type of data. Visual Basic supports overloading, however, and so makes the Any data type obsolete.
Error ID: BC30828
To correct this error
Use the MarshalAsAttribute attribute to specify As Any when Void* is expected by the procedure being called.