I run into a scenario that I am stuck. I have an exe, and in the program, there's this sequence:
1. Create an object provided by API.
2. Call that object to login.
3. On logoff, call that object to logoff
This is working fine; however, now what if I want to pass in command line to my program to logoff at any time that program is running. So in step 2, once the program is logged in. I want to be able to have a shortcut that I can point to that program.exe /logoff and it should call the step 3. It's not working so far, my guess is the object is a new object now and it doesn't tie to that existing object.
Perhaps, pass in the command line to the existing running exe? not sure if that's achieveable.
1. Create an object provided by API.
2. Call that object to login.
3. On logoff, call that object to logoff
This is working fine; however, now what if I want to pass in command line to my program to logoff at any time that program is running. So in step 2, once the program is logged in. I want to be able to have a shortcut that I can point to that program.exe /logoff and it should call the step 3. It's not working so far, my guess is the object is a new object now and it doesn't tie to that existing object.
Perhaps, pass in the command line to the existing running exe? not sure if that's achieveable.