I'll have to change my UI when the application is lauched from

Desktop or Device Import (such as a digital camera) when connected to the USB port...

I'm using winEvent for this but am getting confused on the parameter that have to be passed.......(MSG * message, long * result )

can i directly put the UI code corresponding to desktop launch or the device import launch.... in a IF condition

like
if(.....where in i can know that this is from desktop launch)
{
UI correspoding to desktop launch
}
else
{
UI corresponding to device import launch
}