i'm new to c++ i tried to search the web for help, but has no sucess, 
I'm Trying to pass arguments to the CreateProfileWithIProfAdmin Function, i guess that the reason i fail to pass the args it's because it's a bool type function which accept only boolean values, however, i tried already to add (int argc, char *argv[]) to main() and to the CreateProfileWithIProfAdmin Function,
as you can see down inside the function there's variables for szProfile, szMailbox etc. my goal is to pass those variable directly from the commandline with args1 args2 etc.
What i need to do to pass char args to the function?
I'm VERY new to c++ and really appreciate any help, thanks...
// Function declarations
bool CreateProfileWithIProfAdmin();
void main()
{
    CreateProfileWithIProfAdmin();
}
// The Function i want to pass args to.. specifically the 3 chars variables
bool CreateProfileWithIProfAdmin()
{
    HRESULT         hRes = S_OK;            // Result from MAPI calls
    LPPROFADMIN     lpProfAdmin = NULL;     // Profile Admin object
    LPSERVICEADMIN  lpSvcAdmin = NULL;      // Service Admin object
    LPMAPITABLE     lpMsgSvcTable = NULL;   // Table to hold services
    LPSRowSet       lpSvcRows = NULL;       // Rowset to hold results of table query
    SPropValue      rgval[10];               // Property structure to hold values we want to set
    SRestriction    sres;                   // Restriction structure
    SPropValue      SvcProps;               // Property structure for restriction
    char            szProfile[80] = {0};    // String for profile name
    char            szMailbox[80] = {0};    // String for mailbox name
    char            szServer[80] = {0};     // String for server name
    // This indicates columns we want returned from HrQueryAllRows
    enum {iSvcName, iSvcUID, cptaSvc};
    SizedSPropTagArray(cptaSvc,sptCols) = { cptaSvc, PR_SERVICE_NAME, PR_SERVICE_UID };
 
    