引数の取得

GetCommandLine()とか
__argc、__argvを使います。

ネタ元