I am trying to write a "wrapper" for the WinXP function
"rundll32.exe shimgvw.dll,ImageView_Fullscreen %1"
I have it in a batch file and it works fine but I have been unable to figure out how to pass the filename inside of the PB code. I have;
At one point I was able to bring up the WinXP image viewer but could not get the file name. I can't find any documentation on how to call this function. I don't think I have the declaration correct and I'm guessing I need to "dummy up" the file name from the command line in a particular way.
"rundll32.exe shimgvw.dll,ImageView_Fullscreen %1"
I have it in a batch file and it works fine but I have been unable to figure out how to pass the filename inside of the PB code. I have;
Code:
DECLARE FUNCTION ImageView_Fullscreen LIB "C:\WINDOWS\system32\shimgvw.dll" ALIAS "ImageView_Fullscreen" (command_str AS STRING) AS LONG FUNCTION PBMAIN () AS LONG LOCAL n AS LONG LOCAL command_str AS STRING command_str = COMMAND$ n = ImageView_Fullscreen(command_str) END FUNCTION
Comment