Pass Currently opened COMPANYID to C# program in Sage 2012

SOLVED

Hi,
I have create a new program using C# to be used inside Sage300 as a program.
Currently to create a session, I hardcode the companyID for the parameter.
However, the program is going to be used by multiple companies.

Hence my question, how to pass the CompanyID of the currently opened Company as argument below?