came up with following answers, it was tested and working nicely as arrow.
added this code in WinMain block.
LPWSTR *szArgList;
int argCount;
szArgList = CommandLineToArgvW((LPWSTR)GetCommandLine(), &argCount);
if (szArgList == NULL){
MessageBox(NULL, "Unable to parse command line", "Error", MB_OK);
return 10;
}
int wint = 1;
for(int i = 0; i < argCount; i++){
cout << "szArgList[i]: " << (LPSTR)szArgList[i] << endl;
string argsbek= (LPSTR)szArgList[i];
if (argsbek.find(" passMyword") != string::npos){
cout <<"words are passed ..."<<endl;
wint=2;
}
}
LocalFree(szArgList);