pointer to file

Hi. I am a newbie when it comes to Solidworks APIs and itsbeen awhile since I studied pointers. I used the Record Macrobutton to insert a sketch picture with in a sketch. Duringrecording I entered the width and hieght properties. When I Run themacro it inserts the image just fine but the scaling is notcorrect.

It turns out that the macro is calling the InsertSketchPicturemethod which does not have any input parameters defining pictureproperties.
pResult = ModelDoc2.InsertSketchPicture ( filename )

I would like to change my code to call the InsertSketchPictureDatamethod instead.
InsertSketchPictureData ( width, height, pDataIn )
But this requires a pointer to the file instead of just thefilename.

If someone could please help me to come up with a pointer to thefile I would really appreciate it. Thanks, BaldwinSolidworksApi macros