diff --git a/HEZON_ITK/HEZON_ITK.vcxproj b/HEZON_ITK/HEZON_ITK.vcxproj index bae9ec3..54a825b 100644 --- a/HEZON_ITK/HEZON_ITK.vcxproj +++ b/HEZON_ITK/HEZON_ITK.vcxproj @@ -29,20 +29,20 @@ Application true Unicode - v140 + v142 Application true Unicode - v140 + v142 Application false true Unicode - v140 + v142 DynamicLibrary @@ -141,6 +141,8 @@ libuser_exits.ar.lib;%(IgnoreSpecificDefaultLibraries) $(OutDir)\bs.dll /FORCE %(AdditionalOptions) + + false @@ -163,10 +165,13 @@ + + + @@ -175,10 +180,13 @@ + + + @@ -194,6 +202,7 @@ + @@ -202,5 +211,6 @@ + \ No newline at end of file diff --git a/HEZON_ITK/HEZON_ITK.vcxproj.filters b/HEZON_ITK/HEZON_ITK.vcxproj.filters index 5a4dab7..b669544 100644 --- a/HEZON_ITK/HEZON_ITK.vcxproj.filters +++ b/HEZON_ITK/HEZON_ITK.vcxproj.filters @@ -113,6 +113,24 @@ epm-handler + + epm-handler + + + epm-handler + + + epm-handler + + + epm-handler + + + epm-handler + + + epm-handler + diff --git a/HEZON_ITK/bs_bom_save_check.cpp b/HEZON_ITK/bs_bom_save_check.cpp index c02fa38..8a72dff 100644 --- a/HEZON_ITK/bs_bom_save_check.cpp +++ b/HEZON_ITK/bs_bom_save_check.cpp @@ -1,49 +1,43 @@ #include "util.h" -void save_judge(tag_t top, string &check, string &name, vector &type_vec, vector &quantity_type_vec, stringstream &ss, stringstream &status_ss) -{ +void save_judge(tag_t top, string &check, string &name, vector &type_vec, vector &quantity_type_vec, stringstream &ss, stringstream &status_ss) { int line_cnt; tag_t *lines; BOM_line_ask_child_lines(top, &line_cnt, &lines); char *val; - for (int i = 0; i < line_cnt; i++) - { + for (int i = 0; i < line_cnt; i++) { AOM_ask_value_string(lines[i], "bl_item_object_type", &val); printf("type :%s\n", val); if (find(type_vec.begin(), type_vec.end(), val) != type_vec.end()) continue; - if (find(quantity_type_vec.begin(), quantity_type_vec.end(), val) != quantity_type_vec.end()) - { + if (find(quantity_type_vec.begin(), quantity_type_vec.end(), val) != quantity_type_vec.end()) { char *test; AOM_ask_value_string(lines[i], "JD2_SFHL", &test); printf("JD2_SFHL:%s\n", test); - if(tc_strcmp(test,"1")==0) + if (tc_strcmp(test, "1") == 0) AOM_ask_value_string(lines[i], "JD2_sl", &val); else AOM_ask_value_string(lines[i], "bl_quantity", &val); - if (tc_strlen(val) == 0) - { + if (tc_strlen(val) == 0) { AOM_ask_value_string(lines[i], "bl_rev_object_string", &val); - ss << val << ","; + ss << val << ",\n"; } } AOM_UIF_ask_value(lines[i], "jd2_last_release_status", &val); string temp = val; printf("length:%llu status:%s\n", temp.length(), val); - if (temp.length() == 0 || check.find(temp) != -1) - { + if (temp.length() == 0 || check.find(temp) != -1) { AOM_ask_value_string(lines[i], "bl_rev_object_string", &val); - status_ss << val << ","; + status_ss << val << ",\n"; } - save_judge(lines[i], check, name, type_vec, quantity_type_vec, ss,status_ss); - + save_judge(lines[i], check, name, type_vec, quantity_type_vec, ss, status_ss); + } } -int bs_bom_save_check(METHOD_message_t *msg, va_list args) -{ +int bs_bom_save_check(METHOD_message_t *msg, va_list args) { printf("bs_bom_save_check start11\n"); logical is_judge = false; @@ -56,7 +50,7 @@ int bs_bom_save_check(METHOD_message_t *msg, va_list args) tag_t win = va_arg(args, tag_t), top; char *check_val, **type_val, **quantity_type; string name, check; - stringstream ss,status_ss; + stringstream ss, status_ss; int type_cnt, quantity_type_cnt; PREF_ask_char_value("connor_bom_check_value", 0, &check_val); PREF_ask_char_values("connor_bom_check_type", &type_cnt, &type_val); @@ -66,9 +60,8 @@ int bs_bom_save_check(METHOD_message_t *msg, va_list args) check = check_val; BOM_ask_window_top_line(win, &top); - save_judge(top, check, name, type_vec, quantity_type_vec, ss, status_ss); - if (ss.str().length()) - { + save_judge(top, check, name, type_vec, quantity_type_vec, ss, status_ss); + if (ss.str().length()) { ss << "物料数量为空,请填写!\n"; ifail = 1; } diff --git a/HEZON_ITK/bs_bom_transmit_check.cpp b/HEZON_ITK/bs_bom_transmit_check.cpp index 27e3d78..9c360c1 100644 --- a/HEZON_ITK/bs_bom_transmit_check.cpp +++ b/HEZON_ITK/bs_bom_transmit_check.cpp @@ -70,8 +70,9 @@ int bs_bom_transmit_check(EPM_rule_message_t msg) } else { - POM_AM__set_application_bypass(false); - return EMH_store_error_s1(EMH_severity_error, EMH_IDGENERATION_ERROR_BASE, "This material cannot initiate a process"); + //POM_AM__set_application_bypass(false); + //return EMH_store_error_s1(EMH_severity_error, EMH_IDGENERATION_ERROR_BASE, "This material cannot initiate a process"); + BOMNum = BOMNum + 1; } } diff --git a/HEZON_ITK/bs_sap.cpp b/HEZON_ITK/bs_sap.cpp index 28d9105..ab0ee0e 100644 --- a/HEZON_ITK/bs_sap.cpp +++ b/HEZON_ITK/bs_sap.cpp @@ -24,11 +24,14 @@ int bs_sap_material(EPM_action_message_t msg) { paras[temp_key] = temp_val; } string d0 = "D00", d1 = "D0"; - for (int i = 0;i < 67;i++) { - if (i > 8) { - + for (int i = 0; i < 70; i++) { + if (i > 67) { + class_map[1000 + i + 1] = d1 + to_string(i + 1); + } + else if (i > 8) { class_map[1000 + i] = d1 + to_string(i + 1); - } else { + } + else { class_map[1000 + i] = d0 + to_string(i + 1); } } @@ -36,7 +39,7 @@ int bs_sap_material(EPM_action_message_t msg) { PREF_ask_char_values("connor_sap", &pref_cnt, &pref_vals); split(pref_vals[4], ",", &rel_vec); - for (int i = 0;i < rel_vec.size();i++) { + for (int i = 0; i < rel_vec.size(); i++) { vector temp_vec; split(rel_vec[i], "=", &temp_vec); if (temp_vec.size() == 2) { @@ -85,7 +88,7 @@ int bs_sap_material(EPM_action_message_t msg) { char **relations; form = attachments[i]; WSOM_where_referenced2(form, 1, &rel_cnt, &levels, &rels, &relations); - for (int j = 0;j < rel_cnt;j++) { + for (int j = 0; j < rel_cnt; j++) { if (tc_strcmp(relations[j], "IMAN_master_form") == 0) { rev = rels[j]; } @@ -94,6 +97,21 @@ int bs_sap_material(EPM_action_message_t msg) { printf("revision get error\n"); continue; } + char* item_type; + AOM_ask_value_string(rev, "object_type", &item_type); + int pref_cnt; + char** pref_values; + PREF_ask_char_values("connor_wl_type", &pref_cnt, &pref_values); + bool flag = false; + for (int ii = 0; ii < pref_cnt; ii++) { + if (tc_strcmp(pref_values[ii], item_type) == 0) { + flag = true; + } + } + if (!flag) { + printf("revision is not wl\n"); + continue; + } char *item_id; AOM_ask_value_string(rev, "item_id", &item_id); // GRM_list_secondary_objects_only(attachments[i], relation_type, &rel_cnt, &rels); @@ -105,7 +123,8 @@ int bs_sap_material(EPM_action_message_t msg) { if (j->second == "item_id") { AOM_ask_value_string(rev, j->second.c_str(), &val); temp_val = val; - } else if (j->second == "release_status_list") { + } + else if (j->second == "release_status_list") { // int status_cnt; // tag_t *rel_status; // AOM_ask_value_tags(form, j->second.c_str(), &status_cnt, &rel_status); @@ -113,10 +132,12 @@ int bs_sap_material(EPM_action_message_t msg) { // AOM_UIF_ask_value(rel_status[status_cnt - 1], "object_string", &val); // temp_val = rel_map[val]; temp_val = paras["status"]; - } else if (j->second == "jd2_dldw") { + } + else if (j->second == "jd2_dldw") { AOM_UIF_ask_value(form, j->second.c_str(), &val); temp_val = val; - } else { + } + else { tag_t lov; AOM_ask_lov(form, j->second.c_str(), &lov); if (lov) @@ -133,11 +154,20 @@ int bs_sap_material(EPM_action_message_t msg) { char ***vals; int cnt, *ids, *val_count; ICS_ico_ask_attributes(class_obj, &cnt, &ids, &val_count, &vals); - for (int j = 0;j < cnt;j++) { + for (int j = 0; j < cnt; j++) { printf("id:%d\n", ids[j]); if (class_map.find(ids[j]) != class_map.end()) { - if (val_count[j]) - dic[convert_to_cstring(class_map[ids[j]].c_str())] = convert_to_cstring(vals[j][0]); + if (ids[j] == 1069) {//层级下拉框特殊处理 Hierarchical drop-down box special handling + char* temp; + AOM_ask_value_string(form, "jd2_flbm", &temp); + cout << "class prop id 1069, jd2_flbm:" << temp << endl; + dic[convert_to_cstring(class_map[ids[j]].c_str())] = convert_to_cstring(temp); + } + else { + if (val_count[j]) { + dic[convert_to_cstring(class_map[ids[j]].c_str())] = convert_to_cstring(vals[j][0]); + } + } } } } @@ -190,8 +220,8 @@ void get_bom(System::Collections::Generic::List (index + 4)) { quantity = quantity.substr(0, index + 4); } - } else { + } + else { AOM_ask_value_string(lines[j], "bl_quantity", &val); quantity = val; } @@ -262,7 +293,8 @@ void get_bom(System::Collections::Generic::List 0) { printf("obj:%s pid:%s\n", obj_str, pid.c_str()); - } else { + } + else { printf("obj:%s pid:%s\n", obj_str, id); } get_bom(a_list, lines[j], werks, stlan, pid.length() > 0 ? pid : id, relation_type, child_is_hl, is_judge, bom_ids); diff --git a/HEZON_ITK/epm_handler_common.h b/HEZON_ITK/epm_handler_common.h index 8fa1966..6047652 100644 --- a/HEZON_ITK/epm_handler_common.h +++ b/HEZON_ITK/epm_handler_common.h @@ -58,6 +58,12 @@ extern "C" { int jd_check_bom_99(EPM_rule_message_t msg); int jd_check_ID_wllx(EPM_rule_message_t msg); int jd_check_99_cglx(EPM_rule_message_t msg); + int jd_auto_revise(EPM_action_message_t msg); + int jd_send_mail2(EPM_action_message_t msg); + int jd_get_target2(EPM_action_message_t msg); + int jd_rev_release(EPM_rule_message_t msg); + int jd_prop_relate(METHOD_message_t *msg, va_list args); + int jd_splicing_task(EPM_action_message_t msg); ////锟斤拷锟斤拷锟斤拷锟斤拷息签锟斤拷姹撅拷锟斤拷锟斤拷锟饺 //int qtmc_sign_ir(EPM_action_message_t msg); diff --git a/HEZON_ITK/epm_register_handler.cxx b/HEZON_ITK/epm_register_handler.cxx index d8951e6..4c94de2 100644 --- a/HEZON_ITK/epm_register_handler.cxx +++ b/HEZON_ITK/epm_register_handler.cxx @@ -40,7 +40,7 @@ $HISTORY$ #include "epm_register_handler.h" #include "epm_handler_common.h" - +#include "util.h" // Method and Workflow Handler extern DLLAPI int CUST_init_module(int *decision, va_list args) { @@ -56,7 +56,8 @@ extern DLLAPI int CUST_init_module(int *decision, va_list args) { (EPM_action_handler_t)bs_file_transfer); if (ifail) { printf("register bs_file_transfer failed\n"); - } else { + } + else { printf("register bs_file_transfer successfully\n"); } @@ -64,7 +65,8 @@ extern DLLAPI int CUST_init_module(int *decision, va_list args) { (EPM_action_handler_t)bs_sap_material); if (ifail) { printf("register bs_sap_material failed\n"); - } else { + } + else { printf("register bs_sap_material successfully\n"); } @@ -72,21 +74,24 @@ extern DLLAPI int CUST_init_module(int *decision, va_list args) { (EPM_action_handler_t)bs_sap_bom); if (ifail) { printf("register bs_sap_bom failed\n"); - } else { + } + else { printf("register bs_sap_bom successfully\n"); } ifail = EPM_register_rule_handler("bs_bom_check", "bs_bom_check", (EPM_rule_handler_t)bs_bom_check); if (ifail) { printf("register bs_bom_check failed\n"); - } else { + } + else { printf("register bs_bom_check successfully\n"); } ifail = EPM_register_rule_handler("bs_wl_check", "bs_wl_check", (EPM_rule_handler_t)bs_wl_check); if (ifail) { printf("register bs_wl_check failed\n"); - } else { + } + else { printf("register bs_wl_check successfully\n"); } @@ -94,7 +99,8 @@ extern DLLAPI int CUST_init_module(int *decision, va_list args) { (EPM_action_handler_t)bs_sign_cad); if (ifail) { printf("register bs_sign_cad failed\n"); - } else { + } + else { printf("register bs_sign_cad successfully\n"); } @@ -102,7 +108,8 @@ extern DLLAPI int CUST_init_module(int *decision, va_list args) { (EPM_action_handler_t)bs_test_release_check); if (ifail) { printf("register bs_test_release_check failed\n"); - } else { + } + else { printf("register bs_test_release_check successfully\n"); } @@ -111,7 +118,8 @@ extern DLLAPI int CUST_init_module(int *decision, va_list args) { (EPM_action_handler_t)jd_signoff); if (ifail) { printf("register jd_signoff failed\n"); - } else { + } + else { printf("register jd_signoff successfully\n"); } @@ -119,14 +127,16 @@ extern DLLAPI int CUST_init_module(int *decision, va_list args) { (EPM_action_handler_t)jd_schedule_joint); if (ifail == ITK_ok) { fprintf(stdout, "Registering action handler jd_schedule_joint completed!\n"); - } else { + } + else { fprintf(stdout, "Registering action handler jd_schedule_joint failed %d!\n", ifail); } ifail = EPM_register_action_handler("jd_batch_process", "jd_batch_process", (EPM_action_handler_t)jd_batch_process); if (ifail) { printf("register jd_batch_process failed\n"); - } else { + } + else { printf("register jd_batch_process successfully\n"); } @@ -134,14 +144,16 @@ extern DLLAPI int CUST_init_module(int *decision, va_list args) { (EPM_action_handler_t)jd_add_attachments); if (ifail) { printf("register jd_add_attachments failed\n"); - } else { + } + else { printf("register jd_add_attachments successfully\n"); } ifail = EPM_register_rule_handler("jd_check_99_bomyt", "jd_check_99_bomyt", (EPM_rule_handler_t)jd_check_99_bomyt); if (ifail) { printf("register jd_check_99_bomyt failed\n"); - } else { + } + else { printf("register jd_check_99_bomyt successfully\n"); } @@ -149,28 +161,32 @@ extern DLLAPI int CUST_init_module(int *decision, va_list args) { (EPM_action_handler_t)jd_send_mail); if (ifail) { printf("register jd_send_mail failed\n"); - } else { + } + else { printf("register jd_send_mail successfully\n"); } ifail = EPM_register_action_handler("jd_get_target", "jd_get_target", (EPM_action_handler_t)jd_get_target); if (ifail) { printf("register jd_get_target failed\n"); - } else { + } + else { printf("register jd_get_target successfully\n"); } ifail = EPM_register_rule_handler("jd_check_wlms_len", "jd_check_wlms_len", (EPM_rule_handler_t)jd_check_wlms_len); if (ifail) { printf("register jd_check_wlms_len failed\n"); - } else { + } + else { printf("register jd_check_wlms_len successfully\n"); } ifail = EPM_register_rule_handler("bs_bom_transmit_check", "bs_bom_transmit_check", (EPM_rule_handler_t)bs_bom_transmit_check); if (ifail) { printf("register bs_bom_transmit_check failed\n"); - } else { + } + else { printf("register bs_bom_transmit_check successfully\n"); } @@ -178,7 +194,8 @@ extern DLLAPI int CUST_init_module(int *decision, va_list args) { (EPM_rule_handler_t)jd_check_bom_use); if (ifail) { printf("register jd_check_bom_use failed\n"); - } else { + } + else { printf("register jd_check_bom_use successfully\n"); } @@ -186,22 +203,64 @@ extern DLLAPI int CUST_init_module(int *decision, va_list args) { (EPM_rule_handler_t)jd_check_bom_99); if (ifail) { printf("register jd_check_bom_99 failed\n"); - } else { + } + else { printf("register jd_check_bom_99 successfully\n"); } ifail = EPM_register_rule_handler("jd_check_ID_wllx", "jd_check_ID_wllx", (EPM_rule_handler_t)jd_check_ID_wllx); if (ifail) { printf("register jd_check_ID_wllx failed\n"); - } else { + } + else { printf("register jd_check_ID_wllx successfully\n"); } ifail = EPM_register_rule_handler("jd_check_99_cglx", "jd_check_99_cglx", (EPM_rule_handler_t)jd_check_99_cglx); if (ifail) { printf("register jd_check_99_cglx failed\n"); - } else { + } + else { printf("register jd_check_99_cglx successfully\n"); } + ifail = EPM_register_action_handler("jd_auto_revise", "jd_auto_revise", (EPM_action_handler_t)jd_auto_revise); + if (ifail) { + printf("register jd_auto_revise failed\n"); + } + else { + printf("register jd_auto_revise successfully\n"); + } + ifail = EPM_register_action_handler("jd_send_mail2", "jd_send_mail2", + (EPM_action_handler_t)jd_send_mail2); + if (ifail) { + printf("register jd_send_mail2 failed\n"); + } + else { + printf("register jd_send_mail2 successfully\n"); + } + ifail = EPM_register_action_handler("jd_get_target2", "jd_get_target2", + (EPM_action_handler_t)jd_get_target2); + if (ifail) { + printf("register jd_get_target2 failed\n"); + } + else { + printf("register jd_get_target2 successfully\n"); + } + ifail = EPM_register_rule_handler("jd_rev_release", "jd_rev_release", + (EPM_rule_handler_t)jd_rev_release); + if (ifail) { + printf("register jd_rev_release failed\n"); + } + else { + printf("register jd_rev_release successfully\n"); + } + ifail = EPM_register_action_handler("jd_splicing_task", "jd_splicing_task", + (EPM_action_handler_t)jd_splicing_task); + if (ifail) { + printf("register jd_splicing_task failed\n"); + } + else { + printf("register jd_splicing_task successfully\n"); + } //if(ifail == ITK_ok) //{ // fprintf(stdout,"Registering action handler qtmc-sign-ir completed!\n"); @@ -211,7 +270,6 @@ extern DLLAPI int CUST_init_module(int *decision, va_list args) { // fprintf(stdout , "Registering action handler qtmc-sign-ir failed %d!\n",ifail); //} - return ifail; } // @@ -228,7 +286,8 @@ extern DLLAPI int USERSERVICE_custom_register_methods() { if (status == ITK_ok) { printf("register bomwindow_save success\n"); - } else { + } + else { printf("register bomwindow_save failed\n"); } @@ -242,12 +301,41 @@ extern DLLAPI int USERSERVICE_custom_register_methods() { status = USERSERVICE_register_method("bs_bypass", functionPtr, numberOfArguments, argumentList, returnValueType); if (status == ITK_ok) { printf("register bs_bypass success\n"); - } else { + } + else { printf("register bs_bypass failed\n"); } } + vector form_types; + form_types.push_back("JD2_GTZJRevisionMaster"); + form_types.push_back("JD2_GTBJRevisionMaster"); + form_types.push_back("JD2_BLZJRevisionMaster"); + form_types.push_back("JD2_BLBJRevisionMaster"); + form_types.push_back("JD2_BXZJRevisionMaster"); + form_types.push_back("JD2_BXBJRevisionMaster"); + form_types.push_back("JD2_YFSBZJRevisionMaster"); + form_types.push_back("JD2_YFSBBJRevisionMaster"); + form_types.push_back("JD2_YLRevisionMaster"); + form_types.push_back("JD2_FLRevisionMaster"); + form_types.push_back("JD2_RHRevisionMaster"); + form_types.push_back("JD2_LSWLRevisionMaster"); + form_types.push_back("JD2_RHRevisionMaster"); + form_types.push_back("JD2_CDRevisionMaster"); + for (int i = 0; i < form_types.size(); i++) { + METHOD_find_prop_method(form_types[i].c_str(), "jd2_flbm", PROP_set_value_string_msg, &mth_tag); + if (mth_tag.id) { + status = METHOD_add_action(mth_tag, METHOD_post_action_type, (METHOD_function_t)jd_prop_relate, NULL); + if (status == ITK_ok) { + cout << "register " << form_types[i].c_str() << " success" << endl; + } + else { + cout << "register " << form_types[i].c_str() << " failed" << endl; + } + } + } + return 0; } diff --git a/HEZON_ITK/jd_add_attachments.cpp b/HEZON_ITK/jd_add_attachments.cpp index f003070..8280ae1 100644 --- a/HEZON_ITK/jd_add_attachments.cpp +++ b/HEZON_ITK/jd_add_attachments.cpp @@ -77,12 +77,12 @@ int jd_add_attachments(EPM_action_message_t msg) { printf("relation:%s\n", relation); printf("item:%s\n", item); - vector csjh_rev; + vector tags; vector csjh_type; for (int i = 0;i < att_cnt;i++) { char *att_type; AOM_ask_value_string(attachments[i], "object_type", &att_type); - printf("target type:%s\n",att_type); + printf("target type:%s\n", att_type); if (tc_strcmp(att_type, "JD2_GTSYWTSRevision") == 0) { tag_t *csjh; int csjh_cnt; @@ -101,8 +101,15 @@ int jd_add_attachments(EPM_action_message_t msg) { char *name; AOM_ask_value_string(csjh_revs[rev_cnt - 1], "object_string", &name); printf("%s add success\n", name); - csjh_rev.push_back(csjh_revs[rev_cnt - 1]); + tags.push_back(csjh_revs[rev_cnt - 1]); csjh_type.push_back(EPM_target_attachment); + tag_t *forms; + int forms_cnt; + AOM_ask_value_tags(csjh_revs[rev_cnt - 1], "IMAN_master_form_rev", &forms_cnt, &forms); + if (forms_cnt > 0) { + tags.push_back(forms[0]); + csjh_type.push_back(EPM_target_attachment); + } } MEM_free(csjh_revs); } @@ -111,10 +118,8 @@ int jd_add_attachments(EPM_action_message_t msg) { } } - if (csjh_rev.size() > 0) { - tag_t *atts = &csjh_rev[0]; - int *types = &csjh_type[0]; - EPM_add_attachments(root_task, csjh_rev.size(), atts, types); + if (tags.size() > 0) { + EPM_add_attachments(root_task, tags.size(), &tags[0], &csjh_type[0]); } POM_AM__set_application_bypass(false); diff --git a/HEZON_ITK/jd_auto_revise.cpp b/HEZON_ITK/jd_auto_revise.cpp new file mode 100644 index 0000000..cc7d78f --- /dev/null +++ b/HEZON_ITK/jd_auto_revise.cpp @@ -0,0 +1,213 @@ +#include "util.h" + +static void add_int_to_int_array(int add_int, int *n_int_array, int **int_array) { + int count = *n_int_array; + count++; + if (count == 1) { + (*int_array) = (int *)MEM_alloc(sizeof(int)); + } else { + (*int_array) = (int *)MEM_realloc((*int_array), count * sizeof(int)); + } + (*int_array)[count - 1] = add_int; + *n_int_array = count; +} + +static void add_tag_to_tag_array(tag_t add_tag, int *n_tag_array, tag_t **tag_array) { + int count = *n_tag_array; + count++; + if (count == 1) { + (*tag_array) = (tag_t *)MEM_alloc(sizeof(tag_t)); + } else { + (*tag_array) = (tag_t *)MEM_realloc((*tag_array), count * sizeof(tag_t)); + } + (*tag_array)[count - 1] = add_tag; + *n_tag_array = count; +} + +static void revise_item_revisions(int num_target_objs, tag_t *target_object_tags, vector *tags) { + int *all_attached_object_count = NULL; + tag_t *all_deepcopydata_tags; + + int n_ints_in_list = 0; + int n_tags_in_list = 0; + int *ifails = NULL; + char *id_string = NULL; + char type_name[TCTYPE_name_size_c + 1] = ""; + tag_t object_tag = NULLTAG; + tag_t type_tag = NULLTAG; + tag_t *attached_objs_tags = NULL; + tag_t *target_copy_tags = NULL; + tag_t *revise_input_tags = NULL; + + revise_input_tags = (tag_t *)MEM_alloc(num_target_objs * sizeof(tag_t)); + + for (int ii = 0; ii < num_target_objs; ii++) { + tag_t type_tag = NULLTAG; + TCTYPE_ask_object_type(target_object_tags[ii], &type_tag); + + tag_t revise_input_tag = NULLTAG; + TCTYPE_construct_operationinput(type_tag, TCTYPE_OPERATIONINPUT_REVISE, &revise_input_tag); + revise_input_tags[ii] = revise_input_tag; + + printf("\nTarget Objects::\n"); + int attached_object_count = 0; + tag_t *deepcopydata_tags = NULL; + TCTYPE_ask_deepcopydata(target_object_tags[ii], + TCTYPE_OPERATIONINPUT_REVISE, &attached_object_count, &deepcopydata_tags); + tag_t last_object = NULLTAG; + for (int jj = 0; jj < attached_object_count; jj++) { + AOM_ask_value_tag(deepcopydata_tags[jj], "targetObject", + &object_tag); + if (object_tag != last_object) { + WSOM_ask_object_id_string(object_tag, &id_string); + TCTYPE_ask_object_type(object_tag, &type_tag); + TCTYPE_ask_name(type_tag, type_name); + printf("%s (%s)\n", id_string, type_name); + } + last_object = object_tag; + + AOM_ask_value_tag(deepcopydata_tags[jj], "attachedObject", &object_tag); + if (object_tag != NULLTAG) { + WSOM_ask_object_id_string(object_tag, &id_string); + TCTYPE_ask_object_type(object_tag, &type_tag); + TCTYPE_ask_name(type_tag, type_name); + printf("attachedObject: %s (%s)\n", id_string, type_name); + } + } + + if (attached_object_count > 0) { + add_int_to_int_array(attached_object_count, &n_ints_in_list, + &all_attached_object_count); + for (int jj = 0; jj < attached_object_count; jj++) { + add_tag_to_tag_array(deepcopydata_tags[jj], &n_tags_in_list, + &all_deepcopydata_tags); + } + } + if (deepcopydata_tags) MEM_free(deepcopydata_tags); + } + + TCTYPE_revise_objects(num_target_objs, target_object_tags, + revise_input_tags, all_attached_object_count, all_deepcopydata_tags, + &target_copy_tags, &ifails); + + printf("\nNew Revisions:\n"); + for (int ii = 0; ii < num_target_objs; ii++) { + + WSOM_ask_object_id_string(target_copy_tags[ii], + &id_string); + TCTYPE_ask_object_type(target_copy_tags[ii], &type_tag); + TCTYPE_ask_name(type_tag, type_name); + + if (ifails[ii] == ITK_ok) { + printf("%s (%s)\n", id_string, type_name); + (*tags).push_back(target_copy_tags[ii]); + } else { + char *error_message_string; + EMH_get_error_string(NULLTAG, ifails[ii], &error_message_string); + printf("\t%d %s\n", ifails[ii], error_message_string); + if (error_message_string) MEM_free(error_message_string); + } + } + + if (revise_input_tags) MEM_free(revise_input_tags); + if (all_attached_object_count) MEM_free(all_attached_object_count); + if (all_deepcopydata_tags) MEM_free(all_deepcopydata_tags); + if (attached_objs_tags) MEM_free(attached_objs_tags); + if (target_copy_tags) MEM_free(target_copy_tags); + if (ifails) MEM_free(ifails); + if (id_string) MEM_free(id_string); +} + +int jd_auto_revise(EPM_action_message_t msg) { + int att_cnt; + tag_t root_task, *attachments; + EPM_ask_root_task(msg.task, &root_task); + EPM_ask_attachments(root_task, EPM_target_attachment, &att_cnt, &attachments); + vector revs; + vector tags; + POM_AM__set_application_bypass(true); + for (int i = 0;i < att_cnt;i++) { + if (isTypeOf(attachments[i], "ItemRevision")) { + revs.push_back(attachments[i]); + } + } + revise_item_revisions(revs.size(), &revs[0], &tags); + if (tags.size() > 0) { + tag_t owning_user, group; + char *name, **prefs; + int prefs_cnt = 0, tags_cnt = tags.size(); + AOM_ask_value_tag(msg.task, "owning_user", &owning_user); + AOM_ask_value_string(owning_user, "object_string", &name); + cout << "owning_user:" << name << endl; + SA_ask_user_login_group(owning_user, &group); + char *group_name; + AOM_ask_value_string(group, "object_string", &group_name); + cout << "group name:" << group_name << endl; + PREF_ask_char_values("jd2_auto_revise_relations", &prefs_cnt, &prefs); + for (int i = 0;i < prefs_cnt;i++) { + cout << "relation:" << prefs[i] << endl; + for (int ii = 0;ii < tags_cnt;ii++) { + tag_t *temp; + int num = 0; + AOM_ask_value_tags(tags[ii], prefs[i], &num, &temp); + for (int iii = 0;iii < num;iii++) { + char *str; + AOM_ask_value_string(temp[iii], "object_string", &str); + cout << "add name:" << str << endl; + tags.push_back(temp[iii]); + } + } + } + + for (int i = 0;i < tags.size();i++) { + AOM_lock(tags[i]); + int res = ITK_ok; + char *uid; + ITKCALL(AOM_set_ownership(tags[i], owning_user, group)); + ITKCALL(res = AOM_save(tags[i])); + if (res != ITK_ok) { + ITK__convert_tag_to_uid(tags[i], &uid); + cout << uid << endl; + if (uid) MEM_free(uid); + } + AOM_unlock(tags[i]); + //if (isTypeOf(tags[i], "Dataset")) { + //int ref_cnt; + //tag_t *refs; + //AOM_ask_value_tags(tags[i], "ref_list", &ref_cnt, &refs); + //cout << "dataset ref cnt:" << ref_cnt << endl; + //for (int iiii = 0;iiii < ref_cnt;iiii++) { + // //tags.push_back(refs[iiii]); + // AOM_lock(refs[iiii]); + // ITKCALL(POM_set_owning_group(refs[iiii], group)); + // ITKCALL(POM_set_owning_user(refs[iiii], owning_user)); + // AOM_save(refs[iiii]); + // AOM_unlock(refs[iiii]); + //} + //tag_t latest_dataset; + //AE_ask_dataset_latest_rev(tags[i], &latest_dataset); + //AOM_lock(latest_dataset); + // ITKCALL(POM_set_owning_group(tags[i], group)); + + // ITKCALL(POM_set_owning_user(tags[i], owning_user)); + // ITKCALL(POM_set_modification_user(tags[i], owning_user)); + // ITKCALL(AE_save_myself(tags[i])); + + // + + // AOM_save(tags[i]); + // AOM_unlock(tags[i]); + //} else { + // ITKCALL(POM_set_owning_group(tags[i], group)); + // ITKCALL(POM_set_owning_user(tags[i], owning_user)); + // AOM_save(tags[i]); + // AOM_unlock(tags[i]); + //} + } + cout << "success" << endl; + } else { + cout << "revs cnt:0" << endl; + } + POM_AM__set_application_bypass(false); + return 0; +} \ No newline at end of file diff --git a/HEZON_ITK/jd_batch_process.cpp b/HEZON_ITK/jd_batch_process.cpp index d9d25d5..7420883 100644 --- a/HEZON_ITK/jd_batch_process.cpp +++ b/HEZON_ITK/jd_batch_process.cpp @@ -16,10 +16,12 @@ DWORD WINAPI sendRequest(void *uid) { http::Request request(ss.str().c_str()); const http::Response response = request.send("GET"); std::cout << std::string(response.body.begin(), response.body.end()) << '\n'; // print the result - } else { + } + else { printf("jd2_server_ip error\n"); } - } catch (const std::exception& e) { + } + catch (const std::exception& e) { std::cerr << "Request failed, error: " << e.what() << '\n'; } return 0; @@ -33,7 +35,13 @@ int jd_batch_process(EPM_action_message_t msg) { EPM_ask_root_task(msg.task, &rootTask); EPM_ask_job(msg.task, &job); EPM_ask_attachments(rootTask, EPM_target_attachment, &att_count, &attachments); - if (att_count < 2) { + int rev_cnt = 0; + for (int i = 0; i < att_count; i++) { + if (isTypeOf(attachments[i], "ItemRevision")) { + rev_cnt++; + } + } + if (rev_cnt < 2) { return 0; } printf("att_count:%d\n", att_count); @@ -47,7 +55,7 @@ int jd_batch_process(EPM_action_message_t msg) { AOM_ask_value_string(attachments[i], "object_type", &object_type); AOM_ask_value_string(attachments[i], "object_string", &object_string); printf("object_type:%s object_string:%s\n", object_type, object_string); - if (isTypeOf(attachments[i], "Form")) { + if (!isTypeOf(attachments[i], "ItemRevision")) { char *name; AOM_ask_value_string(attachments[i], "object_string", &name); form_names << name; @@ -61,7 +69,7 @@ int jd_batch_process(EPM_action_message_t msg) { tag_t *tasks; EPM_ask_sub_tasks(rootTask, &sub_cnt, &tasks); map> task_map; - for (int i = 0;i < sub_cnt;i++) { + for (int i = 0; i < sub_cnt; i++) { char *task_name, *task_type; AOM_ask_value_string(tasks[i], "object_name", &task_name); AOM_ask_value_string(tasks[i], "object_type", &task_type); @@ -71,12 +79,13 @@ int jd_batch_process(EPM_action_message_t msg) { AOM_ask_value_tag(tasks[i], "fnd0Assignee", &assignee); tags.push_back(assignee); - } else { + } + else { tag_t *signoffs; int signoff_cnt; AOM_ask_value_tags(tasks[i], "valid_signoffs", &signoff_cnt, &signoffs); printf("name:%s valid cnt:%d\n", task_name, signoff_cnt); - for (int j = 0;j < signoff_cnt;j++) { + for (int j = 0; j < signoff_cnt; j++) { tag_t member; AOM_ask_value_tag(signoffs[j], "group_member", &member); tags.push_back(member); @@ -85,7 +94,7 @@ int jd_batch_process(EPM_action_message_t msg) { task_map[task_name] = tags; } - for (auto i = 0;i < process_vec.size();i++) { + for (auto i = 0; i < process_vec.size(); i++) { ITKCALL(AOM_refresh(process_vec[i], false)); @@ -94,7 +103,7 @@ int jd_batch_process(EPM_action_message_t msg) { EPM_ask_sub_tasks(root, &sub_cnt, &tasks); - for (auto j = 0;j < sub_cnt;j++) { + for (auto j = 0; j < sub_cnt; j++) { char *task_name, *task_type; AOM_ask_value_string(tasks[j], "object_name", &task_name); if (task_map[task_name].size() == 0) @@ -102,14 +111,15 @@ int jd_batch_process(EPM_action_message_t msg) { AOM_ask_value_string(tasks[j], "object_type", &task_type); if (tc_strcmp("EPMDoTask", task_type) == 0) { EPM_assign_responsible_party(tasks[j], task_map[task_name][0]); - } else { + } + else { tag_t sub_task; int *types = (int*)MEM_alloc(task_map[task_name].size()); EPM_ask_sub_task(tasks[j], "select-signoff-team", &sub_task); if (sub_task) { - for (int k = 0;k < task_map[task_name].size();k++) { + for (int k = 0; k < task_map[task_name].size(); k++) { int temp_cnt; tag_t *temp; EPM_create_adhoc_signoff(sub_task, task_map[task_name][k], &temp_cnt, &temp); @@ -129,15 +139,17 @@ int jd_batch_process(EPM_action_message_t msg) { int ref_cnt; tag_t *refs; tag_t root_task1; - for (int i = 0;i < att_count;i++) { - if (isTypeOf(attachments[i], "Form")) { + int process_index = 0; + for (int i = 0; i < att_count; i++) { + if (!isTypeOf(attachments[i], "ItemRevision")) { continue; } - EPM_ask_root_task(process_vec[i], &root_task1); + EPM_ask_root_task(process_vec[process_index], &root_task1); + process_index++; EPM_ask_attachments(root_task1, EPM_reference_attachment, &ref_cnt, &refs); char *name1; AOM_ask_value_string(attachments[i], "object_string", &name1); - for (int ii = 0;ii < ref_cnt; ii++) { + for (int ii = 0; ii < ref_cnt; ii++) { char *name2; AOM_ask_value_string(refs[ii], "object_string", &name2); if (tc_strcmp(name1, name2) == 0) { @@ -153,20 +165,18 @@ int jd_batch_process(EPM_action_message_t msg) { break; } } - if (isTypeOf(attachments[i], "ItemRevision")) { - int form_cnt; - tag_t *forms; - char *name; - AOM_ask_value_tags(attachments[i], "IMAN_master_form_rev", &form_cnt, &forms); - if (form_cnt > 0) { - AOM_ask_value_string(forms[0], "object_string", &name); - if (form_names.str().find(name) != string::npos) { - tag_t *new_atts = (tag_t *)MEM_alloc(sizeof(tag_t)); - new_atts[0] = forms[0]; - int types[1]; - types[0] = EPM_target_attachment; - ITKCALL(EPM_add_attachments(root_task1, 1, new_atts, types)); - } + int form_cnt; + tag_t *forms; + char *name; + AOM_ask_value_tags(attachments[i], "IMAN_master_form_rev", &form_cnt, &forms); + if (form_cnt > 0) { + AOM_ask_value_string(forms[0], "object_string", &name); + if (form_names.str().find(name) != string::npos) { + tag_t *new_atts = (tag_t *)MEM_alloc(sizeof(tag_t)); + new_atts[0] = forms[0]; + int types[1]; + types[0] = EPM_target_attachment; + ITKCALL(EPM_add_attachments(root_task1, 1, new_atts, types)); } } } diff --git a/HEZON_ITK/jd_check_99_cglx.cpp b/HEZON_ITK/jd_check_99_cglx.cpp index 3d4f0b6..c0d90b0 100644 --- a/HEZON_ITK/jd_check_99_cglx.cpp +++ b/HEZON_ITK/jd_check_99_cglx.cpp @@ -3,7 +3,7 @@ #include -void checkCGLX(tag_t bomline, bool *flag) { +void checkCGLX(tag_t bomline, bool *flag, vector *res) { int child_cnt; tag_t *childrens; ITKCALL(BOM_line_ask_child_lines(bomline, &child_cnt, &childrens)); @@ -23,10 +23,12 @@ void checkCGLX(tag_t bomline, bool *flag) { cout << "check item_id:" << item_id << endl; cout << "cglx:" << cglx << endl; *flag = *flag&&tc_strlen(cglx) > 0; - if (!*flag) { - return; + if (tc_strlen(cglx) == 0) { + char *rev_name; + AOM_ask_value_string(rev, "object_string", &rev_name); + (*res).push_back(rev_name); } - checkCGLX(childrens[i], flag); + checkCGLX(childrens[i], flag, res); } } @@ -53,11 +55,18 @@ int jd_check_99_cglx(EPM_rule_message_t msg) { continue; } bool flag = true; - checkCGLX(top_line, &flag); + vector res; + checkCGLX(top_line, &flag, &res); ITKCALL(BOM_close_window(window)); cout << "flag:" << boolalpha << flag << endl; if (!flag) { - return EMH_store_error_s1(EMH_severity_error, EMH_IDGENERATION_ERROR_BASE, "包含未填写采购类型的物料,请检查"); + + string msg = "包含以下未填写采购类型的物料,请检查\n"; + for (int ii = 0;ii < res.size();ii++) { + msg.append(res[ii]); + msg.append("\n"); + } + return EMH_store_error_s1(EMH_severity_error, EMH_AE_error_base, msg.c_str()); } } return EPM_go; diff --git a/HEZON_ITK/jd_check_wlms_len.cpp b/HEZON_ITK/jd_check_wlms_len.cpp index e00a76e..ccfc3e7 100644 --- a/HEZON_ITK/jd_check_wlms_len.cpp +++ b/HEZON_ITK/jd_check_wlms_len.cpp @@ -7,6 +7,7 @@ int jd_check_wlms_len(EPM_rule_message_t msg) { EPM_ask_root_task(msg.task, &root_task); //获得根任务下的组件 EPM_ask_attachments(root_task, EPM_target_attachment, &att_cnt, &attachments); + stringstream oss; for (int i = 0; i < att_cnt; i++) { if (isTypeOf(attachments[i], "ItemRevision")) { int form_att; @@ -16,8 +17,10 @@ int jd_check_wlms_len(EPM_rule_message_t msg) { continue; } char *wlms; + char *item_id; AOM_ask_value_string(forms[0], "jd2_wlms", &wlms); - cout << "jd2_wlms:" << wlms << endl; + AOM_ask_value_string(attachments[i], "item_id", &item_id); + cout << "jd2_wlms:" << wlms << endl; int length = 0; for (int i = 0; wlms[i] != 0; i++) { if (wlms[i] < 128 && wlms[i]>0) { @@ -30,10 +33,19 @@ int jd_check_wlms_len(EPM_rule_message_t msg) { cout << "length: " << length << endl; if (length > 40) { POM_AM__set_application_bypass(false); - return EMH_store_error_s1(EMH_severity_error, EMH_IDGENERATION_ERROR_BASE, "字符不能超过40!!!"); + cout << "ID : " << item_id << endl; + string a = "ID : "; + string b = " , length : "; + // string c = " , 字符不能超过40!!!"; + + oss << a << item_id << b << length << endl; + } } - POM_AM__set_application_bypass(false); - return EPM_go; } + if (oss.str().length() > 0) { + return EMH_store_error_s1(EMH_severity_error, EMH_IDGENERATION_ERROR_BASE, oss.str().c_str()); + } + POM_AM__set_application_bypass(false); + return EPM_go; } \ No newline at end of file diff --git a/HEZON_ITK/jd_clear_field.cpp b/HEZON_ITK/jd_clear_field.cpp index 8d21103..d34c622 100644 --- a/HEZON_ITK/jd_clear_field.cpp +++ b/HEZON_ITK/jd_clear_field.cpp @@ -238,11 +238,20 @@ extern "C" { std::cout << "Added " << urlPath << " to the classpath." << std::endl; } + bool find(int prop_cnt, char** props, char* prop) { + for (int i = 0;i < prop_cnt;i++) { + if (tc_strcmp(props[i], prop) == 0) { + return true; + } + } + return false; + } + int JD_clear(METHOD_message_t* msg, va_list args, tag_t new_rev) { printf("鍗囩増鎵ц\n"); //鑾峰彇鏁版嵁闆 const char *sign_location1, *sign_str; - char *temp_path, *attach_type,*prop,**pref_values1; + char *temp_path, *attach_type, *prop, **pref_values1; int n_attachs, pref_count1; tag_t ref_obj, excelx_tag, excel_tag, wordx_tag, word_tag, type_tag, word_ref, excel_ref, *dataset; stringstream sign_date; @@ -341,7 +350,7 @@ extern "C" { s << "sign2fileRunnable.jar"; add_path(env, s.str().c_str()); } - + printf("add path\n"); jclass class_Test; int file_type = -1; @@ -362,13 +371,18 @@ extern "C" { //琛ㄥ崟绛惧悕 for (auto iii = 0; iii < objects_count; iii++) { AOM_lock(objects[iii]); + int prop_cnt; + char **prop_names; + ITKCALL(AOM_ask_prop_names(objects[iii], &prop_cnt, &prop_names)); for (int i = 0;i < pref_count1;i++) { sign_date.str(""); sign_date << pref_values1[i]; sign_date << "rq"; - AOM_ask_value_string(objects[iii], pref_values1[i], &prop); - if (tc_strlen(prop) != 0) { + + if (find(prop_cnt, prop_names, pref_values1[i])) { AOM_set_value_string(objects[iii], pref_values1[i], ""); + } + if (find(prop_cnt, prop_names, (char *)sign_date.str().c_str())) { AOM_set_value_string(objects[iii], sign_date.str().c_str(), ""); } } @@ -485,17 +499,17 @@ extern "C" { if (strcmp(operation, "Revise") == 0 || strcmp(operation, "SaveAs") == 0) { if (isTypeOf(new_rev, "ItemRevision")) { //鑾峰彇棣栭夐」 - PREF_ask_char_values("jd_revise_clear_revisions",&pref_count,&pref_values); + PREF_ask_char_values("jd_revise_clear_revisions", &pref_count, &pref_values); for (int i = 0;i < pref_count;i++) { - if (strcmp(pref_values[i],type)==0) { + if (strcmp(pref_values[i], type) == 0) { JD_clear(msg, args, new_rev); break; } } } - + } - + return ifail; } diff --git a/HEZON_ITK/jd_get_target.cpp b/HEZON_ITK/jd_get_target.cpp index c69a7e5..155dda2 100644 --- a/HEZON_ITK/jd_get_target.cpp +++ b/HEZON_ITK/jd_get_target.cpp @@ -8,7 +8,7 @@ int jd_get_target(EPM_action_message_t msg) { EPM_ask_root_task(msg.task, &root_task); EPM_ask_attachments(root_task, EPM_target_attachment, &att_cnt, &attachments); - for (int i = 0;i < att_cnt;i++) { + for (int i = 0; i < att_cnt; i++) { char *item_id, *item_revision_id; if (isTypeOf(attachments[i], "ItemRevision")) { AOM_ask_value_string(attachments[i], "item_id", &item_id); @@ -20,19 +20,22 @@ int jd_get_target(EPM_action_message_t msg) { } } string temp = ss.str().substr(0, ss.str().length() - 1); - //AOM_lock(root_task); - //AOM_set_value_string(root_task, "jd2_task_target", temp.c_str()); - //AOM_save(root_task); - //AOM_unlock(root_task); - + cout << temp.c_str() << endl; + AOM_set_value_string(root_task, "object_desc", temp.c_str()); + AOM_save(root_task); + //char **p = (char **)malloc(sizeof(char *)); + //p[0] = (char *)malloc(sizeof(char) * 2000); + //p[0] = (char *)temp.c_str(); + //ITKCALL(PREF_set_char_values("jd2_task_target", 1, p)); + //free(p); POM_AM__set_application_bypass(false); - ofstream out; - stringstream file_location; - file_location << getenv("temp"); - file_location << "\\"; - file_location << "jd2_task_target.txt"; - out.open(file_location.str().c_str(), ios::out | ios::trunc); - out << temp.c_str() << endl; - out.close(); + //ofstream out; + //stringstream file_location; + //file_location << getenv("temp"); + //file_location << "\\"; + //file_location << "jd2_task_target.txt"; + //out.open(file_location.str().c_str(), ios::out | ios::trunc); + //out << temp.c_str() << endl; + //out.close(); return 0; } \ No newline at end of file diff --git a/HEZON_ITK/jd_get_target2.cpp b/HEZON_ITK/jd_get_target2.cpp new file mode 100644 index 0000000..81e080f --- /dev/null +++ b/HEZON_ITK/jd_get_target2.cpp @@ -0,0 +1,43 @@ +#include "util.h" + +int jd_get_target2(EPM_action_message_t msg) { + POM_AM__set_application_bypass(true); + tag_t root_task, *attachments; + int att_cnt; + stringstream ss; + EPM_ask_root_task(msg.task, &root_task); + EPM_ask_attachments(root_task, EPM_target_attachment, &att_cnt, &attachments); + + for (int i = 0; i < att_cnt; i++) { + char *item_id, *item_revision_id; + if (isTypeOf(attachments[i], "ItemRevision")) { + char *uid; + ITK__convert_tag_to_uid(attachments[i], &uid); + ss << uid; + break; + } + } + cout << ss.str().c_str() << endl; + //string temp = ss.str().c_str(); + //AOM_lock(root_task); + //AOM_set_value_string(root_task, "jd2_task_target", temp.c_str()); + //AOM_save(root_task); + //AOM_unlock(root_task); + //char **p = (char **)MEM_alloc(sizeof(char *)); + //p[0] = (char *)MEM_alloc(sizeof(char) * 50); + //p[0] = (char *)ss.str().c_str(); + //ITKCALL(PREF_set_char_values("jd2_task_target2", 1, p)); + //MEM_free(p); + AOM_set_value_string(root_task, "object_desc", ss.str().c_str()); + AOM_save(root_task); + POM_AM__set_application_bypass(false); + //ofstream out; + //stringstream file_location; + //file_location << getenv("temp"); + //file_location << "\\"; + //file_location << "jd2_task_target2.txt"; + //out.open(file_location.str().c_str(), ios::out | ios::trunc); + //out << temp.c_str() << endl; + //out.close(); + return 0; +} \ No newline at end of file diff --git a/HEZON_ITK/jd_prop_relate.cpp b/HEZON_ITK/jd_prop_relate.cpp new file mode 100644 index 0000000..62a37de --- /dev/null +++ b/HEZON_ITK/jd_prop_relate.cpp @@ -0,0 +1,90 @@ +#include "util.h" +#include "libxl.h" +using namespace libxl; + +char *w2c(char *pcstr, const wchar_t *pwstr, size_t len) +{ + int nlength = wcslen(pwstr); + //获取转换后的长度 + int nbytes = WideCharToMultiByte(0, 0, pwstr, nlength, NULL, 0, NULL, NULL); + if (nbytes > len) nbytes = len; + // 通过以上得到的结果,转换unicode 字符为ascii 字符 + WideCharToMultiByte(0, 0, pwstr, nlength, pcstr, nbytes, NULL, NULL); + return pcstr; +} + +int jd_prop_relate(METHOD_message_t *msg, va_list args) { + cout << "jd_prop_relate" << endl; + //获取属性对象 + tag_t prop_tag = va_arg(args, tag_t), form; + //获取值 + char* val = va_arg(args, char*); + cout << "jd2_flbm:" << val << endl; + ITKCALL(PROP_ask_owning_object(prop_tag, &form)); + if (val&&strlen(val)) { + char **pref_temp; + map> pref_map; + int pref_cnt; + PREF_ask_char_values("connor_default_dataset", &pref_cnt, &pref_temp); + for (int i = 0; i < pref_cnt; i++) { + string temp1 = string(pref_temp[i]).substr(0, string(pref_temp[i]).find_first_of("=")); + string temp2 = string(pref_temp[i]).substr(string(pref_temp[i]).find_first_of("=") + 1); + vector temp_vec; + split(temp2, ",", &temp_vec); + pref_map[temp1] = temp_vec; + } + + char *pref; + PREF_ask_char_value("jd_flbm_fldj_relation", 0, &pref); + tag_t dataset; + ITK__convert_uid_to_tag(pref, &dataset); + char* file_name; + ITKCALL(AOM_UIF_ask_value(dataset, "object_name", &file_name)); + cout << "dataset file name:" << file_name << endl; + string suffix = string(file_name).substr(string(file_name).find_last_of(".") + 1); + if (pref_map.find(suffix) != pref_map.end()) { + string temp = getenv("temp"); + temp.append("\\").append(file_name); + if (ACCESS(temp.c_str(), 0) == 0) { + cout << "delete exist file" << endl; + remove(temp.c_str()); + } + ITKCALL(AE_export_named_ref(dataset, pref_map[suffix][1].c_str(), temp.c_str())); + cout << "download path:" << temp.c_str() << endl; + Book* book = xlCreateXMLBook(); + book->setKey(L"TommoT", L"windows-2421220b07c2e10a6eb96768a2p7r6gc"); + if (book->load(stringToWchar(temp.c_str()))) { + Sheet* sheet = book->getSheet(0); + if (sheet) { + cout << "open success" << endl; + for (int i = 0; i < sheet->lastRow(); i++) { + CellType celltype = sheet->cellType(i, 1); + if (celltype == CELLTYPE_NUMBER) + { + const wchar_t * t = sheet->readStr(i, 1); + char *pcstr = (char *)malloc(sizeof(char)*(2 * wcslen(t) + 1)); + memset(pcstr, 0, 2 * wcslen(t) + 1); + w2c(pcstr, t, 2 * wcslen(t) + 1); + if (tc_strcmp(pcstr, val) == 0) { + const wchar_t * t2 = sheet->readStr(i, 3); + char *pcstr2 = (char *)malloc(sizeof(char)*(2 * wcslen(t2) + 1)); + memset(pcstr2, 0, 2 * wcslen(t2) + 1); + w2c(pcstr2, t2, 2 * wcslen(t2) + 1); + cout << pcstr << "/tfind ckfj:" << pcstr2 << endl; + AOM_lock(form); + ITKCALL(AOM_set_value_string(form, "jd2_ckfj", pcstr2)); + AOM_save(form); + AOM_unlock(form); + cout << "success" << endl; + book->release(); + break; + } + free(pcstr); + } + } + } + } + } + } + return ITK_ok; +} \ No newline at end of file diff --git a/HEZON_ITK/jd_rev_release.cpp b/HEZON_ITK/jd_rev_release.cpp new file mode 100644 index 0000000..b13dac7 --- /dev/null +++ b/HEZON_ITK/jd_rev_release.cpp @@ -0,0 +1,48 @@ +#include "util.h" + +int jd_rev_release(EPM_rule_message_t msg) +{ + POM_AM__set_application_bypass(true); + tag_t root_task, *attachments, *boms, *xjxxds; + int att_cnt, bom_cnt, xjxxd_cnt; + char *object_string; + //获得根任务 + EPM_ask_root_task(msg.task, &root_task); + //获得根任务下的组件 + EPM_ask_attachments(root_task, EPM_target_attachment, &att_cnt, &attachments); + for (int i = 0; i < att_cnt; i++) + { + AOM_ask_value_tags(attachments[i], "JD2_BGH", &xjxxd_cnt, &xjxxds); + //AOM_ask_value_tags(attachments[i], "FTH4xjxxdgx", &xjxxd_cnt, &xjxxds); + for (int i = 0; i < xjxxd_cnt; i++) + { + //零组件版本 + if (isTypeOf(xjxxds[i], "ItemRevision")) + { + vector tags1(1, xjxxds[i]); + vector types1(1, EPM_target_attachment); + EPM_add_attachments(root_task, 1, &tags1[0], &types1[0]); + AOM_ask_value_tags(xjxxds[i], "structure_revisions", &bom_cnt, &boms); + if (bom_cnt > 0) + { + //bom视图版本 + for (int i = 0; i < bom_cnt; i++) + { + vector tags2(1, boms[i]); + vector types2(1, EPM_target_attachment); + EPM_add_attachments(root_task, 1, &tags2[0], &types2[0]); + } + } + } + //版本表单 + if (isTypeOf(xjxxds[i], "Form")) + { + vector tags3(1, xjxxds[i]); + vector types3(1, EPM_target_attachment); + EPM_add_attachments(root_task, 1, &tags3[0], &types3[0]); + } + } + } + POM_AM__set_application_bypass(false); + return EPM_go; +} \ No newline at end of file diff --git a/HEZON_ITK/jd_schedule_joint.cpp b/HEZON_ITK/jd_schedule_joint.cpp index dfc267d..8cfb671 100644 --- a/HEZON_ITK/jd_schedule_joint.cpp +++ b/HEZON_ITK/jd_schedule_joint.cpp @@ -76,7 +76,7 @@ int jd_schedule_joint(EPM_action_message_t msg) { printf("获取SCHDULE任务 count =[%d] \n", count); //printf("task_name:%s\n",task_name); printf("task_name-------------\n"); - if (count >0) { + if (count > 0) { char * schdule_task_node_type = NULL; AOM_ask_value_string(schdule_task_nodes[0], "object_type", &schdule_task_node_type); @@ -99,8 +99,8 @@ int jd_schedule_joint(EPM_action_message_t msg) { int project_cnt; char* project_name = NULL; char* project_id = NULL; - AOM_ask_value_tags(schdule,"project_list",&project_cnt,&project_list); - if (project_list!=NULL) { + AOM_ask_value_tags(schdule, "project_list", &project_cnt, &project_list); + if (project_list != NULL) { AOM_ask_value_string(project_list[0], "project_id", &project_id); AOM_ask_value_string(project_list[0], "object_name", &project_name); ss << job_name; @@ -111,13 +111,19 @@ int jd_schedule_joint(EPM_action_message_t msg) { printf("new job name %s\n", ss.str().c_str()); AOM_lock(job); + printf("设置属性\n"); AOM_set_value_string(job, "object_name", ss.str().c_str()); + cout << "更改所有者" << endl; + tag_t owning_user, group; + AOM_ask_value_tag(schdule, "owning_user", &owning_user); + SA_ask_user_login_group(owning_user, &group); + ITKCALL(AOM_set_ownership(job, owning_user, group)); //printf("str:%s\n", finish_date_str); - printf("设置属性\n"); + AOM_save(job); AOM_unlock(job); } - + if (job_name != NULL) { MEM_free(job_name); job_name = NULL; diff --git a/HEZON_ITK/jd_send_mail.cpp b/HEZON_ITK/jd_send_mail.cpp index ceec64c..84f8c3d 100644 --- a/HEZON_ITK/jd_send_mail.cpp +++ b/HEZON_ITK/jd_send_mail.cpp @@ -22,79 +22,39 @@ int jd_send_mail(EPM_action_message_t msg) { if (att_cnt <= 0) { return 0; } - char target_str[2000]; + char *target_str; + //PREF_refresh("jd2_task_target"); + //PREF_ask_char_value("jd2_task_target", 0, &target_str); + //ITKCALL(AOM_refresh(root_task, false)); + AOM_ask_value_string(root_task, "object_desc", &target_str); vector target_vec; //AOM_ask_value_string(root_task, "jd2_task_target", &target_str); - ifstream in; - stringstream file_location; - file_location << getenv("temp"); - file_location << "\\"; - file_location << "jd2_task_target.txt"; - in.open(file_location.str().c_str(), ios::in); - in >> target_str; - in.close(); + //ifstream in; + //stringstream file_location; + //file_location << getenv("temp"); + //file_location << "\\"; + //file_location << "jd2_task_target.txt"; + //in.open(file_location.str().c_str(), ios::in); + //in >> target_str; + //in.close(); printf("target_str====>%s\n", target_str); - + if (tc_strlen(target_str) == 0) { + return EMH_store_error_s1(EMH_severity_error, EMH_AE_error_base, string("鑾峰彇target鍐呭寮傚父,璇锋鏌andler:jd_get_target鏄惁閰嶇疆").c_str());; + } + //remove(file_location.str().c_str()); + //char **p = (char **)malloc(sizeof(char *)); + //p[0] = (char *)malloc(sizeof(char) * 10); + //p[0] = ""; + //ITKCALL(PREF_set_char_values("jd2_task_target", 1, p)); + //free(p); split(target_str, ",", &target_vec); - for (int i = 0;i < target_vec.size();i++) { + for (int i = 0; i < target_vec.size(); i++) { mail_content << target_vec[i].c_str(); mail_content << " "; mail_content << paras["mail_para"]; mail_content << "\r\n"; } - //tag_t win; - //BOM_create_window(&win); - //for (int i = 0;i < att_cnt;i++) { - // if (isTypeOf(attachments[i], "Form")) { - // int rel_cnt, *levels; - // tag_t *rels, rev = NULLTAG, form; - // char **relations; - // form = attachments[i]; - // WSOM_where_referenced2(form, 1, &rel_cnt, &levels, &rels, &relations); - // for (int j = 0;j < rel_cnt;j++) { - // printf("relations:%s\n", relations[j]); - // if (tc_strcmp(relations[j], "IMAN_master_form") == 0) { - // rev = rels[j]; - // } - // } - // if (rev == NULLTAG) { - // printf("revision get error\n"); - // continue; - // } - // char *item_id; - // AOM_ask_value_string(rev, "item_id", &item_id); - - // char *rev_id; - // AOM_ask_value_string(rev, "item_revision_id", &rev_id); - // mail_content << item_id; - // mail_content << "/"; - // mail_content << rev_id; - // mail_content << " "; - // mail_content << paras["mail_para"]; - // mail_content << "\r\n"; - // } else if (isTypeOf(attachments[i], "PSBOMViewRevision")) { - // tag_t top_line, rev; - // char *id; - // BOM_set_window_top_line_bvr(win, attachments[i], &top_line); - // if (top_line == NULLTAG) - // continue; - // AOM_ask_value_tag(top_line, "bl_line_object", &rev); - // if (rev == NULLTAG) - // continue; - // AOM_ask_value_string(rev, "item_id", &id); - - // char *rev_id; - // AOM_ask_value_string(rev, "item_revision_id", &rev_id); - // mail_content << id; - // mail_content << "/"; - // mail_content << rev_id; - // mail_content << " "; - // mail_content << paras["mail_para"]; - // mail_content << "\r\n"; - // } - //} - //BOM_close_window(win); POM_AM__set_application_bypass(false); vector address, to_name, from_pref; @@ -110,13 +70,9 @@ int jd_send_mail(EPM_action_message_t msg) { printf("from_user:%s\n", from_user); - for (int i = 0;i < pref_cnt;i++) { + for (int i = 0; i < pref_cnt; i++) { split(pref_values[i], ":", &from_pref); printf("pref:%s\n", pref_values[i]); - //if (tc_strcmp(from_user, from_pref[0].c_str()) == 0) { - // break; - //} - //from_pref.clear(); } if (from_pref.size() == 0) { @@ -125,7 +81,6 @@ int jd_send_mail(EPM_action_message_t msg) { } CSendMail sMailer; - // freopen("F://mailfile//out.txt","w+",stdout); sMailer.setServerName("smtp.mxhichina.com"); //閭smtp,濡"smtp.126.com" sMailer.setUserName("lvmh@jide.cn"); //閭璐﹀彿鍚嶏紝濡"****@126.com" diff --git a/HEZON_ITK/jd_send_mail2.cpp b/HEZON_ITK/jd_send_mail2.cpp new file mode 100644 index 0000000..6934cee --- /dev/null +++ b/HEZON_ITK/jd_send_mail2.cpp @@ -0,0 +1,186 @@ +#include "CSendMail.h" +#include "boost\algorithm\\string.hpp" +#include "util.h" + +int jd_send_mail2(EPM_action_message_t msg) { + POM_AM__set_application_bypass(true); + tag_t root_task, *attachments; + int att_cnt; + EPM_ask_root_task(msg.task, &root_task); + EPM_ask_attachments(root_task, EPM_target_attachment, &att_cnt, &attachments); + TC_argument_list_t *arguments = msg.arguments; + int arg_cnt = TC_number_of_arguments(arguments); + map paras; + for (auto i = 0; i < arg_cnt; i++) { + char *temp_key, *temp_val; + ITKCALL(ITK_ask_argument_named_value(TC_next_argument(arguments), &temp_key, &temp_val)); + paras[temp_key] = temp_val; + } + tag_t parent_task, *signoffs; + vector mail_address; + int signoff_cnt; + ITKCALL(EPM_ask_parent_task(msg.task, &parent_task)); + ITKCALL(AOM_ask_value_tags(parent_task, "valid_signoffs", &signoff_cnt, &signoffs)); + for (int i = 0; i < signoff_cnt; i++) { + tag_t user, person; + char *address; + AOM_ask_value_tag(signoffs[i], "fnd0Assignee", &user); + ITKCALL(SA_ask_user_person(user, &person)); + ITKCALL(AOM_ask_value_string(person, "PA9", &address)); + mail_address.push_back(address); + } + char *target_str; + //PREF_refresh("jd2_task_target2"); + //PREF_ask_char_value("jd2_task_target2", 0, &target_str); + //ITKCALL(AOM_refresh(root_task, false)); + ITKCALL(AOM_ask_value_string(root_task, "object_desc", &target_str)); + //for (int i = 0; i < att_cnt; i++) { + // char *item_id, *item_revision_id; + // if (isTypeOf(attachments[i], "ItemRevision")) { + // ITK__convert_tag_to_uid(attachments[i], &target_str); + // break; + // } + //} + //vector target_vec; + //ifstream in; + //stringstream file_location; + //file_location << getenv("temp"); + //file_location << "\\"; + //file_location << "jd2_task_target2.txt"; + //in.open(file_location.str().c_str(), ios::in); + //in >> target_str; + //in.close(); + printf("target_str====>%s\n", target_str); + if (tc_strlen(target_str) == 0) { + return EMH_store_error_s1(EMH_severity_error, EMH_AE_error_base, string("获取target内容异常,请检查handler:jd_get_target2是否配置").c_str());; + } + //remove(file_location.str().c_str()); + //char **p = (char **)malloc(sizeof(char *)); + //p[0] = (char *)malloc(sizeof(char) * 10); + //p[0] = ""; + //ITKCALL(PREF_set_char_values("jd2_task_target2", 1, p)); + //free(p); + vector relations; + vector file_types; + tag_t target = NULLTAG, excelx_tag, excel_tag, word_tag, wordx_tag, ppt_tag, pptx_tag; + vector file_address; + map> pref_map; + char **pref_temp; + int pref_cnt; + PREF_ask_char_values("connor_default_dataset", &pref_cnt, &pref_temp); + for (int i = 0; i < pref_cnt; i++) { + string temp1 = string(pref_temp[i]).substr(0, string(pref_temp[i]).find_first_of("=")); + string temp2 = string(pref_temp[i]).substr(string(pref_temp[i]).find_first_of("=") + 1); + vector temp_vec; + split(temp2, ",", &temp_vec); + pref_map[temp1] = temp_vec; + } + //TCTYPE_find_type("MSExcel", "Dataset", &excel_tag); + //TCTYPE_find_type("MSExcelX", "Dataset", &excelx_tag); + //TCTYPE_find_type("MSWord", "Dataset", &word_tag); + //TCTYPE_find_type("MSWordX", "Dataset", &wordx_tag); + //TCTYPE_find_type("MSPowerPoint", "Dataset", &ppt_tag); + //TCTYPE_find_type("MSPowerPointX", "Dataset", &pptx_tag); + ITK__convert_uid_to_tag(target_str, &target); + if (target == NULLTAG) { + EMH_store_error_s1(EMH_severity_error, EMH_ATTR_error_base, "获取选中目标失败,检查是否配置了jd_get_target2"); + return 1; + } + else { + char *item_id; + AOM_ask_value_string(target, "item_id", &item_id); + cout << "item_id:" << item_id << endl; + } + split(paras["relation"], ",", &relations); + split(paras["suffix"], ",", &file_types); + for (int i = 0; i < relations.size(); i++) { + tag_t *dataset; + int dataset_cnt; + cout << relations[i].c_str() << endl; + AOM_ask_value_tags(target, relations[i].c_str(), &dataset_cnt, &dataset); + for (int ii = 0; ii < dataset_cnt; ii++) { + string temp = getenv("temp"); + tag_t type; + char *file_name; + ITKCALL(AOM_UIF_ask_value(dataset[ii], "object_name", &file_name)); + cout << "dataset file name:" << file_name << endl; + string suffix = string(file_name).substr(string(file_name).find_last_of(".") + 1); + //ITKCALL(TCTYPE_ask_object_type(dataset[ii], &type)); + if (find(file_types.begin(), file_types.end(), suffix) != file_types.end() && pref_map.find(suffix) != pref_map.end()) { + temp.append("\\").append(file_name).c_str(); + if (ACCESS(temp.c_str(), 0) == 0) { + cout << "delete exist file" << endl; + remove(temp.c_str()); + } + ITKCALL(AE_export_named_ref(dataset[ii], pref_map[suffix][1].c_str(), temp.c_str())); + cout << "file path:" << temp.c_str() << endl; + file_address.push_back(temp); + } + //else if (type == excelx_tag&& find(file_types.begin(), file_types.end(), "xlsx") != file_types.end()) { + // ITKCALL(AOM_UIF_ask_value(dataset[ii], "object_name", &file_name)); + // ITKCALL(AE_export_named_ref(dataset[ii], "excel", temp.append("\\").append(file_name).c_str())); + // cout << "file path:" << temp.c_str() << endl; + // file_address.push_back(temp); + //} + //else if (type == word_tag && find(file_types.begin(), file_types.end(), "doc") != file_types.end()) { + // ITKCALL(AOM_UIF_ask_value(dataset[ii], "object_name", &file_name)); + // ITKCALL(AE_export_named_ref(dataset[ii], "word", temp.append("\\").append(file_name).c_str())); + // cout << "file path:" << temp.c_str() << endl; + // file_address.push_back(temp); + //} + //else if (type == wordx_tag&&find(file_types.begin(), file_types.end(), "docx") != file_types.end()) { + // ITKCALL(AOM_UIF_ask_value(dataset[ii], "object_name", &file_name)); + // ITKCALL(AE_export_named_ref(dataset[ii], "word", temp.append("\\").append(file_name).c_str())); + // cout << "file path:" << temp.c_str() << endl; + // file_address.push_back(temp); + //} + //else if (type == ppt_tag && find(file_types.begin(), file_types.end(), "ppt") != file_types.end()) { + // ITKCALL(AOM_UIF_ask_value(dataset[ii], "object_name", &file_name)); + // ITKCALL(AE_export_named_ref(dataset[ii], "powerpoint", temp.append("\\").append(file_name).c_str())); + // cout << "file path:" << temp.c_str() << endl; + // file_address.push_back(temp); + //} + //else if (type == pptx_tag&&find(file_types.begin(), file_types.end(), "pptx") != file_types.end()) { + // ITKCALL(AOM_UIF_ask_value(dataset[ii], "object_name", &file_name)); + + // ITKCALL(AE_export_named_ref(dataset[ii], "powerpoint", temp.append("\\").append(file_name).c_str())); + // cout << "file path:" << temp.c_str() << endl; + // file_address.push_back(temp); + //} + } + } + + POM_AM__set_application_bypass(false); + + CSendMail sMailer; + + sMailer.setServerName("smtp.mxhichina.com"); + sMailer.setUserName("lvmh@jide.cn"); + sMailer.setUserPwd("lmh1995815."); + sMailer.setSenderName("PLM管理员"); + sMailer.setSenderAddress("lvmh@jide.cn"); + + for (int i = 0; i < mail_address.size(); i++) { + tag_t user; + char *name; + AOM_ask_value_tag(signoffs[i], "fnd0Assignee", &user); + AOM_ask_value_string(user, "user_name", &name); + sMailer.addReceiver(name, mail_address[i]); + } + if (file_address.size() > 0) { + for (int i = 0; i < file_address.size(); i++) { + sMailer.AddFilePath(file_address[i].c_str()); + } + } + if (sMailer.Connent()) { + if (sMailer.SendMail(paras["subject"], paras["content"])) + cout << "邮件发送成功" << endl; + } + if (file_address.size() > 0) { + for (int i = 0; i < file_address.size(); i++) { + remove(file_address[i].c_str()); + } + } + //POM_AM__set_application_bypass(false); + return 0; +} \ No newline at end of file diff --git a/HEZON_ITK/jd_signoff.cpp b/HEZON_ITK/jd_signoff.cpp index fe9b325..e6a5eef 100644 --- a/HEZON_ITK/jd_signoff.cpp +++ b/HEZON_ITK/jd_signoff.cpp @@ -1,55 +1,4 @@ -锘#include "epm_handler_common.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "tc/envelope.h" -#include -#include "ae/dataset.h" -#include -#include -#include -#include -#include -#include -#include -#include "ce/ce.h" -#include -#include -#include -#include -#include -#include "string" -#include "sstream" -#include -#include -#include -#include
-#include "ctime" -#include "tchar.h" -#include "jni.h" +锘#include "util.h" #ifdef WIN32 #include @@ -64,14 +13,6 @@ #define GUID_LEN 64 -#ifdef WIN32 -#define ACCESS(fileName,accessMode) _access(fileName,accessMode) -#define MKDIR(path) _mkdir(path) -#else -#define ACCESS(fileName,accessMode) access(fileName,accessMode) -#define MKDIR(path) mkdir(path,S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) -#endif - #define LOCALJARPATH "D:\\Siemens\\Teamcenter12\\bin\\tc_extra_jar\\" #define REMOTEJARPATH "D:\\app\\Siemens\\Teamcenter12\\bin\\tc_extra_jar\\" @@ -165,51 +106,51 @@ string GBKToUTF8(const char* strGBK) { -path 璺緞 -name 鐢ㄦ埛鍚 */ -static int sign(JNIEnv* env, jclass class_Test, const char* path, char* name, char* sign_location, char* sign_str) { - stringstream ss; - printf("signin\n"); - jmethodID methodId_main = env->GetStaticMethodID(class_Test, "sign", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I"); - if (methodId_main == NULL) { - printf("error, check jar location\n"); - ss << "鎵句笉鍒皊ign2fileRunnable.jar 纭璺緞涓猴細"; - ss << REMOTEJARPATH; - EMH_store_error_s1(EMH_severity_error, EMH_ATTR_error_base, ss.str().c_str()); - return 0; - } - string path1 = GBKToUTF8(path); - string name1 = GBKToUTF8(name); - string sign_location1 = GBKToUTF8(sign_location); - string sign_str1 = GBKToUTF8(sign_str); - jstring jpath = env->NewStringUTF(path1.c_str()); - jstring jname = env->NewStringUTF(name1.c_str()); - jstring jsign_location = env->NewStringUTF(sign_location1.c_str()); - jstring jsign_str = env->NewStringUTF(sign_str1.c_str()); - printf("path:%s\nname:%s\nsign_location:%s\nsign_str:%s\n", path1.c_str(), name1.c_str(), sign_location1.c_str(), sign_str1.c_str()); - jint result = 0; - result = env->CallStaticIntMethod(class_Test, methodId_main, jpath, jname, jsign_location, jsign_str); - int res = result; - printf("result:%d\n", res); - printf("signout\n"); - return res; -} - -void add_path(JNIEnv* env, const std::string& path) { - const std::string urlPath = "file:/" + path; - jclass classLoaderCls = env->FindClass("java/lang/ClassLoader"); - printf("111\n"); - jmethodID getSystemClassLoaderMethod = env->GetStaticMethodID(classLoaderCls, "getSystemClassLoader", "()Ljava/lang/ClassLoader;"); - jobject classLoaderInstance = env->CallStaticObjectMethod(classLoaderCls, getSystemClassLoaderMethod); - jclass urlClassLoaderCls = env->FindClass("java/net/URLClassLoader"); - jmethodID addUrlMethod = env->GetMethodID(urlClassLoaderCls, "addURL", "(Ljava/net/URL;)V"); - jclass urlCls = env->FindClass("java/net/URL"); - jmethodID urlConstructor = env->GetMethodID(urlCls, "", "(Ljava/lang/String;)V"); - jobject urlInstance = env->NewObject(urlCls, urlConstructor, env->NewStringUTF(urlPath.c_str())); - env->CallVoidMethod(classLoaderInstance, addUrlMethod, urlInstance); - std::cout << "Added " << urlPath << " to the classpath." << std::endl; -} +//static int sign(JNIEnv* env, jclass class_Test, const char* path, char* name, char* sign_location, char* sign_str) { +// stringstream ss; +// printf("signin\n"); +// jmethodID methodId_main = env->GetStaticMethodID(class_Test, "sign", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I"); +// if (methodId_main == NULL) { +// printf("error, check jar location\n"); +// ss << "鎵句笉鍒皊ign2fileRunnable.jar 纭璺緞涓猴細"; +// ss << REMOTEJARPATH; +// EMH_store_error_s1(EMH_severity_error, EMH_ATTR_error_base, ss.str().c_str()); +// return 0; +// } +// string path1 = GBKToUTF8(path); +// string name1 = GBKToUTF8(name); +// string sign_location1 = GBKToUTF8(sign_location); +// string sign_str1 = GBKToUTF8(sign_str); +// jstring jpath = env->NewStringUTF(path1.c_str()); +// jstring jname = env->NewStringUTF(name1.c_str()); +// jstring jsign_location = env->NewStringUTF(sign_location1.c_str()); +// jstring jsign_str = env->NewStringUTF(sign_str1.c_str()); +// printf("path:%s\nname:%s\nsign_location:%s\nsign_str:%s\n", path1.c_str(), name1.c_str(), sign_location1.c_str(), sign_str1.c_str()); +// jint result = 0; +// result = env->CallStaticIntMethod(class_Test, methodId_main, jpath, jname, jsign_location, jsign_str); +// int res = result; +// printf("result:%d\n", res); +// printf("signout\n"); +// return res; +//} +// +//void add_path(JNIEnv* env, const std::string& path) { +// const std::string urlPath = "file:/" + path; +// jclass classLoaderCls = env->FindClass("java/lang/ClassLoader"); +// printf("111\n"); +// jmethodID getSystemClassLoaderMethod = env->GetStaticMethodID(classLoaderCls, "getSystemClassLoader", "()Ljava/lang/ClassLoader;"); +// jobject classLoaderInstance = env->CallStaticObjectMethod(classLoaderCls, getSystemClassLoaderMethod); +// jclass urlClassLoaderCls = env->FindClass("java/net/URLClassLoader"); +// jmethodID addUrlMethod = env->GetMethodID(urlClassLoaderCls, "addURL", "(Ljava/net/URL;)V"); +// jclass urlCls = env->FindClass("java/net/URL"); +// jmethodID urlConstructor = env->GetMethodID(urlCls, "", "(Ljava/lang/String;)V"); +// jobject urlInstance = env->NewObject(urlCls, urlConstructor, env->NewStringUTF(urlPath.c_str())); +// env->CallVoidMethod(classLoaderInstance, addUrlMethod, urlInstance); +// std::cout << "Added " << urlPath << " to the classpath." << std::endl; +//} bool find(int prop_cnt, char** props, char* prop) { - for (int i = 0;i < prop_cnt;i++) { + for (int i = 0; i < prop_cnt; i++) { if (tc_strcmp(props[i], prop) == 0) { return true; } @@ -301,7 +242,7 @@ int jd_signoff(EPM_action_message_t msg) { PREF_ask_char_values("jd2_signoff_list", &pref_count, &pref_values); flag = false; stringstream temps; - for (int i = 0;i < pref_count;i++) { + for (int i = 0; i < pref_count; i++) { printf("signoff:%s\n", pref_values[i]); temps << pref_values[i]; temps << ","; @@ -371,64 +312,66 @@ int jd_signoff(EPM_action_message_t msg) { //} //printf("after load jvm\n"); - wstringstream wss; - wss << getenv("JRE_HOME") << "\\bin\\server\\jvm.dll"; - - JavaVMInitArgs vmArgs; - const int OPTION_COUNT = 1; - vmArgs.nOptions = OPTION_COUNT; - JavaVMOption options[OPTION_COUNT] = { 0 }; - options[0].optionString = "-Xmx1024m"; - vmArgs.options = options; - vmArgs.version = JNI_VERSION_1_8; - vmArgs.ignoreUnrecognized = JNI_TRUE; - printf("before load dll\n"); - HMODULE hModule = LoadLibrary(wss.str().c_str()); - if (hModule == NULL) { - printf("error load dll"); - return -1; - } - printf("after load dll\n"); - typedef jint(JNICALL *CreateJavaVMFuncPtr)(JavaVM **pvm, void **penv, void *args); - CreateJavaVMFuncPtr CreateJavaVM = (CreateJavaVMFuncPtr)GetProcAddress(hModule, "JNI_CreateJavaVM"); - typedef jint(JNICALL * GetCreatedJavaVMs)(JavaVM**, jsize, jsize*); - - GetCreatedJavaVMs jni_GetCreatedJavaVMs; - jni_GetCreatedJavaVMs = (GetCreatedJavaVMs)GetProcAddress(GetModuleHandle( - TEXT("jvm.dll")), "JNI_GetCreatedJavaVMs"); - JavaVM *jvm = nullptr, *jvms; - JNIEnv *env = nullptr; - jsize size = 0; - jni_GetCreatedJavaVMs(&jvms, 0, &size); - printf("before load jvm\n"); - if (size) { - JavaVM** buffer = new JavaVM*[size]; - jni_GetCreatedJavaVMs(buffer, size, &size); - buffer[0]->GetEnv((void**)&env, JNI_VERSION_1_8); - jint result = buffer[0]->AttachCurrentThread((void**)&env, NULL); - } else { - jint res = (*CreateJavaVM)(&jvm, (void**)&env, &vmArgs); - if (res < 0) { - printf("error load jvm"); - return -1; - } - } + //wstringstream wss; + //wss << getenv("JRE_HOME") << "\\bin\\server\\jvm.dll"; - printf("after load jvm\n"); + //JavaVMInitArgs vmArgs; + //const int OPTION_COUNT = 1; + //vmArgs.nOptions = OPTION_COUNT; + //JavaVMOption options[OPTION_COUNT] = { 0 }; + //options[0].optionString = "-Xmx1024m"; + //vmArgs.options = options; + //vmArgs.version = JNI_VERSION_1_8; + //vmArgs.ignoreUnrecognized = JNI_TRUE; + //printf("before load dll\n"); + //HMODULE hModule = LoadLibrary(wss.str().c_str()); + //if (hModule == NULL) { + // printf("error load dll"); + // return -1; + //} + //printf("after load dll\n"); + //typedef jint(JNICALL *CreateJavaVMFuncPtr)(JavaVM **pvm, void **penv, void *args); + //CreateJavaVMFuncPtr CreateJavaVM = (CreateJavaVMFuncPtr)GetProcAddress(hModule, "JNI_CreateJavaVM"); + //typedef jint(JNICALL * GetCreatedJavaVMs)(JavaVM**, jsize, jsize*); - stringstream s; + //GetCreatedJavaVMs jni_GetCreatedJavaVMs; + //jni_GetCreatedJavaVMs = (GetCreatedJavaVMs)GetProcAddress(GetModuleHandle( + // TEXT("jvm.dll")), "JNI_GetCreatedJavaVMs"); + //JavaVM *jvm = nullptr, *jvms; + //JNIEnv *env = nullptr; + //jsize size = 0; + //jni_GetCreatedJavaVMs(&jvms, 0, &size); + //printf("before load jvm\n"); + //if (size) { + // JavaVM** buffer = new JavaVM*[size]; + // jni_GetCreatedJavaVMs(buffer, size, &size); + // buffer[0]->GetEnv((void**)&env, JNI_VERSION_1_8); + // jint result = buffer[0]->AttachCurrentThread((void**)&env, NULL); + //} + //else { + // jint res = (*CreateJavaVM)(&jvm, (void**)&env, &vmArgs); + // if (res < 0) { + // printf("error load jvm"); + // return -1; + // } + //} + + //printf("after load jvm\n"); + + stringstream jar_path; if (ACCESS(LOCALJARPATH, 0) != 0) { - s << REMOTEJARPATH; - s << "sign2fileRunnable.jar"; - add_path(env, s.str().c_str()); - } else { - s << LOCALJARPATH; - s << "sign2fileRunnable.jar"; - add_path(env, s.str().c_str()); + jar_path << REMOTEJARPATH; + jar_path << "sign2fileRunnable.jar"; + //add_path(env, s.str().c_str()); + } + else { + jar_path << LOCALJARPATH; + jar_path << "sign2fileRunnable.jar"; + //add_path(env, s.str().c_str()); } printf("add path\n"); - jclass class_Test; + //jclass class_Test; int file_type = -1; printf("user_name:%s\n", user_name); @@ -447,7 +390,7 @@ int jd_signoff(EPM_action_message_t msg) { if (tc_strcmp(task_type, "EPMSelectSignoffTask") == 0 || tc_strcmp(task_type, "EPMPerformSignoffTask") == 0) { AOM_ask_value_tags(msg.task, "valid_signoffs", &valid_signoffs_cnt, &valid_signoffs); cout << "valid_signoffs_cnt:" << valid_signoffs_cnt << endl; - for (int i = 0;i < valid_signoffs_cnt;i++) { + for (int i = 0; i < valid_signoffs_cnt; i++) { char *res; AOM_ask_value_string(valid_signoffs[i], "fnd0Status", &res); if (tc_strcmp(res, "鎵瑰噯") == 0) { @@ -459,7 +402,8 @@ int jd_signoff(EPM_action_message_t msg) { new_name << name << ","; } } - } else { + } + else { new_name << user_name << ","; } @@ -471,31 +415,36 @@ int jd_signoff(EPM_action_message_t msg) { ITKCALL(AOM_ask_prop_names(objects[iii], &prop_cnt, &prop_names)); AOM_lock(objects[iii]); if (strcmp("clear", sign_location) == 0) { - for (int i = 0;i < pref_count;i++) { + for (int i = 0; i < pref_count; i++) { sign_date.str(""); sign_date << pref_values[i]; sign_date << "rq"; if (find(prop_cnt, prop_names, pref_values[i])) { ITKCALL(AOM_set_value_string(objects[iii], pref_values[i], "")); - } else { + } + else { printf("灞炴"%s\"涓嶅瓨鍦", pref_values[i]); } if (find(prop_cnt, prop_names, (char*)sign_date.str().c_str())) { ITKCALL(AOM_set_value_string(objects[iii], sign_date.str().c_str(), "")); - } else { + } + else { printf("灞炴"%s\"涓嶅瓨鍦", sign_date.str().c_str()); } } printf("sign clear\n"); - } else { + } + else { if (find(prop_cnt, prop_names, (char*)sign_location)) { ITKCALL(AOM_set_value_string(objects[iii], sign_location, signoff_name.c_str())); - } else { + } + else { printf("灞炴"%s\"涓嶅瓨鍦", sign_location); } if (find(prop_cnt, prop_names, (char*)sign_date.str().c_str())) { ITKCALL(AOM_set_value_string(objects[iii], sign_date.str().c_str(), date.str().c_str())); - } else { + } + else { printf("灞炴"%s\"涓嶅瓨鍦", sign_date.str().c_str()); } printf("%s,%s signoff\n", sign_location, sign_date.str().c_str()); @@ -508,7 +457,7 @@ int jd_signoff(EPM_action_message_t msg) { printf("startSign\n"); ITKCALL(AOM_ask_value_tags(attachments[ii], "IMAN_specification", &n_attachs, &dataset)); - for (int i = 0;i < n_attachs;i++) { + for (int i = 0; i < n_attachs; i++) { stringstream ss; ss << dir.str().c_str(); printf(ss.str().c_str()); @@ -523,7 +472,8 @@ int jd_signoff(EPM_action_message_t msg) { printf("path:%s\n", ss.str().c_str()); ITKCALL(AE_export_named_ref(dataset[i], "word", ss.str().c_str())); file_type = 0; - } else if (type_tag == excel_tag || type_tag == excelx_tag) { + } + else if (type_tag == excel_tag || type_tag == excelx_tag) { ITKCALL(AE_ask_dataset_named_ref2(dataset[i], "excel", &ae_ref, &excel_ref)); char *file_name; ITKCALL(AOM_UIF_ask_value(excel_ref, "file_name", &file_name)); @@ -535,29 +485,47 @@ int jd_signoff(EPM_action_message_t msg) { file_type = 1; } + stringstream command; + command << "java -jar "; + command << jar_path.str().c_str(); + command << " "; + command << ss.str().c_str(); + command << " "; + command << signoff_name.c_str(); + command << " "; + command << sign_location; + command << " "; + command << temps.str().c_str(); printf("file_type:%d\n", file_type); if (file_type == 0) { - class_Test = env->FindClass("sign2file/SignToWord"); - int res = sign(env, class_Test, ss.str().c_str(), (char *)signoff_name.c_str(), (char*)sign_location, (char*)temps.str().c_str()); - if (res) { - replace_dataset_named_reference(dataset[i], word_ref, ss.str().c_str(), "word"); - } else { - return -1; - } - } else if (file_type == 1) { - class_Test = env->FindClass("sign2file/SignToExcel"); - int res = sign(env, class_Test, ss.str().c_str(), (char *)signoff_name.c_str(), (char*)sign_location, (char*)temps.str().c_str()); - if (res) { - replace_dataset_named_reference(dataset[i], excel_ref, ss.str().c_str(), "excel"); - } else { - return -1; - } + //class_Test = env->FindClass("sign2file/SignToWord"); + //int res = sign(env, class_Test, ss.str().c_str(), (char *)signoff_name.c_str(), (char*)sign_location, (char*)temps.str().c_str()); + //if (res) { + system(command.str().c_str()); + replace_dataset_named_reference(dataset[i], word_ref, ss.str().c_str(), "word"); + //} + //else { + //return -1; + //} + } + else if (file_type == 1) { + //class_Test = env->FindClass("sign2file/SignToExcel"); + //int res = sign(env, class_Test, ss.str().c_str(), (char *)signoff_name.c_str(), (char*)sign_location, (char*)temps.str().c_str()); + //if (res) { + system(command.str().c_str()); + replace_dataset_named_reference(dataset[i], excel_ref, ss.str().c_str(), "excel"); + //} + //else { + //return -1; + //} } + command.str(""); + command.clear(); file_type = -1; } MEM_free(dataset); AOM_ask_value_tags(attachments[ii], "TC_Attaches", &n_attachs, &dataset); - for (int i = 0;i < n_attachs;i++) { + for (int i = 0; i < n_attachs; i++) { stringstream ss; ss << dir.str().c_str(); ITKCALL(TCTYPE_ask_object_type(dataset[i], &type_tag)); @@ -571,7 +539,8 @@ int jd_signoff(EPM_action_message_t msg) { printf("path:%s\n", ss.str().c_str()); ITKCALL(AE_export_named_ref(dataset[i], "word", ss.str().c_str())); file_type = 0; - } else if (type_tag == excel_tag || type_tag == excelx_tag) { + } + else if (type_tag == excel_tag || type_tag == excelx_tag) { ITKCALL(AE_ask_dataset_named_ref2(dataset[i], "excel", &ae_ref, &excel_ref)); char *file_name; ITKCALL(AOM_UIF_ask_value(excel_ref, "file_name", &file_name)); @@ -583,24 +552,44 @@ int jd_signoff(EPM_action_message_t msg) { file_type = 1; } + stringstream command; + command << "java -jar "; + command << jar_path.str().c_str(); + command << " "; + command << ss.str().c_str(); + command << " "; + command << signoff_name.c_str(); + command << " "; + command << sign_location; + command << " "; + command << temps.str().c_str(); printf("file_type:%d\n", file_type); if (file_type == 0) { - class_Test = env->FindClass("sign2file/SignToWord"); - int res = sign(env, class_Test, ss.str().c_str(), (char *)signoff_name.c_str(), (char*)sign_location, (char*)temps.str().c_str()); - if (res) { - replace_dataset_named_reference(dataset[i], word_ref, ss.str().c_str(), "word"); - } else { - return -1; - } - } else if (file_type == 1) { - class_Test = env->FindClass("sign2file/SignToExcel"); - int res = sign(env, class_Test, ss.str().c_str(), (char *)signoff_name.c_str(), (char*)sign_location, (char*)temps.str().c_str()); - if (res) { - replace_dataset_named_reference(dataset[i], excel_ref, ss.str().c_str(), "excel"); - } else { - return -1; - } + //class_Test = env->FindClass("sign2file/SignToWord"); + //int res = sign(env, class_Test, ss.str().c_str(), (char *)signoff_name.c_str(), (char*)sign_location, (char*)temps.str().c_str()); + //if (res) { + cout << command.str().c_str() << endl; + system(command.str().c_str()); + replace_dataset_named_reference(dataset[i], word_ref, ss.str().c_str(), "word"); + //} + //else { + //return -1; + //} + } + else if (file_type == 1) { + //class_Test = env->FindClass("sign2file/SignToExcel"); + //int res = sign(env, class_Test, ss.str().c_str(), (char *)signoff_name.c_str(), (char*)sign_location, (char*)temps.str().c_str()); + //if (res) { + cout << command.str().c_str() << endl; + system(command.str().c_str()); + replace_dataset_named_reference(dataset[i], excel_ref, ss.str().c_str(), "excel"); + //} + //else { + //return -1; + //} } + command.str(""); + command.clear(); file_type = -1; } new_name.str(""); @@ -610,7 +599,7 @@ int jd_signoff(EPM_action_message_t msg) { } } - FreeLibrary(hModule); + //FreeLibrary(hModule); POM_AM__set_application_bypass(false); return 0; diff --git a/HEZON_ITK/jd_splicing_task.cpp b/HEZON_ITK/jd_splicing_task.cpp new file mode 100644 index 0000000..da5b4e7 --- /dev/null +++ b/HEZON_ITK/jd_splicing_task.cpp @@ -0,0 +1,23 @@ +#include "util.h" + +int jd_splicing_task(EPM_action_message_t msg) { + POM_AM__set_application_bypass(true); + tag_t root_task; + EPM_ask_root_task(msg.task, &root_task); + char* task_name; + AOM_ask_value_string(root_task, "object_name", &task_name); + cout << "task_name:" << task_name << endl; + tag_t job; + EPM_ask_job(msg.task, &job); + char* job_name; + AOM_ask_value_string(job, "object_name", &job_name); + cout << "job_name:" << job_name << endl; + string new_name = string(job_name).append(" ").append(task_name); + cout << "new_name:" << new_name.c_str() << endl; + AOM_lock(job); + AOM_set_value_string(job, "object_name", new_name.c_str()); + AOM_save(job); + AOM_unlock(job); + POM_AM__set_application_bypass(false); + return ITK_ok; +} \ No newline at end of file diff --git a/HEZON_ITK/packages.config b/HEZON_ITK/packages.config index 50f91ea..93c5ac1 100644 --- a/HEZON_ITK/packages.config +++ b/HEZON_ITK/packages.config @@ -1,6 +1,7 @@ 锘 + \ No newline at end of file diff --git a/HEZON_ITK/util.cpp b/HEZON_ITK/util.cpp index 4cdfe09..6e87ff5 100644 --- a/HEZON_ITK/util.cpp +++ b/HEZON_ITK/util.cpp @@ -58,4 +58,94 @@ const char* newGUID() } return (const char*)buf; -} \ No newline at end of file +} + +#ifdef _WIN32 +#include +string GbkToUtf8(const char *src_str) { + int len = MultiByteToWideChar(CP_ACP, 0, src_str, -1, NULL, 0); + wchar_t* wstr = new wchar_t[len + 1]; + memset(wstr, 0, len + 1); + MultiByteToWideChar(CP_ACP, 0, src_str, -1, wstr, len); + len = WideCharToMultiByte(CP_UTF8, 0, wstr, -1, NULL, 0, NULL, NULL); + char* str = new char[len + 1]; + memset(str, 0, len + 1); + WideCharToMultiByte(CP_UTF8, 0, wstr, -1, str, len, NULL, NULL); + string strTemp = str; + if (wstr) delete[] wstr; + if (str) delete[] str; + return strTemp; +} + +string Utf8ToGbk(const char *src_str) { + int len = MultiByteToWideChar(CP_UTF8, 0, src_str, -1, NULL, 0); + wchar_t* wszGBK = new wchar_t[len + 1]; + memset(wszGBK, 0, len * 2 + 2); + MultiByteToWideChar(CP_UTF8, 0, src_str, -1, wszGBK, len); + len = WideCharToMultiByte(CP_ACP, 0, wszGBK, -1, NULL, 0, NULL, NULL); + char* szGBK = new char[len + 1]; + memset(szGBK, 0, len + 1); + WideCharToMultiByte(CP_ACP, 0, wszGBK, -1, szGBK, len, NULL, NULL); + string strTemp(szGBK); + if (wszGBK) delete[] wszGBK; + if (szGBK) delete[] szGBK; + return strTemp; +} +#else +#include + +int GbkToUtf8(char *str_str, size_t src_len, char *dst_str, size_t dst_len) { + iconv_t cd; + char **pin = &str_str; + char **pout = &dst_str; + + cd = iconv_open("utf8", "gbk"); + if (cd == 0) + return -1; + memset(dst_str, 0, dst_len); + if (iconv(cd, pin, &src_len, pout, &dst_len) == -1) + return -1; + iconv_close(cd); + *pout = '\0'; + + return 0; +} + +int Utf8ToGbk(char *src_str, size_t src_len, char *dst_str, size_t dst_len) { + iconv_t cd; + char **pin = &src_str; + char **pout = &dst_str; + + cd = iconv_open("gbk", "utf8"); + if (cd == 0) + return -1; + memset(dst_str, 0, dst_len); + if (iconv(cd, pin, &src_len, pout, &dst_len) == -1) + return -1; + iconv_close(cd); + *pout = '\0'; + + return 0; +} + + +#endif + +const wchar_t* stringToWchar(const std::string& str) +{ + LPCSTR pszSrc = str.c_str(); + int nLen = MultiByteToWideChar(CP_ACP, 0, pszSrc, -1, NULL, 0); + if (nLen == 0) + return std::wstring(L"").c_str(); + + wchar_t* pwszDst = new wchar_t[nLen]; + if (!pwszDst) + return std::wstring(L"").c_str(); + + MultiByteToWideChar(CP_ACP, 0, pszSrc, -1, pwszDst, nLen); + std::wstring wstr(pwszDst); + delete[] pwszDst; + pwszDst = NULL; + + return wstr.c_str(); +} diff --git a/HEZON_ITK/util.h b/HEZON_ITK/util.h index 20e2937..3bc550d 100644 --- a/HEZON_ITK/util.h +++ b/HEZON_ITK/util.h @@ -52,6 +52,8 @@ #include "ics/ics.h" #include "ics/ics2.h" #include +#include +#include #using "./declib.dll" using namespace std; @@ -59,11 +61,19 @@ using namespace Testdll; using namespace System; extern "C" int POM_AM__set_application_bypass(logical bypass); - +#ifdef WIN32 +#define ACCESS(fileName,accessMode) _access(fileName,accessMode) +#define MKDIR(path) _mkdir(path) +#else +#define ACCESS(fileName,accessMode) access(fileName,accessMode) +#define MKDIR(path) mkdir(path,S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) +#endif string ConvertToString(System::String^ str); System::String ^ convert_to_cstring(const char *p); bool isTypeOf(tag_t objtag, const char * type_name); void split(std::string s, const char* delim, std::vector* ret); - +string GbkToUtf8(const char *src_str); +string Utf8ToGbk(const char *src_str); +const wchar_t* stringToWchar(const std::string& str); const char* newGUID(); \ No newline at end of file diff --git a/HEZON_ITK/x64/Release/HEZON_ITK.Build.CppClean.log b/HEZON_ITK/x64/Release/HEZON_ITK.Build.CppClean.log index 832e6a7..f6b0dae 100644 --- a/HEZON_ITK/x64/Release/HEZON_ITK.Build.CppClean.log +++ b/HEZON_ITK/x64/Release/HEZON_ITK.Build.CppClean.log @@ -1,13 +1,13 @@ e:\work\vs_workspace\jditk\hezon_itk\x64\release\vc140.pdb -e:\work\vs_workspace\jditk\hezon_itk\x64\release\jd_batch_process.obj -e:\work\vs_workspace\jditk\hezon_itk\x64\release\jd_add_attachments.obj -e:\work\vs_workspace\jditk\hezon_itk\x64\release\bs_custom_main.obj e:\work\vs_workspace\jditk\hezon_itk\x64\release\epm_register_handler.obj e:\work\vs_workspace\jditk\hezon_itk\x64\release\jd_send_mail.obj +e:\work\vs_workspace\jditk\hezon_itk\x64\release\jd_prop_relate.obj +e:\work\vs_workspace\jditk\hezon_itk\x64\release\jd_get_target2.obj e:\work\vs_workspace\jditk\hezon_itk\x64\release\jd_get_target.obj e:\work\vs_workspace\jditk\hezon_itk\x64\release\jd_ckeck_bom_use.obj e:\work\vs_workspace\jditk\hezon_itk\x64\release\jd_check_bom_99.obj e:\work\vs_workspace\jditk\hezon_itk\x64\release\jd_check_99_cglx.obj +e:\work\vs_workspace\jditk\hezon_itk\x64\release\jd_auto_revise.obj e:\work\vs_workspace\jditk\hezon_itk\x64\release\csendmail.obj e:\work\vs_workspace\jditk\hezon_itk\x64\release\bs_wl_check.obj e:\work\vs_workspace\jditk\hezon_itk\x64\release\bs_test_release_check.obj @@ -19,13 +19,19 @@ e:\work\vs_workspace\jditk\hezon_itk\x64\release\bs_bypass.obj e:\work\vs_workspace\jditk\hezon_itk\x64\release\bs_bom_transmit_check.obj e:\work\vs_workspace\jditk\hezon_itk\x64\release\bs_bom_save_check.obj e:\work\vs_workspace\jditk\hezon_itk\x64\release\bs_bom_check.obj +e:\work\vs_workspace\jditk\hezon_itk\x64\release\jd_rev_release.obj e:\work\vs_workspace\jditk\hezon_itk\x64\release\jd_check_id_wllx.obj e:\work\vs_workspace\jditk\hezon_itk\x64\release\util.obj +e:\work\vs_workspace\jditk\hezon_itk\x64\release\jd_splicing_task.obj e:\work\vs_workspace\jditk\hezon_itk\x64\release\jd_check_wlms_len.obj e:\work\vs_workspace\jditk\hezon_itk\x64\release\jd_signoff.obj +e:\work\vs_workspace\jditk\hezon_itk\x64\release\jd_send_mail2.obj e:\work\vs_workspace\jditk\hezon_itk\x64\release\jd_schedule_joint.obj e:\work\vs_workspace\jditk\hezon_itk\x64\release\jd_clear_field.obj e:\work\vs_workspace\jditk\hezon_itk\x64\release\jd_check_99_bomyt.obj +e:\work\vs_workspace\jditk\hezon_itk\x64\release\jd_batch_process.obj +e:\work\vs_workspace\jditk\hezon_itk\x64\release\jd_add_attachments.obj +e:\work\vs_workspace\jditk\hezon_itk\x64\release\bs_custom_main.obj e:\work\vs_workspace\jditk\hezon_itk\x64\release\.netframework,version=v4.0.assemblyattributes.obj e:\work\vs_workspace\jditk\hezon_itk\x64\release\.netframework,version=v4.0.assemblyattributes.asm e:\work\vs_workspace\jditk\x64\release\bs.dll diff --git a/x64/Release/HEZON_ITK.exp b/x64/Release/HEZON_ITK.exp deleted file mode 100644 index d8602e3..0000000 Binary files a/x64/Release/HEZON_ITK.exp and /dev/null differ diff --git a/x64/Release/hxErp.zip b/x64/Release/hxErp.zip deleted file mode 100644 index a84762c..0000000 Binary files a/x64/Release/hxErp.zip and /dev/null differ diff --git a/x64/Release/msado15.tlh b/x64/Release/msado15.tlh deleted file mode 100644 index 7fdc627..0000000 --- a/x64/Release/msado15.tlh +++ /dev/null @@ -1,5027 +0,0 @@ -锘// Created by Microsoft (R) C/C++ Compiler Version 11.00.50727.1 (a8dc2009). -// -// c:\users\liyanfeng\documents\浠g爜\hezon_itk\hezon_itk\x64\release\msado15.tlh -// -// C++ source equivalent of type library C:/Program Files/Common Files/System/ado/msado15.dll -// compiler-generated file created 03/22/17 at 19:48:35 - DO NOT EDIT! - -#pragma once -#pragma pack(push, 8) - -#include - -// -// Forward references and typedefs -// - -struct __declspec(uuid("b691e011-1797-432e-907a-4d8c69339129")) -/* LIBID */ __ADODB; -enum CursorTypeEnum; -enum CursorOptionEnum; -enum LockTypeEnum; -enum ExecuteOptionEnum; -enum ConnectOptionEnum; -enum ObjectStateEnum; -enum CursorLocationEnum; -enum DataTypeEnum; -enum FieldAttributeEnum; -enum EditModeEnum; -enum RecordStatusEnum; -enum GetRowsOptionEnum; -enum PositionEnum; -enum BookmarkEnum; -enum MarshalOptionsEnum; -enum AffectEnum; -enum ResyncEnum; -enum CompareEnum; -enum FilterGroupEnum; -enum SearchDirectionEnum; -enum PersistFormatEnum; -enum StringFormatEnum; -enum ConnectPromptEnum; -enum ConnectModeEnum; -enum RecordCreateOptionsEnum; -enum RecordOpenOptionsEnum; -enum IsolationLevelEnum; -enum XactAttributeEnum; -enum PropertyAttributesEnum; -enum ErrorValueEnum; -enum ParameterAttributesEnum; -enum ParameterDirectionEnum; -enum CommandTypeEnum; -enum EventStatusEnum; -enum EventReasonEnum; -enum SchemaEnum; -enum FieldStatusEnum; -enum SeekEnum; -enum ADCPROP_UPDATECRITERIA_ENUM; -enum ADCPROP_ASYNCTHREADPRIORITY_ENUM; -enum ADCPROP_AUTORECALC_ENUM; -enum ADCPROP_UPDATERESYNC_ENUM; -enum MoveRecordOptionsEnum; -enum CopyRecordOptionsEnum; -enum StreamTypeEnum; -enum LineSeparatorEnum; -enum StreamOpenOptionsEnum; -enum StreamWriteEnum; -enum SaveOptionsEnum; -enum FieldEnum; -enum StreamReadEnum; -enum RecordTypeEnum; -struct __declspec(uuid("00000512-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ _Collection; -struct __declspec(uuid("00000513-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ _DynaCollection; -struct __declspec(uuid("00000534-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ _ADO; -struct __declspec(uuid("00000504-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Properties; -struct __declspec(uuid("00000503-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Property; -struct __declspec(uuid("00000500-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Error; -struct __declspec(uuid("00000501-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Errors; -struct __declspec(uuid("00001508-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Command15; -struct __declspec(uuid("00001550-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ _Connection; -struct __declspec(uuid("00001515-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Connection15; -struct __declspec(uuid("00001556-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ _Recordset; -struct __declspec(uuid("00001555-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Recordset21; -struct __declspec(uuid("0000154f-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Recordset20; -struct __declspec(uuid("0000150e-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Recordset15; -struct __declspec(uuid("00001564-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Fields; -struct __declspec(uuid("0000154d-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Fields20; -struct __declspec(uuid("00001506-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Fields15; -struct __declspec(uuid("00001569-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Field; -struct __declspec(uuid("0000154c-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Field20; -struct __declspec(uuid("0000150c-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ _Parameter; -struct __declspec(uuid("0000150d-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Parameters; -struct __declspec(uuid("0000154e-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Command25; -struct __declspec(uuid("986761e8-7269-4890-aa65-ad7c03697a6d")) -/* dual interface */ _Command; -struct __declspec(uuid("00001402-0000-0010-8000-00aa006d2ea4")) -/* interface */ ConnectionEventsVt; -struct __declspec(uuid("00001403-0000-0010-8000-00aa006d2ea4")) -/* interface */ RecordsetEventsVt; -struct __declspec(uuid("00001400-0000-0010-8000-00aa006d2ea4")) -/* dispinterface */ ConnectionEvents; -struct __declspec(uuid("00001266-0000-0010-8000-00aa006d2ea4")) -/* dispinterface */ RecordsetEvents; -struct __declspec(uuid("00000516-0000-0010-8000-00aa006d2ea4")) -/* interface */ ADOConnectionConstruction15; -struct __declspec(uuid("00000551-0000-0010-8000-00aa006d2ea4")) -/* interface */ ADOConnectionConstruction; -struct /* coclass */ Connection; -struct __declspec(uuid("00001562-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ _Record; -struct /* coclass */ Record; -struct __declspec(uuid("00001565-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ _Stream; -struct /* coclass */ Stream; -struct __declspec(uuid("00000567-0000-0010-8000-00aa006d2ea4")) -/* interface */ ADORecordConstruction; -struct __declspec(uuid("00000568-0000-0010-8000-00aa006d2ea4")) -/* interface */ ADOStreamConstruction; -struct __declspec(uuid("00000517-0000-0010-8000-00aa006d2ea4")) -/* interface */ ADOCommandConstruction; -struct /* coclass */ Command; -struct /* coclass */ Recordset; -struct __declspec(uuid("00000283-0000-0010-8000-00aa006d2ea4")) -/* interface */ ADORecordsetConstruction; -struct __declspec(uuid("00001505-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Field15; -struct /* coclass */ Parameter; -struct __declspec(uuid("00000402-0000-0010-8000-00aa006d2ea4")) -/* interface */ ConnectionEventsVt_Deprecated; -struct __declspec(uuid("00000550-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ _Connection_Deprecated; -struct __declspec(uuid("00000515-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Connection15_Deprecated; -struct __declspec(uuid("00000556-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ _Recordset_Deprecated; -struct __declspec(uuid("00000555-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Recordset21_Deprecated; -struct __declspec(uuid("0000054f-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Recordset20_Deprecated; -struct __declspec(uuid("0000050e-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Recordset15_Deprecated; -struct __declspec(uuid("00000564-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Fields_Deprecated; -struct __declspec(uuid("0000054d-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Fields20_Deprecated; -struct __declspec(uuid("00000506-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Fields15_Deprecated; -struct __declspec(uuid("00000569-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Field_Deprecated; -struct __declspec(uuid("0000054c-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Field20_Deprecated; -struct __declspec(uuid("b08400bd-f9d1-4d02-b856-71d5dba123e9")) -/* dual interface */ _Command_Deprecated; -struct __declspec(uuid("0000054e-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Command25_Deprecated; -struct __declspec(uuid("00000508-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Command15_Deprecated; -struct __declspec(uuid("0000050c-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ _Parameter_Deprecated; -struct __declspec(uuid("0000050d-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Parameters_Deprecated; -struct __declspec(uuid("00000403-0000-0010-8000-00aa006d2ea4")) -/* interface */ RecordsetEventsVt_Deprecated; -struct __declspec(uuid("00000400-0000-0010-8000-00aa006d2ea4")) -/* dispinterface */ ConnectionEvents_Deprecated; -struct __declspec(uuid("00000266-0000-0010-8000-00aa006d2ea4")) -/* dispinterface */ RecordsetEvents_Deprecated; -struct __declspec(uuid("00000562-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ _Record_Deprecated; -struct __declspec(uuid("00000565-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ _Stream_Deprecated; -struct __declspec(uuid("00000505-0000-0010-8000-00aa006d2ea4")) -/* dual interface */ Field15_Deprecated; -typedef __int64 PositionEnum_Param; -typedef enum SearchDirectionEnum SearchDirection; -typedef __int64 ADO_LONGPTR; - -// -// Smart pointer typedef declarations -// - -_COM_SMARTPTR_TYPEDEF(_Collection, __uuidof(_Collection)); -_COM_SMARTPTR_TYPEDEF(_DynaCollection, __uuidof(_DynaCollection)); -_COM_SMARTPTR_TYPEDEF(Property, __uuidof(Property)); -_COM_SMARTPTR_TYPEDEF(Properties, __uuidof(Properties)); -_COM_SMARTPTR_TYPEDEF(_ADO, __uuidof(_ADO)); -_COM_SMARTPTR_TYPEDEF(Error, __uuidof(Error)); -_COM_SMARTPTR_TYPEDEF(Errors, __uuidof(Errors)); -_COM_SMARTPTR_TYPEDEF(Field20, __uuidof(Field20)); -_COM_SMARTPTR_TYPEDEF(Field, __uuidof(Field)); -_COM_SMARTPTR_TYPEDEF(Fields15, __uuidof(Fields15)); -_COM_SMARTPTR_TYPEDEF(Fields20, __uuidof(Fields20)); -_COM_SMARTPTR_TYPEDEF(Fields, __uuidof(Fields)); -_COM_SMARTPTR_TYPEDEF(_Parameter, __uuidof(_Parameter)); -_COM_SMARTPTR_TYPEDEF(Parameters, __uuidof(Parameters)); -_COM_SMARTPTR_TYPEDEF(ConnectionEvents, __uuidof(ConnectionEvents)); -_COM_SMARTPTR_TYPEDEF(RecordsetEvents, __uuidof(RecordsetEvents)); -_COM_SMARTPTR_TYPEDEF(ADOConnectionConstruction15, __uuidof(ADOConnectionConstruction15)); -_COM_SMARTPTR_TYPEDEF(ADOConnectionConstruction, __uuidof(ADOConnectionConstruction)); -_COM_SMARTPTR_TYPEDEF(_Stream, __uuidof(_Stream)); -_COM_SMARTPTR_TYPEDEF(ADORecordConstruction, __uuidof(ADORecordConstruction)); -_COM_SMARTPTR_TYPEDEF(ADOStreamConstruction, __uuidof(ADOStreamConstruction)); -_COM_SMARTPTR_TYPEDEF(ADOCommandConstruction, __uuidof(ADOCommandConstruction)); -_COM_SMARTPTR_TYPEDEF(ADORecordsetConstruction, __uuidof(ADORecordsetConstruction)); -_COM_SMARTPTR_TYPEDEF(Field15, __uuidof(Field15)); -_COM_SMARTPTR_TYPEDEF(Field20_Deprecated, __uuidof(Field20_Deprecated)); -_COM_SMARTPTR_TYPEDEF(Field_Deprecated, __uuidof(Field_Deprecated)); -_COM_SMARTPTR_TYPEDEF(Fields15_Deprecated, __uuidof(Fields15_Deprecated)); -_COM_SMARTPTR_TYPEDEF(Fields20_Deprecated, __uuidof(Fields20_Deprecated)); -_COM_SMARTPTR_TYPEDEF(Fields_Deprecated, __uuidof(Fields_Deprecated)); -_COM_SMARTPTR_TYPEDEF(_Parameter_Deprecated, __uuidof(_Parameter_Deprecated)); -_COM_SMARTPTR_TYPEDEF(Parameters_Deprecated, __uuidof(Parameters_Deprecated)); -_COM_SMARTPTR_TYPEDEF(ConnectionEvents_Deprecated, __uuidof(ConnectionEvents_Deprecated)); -_COM_SMARTPTR_TYPEDEF(RecordsetEvents_Deprecated, __uuidof(RecordsetEvents_Deprecated)); -_COM_SMARTPTR_TYPEDEF(_Stream_Deprecated, __uuidof(_Stream_Deprecated)); -_COM_SMARTPTR_TYPEDEF(Field15_Deprecated, __uuidof(Field15_Deprecated)); -_COM_SMARTPTR_TYPEDEF(Command15, __uuidof(Command15)); -_COM_SMARTPTR_TYPEDEF(Command25, __uuidof(Command25)); -_COM_SMARTPTR_TYPEDEF(_Command, __uuidof(_Command)); -_COM_SMARTPTR_TYPEDEF(Connection15, __uuidof(Connection15)); -_COM_SMARTPTR_TYPEDEF(_Connection, __uuidof(_Connection)); -_COM_SMARTPTR_TYPEDEF(Recordset15, __uuidof(Recordset15)); -_COM_SMARTPTR_TYPEDEF(Recordset20, __uuidof(Recordset20)); -_COM_SMARTPTR_TYPEDEF(Recordset21, __uuidof(Recordset21)); -_COM_SMARTPTR_TYPEDEF(_Recordset, __uuidof(_Recordset)); -_COM_SMARTPTR_TYPEDEF(ConnectionEventsVt, __uuidof(ConnectionEventsVt)); -_COM_SMARTPTR_TYPEDEF(RecordsetEventsVt, __uuidof(RecordsetEventsVt)); -_COM_SMARTPTR_TYPEDEF(_Record, __uuidof(_Record)); -_COM_SMARTPTR_TYPEDEF(ConnectionEventsVt_Deprecated, __uuidof(ConnectionEventsVt_Deprecated)); -_COM_SMARTPTR_TYPEDEF(Connection15_Deprecated, __uuidof(Connection15_Deprecated)); -_COM_SMARTPTR_TYPEDEF(_Connection_Deprecated, __uuidof(_Connection_Deprecated)); -_COM_SMARTPTR_TYPEDEF(Recordset15_Deprecated, __uuidof(Recordset15_Deprecated)); -_COM_SMARTPTR_TYPEDEF(Recordset20_Deprecated, __uuidof(Recordset20_Deprecated)); -_COM_SMARTPTR_TYPEDEF(Recordset21_Deprecated, __uuidof(Recordset21_Deprecated)); -_COM_SMARTPTR_TYPEDEF(_Recordset_Deprecated, __uuidof(_Recordset_Deprecated)); -_COM_SMARTPTR_TYPEDEF(Command15_Deprecated, __uuidof(Command15_Deprecated)); -_COM_SMARTPTR_TYPEDEF(Command25_Deprecated, __uuidof(Command25_Deprecated)); -_COM_SMARTPTR_TYPEDEF(_Command_Deprecated, __uuidof(_Command_Deprecated)); -_COM_SMARTPTR_TYPEDEF(RecordsetEventsVt_Deprecated, __uuidof(RecordsetEventsVt_Deprecated)); -_COM_SMARTPTR_TYPEDEF(_Record_Deprecated, __uuidof(_Record_Deprecated)); - -// -// Type library items -// - -enum __declspec(uuid("0000051b-0000-0010-8000-00aa006d2ea4")) -CursorTypeEnum -{ - adOpenUnspecified = -1, - adOpenForwardOnly = 0, - adOpenKeyset = 1, - adOpenDynamic = 2, - adOpenStatic = 3 -}; - -enum __declspec(uuid("0000051c-0000-0010-8000-00aa006d2ea4")) -CursorOptionEnum -{ - adHoldRecords = 256, - adMovePrevious = 512, - adAddNew = 16778240, - adDelete = 16779264, - adUpdate = 16809984, - adBookmark = 8192, - adApproxPosition = 16384, - adUpdateBatch = 65536, - adResync = 131072, - adNotify = 262144, - adFind = 524288, - adSeek = 4194304, - adIndex = 8388608 -}; - -enum __declspec(uuid("0000051d-0000-0010-8000-00aa006d2ea4")) -LockTypeEnum -{ - adLockUnspecified = -1, - adLockReadOnly = 1, - adLockPessimistic = 2, - adLockOptimistic = 3, - adLockBatchOptimistic = 4 -}; - -enum __declspec(uuid("0000051e-0000-0010-8000-00aa006d2ea4")) -ExecuteOptionEnum -{ - adOptionUnspecified = -1, - adAsyncExecute = 16, - adAsyncFetch = 32, - adAsyncFetchNonBlocking = 64, - adExecuteNoRecords = 128, - adExecuteStream = 1024, - adExecuteRecord = 2048 -}; - -enum __declspec(uuid("00000541-0000-0010-8000-00aa006d2ea4")) -ConnectOptionEnum -{ - adConnectUnspecified = -1, - adAsyncConnect = 16 -}; - -enum __declspec(uuid("00000532-0000-0010-8000-00aa006d2ea4")) -ObjectStateEnum -{ - adStateClosed = 0, - adStateOpen = 1, - adStateConnecting = 2, - adStateExecuting = 4, - adStateFetching = 8 -}; - -enum __declspec(uuid("0000052f-0000-0010-8000-00aa006d2ea4")) -CursorLocationEnum -{ - adUseNone = 1, - adUseServer = 2, - adUseClient = 3, - adUseClientBatch = 3 -}; - -enum __declspec(uuid("0000051f-0000-0010-8000-00aa006d2ea4")) -DataTypeEnum -{ - adEmpty = 0, - adTinyInt = 16, - adSmallInt = 2, - adInteger = 3, - adBigInt = 20, - adUnsignedTinyInt = 17, - adUnsignedSmallInt = 18, - adUnsignedInt = 19, - adUnsignedBigInt = 21, - adSingle = 4, - adDouble = 5, - adCurrency = 6, - adDecimal = 14, - adNumeric = 131, - adBoolean = 11, - adError = 10, - adUserDefined = 132, - adVariant = 12, - adIDispatch = 9, - adIUnknown = 13, - adGUID = 72, - adDate = 7, - adDBDate = 133, - adDBTime = 134, - adDBTimeStamp = 135, - adBSTR = 8, - adChar = 129, - adVarChar = 200, - adLongVarChar = 201, - adWChar = 130, - adVarWChar = 202, - adLongVarWChar = 203, - adBinary = 128, - adVarBinary = 204, - adLongVarBinary = 205, - adChapter = 136, - adFileTime = 64, - adPropVariant = 138, - adVarNumeric = 139, - adArray = 8192 -}; - -enum __declspec(uuid("00000525-0000-0010-8000-00aa006d2ea4")) -FieldAttributeEnum -{ - adFldUnspecified = -1, - adFldMayDefer = 2, - adFldUpdatable = 4, - adFldUnknownUpdatable = 8, - adFldFixed = 16, - adFldIsNullable = 32, - adFldMayBeNull = 64, - adFldLong = 128, - adFldRowID = 256, - adFldRowVersion = 512, - adFldCacheDeferred = 4096, - adFldIsChapter = 8192, - adFldNegativeScale = 16384, - adFldKeyColumn = 32768, - adFldIsRowURL = 65536, - adFldIsDefaultStream = 131072, - adFldIsCollection = 262144 -}; - -enum __declspec(uuid("00000526-0000-0010-8000-00aa006d2ea4")) -EditModeEnum -{ - adEditNone = 0, - adEditInProgress = 1, - adEditAdd = 2, - adEditDelete = 4 -}; - -enum __declspec(uuid("00000527-0000-0010-8000-00aa006d2ea4")) -RecordStatusEnum -{ - adRecOK = 0, - adRecNew = 1, - adRecModified = 2, - adRecDeleted = 4, - adRecUnmodified = 8, - adRecInvalid = 16, - adRecMultipleChanges = 64, - adRecPendingChanges = 128, - adRecCanceled = 256, - adRecCantRelease = 1024, - adRecConcurrencyViolation = 2048, - adRecIntegrityViolation = 4096, - adRecMaxChangesExceeded = 8192, - adRecObjectOpen = 16384, - adRecOutOfMemory = 32768, - adRecPermissionDenied = 65536, - adRecSchemaViolation = 131072, - adRecDBDeleted = 262144 -}; - -enum __declspec(uuid("00000542-0000-0010-8000-00aa006d2ea4")) -GetRowsOptionEnum -{ - adGetRowsRest = -1 -}; - -enum __declspec(uuid("00000528-0000-0010-8000-00aa006d2ea4")) -PositionEnum -{ - adPosUnknown = -1, - adPosBOF = -2, - adPosEOF = -3 -}; - -enum BookmarkEnum -{ - adBookmarkCurrent = 0, - adBookmarkFirst = 1, - adBookmarkLast = 2 -}; - -enum __declspec(uuid("00000540-0000-0010-8000-00aa006d2ea4")) -MarshalOptionsEnum -{ - adMarshalAll = 0, - adMarshalModifiedOnly = 1 -}; - -enum __declspec(uuid("00000543-0000-0010-8000-00aa006d2ea4")) -AffectEnum -{ - adAffectCurrent = 1, - adAffectGroup = 2, - adAffectAll = 3, - adAffectAllChapters = 4 -}; - -enum __declspec(uuid("00000544-0000-0010-8000-00aa006d2ea4")) -ResyncEnum -{ - adResyncUnderlyingValues = 1, - adResyncAllValues = 2 -}; - -enum __declspec(uuid("00000545-0000-0010-8000-00aa006d2ea4")) -CompareEnum -{ - adCompareLessThan = 0, - adCompareEqual = 1, - adCompareGreaterThan = 2, - adCompareNotEqual = 3, - adCompareNotComparable = 4 -}; - -enum __declspec(uuid("00000546-0000-0010-8000-00aa006d2ea4")) -FilterGroupEnum -{ - adFilterNone = 0, - adFilterPendingRecords = 1, - adFilterAffectedRecords = 2, - adFilterFetchedRecords = 3, - adFilterPredicate = 4, - adFilterConflictingRecords = 5 -}; - -enum __declspec(uuid("00000547-0000-0010-8000-00aa006d2ea4")) -SearchDirectionEnum -{ - adSearchForward = 1, - adSearchBackward = -1 -}; - -enum __declspec(uuid("00000548-0000-0010-8000-00aa006d2ea4")) -PersistFormatEnum -{ - adPersistADTG = 0, - adPersistXML = 1 -}; - -enum __declspec(uuid("00000549-0000-0010-8000-00aa006d2ea4")) -StringFormatEnum -{ - adClipString = 2 -}; - -enum __declspec(uuid("00000520-0000-0010-8000-00aa006d2ea4")) -ConnectPromptEnum -{ - adPromptAlways = 1, - adPromptComplete = 2, - adPromptCompleteRequired = 3, - adPromptNever = 4 -}; - -enum __declspec(uuid("00000521-0000-0010-8000-00aa006d2ea4")) -ConnectModeEnum -{ - adModeUnknown = 0, - adModeRead = 1, - adModeWrite = 2, - adModeReadWrite = 3, - adModeShareDenyRead = 4, - adModeShareDenyWrite = 8, - adModeShareExclusive = 12, - adModeShareDenyNone = 16, - adModeRecursive = 4194304 -}; - -enum __declspec(uuid("00000570-0000-0010-8000-00aa006d2ea4")) -RecordCreateOptionsEnum -{ - adCreateCollection = 8192, - adCreateStructDoc = 0x80000000, - adCreateNonCollection = 0, - adOpenIfExists = 33554432, - adCreateOverwrite = 67108864, - adFailIfNotExists = -1 -}; - -enum __declspec(uuid("00000571-0000-0010-8000-00aa006d2ea4")) -RecordOpenOptionsEnum -{ - adOpenRecordUnspecified = -1, - adOpenSource = 8388608, - adOpenOutput = 8388608, - adOpenAsync = 4096, - adDelayFetchStream = 16384, - adDelayFetchFields = 32768, - adOpenExecuteCommand = 65536 -}; - -enum __declspec(uuid("00000523-0000-0010-8000-00aa006d2ea4")) -IsolationLevelEnum -{ - adXactUnspecified = -1, - adXactChaos = 16, - adXactReadUncommitted = 256, - adXactBrowse = 256, - adXactCursorStability = 4096, - adXactReadCommitted = 4096, - adXactRepeatableRead = 65536, - adXactSerializable = 1048576, - adXactIsolated = 1048576 -}; - -enum __declspec(uuid("00000524-0000-0010-8000-00aa006d2ea4")) -XactAttributeEnum -{ - adXactCommitRetaining = 131072, - adXactAbortRetaining = 262144, - adXactAsyncPhaseOne = 524288, - adXactSyncPhaseOne = 1048576 -}; - -enum __declspec(uuid("00000529-0000-0010-8000-00aa006d2ea4")) -PropertyAttributesEnum -{ - adPropNotSupported = 0, - adPropRequired = 1, - adPropOptional = 2, - adPropRead = 512, - adPropWrite = 1024 -}; - -enum __declspec(uuid("0000052a-0000-0010-8000-00aa006d2ea4")) -ErrorValueEnum -{ - adErrProviderFailed = 3000, - adErrInvalidArgument = 3001, - adErrOpeningFile = 3002, - adErrReadFile = 3003, - adErrWriteFile = 3004, - adErrNoCurrentRecord = 3021, - adErrIllegalOperation = 3219, - adErrCantChangeProvider = 3220, - adErrInTransaction = 3246, - adErrFeatureNotAvailable = 3251, - adErrItemNotFound = 3265, - adErrObjectInCollection = 3367, - adErrObjectNotSet = 3420, - adErrDataConversion = 3421, - adErrObjectClosed = 3704, - adErrObjectOpen = 3705, - adErrProviderNotFound = 3706, - adErrBoundToCommand = 3707, - adErrInvalidParamInfo = 3708, - adErrInvalidConnection = 3709, - adErrNotReentrant = 3710, - adErrStillExecuting = 3711, - adErrOperationCancelled = 3712, - adErrStillConnecting = 3713, - adErrInvalidTransaction = 3714, - adErrNotExecuting = 3715, - adErrUnsafeOperation = 3716, - adwrnSecurityDialog = 3717, - adwrnSecurityDialogHeader = 3718, - adErrIntegrityViolation = 3719, - adErrPermissionDenied = 3720, - adErrDataOverflow = 3721, - adErrSchemaViolation = 3722, - adErrSignMismatch = 3723, - adErrCantConvertvalue = 3724, - adErrCantCreate = 3725, - adErrColumnNotOnThisRow = 3726, - adErrURLDoesNotExist = 3727, - adErrTreePermissionDenied = 3728, - adErrInvalidURL = 3729, - adErrResourceLocked = 3730, - adErrResourceExists = 3731, - adErrCannotComplete = 3732, - adErrVolumeNotFound = 3733, - adErrOutOfSpace = 3734, - adErrResourceOutOfScope = 3735, - adErrUnavailable = 3736, - adErrURLNamedRowDoesNotExist = 3737, - adErrDelResOutOfScope = 3738, - adErrPropInvalidColumn = 3739, - adErrPropInvalidOption = 3740, - adErrPropInvalidValue = 3741, - adErrPropConflicting = 3742, - adErrPropNotAllSettable = 3743, - adErrPropNotSet = 3744, - adErrPropNotSettable = 3745, - adErrPropNotSupported = 3746, - adErrCatalogNotSet = 3747, - adErrCantChangeConnection = 3748, - adErrFieldsUpdateFailed = 3749, - adErrDenyNotSupported = 3750, - adErrDenyTypeNotSupported = 3751, - adErrProviderNotSpecified = 3753, - adErrConnectionStringTooLong = 3754 -}; - -enum __declspec(uuid("0000052b-0000-0010-8000-00aa006d2ea4")) -ParameterAttributesEnum -{ - adParamSigned = 16, - adParamNullable = 64, - adParamLong = 128 -}; - -enum __declspec(uuid("0000052c-0000-0010-8000-00aa006d2ea4")) -ParameterDirectionEnum -{ - adParamUnknown = 0, - adParamInput = 1, - adParamOutput = 2, - adParamInputOutput = 3, - adParamReturnValue = 4 -}; - -enum __declspec(uuid("0000052e-0000-0010-8000-00aa006d2ea4")) -CommandTypeEnum -{ - adCmdUnspecified = -1, - adCmdUnknown = 8, - adCmdText = 1, - adCmdTable = 2, - adCmdStoredProc = 4, - adCmdFile = 256, - adCmdTableDirect = 512 -}; - -enum __declspec(uuid("00000530-0000-0010-8000-00aa006d2ea4")) -EventStatusEnum -{ - adStatusOK = 1, - adStatusErrorsOccurred = 2, - adStatusCantDeny = 3, - adStatusCancel = 4, - adStatusUnwantedEvent = 5 -}; - -enum __declspec(uuid("00000531-0000-0010-8000-00aa006d2ea4")) -EventReasonEnum -{ - adRsnAddNew = 1, - adRsnDelete = 2, - adRsnUpdate = 3, - adRsnUndoUpdate = 4, - adRsnUndoAddNew = 5, - adRsnUndoDelete = 6, - adRsnRequery = 7, - adRsnResynch = 8, - adRsnClose = 9, - adRsnMove = 10, - adRsnFirstChange = 11, - adRsnMoveFirst = 12, - adRsnMoveNext = 13, - adRsnMovePrevious = 14, - adRsnMoveLast = 15 -}; - -enum __declspec(uuid("00000533-0000-0010-8000-00aa006d2ea4")) -SchemaEnum -{ - adSchemaProviderSpecific = -1, - adSchemaAsserts = 0, - adSchemaCatalogs = 1, - adSchemaCharacterSets = 2, - adSchemaCollations = 3, - adSchemaColumns = 4, - adSchemaCheckConstraints = 5, - adSchemaConstraintColumnUsage = 6, - adSchemaConstraintTableUsage = 7, - adSchemaKeyColumnUsage = 8, - adSchemaReferentialContraints = 9, - adSchemaReferentialConstraints = 9, - adSchemaTableConstraints = 10, - adSchemaColumnsDomainUsage = 11, - adSchemaIndexes = 12, - adSchemaColumnPrivileges = 13, - adSchemaTablePrivileges = 14, - adSchemaUsagePrivileges = 15, - adSchemaProcedures = 16, - adSchemaSchemata = 17, - adSchemaSQLLanguages = 18, - adSchemaStatistics = 19, - adSchemaTables = 20, - adSchemaTranslations = 21, - adSchemaProviderTypes = 22, - adSchemaViews = 23, - adSchemaViewColumnUsage = 24, - adSchemaViewTableUsage = 25, - adSchemaProcedureParameters = 26, - adSchemaForeignKeys = 27, - adSchemaPrimaryKeys = 28, - adSchemaProcedureColumns = 29, - adSchemaDBInfoKeywords = 30, - adSchemaDBInfoLiterals = 31, - adSchemaCubes = 32, - adSchemaDimensions = 33, - adSchemaHierarchies = 34, - adSchemaLevels = 35, - adSchemaMeasures = 36, - adSchemaProperties = 37, - adSchemaMembers = 38, - adSchemaTrustees = 39, - adSchemaFunctions = 40, - adSchemaActions = 41, - adSchemaCommands = 42, - adSchemaSets = 43 -}; - -enum __declspec(uuid("0000057e-0000-0010-8000-00aa006d2ea4")) -FieldStatusEnum -{ - adFieldOK = 0, - adFieldCantConvertValue = 2, - adFieldIsNull = 3, - adFieldTruncated = 4, - adFieldSignMismatch = 5, - adFieldDataOverflow = 6, - adFieldCantCreate = 7, - adFieldUnavailable = 8, - adFieldPermissionDenied = 9, - adFieldIntegrityViolation = 10, - adFieldSchemaViolation = 11, - adFieldBadStatus = 12, - adFieldDefault = 13, - adFieldIgnore = 15, - adFieldDoesNotExist = 16, - adFieldInvalidURL = 17, - adFieldResourceLocked = 18, - adFieldResourceExists = 19, - adFieldCannotComplete = 20, - adFieldVolumeNotFound = 21, - adFieldOutOfSpace = 22, - adFieldCannotDeleteSource = 23, - adFieldReadOnly = 24, - adFieldResourceOutOfScope = 25, - adFieldAlreadyExists = 26, - adFieldPendingInsert = 65536, - adFieldPendingDelete = 131072, - adFieldPendingChange = 262144, - adFieldPendingUnknown = 524288, - adFieldPendingUnknownDelete = 1048576 -}; - -enum __declspec(uuid("00000552-0000-0010-8000-00aa006d2ea4")) -SeekEnum -{ - adSeekFirstEQ = 1, - adSeekLastEQ = 2, - adSeekAfterEQ = 4, - adSeekAfter = 8, - adSeekBeforeEQ = 16, - adSeekBefore = 32 -}; - -enum __declspec(uuid("0000054a-0000-0010-8000-00aa006d2ea4")) -ADCPROP_UPDATECRITERIA_ENUM -{ - adCriteriaKey = 0, - adCriteriaAllCols = 1, - adCriteriaUpdCols = 2, - adCriteriaTimeStamp = 3 -}; - -enum __declspec(uuid("0000054b-0000-0010-8000-00aa006d2ea4")) -ADCPROP_ASYNCTHREADPRIORITY_ENUM -{ - adPriorityLowest = 1, - adPriorityBelowNormal = 2, - adPriorityNormal = 3, - adPriorityAboveNormal = 4, - adPriorityHighest = 5 -}; - -enum __declspec(uuid("00000554-0000-0010-8000-00aa006d2ea4")) -ADCPROP_AUTORECALC_ENUM -{ - adRecalcUpFront = 0, - adRecalcAlways = 1 -}; - -enum __declspec(uuid("00000553-0000-0010-8000-00aa006d2ea4")) -ADCPROP_UPDATERESYNC_ENUM -{ - adResyncNone = 0, - adResyncAutoIncrement = 1, - adResyncConflicts = 2, - adResyncUpdates = 4, - adResyncInserts = 8, - adResyncAll = 15 -}; - -enum __declspec(uuid("00000573-0000-0010-8000-00aa006d2ea4")) -MoveRecordOptionsEnum -{ - adMoveUnspecified = -1, - adMoveOverWrite = 1, - adMoveDontUpdateLinks = 2, - adMoveAllowEmulation = 4 -}; - -enum __declspec(uuid("00000574-0000-0010-8000-00aa006d2ea4")) -CopyRecordOptionsEnum -{ - adCopyUnspecified = -1, - adCopyOverWrite = 1, - adCopyAllowEmulation = 4, - adCopyNonRecursive = 2 -}; - -enum __declspec(uuid("00000576-0000-0010-8000-00aa006d2ea4")) -StreamTypeEnum -{ - adTypeBinary = 1, - adTypeText = 2 -}; - -enum __declspec(uuid("00000577-0000-0010-8000-00aa006d2ea4")) -LineSeparatorEnum -{ - adLF = 10, - adCR = 13, - adCRLF = -1 -}; - -enum __declspec(uuid("0000057a-0000-0010-8000-00aa006d2ea4")) -StreamOpenOptionsEnum -{ - adOpenStreamUnspecified = -1, - adOpenStreamAsync = 1, - adOpenStreamFromRecord = 4 -}; - -enum __declspec(uuid("0000057b-0000-0010-8000-00aa006d2ea4")) -StreamWriteEnum -{ - adWriteChar = 0, - adWriteLine = 1, - stWriteChar = 0, - stWriteLine = 1 -}; - -enum __declspec(uuid("0000057c-0000-0010-8000-00aa006d2ea4")) -SaveOptionsEnum -{ - adSaveCreateNotExist = 1, - adSaveCreateOverWrite = 2 -}; - -enum FieldEnum -{ - adDefaultStream = -1, - adRecordURL = -2 -}; - -enum StreamReadEnum -{ - adReadAll = -1, - adReadLine = -2 -}; - -enum __declspec(uuid("0000057d-0000-0010-8000-00aa006d2ea4")) -RecordTypeEnum -{ - adSimpleRecord = 0, - adCollectionRecord = 1, - adStructDoc = 2 -}; - -struct __declspec(uuid("00000512-0000-0010-8000-00aa006d2ea4")) -_Collection : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetCount)) - long Count; - - // - // Wrapper methods for error-handling - // - - long GetCount ( ); - IUnknownPtr _NewEnum ( ); - HRESULT Refresh ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Count ( - /*[out,retval]*/ long * c ) = 0; - virtual HRESULT __stdcall raw__NewEnum ( - /*[out,retval]*/ IUnknown * * ppvObject ) = 0; - virtual HRESULT __stdcall raw_Refresh ( ) = 0; -}; - -struct __declspec(uuid("00000513-0000-0010-8000-00aa006d2ea4")) -_DynaCollection : _Collection -{ - // - // Wrapper methods for error-handling - // - - HRESULT Append ( - IDispatch * Object ); - HRESULT Delete ( - const _variant_t & Index ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Append ( - /*[in]*/ IDispatch * Object ) = 0; - virtual HRESULT __stdcall raw_Delete ( - /*[in]*/ VARIANT Index ) = 0; -}; - -struct __declspec(uuid("00000503-0000-0010-8000-00aa006d2ea4")) -Property : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetValue,put=PutValue)) - _variant_t Value; - __declspec(property(get=GetName)) - _bstr_t Name; - __declspec(property(get=GetType)) - enum DataTypeEnum Type; - __declspec(property(get=GetAttributes,put=PutAttributes)) - long Attributes; - - // - // Wrapper methods for error-handling - // - - _variant_t GetValue ( ); - void PutValue ( - const _variant_t & pval ); - _bstr_t GetName ( ); - enum DataTypeEnum GetType ( ); - long GetAttributes ( ); - void PutAttributes ( - long plAttributes ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Value ( - /*[out,retval]*/ VARIANT * pval ) = 0; - virtual HRESULT __stdcall put_Value ( - /*[in]*/ VARIANT pval ) = 0; - virtual HRESULT __stdcall get_Name ( - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall get_Type ( - /*[out,retval]*/ enum DataTypeEnum * ptype ) = 0; - virtual HRESULT __stdcall get_Attributes ( - /*[out,retval]*/ long * plAttributes ) = 0; - virtual HRESULT __stdcall put_Attributes ( - /*[in]*/ long plAttributes ) = 0; -}; - -struct __declspec(uuid("00000504-0000-0010-8000-00aa006d2ea4")) -Properties : _Collection -{ - // - // Property data - // - - __declspec(property(get=GetItem)) - PropertyPtr Item[]; - - // - // Wrapper methods for error-handling - // - - PropertyPtr GetItem ( - const _variant_t & Index ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Item ( - /*[in]*/ VARIANT Index, - /*[out,retval]*/ struct Property * * ppvObject ) = 0; -}; - -struct __declspec(uuid("00000534-0000-0010-8000-00aa006d2ea4")) -_ADO : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetProperties)) - PropertiesPtr Properties; - - // - // Wrapper methods for error-handling - // - - PropertiesPtr GetProperties ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Properties ( - /*[out,retval]*/ struct Properties * * ppvObject ) = 0; -}; - -struct __declspec(uuid("00000500-0000-0010-8000-00aa006d2ea4")) -Error : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetDescription)) - _bstr_t Description; - __declspec(property(get=GetNumber)) - long Number; - __declspec(property(get=GetSource)) - _bstr_t Source; - __declspec(property(get=GetHelpFile)) - _bstr_t HelpFile; - __declspec(property(get=GetHelpContext)) - long HelpContext; - __declspec(property(get=GetSQLState)) - _bstr_t SQLState; - __declspec(property(get=GetNativeError)) - long NativeError; - - // - // Wrapper methods for error-handling - // - - long GetNumber ( ); - _bstr_t GetSource ( ); - _bstr_t GetDescription ( ); - _bstr_t GetHelpFile ( ); - long GetHelpContext ( ); - _bstr_t GetSQLState ( ); - long GetNativeError ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Number ( - /*[out,retval]*/ long * pl ) = 0; - virtual HRESULT __stdcall get_Source ( - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall get_Description ( - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall get_HelpFile ( - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall get_HelpContext ( - /*[out,retval]*/ long * pl ) = 0; - virtual HRESULT __stdcall get_SQLState ( - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall get_NativeError ( - /*[out,retval]*/ long * pl ) = 0; -}; - -struct __declspec(uuid("00000501-0000-0010-8000-00aa006d2ea4")) -Errors : _Collection -{ - // - // Property data - // - - __declspec(property(get=GetItem)) - ErrorPtr Item[]; - - // - // Wrapper methods for error-handling - // - - ErrorPtr GetItem ( - const _variant_t & Index ); - HRESULT Clear ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Item ( - /*[in]*/ VARIANT Index, - /*[out,retval]*/ struct Error * * ppvObject ) = 0; - virtual HRESULT __stdcall raw_Clear ( ) = 0; -}; - -struct __declspec(uuid("0000154c-0000-0010-8000-00aa006d2ea4")) -Field20 : _ADO -{ - // - // Property data - // - - __declspec(property(get=GetValue,put=PutValue)) - _variant_t Value; - __declspec(property(get=GetName)) - _bstr_t Name; - __declspec(property(get=GetType,put=PutType)) - enum DataTypeEnum Type; - __declspec(property(get=GetDefinedSize,put=PutDefinedSize)) - long DefinedSize; - __declspec(property(get=GetOriginalValue)) - _variant_t OriginalValue; - __declspec(property(get=GetUnderlyingValue)) - _variant_t UnderlyingValue; - __declspec(property(get=GetActualSize)) - long ActualSize; - __declspec(property(get=GetPrecision,put=PutPrecision)) - unsigned char Precision; - __declspec(property(get=GetNumericScale,put=PutNumericScale)) - unsigned char NumericScale; - __declspec(property(get=GetAttributes,put=PutAttributes)) - long Attributes; - __declspec(property(get=GetDataFormat,put=PutRefDataFormat)) - IUnknownPtr DataFormat; - - // - // Wrapper methods for error-handling - // - - long GetActualSize ( ); - long GetAttributes ( ); - long GetDefinedSize ( ); - _bstr_t GetName ( ); - enum DataTypeEnum GetType ( ); - _variant_t GetValue ( ); - void PutValue ( - const _variant_t & pvar ); - unsigned char GetPrecision ( ); - unsigned char GetNumericScale ( ); - HRESULT AppendChunk ( - const _variant_t & Data ); - _variant_t GetChunk ( - long Length ); - _variant_t GetOriginalValue ( ); - _variant_t GetUnderlyingValue ( ); - IUnknownPtr GetDataFormat ( ); - void PutRefDataFormat ( - IUnknown * ppiDF ); - void PutPrecision ( - unsigned char pbPrecision ); - void PutNumericScale ( - unsigned char pbNumericScale ); - void PutType ( - enum DataTypeEnum pDataType ); - void PutDefinedSize ( - long pl ); - void PutAttributes ( - long pl ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_ActualSize ( - /*[out,retval]*/ long * pl ) = 0; - virtual HRESULT __stdcall get_Attributes ( - /*[out,retval]*/ long * pl ) = 0; - virtual HRESULT __stdcall get_DefinedSize ( - /*[out,retval]*/ long * pl ) = 0; - virtual HRESULT __stdcall get_Name ( - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall get_Type ( - /*[out,retval]*/ enum DataTypeEnum * pDataType ) = 0; - virtual HRESULT __stdcall get_Value ( - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall put_Value ( - /*[in]*/ VARIANT pvar ) = 0; - virtual HRESULT __stdcall get_Precision ( - /*[out,retval]*/ unsigned char * pbPrecision ) = 0; - virtual HRESULT __stdcall get_NumericScale ( - /*[out,retval]*/ unsigned char * pbNumericScale ) = 0; - virtual HRESULT __stdcall raw_AppendChunk ( - /*[in]*/ VARIANT Data ) = 0; - virtual HRESULT __stdcall raw_GetChunk ( - /*[in]*/ long Length, - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall get_OriginalValue ( - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall get_UnderlyingValue ( - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall get_DataFormat ( - /*[out,retval]*/ IUnknown * * ppiDF ) = 0; - virtual HRESULT __stdcall putref_DataFormat ( - /*[in]*/ IUnknown * ppiDF ) = 0; - virtual HRESULT __stdcall put_Precision ( - /*[in]*/ unsigned char pbPrecision ) = 0; - virtual HRESULT __stdcall put_NumericScale ( - /*[in]*/ unsigned char pbNumericScale ) = 0; - virtual HRESULT __stdcall put_Type ( - /*[in]*/ enum DataTypeEnum pDataType ) = 0; - virtual HRESULT __stdcall put_DefinedSize ( - /*[in]*/ long pl ) = 0; - virtual HRESULT __stdcall put_Attributes ( - /*[in]*/ long pl ) = 0; -}; - -struct __declspec(uuid("00001569-0000-0010-8000-00aa006d2ea4")) -Field : Field20 -{ - // - // Property data - // - - __declspec(property(get=GetStatus)) - long Status; - - // - // Wrapper methods for error-handling - // - - long GetStatus ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Status ( - /*[out,retval]*/ long * pFStatus ) = 0; -}; - -struct __declspec(uuid("00001506-0000-0010-8000-00aa006d2ea4")) -Fields15 : _Collection -{ - // - // Property data - // - - __declspec(property(get=GetItem)) - FieldPtr Item[]; - - // - // Wrapper methods for error-handling - // - - FieldPtr GetItem ( - const _variant_t & Index ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Item ( - /*[in]*/ VARIANT Index, - /*[out,retval]*/ struct Field * * ppvObject ) = 0; -}; - -struct __declspec(uuid("0000154d-0000-0010-8000-00aa006d2ea4")) -Fields20 : Fields15 -{ - // - // Wrapper methods for error-handling - // - - HRESULT _Append ( - _bstr_t Name, - enum DataTypeEnum Type, - long DefinedSize, - enum FieldAttributeEnum Attrib ); - HRESULT Delete ( - const _variant_t & Index ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw__Append ( - /*[in]*/ BSTR Name, - /*[in]*/ enum DataTypeEnum Type, - /*[in]*/ long DefinedSize, - /*[in]*/ enum FieldAttributeEnum Attrib ) = 0; - virtual HRESULT __stdcall raw_Delete ( - /*[in]*/ VARIANT Index ) = 0; -}; - -struct __declspec(uuid("00001564-0000-0010-8000-00aa006d2ea4")) -Fields : Fields20 -{ - // - // Wrapper methods for error-handling - // - - HRESULT Append ( - _bstr_t Name, - enum DataTypeEnum Type, - long DefinedSize, - enum FieldAttributeEnum Attrib, - const _variant_t & FieldValue = vtMissing ); - HRESULT Update ( ); - HRESULT Resync ( - enum ResyncEnum ResyncValues ); - HRESULT CancelUpdate ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Append ( - /*[in]*/ BSTR Name, - /*[in]*/ enum DataTypeEnum Type, - /*[in]*/ long DefinedSize, - /*[in]*/ enum FieldAttributeEnum Attrib, - /*[in]*/ VARIANT FieldValue = vtMissing ) = 0; - virtual HRESULT __stdcall raw_Update ( ) = 0; - virtual HRESULT __stdcall raw_Resync ( - /*[in]*/ enum ResyncEnum ResyncValues ) = 0; - virtual HRESULT __stdcall raw_CancelUpdate ( ) = 0; -}; - -struct __declspec(uuid("0000150c-0000-0010-8000-00aa006d2ea4")) -_Parameter : _ADO -{ - // - // Property data - // - - __declspec(property(get=GetValue,put=PutValue)) - _variant_t Value; - __declspec(property(get=GetName,put=PutName)) - _bstr_t Name; - __declspec(property(get=GetType,put=PutType)) - enum DataTypeEnum Type; - __declspec(property(get=GetDirection,put=PutDirection)) - enum ParameterDirectionEnum Direction; - __declspec(property(get=GetPrecision,put=PutPrecision)) - unsigned char Precision; - __declspec(property(get=GetNumericScale,put=PutNumericScale)) - unsigned char NumericScale; - __declspec(property(get=GetSize,put=PutSize)) - long Size; - __declspec(property(get=GetAttributes,put=PutAttributes)) - long Attributes; - - // - // Wrapper methods for error-handling - // - - _bstr_t GetName ( ); - void PutName ( - _bstr_t pbstr ); - _variant_t GetValue ( ); - void PutValue ( - const _variant_t & pvar ); - enum DataTypeEnum GetType ( ); - void PutType ( - enum DataTypeEnum psDataType ); - void PutDirection ( - enum ParameterDirectionEnum plParmDirection ); - enum ParameterDirectionEnum GetDirection ( ); - void PutPrecision ( - unsigned char pbPrecision ); - unsigned char GetPrecision ( ); - void PutNumericScale ( - unsigned char pbScale ); - unsigned char GetNumericScale ( ); - void PutSize ( - long pl ); - long GetSize ( ); - HRESULT AppendChunk ( - const _variant_t & Val ); - long GetAttributes ( ); - void PutAttributes ( - long plParmAttribs ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Name ( - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall put_Name ( - /*[in]*/ BSTR pbstr ) = 0; - virtual HRESULT __stdcall get_Value ( - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall put_Value ( - /*[in]*/ VARIANT pvar ) = 0; - virtual HRESULT __stdcall get_Type ( - /*[out,retval]*/ enum DataTypeEnum * psDataType ) = 0; - virtual HRESULT __stdcall put_Type ( - /*[in]*/ enum DataTypeEnum psDataType ) = 0; - virtual HRESULT __stdcall put_Direction ( - /*[in]*/ enum ParameterDirectionEnum plParmDirection ) = 0; - virtual HRESULT __stdcall get_Direction ( - /*[out,retval]*/ enum ParameterDirectionEnum * plParmDirection ) = 0; - virtual HRESULT __stdcall put_Precision ( - /*[in]*/ unsigned char pbPrecision ) = 0; - virtual HRESULT __stdcall get_Precision ( - /*[out,retval]*/ unsigned char * pbPrecision ) = 0; - virtual HRESULT __stdcall put_NumericScale ( - /*[in]*/ unsigned char pbScale ) = 0; - virtual HRESULT __stdcall get_NumericScale ( - /*[out,retval]*/ unsigned char * pbScale ) = 0; - virtual HRESULT __stdcall put_Size ( - /*[in]*/ long pl ) = 0; - virtual HRESULT __stdcall get_Size ( - /*[out,retval]*/ long * pl ) = 0; - virtual HRESULT __stdcall raw_AppendChunk ( - /*[in]*/ VARIANT Val ) = 0; - virtual HRESULT __stdcall get_Attributes ( - /*[out,retval]*/ long * plParmAttribs ) = 0; - virtual HRESULT __stdcall put_Attributes ( - /*[in]*/ long plParmAttribs ) = 0; -}; - -struct __declspec(uuid("0000150d-0000-0010-8000-00aa006d2ea4")) -Parameters : _DynaCollection -{ - // - // Property data - // - - __declspec(property(get=GetItem)) - _ParameterPtr Item[]; - - // - // Wrapper methods for error-handling - // - - _ParameterPtr GetItem ( - const _variant_t & Index ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Item ( - /*[in]*/ VARIANT Index, - /*[out,retval]*/ struct _Parameter * * ppvObject ) = 0; -}; - -struct __declspec(uuid("00001400-0000-0010-8000-00aa006d2ea4")) -ConnectionEvents : IDispatch -{ - // - // Wrapper methods for error-handling - // - - // Methods: - HRESULT InfoMessage ( - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Connection * pConnection ); - HRESULT BeginTransComplete ( - long TransactionLevel, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Connection * pConnection ); - HRESULT CommitTransComplete ( - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Connection * pConnection ); - HRESULT RollbackTransComplete ( - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Connection * pConnection ); - HRESULT WillExecute ( - BSTR * Source, - enum CursorTypeEnum * CursorType, - enum LockTypeEnum * LockType, - long * Options, - enum EventStatusEnum * adStatus, - struct _Command * pCommand, - struct _Recordset * pRecordset, - struct _Connection * pConnection ); - HRESULT ExecuteComplete ( - long RecordsAffected, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Command * pCommand, - struct _Recordset * pRecordset, - struct _Connection * pConnection ); - HRESULT WillConnect ( - BSTR * ConnectionString, - BSTR * UserID, - BSTR * Password, - long * Options, - enum EventStatusEnum * adStatus, - struct _Connection * pConnection ); - HRESULT ConnectComplete ( - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Connection * pConnection ); - HRESULT Disconnect ( - enum EventStatusEnum * adStatus, - struct _Connection * pConnection ); -}; - -struct __declspec(uuid("00001266-0000-0010-8000-00aa006d2ea4")) -RecordsetEvents : IDispatch -{ - // - // Wrapper methods for error-handling - // - - // Methods: - HRESULT WillChangeField ( - long cFields, - const _variant_t & Fields, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); - HRESULT FieldChangeComplete ( - long cFields, - const _variant_t & Fields, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); - HRESULT WillChangeRecord ( - enum EventReasonEnum adReason, - long cRecords, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); - HRESULT RecordChangeComplete ( - enum EventReasonEnum adReason, - long cRecords, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); - HRESULT WillChangeRecordset ( - enum EventReasonEnum adReason, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); - HRESULT RecordsetChangeComplete ( - enum EventReasonEnum adReason, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); - HRESULT WillMove ( - enum EventReasonEnum adReason, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); - HRESULT MoveComplete ( - enum EventReasonEnum adReason, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); - HRESULT EndOfRecordset ( - VARIANT_BOOL * fMoreData, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); - HRESULT FetchProgress ( - long Progress, - long MaxProgress, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); - HRESULT FetchComplete ( - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); -}; - -struct __declspec(uuid("00000516-0000-0010-8000-00aa006d2ea4")) -ADOConnectionConstruction15 : IUnknown -{ - // - // Property data - // - - __declspec(property(get=GetDSO)) - IUnknownPtr DSO; - __declspec(property(get=GetSession)) - IUnknownPtr Session; - - // - // Wrapper methods for error-handling - // - - IUnknownPtr GetDSO ( ); - IUnknownPtr GetSession ( ); - HRESULT WrapDSOandSession ( - IUnknown * pDSO, - IUnknown * pSession ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_DSO ( - /*[out,retval]*/ IUnknown * * ppDSO ) = 0; - virtual HRESULT __stdcall get_Session ( - /*[out,retval]*/ IUnknown * * ppSession ) = 0; - virtual HRESULT __stdcall raw_WrapDSOandSession ( - /*[in]*/ IUnknown * pDSO, - /*[in]*/ IUnknown * pSession ) = 0; -}; - -struct __declspec(uuid("00000551-0000-0010-8000-00aa006d2ea4")) -ADOConnectionConstruction : ADOConnectionConstruction15 -{}; - -struct __declspec(uuid("00000514-0000-0010-8000-00aa006d2ea4")) -Connection; - // [ default ] interface _Connection - // [ default, source ] dispinterface ConnectionEvents - -struct __declspec(uuid("00000560-0000-0010-8000-00aa006d2ea4")) -Record; - // [ default ] interface _Record - -struct __declspec(uuid("00001565-0000-0010-8000-00aa006d2ea4")) -_Stream : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetSize)) - long Size; - __declspec(property(get=GetEOS)) - VARIANT_BOOL EOS; - __declspec(property(get=GetPosition,put=PutPosition)) - long Position; - __declspec(property(get=GetType,put=PutType)) - enum StreamTypeEnum Type; - __declspec(property(get=GetLineSeparator,put=PutLineSeparator)) - enum LineSeparatorEnum LineSeparator; - __declspec(property(get=GetState)) - enum ObjectStateEnum State; - __declspec(property(get=GetMode,put=PutMode)) - enum ConnectModeEnum Mode; - __declspec(property(get=GetCharset,put=PutCharset)) - _bstr_t Charset; - - // - // Wrapper methods for error-handling - // - - long GetSize ( ); - VARIANT_BOOL GetEOS ( ); - long GetPosition ( ); - void PutPosition ( - long pPos ); - enum StreamTypeEnum GetType ( ); - void PutType ( - enum StreamTypeEnum ptype ); - enum LineSeparatorEnum GetLineSeparator ( ); - void PutLineSeparator ( - enum LineSeparatorEnum pLS ); - enum ObjectStateEnum GetState ( ); - enum ConnectModeEnum GetMode ( ); - void PutMode ( - enum ConnectModeEnum pMode ); - _bstr_t GetCharset ( ); - void PutCharset ( - _bstr_t pbstrCharset ); - _variant_t Read ( - long NumBytes ); - HRESULT Open ( - const _variant_t & Source, - enum ConnectModeEnum Mode, - enum StreamOpenOptionsEnum Options, - _bstr_t UserName, - _bstr_t Password ); - HRESULT Close ( ); - HRESULT SkipLine ( ); - HRESULT Write ( - const _variant_t & Buffer ); - HRESULT SetEOS ( ); - HRESULT CopyTo ( - struct _Stream * DestStream, - long CharNumber ); - HRESULT Flush ( ); - HRESULT SaveToFile ( - _bstr_t FileName, - enum SaveOptionsEnum Options ); - HRESULT LoadFromFile ( - _bstr_t FileName ); - _bstr_t ReadText ( - long NumChars ); - HRESULT WriteText ( - _bstr_t Data, - enum StreamWriteEnum Options ); - HRESULT Cancel ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Size ( - /*[out,retval]*/ long * pSize ) = 0; - virtual HRESULT __stdcall get_EOS ( - /*[out,retval]*/ VARIANT_BOOL * pEOS ) = 0; - virtual HRESULT __stdcall get_Position ( - /*[out,retval]*/ long * pPos ) = 0; - virtual HRESULT __stdcall put_Position ( - /*[in]*/ long pPos ) = 0; - virtual HRESULT __stdcall get_Type ( - /*[out,retval]*/ enum StreamTypeEnum * ptype ) = 0; - virtual HRESULT __stdcall put_Type ( - /*[in]*/ enum StreamTypeEnum ptype ) = 0; - virtual HRESULT __stdcall get_LineSeparator ( - /*[out,retval]*/ enum LineSeparatorEnum * pLS ) = 0; - virtual HRESULT __stdcall put_LineSeparator ( - /*[in]*/ enum LineSeparatorEnum pLS ) = 0; - virtual HRESULT __stdcall get_State ( - /*[out,retval]*/ enum ObjectStateEnum * pState ) = 0; - virtual HRESULT __stdcall get_Mode ( - /*[out,retval]*/ enum ConnectModeEnum * pMode ) = 0; - virtual HRESULT __stdcall put_Mode ( - /*[in]*/ enum ConnectModeEnum pMode ) = 0; - virtual HRESULT __stdcall get_Charset ( - /*[out,retval]*/ BSTR * pbstrCharset ) = 0; - virtual HRESULT __stdcall put_Charset ( - /*[in]*/ BSTR pbstrCharset ) = 0; - virtual HRESULT __stdcall raw_Read ( - /*[in]*/ long NumBytes, - /*[out,retval]*/ VARIANT * pval ) = 0; - virtual HRESULT __stdcall raw_Open ( - /*[in]*/ VARIANT Source, - /*[in]*/ enum ConnectModeEnum Mode, - /*[in]*/ enum StreamOpenOptionsEnum Options, - /*[in]*/ BSTR UserName, - /*[in]*/ BSTR Password ) = 0; - virtual HRESULT __stdcall raw_Close ( ) = 0; - virtual HRESULT __stdcall raw_SkipLine ( ) = 0; - virtual HRESULT __stdcall raw_Write ( - /*[in]*/ VARIANT Buffer ) = 0; - virtual HRESULT __stdcall raw_SetEOS ( ) = 0; - virtual HRESULT __stdcall raw_CopyTo ( - /*[in]*/ struct _Stream * DestStream, - /*[in]*/ long CharNumber ) = 0; - virtual HRESULT __stdcall raw_Flush ( ) = 0; - virtual HRESULT __stdcall raw_SaveToFile ( - /*[in]*/ BSTR FileName, - /*[in]*/ enum SaveOptionsEnum Options ) = 0; - virtual HRESULT __stdcall raw_LoadFromFile ( - /*[in]*/ BSTR FileName ) = 0; - virtual HRESULT __stdcall raw_ReadText ( - /*[in]*/ long NumChars, - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall raw_WriteText ( - /*[in]*/ BSTR Data, - /*[in]*/ enum StreamWriteEnum Options ) = 0; - virtual HRESULT __stdcall raw_Cancel ( ) = 0; -}; - -struct __declspec(uuid("00000566-0000-0010-8000-00aa006d2ea4")) -Stream; - // [ default ] interface _Stream - -struct __declspec(uuid("00000567-0000-0010-8000-00aa006d2ea4")) -ADORecordConstruction : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetRow,put=PutRow)) - IUnknownPtr Row; - __declspec(property(put=PutParentRow)) - IUnknownPtr ParentRow; - - // - // Wrapper methods for error-handling - // - - IUnknownPtr GetRow ( ); - void PutRow ( - IUnknown * ppRow ); - void PutParentRow ( - IUnknown * _arg1 ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Row ( - /*[out,retval]*/ IUnknown * * ppRow ) = 0; - virtual HRESULT __stdcall put_Row ( - /*[in]*/ IUnknown * ppRow ) = 0; - virtual HRESULT __stdcall put_ParentRow ( - /*[in]*/ IUnknown * _arg1 ) = 0; -}; - -struct __declspec(uuid("00000568-0000-0010-8000-00aa006d2ea4")) -ADOStreamConstruction : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetStream,put=PutStream)) - IUnknownPtr Stream; - - // - // Wrapper methods for error-handling - // - - IUnknownPtr GetStream ( ); - void PutStream ( - IUnknown * ppStm ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Stream ( - /*[out,retval]*/ IUnknown * * ppStm ) = 0; - virtual HRESULT __stdcall put_Stream ( - /*[in]*/ IUnknown * ppStm ) = 0; -}; - -struct __declspec(uuid("00000517-0000-0010-8000-00aa006d2ea4")) -ADOCommandConstruction : IUnknown -{ - // - // Property data - // - - __declspec(property(get=GetOLEDBCommand,put=PutOLEDBCommand)) - IUnknownPtr OLEDBCommand; - - // - // Wrapper methods for error-handling - // - - IUnknownPtr GetOLEDBCommand ( ); - void PutOLEDBCommand ( - IUnknown * ppOLEDBCommand ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_OLEDBCommand ( - /*[out,retval]*/ IUnknown * * ppOLEDBCommand ) = 0; - virtual HRESULT __stdcall put_OLEDBCommand ( - /*[in]*/ IUnknown * ppOLEDBCommand ) = 0; -}; - -struct __declspec(uuid("00000507-0000-0010-8000-00aa006d2ea4")) -Command; - // [ default ] interface _Command - -struct __declspec(uuid("00000535-0000-0010-8000-00aa006d2ea4")) -Recordset; - // [ default ] interface _Recordset - // [ default, source ] dispinterface RecordsetEvents - -struct __declspec(uuid("00000283-0000-0010-8000-00aa006d2ea4")) -ADORecordsetConstruction : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetRowset,put=PutRowset)) - IUnknownPtr Rowset; - __declspec(property(get=GetChapter,put=PutChapter)) - ADO_LONGPTR Chapter; - __declspec(property(get=GetRowPosition,put=PutRowPosition)) - IUnknownPtr RowPosition; - - // - // Wrapper methods for error-handling - // - - IUnknownPtr GetRowset ( ); - void PutRowset ( - IUnknown * ppRowset ); - ADO_LONGPTR GetChapter ( ); - void PutChapter ( - ADO_LONGPTR plChapter ); - IUnknownPtr GetRowPosition ( ); - void PutRowPosition ( - IUnknown * ppRowPos ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Rowset ( - /*[out,retval]*/ IUnknown * * ppRowset ) = 0; - virtual HRESULT __stdcall put_Rowset ( - /*[in]*/ IUnknown * ppRowset ) = 0; - virtual HRESULT __stdcall get_Chapter ( - /*[out,retval]*/ ADO_LONGPTR * plChapter ) = 0; - virtual HRESULT __stdcall put_Chapter ( - /*[in]*/ ADO_LONGPTR plChapter ) = 0; - virtual HRESULT __stdcall get_RowPosition ( - /*[out,retval]*/ IUnknown * * ppRowPos ) = 0; - virtual HRESULT __stdcall put_RowPosition ( - /*[in]*/ IUnknown * ppRowPos ) = 0; -}; - -struct __declspec(uuid("00001505-0000-0010-8000-00aa006d2ea4")) -Field15 : _ADO -{ - // - // Property data - // - - __declspec(property(get=GetValue,put=PutValue)) - _variant_t Value; - __declspec(property(get=GetName)) - _bstr_t Name; - __declspec(property(get=GetType)) - enum DataTypeEnum Type; - __declspec(property(get=GetDefinedSize)) - long DefinedSize; - __declspec(property(get=GetOriginalValue)) - _variant_t OriginalValue; - __declspec(property(get=GetUnderlyingValue)) - _variant_t UnderlyingValue; - __declspec(property(get=GetActualSize)) - long ActualSize; - __declspec(property(get=GetPrecision)) - unsigned char Precision; - __declspec(property(get=GetNumericScale)) - unsigned char NumericScale; - __declspec(property(get=GetAttributes)) - long Attributes; - - // - // Wrapper methods for error-handling - // - - long GetActualSize ( ); - long GetAttributes ( ); - long GetDefinedSize ( ); - _bstr_t GetName ( ); - enum DataTypeEnum GetType ( ); - _variant_t GetValue ( ); - void PutValue ( - const _variant_t & pvar ); - unsigned char GetPrecision ( ); - unsigned char GetNumericScale ( ); - HRESULT AppendChunk ( - const _variant_t & Data ); - _variant_t GetChunk ( - long Length ); - _variant_t GetOriginalValue ( ); - _variant_t GetUnderlyingValue ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_ActualSize ( - /*[out,retval]*/ long * pl ) = 0; - virtual HRESULT __stdcall get_Attributes ( - /*[out,retval]*/ long * pl ) = 0; - virtual HRESULT __stdcall get_DefinedSize ( - /*[out,retval]*/ long * pl ) = 0; - virtual HRESULT __stdcall get_Name ( - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall get_Type ( - /*[out,retval]*/ enum DataTypeEnum * pDataType ) = 0; - virtual HRESULT __stdcall get_Value ( - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall put_Value ( - /*[in]*/ VARIANT pvar ) = 0; - virtual HRESULT __stdcall get_Precision ( - /*[out,retval]*/ unsigned char * pbPrecision ) = 0; - virtual HRESULT __stdcall get_NumericScale ( - /*[out,retval]*/ unsigned char * pbNumericScale ) = 0; - virtual HRESULT __stdcall raw_AppendChunk ( - /*[in]*/ VARIANT Data ) = 0; - virtual HRESULT __stdcall raw_GetChunk ( - /*[in]*/ long Length, - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall get_OriginalValue ( - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall get_UnderlyingValue ( - /*[out,retval]*/ VARIANT * pvar ) = 0; -}; - -struct __declspec(uuid("0000050b-0000-0010-8000-00aa006d2ea4")) -Parameter; - // [ default ] interface _Parameter - -struct __declspec(uuid("0000054c-0000-0010-8000-00aa006d2ea4")) -Field20_Deprecated : _ADO -{ - // - // Property data - // - - __declspec(property(get=GetValue,put=PutValue)) - _variant_t Value; - __declspec(property(get=GetName)) - _bstr_t Name; - __declspec(property(get=GetType,put=PutType)) - enum DataTypeEnum Type; - __declspec(property(get=GetDefinedSize,put=PutDefinedSize)) - ADO_LONGPTR DefinedSize; - __declspec(property(get=GetOriginalValue)) - _variant_t OriginalValue; - __declspec(property(get=GetUnderlyingValue)) - _variant_t UnderlyingValue; - __declspec(property(get=GetActualSize)) - ADO_LONGPTR ActualSize; - __declspec(property(get=GetPrecision,put=PutPrecision)) - unsigned char Precision; - __declspec(property(get=GetNumericScale,put=PutNumericScale)) - unsigned char NumericScale; - __declspec(property(get=GetAttributes,put=PutAttributes)) - long Attributes; - __declspec(property(get=GetDataFormat,put=PutRefDataFormat)) - IUnknownPtr DataFormat; - - // - // Wrapper methods for error-handling - // - - ADO_LONGPTR GetActualSize ( ); - long GetAttributes ( ); - ADO_LONGPTR GetDefinedSize ( ); - _bstr_t GetName ( ); - enum DataTypeEnum GetType ( ); - _variant_t GetValue ( ); - void PutValue ( - const _variant_t & pvar ); - unsigned char GetPrecision ( ); - unsigned char GetNumericScale ( ); - HRESULT AppendChunk ( - const _variant_t & Data ); - _variant_t GetChunk ( - long Length ); - _variant_t GetOriginalValue ( ); - _variant_t GetUnderlyingValue ( ); - IUnknownPtr GetDataFormat ( ); - void PutRefDataFormat ( - IUnknown * ppiDF ); - void PutPrecision ( - unsigned char pbPrecision ); - void PutNumericScale ( - unsigned char pbNumericScale ); - void PutType ( - enum DataTypeEnum pDataType ); - void PutDefinedSize ( - ADO_LONGPTR pl ); - void PutAttributes ( - long pl ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_ActualSize ( - /*[out,retval]*/ ADO_LONGPTR * pl ) = 0; - virtual HRESULT __stdcall get_Attributes ( - /*[out,retval]*/ long * pl ) = 0; - virtual HRESULT __stdcall get_DefinedSize ( - /*[out,retval]*/ ADO_LONGPTR * pl ) = 0; - virtual HRESULT __stdcall get_Name ( - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall get_Type ( - /*[out,retval]*/ enum DataTypeEnum * pDataType ) = 0; - virtual HRESULT __stdcall get_Value ( - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall put_Value ( - /*[in]*/ VARIANT pvar ) = 0; - virtual HRESULT __stdcall get_Precision ( - /*[out,retval]*/ unsigned char * pbPrecision ) = 0; - virtual HRESULT __stdcall get_NumericScale ( - /*[out,retval]*/ unsigned char * pbNumericScale ) = 0; - virtual HRESULT __stdcall raw_AppendChunk ( - /*[in]*/ VARIANT Data ) = 0; - virtual HRESULT __stdcall raw_GetChunk ( - /*[in]*/ long Length, - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall get_OriginalValue ( - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall get_UnderlyingValue ( - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall get_DataFormat ( - /*[out,retval]*/ IUnknown * * ppiDF ) = 0; - virtual HRESULT __stdcall putref_DataFormat ( - /*[in]*/ IUnknown * ppiDF ) = 0; - virtual HRESULT __stdcall put_Precision ( - /*[in]*/ unsigned char pbPrecision ) = 0; - virtual HRESULT __stdcall put_NumericScale ( - /*[in]*/ unsigned char pbNumericScale ) = 0; - virtual HRESULT __stdcall put_Type ( - /*[in]*/ enum DataTypeEnum pDataType ) = 0; - virtual HRESULT __stdcall put_DefinedSize ( - /*[in]*/ ADO_LONGPTR pl ) = 0; - virtual HRESULT __stdcall put_Attributes ( - /*[in]*/ long pl ) = 0; -}; - -struct __declspec(uuid("00000569-0000-0010-8000-00aa006d2ea4")) -Field_Deprecated : Field20_Deprecated -{ - // - // Property data - // - - __declspec(property(get=GetStatus)) - long Status; - - // - // Wrapper methods for error-handling - // - - long GetStatus ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Status ( - /*[out,retval]*/ long * pFStatus ) = 0; -}; - -struct __declspec(uuid("00000506-0000-0010-8000-00aa006d2ea4")) -Fields15_Deprecated : _Collection -{ - // - // Property data - // - - __declspec(property(get=GetItem)) - Field_DeprecatedPtr Item[]; - - // - // Wrapper methods for error-handling - // - - Field_DeprecatedPtr GetItem ( - const _variant_t & Index ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Item ( - /*[in]*/ VARIANT Index, - /*[out,retval]*/ struct Field_Deprecated * * ppvObject ) = 0; -}; - -struct __declspec(uuid("0000054d-0000-0010-8000-00aa006d2ea4")) -Fields20_Deprecated : Fields15_Deprecated -{ - // - // Wrapper methods for error-handling - // - - HRESULT _Append ( - _bstr_t Name, - enum DataTypeEnum Type, - ADO_LONGPTR DefinedSize, - enum FieldAttributeEnum Attrib ); - HRESULT Delete ( - const _variant_t & Index ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw__Append ( - /*[in]*/ BSTR Name, - /*[in]*/ enum DataTypeEnum Type, - /*[in]*/ ADO_LONGPTR DefinedSize, - /*[in]*/ enum FieldAttributeEnum Attrib ) = 0; - virtual HRESULT __stdcall raw_Delete ( - /*[in]*/ VARIANT Index ) = 0; -}; - -struct __declspec(uuid("00000564-0000-0010-8000-00aa006d2ea4")) -Fields_Deprecated : Fields20_Deprecated -{ - // - // Wrapper methods for error-handling - // - - HRESULT Append ( - _bstr_t Name, - enum DataTypeEnum Type, - ADO_LONGPTR DefinedSize, - enum FieldAttributeEnum Attrib, - const _variant_t & FieldValue = vtMissing ); - HRESULT Update ( ); - HRESULT Resync ( - enum ResyncEnum ResyncValues ); - HRESULT CancelUpdate ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Append ( - /*[in]*/ BSTR Name, - /*[in]*/ enum DataTypeEnum Type, - /*[in]*/ ADO_LONGPTR DefinedSize, - /*[in]*/ enum FieldAttributeEnum Attrib, - /*[in]*/ VARIANT FieldValue = vtMissing ) = 0; - virtual HRESULT __stdcall raw_Update ( ) = 0; - virtual HRESULT __stdcall raw_Resync ( - /*[in]*/ enum ResyncEnum ResyncValues ) = 0; - virtual HRESULT __stdcall raw_CancelUpdate ( ) = 0; -}; - -struct __declspec(uuid("0000050c-0000-0010-8000-00aa006d2ea4")) -_Parameter_Deprecated : _ADO -{ - // - // Property data - // - - __declspec(property(get=GetValue,put=PutValue)) - _variant_t Value; - __declspec(property(get=GetName,put=PutName)) - _bstr_t Name; - __declspec(property(get=GetType,put=PutType)) - enum DataTypeEnum Type; - __declspec(property(get=GetDirection,put=PutDirection)) - enum ParameterDirectionEnum Direction; - __declspec(property(get=GetPrecision,put=PutPrecision)) - unsigned char Precision; - __declspec(property(get=GetNumericScale,put=PutNumericScale)) - unsigned char NumericScale; - __declspec(property(get=GetSize,put=PutSize)) - ADO_LONGPTR Size; - __declspec(property(get=GetAttributes,put=PutAttributes)) - long Attributes; - - // - // Wrapper methods for error-handling - // - - _bstr_t GetName ( ); - void PutName ( - _bstr_t pbstr ); - _variant_t GetValue ( ); - void PutValue ( - const _variant_t & pvar ); - enum DataTypeEnum GetType ( ); - void PutType ( - enum DataTypeEnum psDataType ); - void PutDirection ( - enum ParameterDirectionEnum plParmDirection ); - enum ParameterDirectionEnum GetDirection ( ); - void PutPrecision ( - unsigned char pbPrecision ); - unsigned char GetPrecision ( ); - void PutNumericScale ( - unsigned char pbScale ); - unsigned char GetNumericScale ( ); - void PutSize ( - ADO_LONGPTR pl ); - ADO_LONGPTR GetSize ( ); - HRESULT AppendChunk ( - const _variant_t & Val ); - long GetAttributes ( ); - void PutAttributes ( - long plParmAttribs ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Name ( - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall put_Name ( - /*[in]*/ BSTR pbstr ) = 0; - virtual HRESULT __stdcall get_Value ( - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall put_Value ( - /*[in]*/ VARIANT pvar ) = 0; - virtual HRESULT __stdcall get_Type ( - /*[out,retval]*/ enum DataTypeEnum * psDataType ) = 0; - virtual HRESULT __stdcall put_Type ( - /*[in]*/ enum DataTypeEnum psDataType ) = 0; - virtual HRESULT __stdcall put_Direction ( - /*[in]*/ enum ParameterDirectionEnum plParmDirection ) = 0; - virtual HRESULT __stdcall get_Direction ( - /*[out,retval]*/ enum ParameterDirectionEnum * plParmDirection ) = 0; - virtual HRESULT __stdcall put_Precision ( - /*[in]*/ unsigned char pbPrecision ) = 0; - virtual HRESULT __stdcall get_Precision ( - /*[out,retval]*/ unsigned char * pbPrecision ) = 0; - virtual HRESULT __stdcall put_NumericScale ( - /*[in]*/ unsigned char pbScale ) = 0; - virtual HRESULT __stdcall get_NumericScale ( - /*[out,retval]*/ unsigned char * pbScale ) = 0; - virtual HRESULT __stdcall put_Size ( - /*[in]*/ ADO_LONGPTR pl ) = 0; - virtual HRESULT __stdcall get_Size ( - /*[out,retval]*/ ADO_LONGPTR * pl ) = 0; - virtual HRESULT __stdcall raw_AppendChunk ( - /*[in]*/ VARIANT Val ) = 0; - virtual HRESULT __stdcall get_Attributes ( - /*[out,retval]*/ long * plParmAttribs ) = 0; - virtual HRESULT __stdcall put_Attributes ( - /*[in]*/ long plParmAttribs ) = 0; -}; - -struct __declspec(uuid("0000050d-0000-0010-8000-00aa006d2ea4")) -Parameters_Deprecated : _DynaCollection -{ - // - // Property data - // - - __declspec(property(get=GetItem)) - _Parameter_DeprecatedPtr Item[]; - - // - // Wrapper methods for error-handling - // - - _Parameter_DeprecatedPtr GetItem ( - const _variant_t & Index ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Item ( - /*[in]*/ VARIANT Index, - /*[out,retval]*/ struct _Parameter_Deprecated * * ppvObject ) = 0; -}; - -struct __declspec(uuid("00000400-0000-0010-8000-00aa006d2ea4")) -ConnectionEvents_Deprecated : IDispatch -{ - // - // Wrapper methods for error-handling - // - - // Methods: - HRESULT InfoMessage ( - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Connection_Deprecated * pConnection ); - HRESULT BeginTransComplete ( - long TransactionLevel, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Connection_Deprecated * pConnection ); - HRESULT CommitTransComplete ( - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Connection_Deprecated * pConnection ); - HRESULT RollbackTransComplete ( - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Connection_Deprecated * pConnection ); - HRESULT WillExecute ( - BSTR * Source, - enum CursorTypeEnum * CursorType, - enum LockTypeEnum * LockType, - long * Options, - enum EventStatusEnum * adStatus, - struct _Command_Deprecated * pCommand, - struct _Recordset_Deprecated * pRecordset, - struct _Connection_Deprecated * pConnection ); - HRESULT ExecuteComplete ( - long RecordsAffected, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Command_Deprecated * pCommand, - struct _Recordset_Deprecated * pRecordset, - struct _Connection_Deprecated * pConnection ); - HRESULT WillConnect ( - BSTR * ConnectionString, - BSTR * UserID, - BSTR * Password, - long * Options, - enum EventStatusEnum * adStatus, - struct _Connection_Deprecated * pConnection ); - HRESULT ConnectComplete ( - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Connection_Deprecated * pConnection ); - HRESULT Disconnect ( - enum EventStatusEnum * adStatus, - struct _Connection_Deprecated * pConnection ); -}; - -struct __declspec(uuid("00000266-0000-0010-8000-00aa006d2ea4")) -RecordsetEvents_Deprecated : IDispatch -{ - // - // Wrapper methods for error-handling - // - - // Methods: - HRESULT WillChangeField ( - long cFields, - const _variant_t & Fields, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); - HRESULT FieldChangeComplete ( - long cFields, - const _variant_t & Fields, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); - HRESULT WillChangeRecord ( - enum EventReasonEnum adReason, - long cRecords, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); - HRESULT RecordChangeComplete ( - enum EventReasonEnum adReason, - long cRecords, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); - HRESULT WillChangeRecordset ( - enum EventReasonEnum adReason, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); - HRESULT RecordsetChangeComplete ( - enum EventReasonEnum adReason, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); - HRESULT WillMove ( - enum EventReasonEnum adReason, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); - HRESULT MoveComplete ( - enum EventReasonEnum adReason, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); - HRESULT EndOfRecordset ( - VARIANT_BOOL * fMoreData, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); - HRESULT FetchProgress ( - long Progress, - long MaxProgress, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); - HRESULT FetchComplete ( - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); -}; - -struct __declspec(uuid("00000565-0000-0010-8000-00aa006d2ea4")) -_Stream_Deprecated : IDispatch -{ - // - // Property data - // - - __declspec(property(get=GetSize)) - ADO_LONGPTR Size; - __declspec(property(get=GetEOS)) - VARIANT_BOOL EOS; - __declspec(property(get=GetPosition,put=PutPosition)) - ADO_LONGPTR Position; - __declspec(property(get=GetType,put=PutType)) - enum StreamTypeEnum Type; - __declspec(property(get=GetLineSeparator,put=PutLineSeparator)) - enum LineSeparatorEnum LineSeparator; - __declspec(property(get=GetState)) - enum ObjectStateEnum State; - __declspec(property(get=GetMode,put=PutMode)) - enum ConnectModeEnum Mode; - __declspec(property(get=GetCharset,put=PutCharset)) - _bstr_t Charset; - - // - // Wrapper methods for error-handling - // - - ADO_LONGPTR GetSize ( ); - VARIANT_BOOL GetEOS ( ); - ADO_LONGPTR GetPosition ( ); - void PutPosition ( - ADO_LONGPTR pPos ); - enum StreamTypeEnum GetType ( ); - void PutType ( - enum StreamTypeEnum ptype ); - enum LineSeparatorEnum GetLineSeparator ( ); - void PutLineSeparator ( - enum LineSeparatorEnum pLS ); - enum ObjectStateEnum GetState ( ); - enum ConnectModeEnum GetMode ( ); - void PutMode ( - enum ConnectModeEnum pMode ); - _bstr_t GetCharset ( ); - void PutCharset ( - _bstr_t pbstrCharset ); - _variant_t Read ( - long NumBytes ); - HRESULT Open ( - const _variant_t & Source, - enum ConnectModeEnum Mode, - enum StreamOpenOptionsEnum Options, - _bstr_t UserName, - _bstr_t Password ); - HRESULT Close ( ); - HRESULT SkipLine ( ); - HRESULT Write ( - const _variant_t & Buffer ); - HRESULT SetEOS ( ); - HRESULT CopyTo ( - struct _Stream_Deprecated * DestStream, - ADO_LONGPTR CharNumber ); - HRESULT Flush ( ); - HRESULT SaveToFile ( - _bstr_t FileName, - enum SaveOptionsEnum Options ); - HRESULT LoadFromFile ( - _bstr_t FileName ); - _bstr_t ReadText ( - long NumChars ); - HRESULT WriteText ( - _bstr_t Data, - enum StreamWriteEnum Options ); - HRESULT Cancel ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_Size ( - /*[out,retval]*/ ADO_LONGPTR * pSize ) = 0; - virtual HRESULT __stdcall get_EOS ( - /*[out,retval]*/ VARIANT_BOOL * pEOS ) = 0; - virtual HRESULT __stdcall get_Position ( - /*[out,retval]*/ ADO_LONGPTR * pPos ) = 0; - virtual HRESULT __stdcall put_Position ( - /*[in]*/ ADO_LONGPTR pPos ) = 0; - virtual HRESULT __stdcall get_Type ( - /*[out,retval]*/ enum StreamTypeEnum * ptype ) = 0; - virtual HRESULT __stdcall put_Type ( - /*[in]*/ enum StreamTypeEnum ptype ) = 0; - virtual HRESULT __stdcall get_LineSeparator ( - /*[out,retval]*/ enum LineSeparatorEnum * pLS ) = 0; - virtual HRESULT __stdcall put_LineSeparator ( - /*[in]*/ enum LineSeparatorEnum pLS ) = 0; - virtual HRESULT __stdcall get_State ( - /*[out,retval]*/ enum ObjectStateEnum * pState ) = 0; - virtual HRESULT __stdcall get_Mode ( - /*[out,retval]*/ enum ConnectModeEnum * pMode ) = 0; - virtual HRESULT __stdcall put_Mode ( - /*[in]*/ enum ConnectModeEnum pMode ) = 0; - virtual HRESULT __stdcall get_Charset ( - /*[out,retval]*/ BSTR * pbstrCharset ) = 0; - virtual HRESULT __stdcall put_Charset ( - /*[in]*/ BSTR pbstrCharset ) = 0; - virtual HRESULT __stdcall raw_Read ( - /*[in]*/ long NumBytes, - /*[out,retval]*/ VARIANT * pval ) = 0; - virtual HRESULT __stdcall raw_Open ( - /*[in]*/ VARIANT Source, - /*[in]*/ enum ConnectModeEnum Mode, - /*[in]*/ enum StreamOpenOptionsEnum Options, - /*[in]*/ BSTR UserName, - /*[in]*/ BSTR Password ) = 0; - virtual HRESULT __stdcall raw_Close ( ) = 0; - virtual HRESULT __stdcall raw_SkipLine ( ) = 0; - virtual HRESULT __stdcall raw_Write ( - /*[in]*/ VARIANT Buffer ) = 0; - virtual HRESULT __stdcall raw_SetEOS ( ) = 0; - virtual HRESULT __stdcall raw_CopyTo ( - /*[in]*/ struct _Stream_Deprecated * DestStream, - /*[in]*/ ADO_LONGPTR CharNumber ) = 0; - virtual HRESULT __stdcall raw_Flush ( ) = 0; - virtual HRESULT __stdcall raw_SaveToFile ( - /*[in]*/ BSTR FileName, - /*[in]*/ enum SaveOptionsEnum Options ) = 0; - virtual HRESULT __stdcall raw_LoadFromFile ( - /*[in]*/ BSTR FileName ) = 0; - virtual HRESULT __stdcall raw_ReadText ( - /*[in]*/ long NumChars, - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall raw_WriteText ( - /*[in]*/ BSTR Data, - /*[in]*/ enum StreamWriteEnum Options ) = 0; - virtual HRESULT __stdcall raw_Cancel ( ) = 0; -}; - -struct __declspec(uuid("00000505-0000-0010-8000-00aa006d2ea4")) -Field15_Deprecated : _ADO -{ - // - // Property data - // - - __declspec(property(get=GetValue,put=PutValue)) - _variant_t Value; - __declspec(property(get=GetName)) - _bstr_t Name; - __declspec(property(get=GetType)) - enum DataTypeEnum Type; - __declspec(property(get=GetDefinedSize)) - ADO_LONGPTR DefinedSize; - __declspec(property(get=GetOriginalValue)) - _variant_t OriginalValue; - __declspec(property(get=GetUnderlyingValue)) - _variant_t UnderlyingValue; - __declspec(property(get=GetActualSize)) - ADO_LONGPTR ActualSize; - __declspec(property(get=GetPrecision)) - unsigned char Precision; - __declspec(property(get=GetNumericScale)) - unsigned char NumericScale; - __declspec(property(get=GetAttributes)) - long Attributes; - - // - // Wrapper methods for error-handling - // - - ADO_LONGPTR GetActualSize ( ); - long GetAttributes ( ); - ADO_LONGPTR GetDefinedSize ( ); - _bstr_t GetName ( ); - enum DataTypeEnum GetType ( ); - _variant_t GetValue ( ); - void PutValue ( - const _variant_t & pvar ); - unsigned char GetPrecision ( ); - unsigned char GetNumericScale ( ); - HRESULT AppendChunk ( - const _variant_t & Data ); - _variant_t GetChunk ( - long Length ); - _variant_t GetOriginalValue ( ); - _variant_t GetUnderlyingValue ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_ActualSize ( - /*[out,retval]*/ ADO_LONGPTR * pl ) = 0; - virtual HRESULT __stdcall get_Attributes ( - /*[out,retval]*/ long * pl ) = 0; - virtual HRESULT __stdcall get_DefinedSize ( - /*[out,retval]*/ ADO_LONGPTR * pl ) = 0; - virtual HRESULT __stdcall get_Name ( - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall get_Type ( - /*[out,retval]*/ enum DataTypeEnum * pDataType ) = 0; - virtual HRESULT __stdcall get_Value ( - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall put_Value ( - /*[in]*/ VARIANT pvar ) = 0; - virtual HRESULT __stdcall get_Precision ( - /*[out,retval]*/ unsigned char * pbPrecision ) = 0; - virtual HRESULT __stdcall get_NumericScale ( - /*[out,retval]*/ unsigned char * pbNumericScale ) = 0; - virtual HRESULT __stdcall raw_AppendChunk ( - /*[in]*/ VARIANT Data ) = 0; - virtual HRESULT __stdcall raw_GetChunk ( - /*[in]*/ long Length, - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall get_OriginalValue ( - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall get_UnderlyingValue ( - /*[out,retval]*/ VARIANT * pvar ) = 0; -}; - -struct __declspec(uuid("00001508-0000-0010-8000-00aa006d2ea4")) -Command15 : _ADO -{ - // - // Property data - // - - __declspec(property(get=GetParameters)) - ParametersPtr Parameters; - __declspec(property(get=GetActiveConnection,put=PutRefActiveConnection)) - _ConnectionPtr ActiveConnection; - __declspec(property(get=GetCommandText,put=PutCommandText)) - _bstr_t CommandText; - __declspec(property(get=GetCommandTimeout,put=PutCommandTimeout)) - long CommandTimeout; - __declspec(property(get=GetPrepared,put=PutPrepared)) - VARIANT_BOOL Prepared; - __declspec(property(get=GetCommandType,put=PutCommandType)) - enum CommandTypeEnum CommandType; - __declspec(property(get=GetName,put=PutName)) - _bstr_t Name; - - // - // Wrapper methods for error-handling - // - - _ConnectionPtr GetActiveConnection ( ); - void PutRefActiveConnection ( - struct _Connection * ppvObject ); - void PutActiveConnection ( - const _variant_t & ppvObject ); - _bstr_t GetCommandText ( ); - void PutCommandText ( - _bstr_t pbstr ); - long GetCommandTimeout ( ); - void PutCommandTimeout ( - long pl ); - VARIANT_BOOL GetPrepared ( ); - void PutPrepared ( - VARIANT_BOOL pfPrepared ); - _RecordsetPtr Execute ( - VARIANT * RecordsAffected, - VARIANT * Parameters, - long Options ); - _ParameterPtr CreateParameter ( - _bstr_t Name, - enum DataTypeEnum Type, - enum ParameterDirectionEnum Direction, - long Size, - const _variant_t & Value = vtMissing ); - ParametersPtr GetParameters ( ); - void PutCommandType ( - enum CommandTypeEnum plCmdType ); - enum CommandTypeEnum GetCommandType ( ); - _bstr_t GetName ( ); - void PutName ( - _bstr_t pbstrName ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_ActiveConnection ( - /*[out,retval]*/ struct _Connection * * ppvObject ) = 0; - virtual HRESULT __stdcall putref_ActiveConnection ( - /*[in]*/ struct _Connection * ppvObject ) = 0; - virtual HRESULT __stdcall put_ActiveConnection ( - /*[in]*/ VARIANT ppvObject ) = 0; - virtual HRESULT __stdcall get_CommandText ( - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall put_CommandText ( - /*[in]*/ BSTR pbstr ) = 0; - virtual HRESULT __stdcall get_CommandTimeout ( - /*[out,retval]*/ long * pl ) = 0; - virtual HRESULT __stdcall put_CommandTimeout ( - /*[in]*/ long pl ) = 0; - virtual HRESULT __stdcall get_Prepared ( - /*[out,retval]*/ VARIANT_BOOL * pfPrepared ) = 0; - virtual HRESULT __stdcall put_Prepared ( - /*[in]*/ VARIANT_BOOL pfPrepared ) = 0; - virtual HRESULT __stdcall raw_Execute ( - /*[out]*/ VARIANT * RecordsAffected, - /*[in]*/ VARIANT * Parameters, - /*[in]*/ long Options, - /*[out,retval]*/ struct _Recordset * * ppiRs ) = 0; - virtual HRESULT __stdcall raw_CreateParameter ( - /*[in]*/ BSTR Name, - /*[in]*/ enum DataTypeEnum Type, - /*[in]*/ enum ParameterDirectionEnum Direction, - /*[in]*/ long Size, - /*[in]*/ VARIANT Value, - /*[out,retval]*/ struct _Parameter * * ppiprm ) = 0; - virtual HRESULT __stdcall get_Parameters ( - /*[out,retval]*/ struct Parameters * * ppvObject ) = 0; - virtual HRESULT __stdcall put_CommandType ( - /*[in]*/ enum CommandTypeEnum plCmdType ) = 0; - virtual HRESULT __stdcall get_CommandType ( - /*[out,retval]*/ enum CommandTypeEnum * plCmdType ) = 0; - virtual HRESULT __stdcall get_Name ( - /*[out,retval]*/ BSTR * pbstrName ) = 0; - virtual HRESULT __stdcall put_Name ( - /*[in]*/ BSTR pbstrName ) = 0; -}; - -struct __declspec(uuid("0000154e-0000-0010-8000-00aa006d2ea4")) -Command25 : Command15 -{ - // - // Property data - // - - __declspec(property(get=GetState)) - long State; - - // - // Wrapper methods for error-handling - // - - long GetState ( ); - HRESULT Cancel ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_State ( - /*[out,retval]*/ long * plObjState ) = 0; - virtual HRESULT __stdcall raw_Cancel ( ) = 0; -}; - -struct __declspec(uuid("986761e8-7269-4890-aa65-ad7c03697a6d")) -_Command : Command25 -{ - // - // Property data - // - - __declspec(property(get=GetDialect,put=PutDialect)) - _bstr_t Dialect; - __declspec(property(get=GetNamedParameters,put=PutNamedParameters)) - VARIANT_BOOL NamedParameters; - - // - // Wrapper methods for error-handling - // - - void PutRefCommandStream ( - IUnknown * pvStream ); - _variant_t GetCommandStream ( ); - void PutDialect ( - _bstr_t pbstrDialect ); - _bstr_t GetDialect ( ); - void PutNamedParameters ( - VARIANT_BOOL pfNamedParameters ); - VARIANT_BOOL GetNamedParameters ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall putref_CommandStream ( - /*[in]*/ IUnknown * pvStream ) = 0; - virtual HRESULT __stdcall get_CommandStream ( - /*[out,retval]*/ VARIANT * pvStream ) = 0; - virtual HRESULT __stdcall put_Dialect ( - /*[in]*/ BSTR pbstrDialect ) = 0; - virtual HRESULT __stdcall get_Dialect ( - /*[out,retval]*/ BSTR * pbstrDialect ) = 0; - virtual HRESULT __stdcall put_NamedParameters ( - /*[in]*/ VARIANT_BOOL pfNamedParameters ) = 0; - virtual HRESULT __stdcall get_NamedParameters ( - /*[out,retval]*/ VARIANT_BOOL * pfNamedParameters ) = 0; -}; - -struct __declspec(uuid("00001515-0000-0010-8000-00aa006d2ea4")) -Connection15 : _ADO -{ - // - // Property data - // - - __declspec(property(get=GetConnectionString,put=PutConnectionString)) - _bstr_t ConnectionString; - __declspec(property(get=GetCommandTimeout,put=PutCommandTimeout)) - long CommandTimeout; - __declspec(property(get=GetConnectionTimeout,put=PutConnectionTimeout)) - long ConnectionTimeout; - __declspec(property(get=GetVersion)) - _bstr_t Version; - __declspec(property(get=GetErrors)) - ErrorsPtr Errors; - __declspec(property(get=GetDefaultDatabase,put=PutDefaultDatabase)) - _bstr_t DefaultDatabase; - __declspec(property(get=GetIsolationLevel,put=PutIsolationLevel)) - enum IsolationLevelEnum IsolationLevel; - __declspec(property(get=GetAttributes,put=PutAttributes)) - long Attributes; - __declspec(property(get=GetCursorLocation,put=PutCursorLocation)) - enum CursorLocationEnum CursorLocation; - __declspec(property(get=GetMode,put=PutMode)) - enum ConnectModeEnum Mode; - __declspec(property(get=GetProvider,put=PutProvider)) - _bstr_t Provider; - __declspec(property(get=GetState)) - long State; - - // - // Wrapper methods for error-handling - // - - _bstr_t GetConnectionString ( ); - void PutConnectionString ( - _bstr_t pbstr ); - long GetCommandTimeout ( ); - void PutCommandTimeout ( - long plTimeout ); - long GetConnectionTimeout ( ); - void PutConnectionTimeout ( - long plTimeout ); - _bstr_t GetVersion ( ); - HRESULT Close ( ); - _RecordsetPtr Execute ( - _bstr_t CommandText, - VARIANT * RecordsAffected, - long Options ); - long BeginTrans ( ); - HRESULT CommitTrans ( ); - HRESULT RollbackTrans ( ); - HRESULT Open ( - _bstr_t ConnectionString, - _bstr_t UserID, - _bstr_t Password, - long Options ); - ErrorsPtr GetErrors ( ); - _bstr_t GetDefaultDatabase ( ); - void PutDefaultDatabase ( - _bstr_t pbstr ); - enum IsolationLevelEnum GetIsolationLevel ( ); - void PutIsolationLevel ( - enum IsolationLevelEnum Level ); - long GetAttributes ( ); - void PutAttributes ( - long plAttr ); - enum CursorLocationEnum GetCursorLocation ( ); - void PutCursorLocation ( - enum CursorLocationEnum plCursorLoc ); - enum ConnectModeEnum GetMode ( ); - void PutMode ( - enum ConnectModeEnum plMode ); - _bstr_t GetProvider ( ); - void PutProvider ( - _bstr_t pbstr ); - long GetState ( ); - _RecordsetPtr OpenSchema ( - enum SchemaEnum Schema, - const _variant_t & Restrictions = vtMissing, - const _variant_t & SchemaID = vtMissing ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_ConnectionString ( - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall put_ConnectionString ( - /*[in]*/ BSTR pbstr ) = 0; - virtual HRESULT __stdcall get_CommandTimeout ( - /*[out,retval]*/ long * plTimeout ) = 0; - virtual HRESULT __stdcall put_CommandTimeout ( - /*[in]*/ long plTimeout ) = 0; - virtual HRESULT __stdcall get_ConnectionTimeout ( - /*[out,retval]*/ long * plTimeout ) = 0; - virtual HRESULT __stdcall put_ConnectionTimeout ( - /*[in]*/ long plTimeout ) = 0; - virtual HRESULT __stdcall get_Version ( - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall raw_Close ( ) = 0; - virtual HRESULT __stdcall raw_Execute ( - /*[in]*/ BSTR CommandText, - /*[out]*/ VARIANT * RecordsAffected, - /*[in]*/ long Options, - /*[out,retval]*/ struct _Recordset * * ppiRset ) = 0; - virtual HRESULT __stdcall raw_BeginTrans ( - /*[out,retval]*/ long * TransactionLevel ) = 0; - virtual HRESULT __stdcall raw_CommitTrans ( ) = 0; - virtual HRESULT __stdcall raw_RollbackTrans ( ) = 0; - virtual HRESULT __stdcall raw_Open ( - /*[in]*/ BSTR ConnectionString, - /*[in]*/ BSTR UserID, - /*[in]*/ BSTR Password, - /*[in]*/ long Options ) = 0; - virtual HRESULT __stdcall get_Errors ( - /*[out,retval]*/ struct Errors * * ppvObject ) = 0; - virtual HRESULT __stdcall get_DefaultDatabase ( - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall put_DefaultDatabase ( - /*[in]*/ BSTR pbstr ) = 0; - virtual HRESULT __stdcall get_IsolationLevel ( - /*[out,retval]*/ enum IsolationLevelEnum * Level ) = 0; - virtual HRESULT __stdcall put_IsolationLevel ( - /*[in]*/ enum IsolationLevelEnum Level ) = 0; - virtual HRESULT __stdcall get_Attributes ( - /*[out,retval]*/ long * plAttr ) = 0; - virtual HRESULT __stdcall put_Attributes ( - /*[in]*/ long plAttr ) = 0; - virtual HRESULT __stdcall get_CursorLocation ( - /*[out,retval]*/ enum CursorLocationEnum * plCursorLoc ) = 0; - virtual HRESULT __stdcall put_CursorLocation ( - /*[in]*/ enum CursorLocationEnum plCursorLoc ) = 0; - virtual HRESULT __stdcall get_Mode ( - /*[out,retval]*/ enum ConnectModeEnum * plMode ) = 0; - virtual HRESULT __stdcall put_Mode ( - /*[in]*/ enum ConnectModeEnum plMode ) = 0; - virtual HRESULT __stdcall get_Provider ( - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall put_Provider ( - /*[in]*/ BSTR pbstr ) = 0; - virtual HRESULT __stdcall get_State ( - /*[out,retval]*/ long * plObjState ) = 0; - virtual HRESULT __stdcall raw_OpenSchema ( - /*[in]*/ enum SchemaEnum Schema, - /*[in]*/ VARIANT Restrictions, - /*[in]*/ VARIANT SchemaID, - /*[out,retval]*/ struct _Recordset * * pprset ) = 0; -}; - -struct __declspec(uuid("00001550-0000-0010-8000-00aa006d2ea4")) -_Connection : Connection15 -{ - // - // Wrapper methods for error-handling - // - - HRESULT Cancel ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Cancel ( ) = 0; -}; - -struct __declspec(uuid("0000150e-0000-0010-8000-00aa006d2ea4")) -Recordset15 : _ADO -{ - // - // Property data - // - - __declspec(property(get=GetFields)) - FieldsPtr Fields; - __declspec(property(get=GetPageSize,put=PutPageSize)) - long PageSize; - __declspec(property(get=GetPageCount)) - long PageCount; - __declspec(property(get=GetCursorLocation,put=PutCursorLocation)) - enum CursorLocationEnum CursorLocation; - __declspec(property(get=GetState)) - long State; - __declspec(property(get=GetMarshalOptions,put=PutMarshalOptions)) - enum MarshalOptionsEnum MarshalOptions; - __declspec(property(get=GetCollect,put=PutCollect)) - _variant_t Collect[]; - __declspec(property(get=GetEditMode)) - enum EditModeEnum EditMode; - __declspec(property(get=GetStatus)) - long Status; - __declspec(property(get=GetFilter,put=PutFilter)) - _variant_t Filter; - __declspec(property(get=GetSort,put=PutSort)) - _bstr_t Sort; - __declspec(property(get=GetAbsolutePosition,put=PutAbsolutePosition)) - enum PositionEnum AbsolutePosition; - __declspec(property(get=GetBOF)) - VARIANT_BOOL BOF; - __declspec(property(get=GetBookmark,put=PutBookmark)) - _variant_t Bookmark; - __declspec(property(get=GetCacheSize,put=PutCacheSize)) - long CacheSize; - __declspec(property(get=GetCursorType,put=PutCursorType)) - enum CursorTypeEnum CursorType; - __declspec(property(get=GetadoEOF)) - VARIANT_BOOL adoEOF; - __declspec(property(get=GetAbsolutePage,put=PutAbsolutePage)) - enum PositionEnum AbsolutePage; - __declspec(property(get=GetLockType,put=PutLockType)) - enum LockTypeEnum LockType; - __declspec(property(get=GetMaxRecords,put=PutMaxRecords)) - long MaxRecords; - __declspec(property(get=GetRecordCount)) - long RecordCount; - - // - // Wrapper methods for error-handling - // - - enum PositionEnum GetAbsolutePosition ( ); - void PutAbsolutePosition ( - enum PositionEnum pl ); - void PutRefActiveConnection ( - IDispatch * pvar ); - void PutActiveConnection ( - const _variant_t & pvar ); - _variant_t GetActiveConnection ( ); - VARIANT_BOOL GetBOF ( ); - _variant_t GetBookmark ( ); - void PutBookmark ( - const _variant_t & pvBookmark ); - long GetCacheSize ( ); - void PutCacheSize ( - long pl ); - enum CursorTypeEnum GetCursorType ( ); - void PutCursorType ( - enum CursorTypeEnum plCursorType ); - VARIANT_BOOL GetadoEOF ( ); - FieldsPtr GetFields ( ); - enum LockTypeEnum GetLockType ( ); - void PutLockType ( - enum LockTypeEnum plLockType ); - long GetMaxRecords ( ); - void PutMaxRecords ( - long plMaxRecords ); - long GetRecordCount ( ); - void PutRefSource ( - IDispatch * pvSource ); - void PutSource ( - _bstr_t pvSource ); - _variant_t GetSource ( ); - HRESULT AddNew ( - const _variant_t & FieldList = vtMissing, - const _variant_t & Values = vtMissing ); - HRESULT CancelUpdate ( ); - HRESULT Close ( ); - HRESULT Delete ( - enum AffectEnum AffectRecords ); - _variant_t GetRows ( - long Rows, - const _variant_t & Start = vtMissing, - const _variant_t & Fields = vtMissing ); - HRESULT Move ( - long NumRecords, - const _variant_t & Start = vtMissing ); - HRESULT MoveNext ( ); - HRESULT MovePrevious ( ); - HRESULT MoveFirst ( ); - HRESULT MoveLast ( ); - HRESULT Open ( - const _variant_t & Source, - const _variant_t & ActiveConnection, - enum CursorTypeEnum CursorType, - enum LockTypeEnum LockType, - long Options ); - HRESULT Requery ( - long Options ); - HRESULT _xResync ( - enum AffectEnum AffectRecords ); - HRESULT Update ( - const _variant_t & Fields = vtMissing, - const _variant_t & Values = vtMissing ); - enum PositionEnum GetAbsolutePage ( ); - void PutAbsolutePage ( - enum PositionEnum pl ); - enum EditModeEnum GetEditMode ( ); - _variant_t GetFilter ( ); - void PutFilter ( - const _variant_t & Criteria ); - long GetPageCount ( ); - long GetPageSize ( ); - void PutPageSize ( - long pl ); - _bstr_t GetSort ( ); - void PutSort ( - _bstr_t Criteria ); - long GetStatus ( ); - long GetState ( ); - _RecordsetPtr _xClone ( ); - HRESULT UpdateBatch ( - enum AffectEnum AffectRecords ); - HRESULT CancelBatch ( - enum AffectEnum AffectRecords ); - enum CursorLocationEnum GetCursorLocation ( ); - void PutCursorLocation ( - enum CursorLocationEnum plCursorLoc ); - _RecordsetPtr NextRecordset ( - VARIANT * RecordsAffected ); - VARIANT_BOOL Supports ( - enum CursorOptionEnum CursorOptions ); - _variant_t GetCollect ( - const _variant_t & Index ); - void PutCollect ( - const _variant_t & Index, - const _variant_t & pvar ); - enum MarshalOptionsEnum GetMarshalOptions ( ); - void PutMarshalOptions ( - enum MarshalOptionsEnum peMarshal ); - HRESULT Find ( - _bstr_t Criteria, - long SkipRecords, - enum SearchDirectionEnum SearchDirection, - const _variant_t & Start = vtMissing ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_AbsolutePosition ( - /*[out,retval]*/ enum PositionEnum * pl ) = 0; - virtual HRESULT __stdcall put_AbsolutePosition ( - /*[in]*/ enum PositionEnum pl ) = 0; - virtual HRESULT __stdcall putref_ActiveConnection ( - /*[in]*/ IDispatch * pvar ) = 0; - virtual HRESULT __stdcall put_ActiveConnection ( - /*[in]*/ VARIANT pvar ) = 0; - virtual HRESULT __stdcall get_ActiveConnection ( - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall get_BOF ( - /*[out,retval]*/ VARIANT_BOOL * pb ) = 0; - virtual HRESULT __stdcall get_Bookmark ( - /*[out,retval]*/ VARIANT * pvBookmark ) = 0; - virtual HRESULT __stdcall put_Bookmark ( - /*[in]*/ VARIANT pvBookmark ) = 0; - virtual HRESULT __stdcall get_CacheSize ( - /*[out,retval]*/ long * pl ) = 0; - virtual HRESULT __stdcall put_CacheSize ( - /*[in]*/ long pl ) = 0; - virtual HRESULT __stdcall get_CursorType ( - /*[out,retval]*/ enum CursorTypeEnum * plCursorType ) = 0; - virtual HRESULT __stdcall put_CursorType ( - /*[in]*/ enum CursorTypeEnum plCursorType ) = 0; - virtual HRESULT __stdcall get_adoEOF ( - /*[out,retval]*/ VARIANT_BOOL * pb ) = 0; - virtual HRESULT __stdcall get_Fields ( - /*[out,retval]*/ struct Fields * * ppvObject ) = 0; - virtual HRESULT __stdcall get_LockType ( - /*[out,retval]*/ enum LockTypeEnum * plLockType ) = 0; - virtual HRESULT __stdcall put_LockType ( - /*[in]*/ enum LockTypeEnum plLockType ) = 0; - virtual HRESULT __stdcall get_MaxRecords ( - /*[out,retval]*/ long * plMaxRecords ) = 0; - virtual HRESULT __stdcall put_MaxRecords ( - /*[in]*/ long plMaxRecords ) = 0; - virtual HRESULT __stdcall get_RecordCount ( - /*[out,retval]*/ long * pl ) = 0; - virtual HRESULT __stdcall putref_Source ( - /*[in]*/ IDispatch * pvSource ) = 0; - virtual HRESULT __stdcall put_Source ( - /*[in]*/ BSTR pvSource ) = 0; - virtual HRESULT __stdcall get_Source ( - /*[out,retval]*/ VARIANT * pvSource ) = 0; - virtual HRESULT __stdcall raw_AddNew ( - /*[in]*/ VARIANT FieldList = vtMissing, - /*[in]*/ VARIANT Values = vtMissing ) = 0; - virtual HRESULT __stdcall raw_CancelUpdate ( ) = 0; - virtual HRESULT __stdcall raw_Close ( ) = 0; - virtual HRESULT __stdcall raw_Delete ( - /*[in]*/ enum AffectEnum AffectRecords ) = 0; - virtual HRESULT __stdcall raw_GetRows ( - /*[in]*/ long Rows, - /*[in]*/ VARIANT Start, - /*[in]*/ VARIANT Fields, - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall raw_Move ( - /*[in]*/ long NumRecords, - /*[in]*/ VARIANT Start = vtMissing ) = 0; - virtual HRESULT __stdcall raw_MoveNext ( ) = 0; - virtual HRESULT __stdcall raw_MovePrevious ( ) = 0; - virtual HRESULT __stdcall raw_MoveFirst ( ) = 0; - virtual HRESULT __stdcall raw_MoveLast ( ) = 0; - virtual HRESULT __stdcall raw_Open ( - /*[in]*/ VARIANT Source, - /*[in]*/ VARIANT ActiveConnection, - /*[in]*/ enum CursorTypeEnum CursorType, - /*[in]*/ enum LockTypeEnum LockType, - /*[in]*/ long Options ) = 0; - virtual HRESULT __stdcall raw_Requery ( - /*[in]*/ long Options ) = 0; - virtual HRESULT __stdcall raw__xResync ( - /*[in]*/ enum AffectEnum AffectRecords ) = 0; - virtual HRESULT __stdcall raw_Update ( - /*[in]*/ VARIANT Fields = vtMissing, - /*[in]*/ VARIANT Values = vtMissing ) = 0; - virtual HRESULT __stdcall get_AbsolutePage ( - /*[out,retval]*/ enum PositionEnum * pl ) = 0; - virtual HRESULT __stdcall put_AbsolutePage ( - /*[in]*/ enum PositionEnum pl ) = 0; - virtual HRESULT __stdcall get_EditMode ( - /*[out,retval]*/ enum EditModeEnum * pl ) = 0; - virtual HRESULT __stdcall get_Filter ( - /*[out,retval]*/ VARIANT * Criteria ) = 0; - virtual HRESULT __stdcall put_Filter ( - /*[in]*/ VARIANT Criteria ) = 0; - virtual HRESULT __stdcall get_PageCount ( - /*[out,retval]*/ long * pl ) = 0; - virtual HRESULT __stdcall get_PageSize ( - /*[out,retval]*/ long * pl ) = 0; - virtual HRESULT __stdcall put_PageSize ( - /*[in]*/ long pl ) = 0; - virtual HRESULT __stdcall get_Sort ( - /*[out,retval]*/ BSTR * Criteria ) = 0; - virtual HRESULT __stdcall put_Sort ( - /*[in]*/ BSTR Criteria ) = 0; - virtual HRESULT __stdcall get_Status ( - /*[out,retval]*/ long * pl ) = 0; - virtual HRESULT __stdcall get_State ( - /*[out,retval]*/ long * plObjState ) = 0; - virtual HRESULT __stdcall raw__xClone ( - /*[out,retval]*/ struct _Recordset * * ppvObject ) = 0; - virtual HRESULT __stdcall raw_UpdateBatch ( - /*[in]*/ enum AffectEnum AffectRecords ) = 0; - virtual HRESULT __stdcall raw_CancelBatch ( - /*[in]*/ enum AffectEnum AffectRecords ) = 0; - virtual HRESULT __stdcall get_CursorLocation ( - /*[out,retval]*/ enum CursorLocationEnum * plCursorLoc ) = 0; - virtual HRESULT __stdcall put_CursorLocation ( - /*[in]*/ enum CursorLocationEnum plCursorLoc ) = 0; - virtual HRESULT __stdcall raw_NextRecordset ( - /*[out]*/ VARIANT * RecordsAffected, - /*[out,retval]*/ struct _Recordset * * ppiRs ) = 0; - virtual HRESULT __stdcall raw_Supports ( - /*[in]*/ enum CursorOptionEnum CursorOptions, - /*[out,retval]*/ VARIANT_BOOL * pb ) = 0; - virtual HRESULT __stdcall get_Collect ( - /*[in]*/ VARIANT Index, - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall put_Collect ( - /*[in]*/ VARIANT Index, - /*[in]*/ VARIANT pvar ) = 0; - virtual HRESULT __stdcall get_MarshalOptions ( - /*[out,retval]*/ enum MarshalOptionsEnum * peMarshal ) = 0; - virtual HRESULT __stdcall put_MarshalOptions ( - /*[in]*/ enum MarshalOptionsEnum peMarshal ) = 0; - virtual HRESULT __stdcall raw_Find ( - /*[in]*/ BSTR Criteria, - /*[in]*/ long SkipRecords, - /*[in]*/ enum SearchDirectionEnum SearchDirection, - /*[in]*/ VARIANT Start = vtMissing ) = 0; -}; - -struct __declspec(uuid("0000154f-0000-0010-8000-00aa006d2ea4")) -Recordset20 : Recordset15 -{ - // - // Property data - // - - __declspec(property(get=GetDataSource,put=PutRefDataSource)) - IUnknownPtr DataSource; - __declspec(property(get=GetActiveCommand)) - IDispatchPtr ActiveCommand; - __declspec(property(get=GetStayInSync,put=PutStayInSync)) - VARIANT_BOOL StayInSync; - __declspec(property(get=GetDataMember,put=PutDataMember)) - _bstr_t DataMember; - - // - // Wrapper methods for error-handling - // - - HRESULT Cancel ( ); - IUnknownPtr GetDataSource ( ); - void PutRefDataSource ( - IUnknown * ppunkDataSource ); - HRESULT _xSave ( - _bstr_t FileName, - enum PersistFormatEnum PersistFormat ); - IDispatchPtr GetActiveCommand ( ); - void PutStayInSync ( - VARIANT_BOOL pbStayInSync ); - VARIANT_BOOL GetStayInSync ( ); - _bstr_t GetString ( - enum StringFormatEnum StringFormat, - long NumRows, - _bstr_t ColumnDelimeter, - _bstr_t RowDelimeter, - _bstr_t NullExpr ); - _bstr_t GetDataMember ( ); - void PutDataMember ( - _bstr_t pbstrDataMember ); - enum CompareEnum CompareBookmarks ( - const _variant_t & Bookmark1, - const _variant_t & Bookmark2 ); - _RecordsetPtr Clone ( - enum LockTypeEnum LockType ); - HRESULT Resync ( - enum AffectEnum AffectRecords, - enum ResyncEnum ResyncValues ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Cancel ( ) = 0; - virtual HRESULT __stdcall get_DataSource ( - /*[out,retval]*/ IUnknown * * ppunkDataSource ) = 0; - virtual HRESULT __stdcall putref_DataSource ( - /*[in]*/ IUnknown * ppunkDataSource ) = 0; - virtual HRESULT __stdcall raw__xSave ( - /*[in]*/ BSTR FileName, - /*[in]*/ enum PersistFormatEnum PersistFormat ) = 0; - virtual HRESULT __stdcall get_ActiveCommand ( - /*[out,retval]*/ IDispatch * * ppCmd ) = 0; - virtual HRESULT __stdcall put_StayInSync ( - /*[in]*/ VARIANT_BOOL pbStayInSync ) = 0; - virtual HRESULT __stdcall get_StayInSync ( - /*[out,retval]*/ VARIANT_BOOL * pbStayInSync ) = 0; - virtual HRESULT __stdcall raw_GetString ( - /*[in]*/ enum StringFormatEnum StringFormat, - /*[in]*/ long NumRows, - /*[in]*/ BSTR ColumnDelimeter, - /*[in]*/ BSTR RowDelimeter, - /*[in]*/ BSTR NullExpr, - /*[out,retval]*/ BSTR * pRetString ) = 0; - virtual HRESULT __stdcall get_DataMember ( - /*[out,retval]*/ BSTR * pbstrDataMember ) = 0; - virtual HRESULT __stdcall put_DataMember ( - /*[in]*/ BSTR pbstrDataMember ) = 0; - virtual HRESULT __stdcall raw_CompareBookmarks ( - /*[in]*/ VARIANT Bookmark1, - /*[in]*/ VARIANT Bookmark2, - /*[out,retval]*/ enum CompareEnum * pCompare ) = 0; - virtual HRESULT __stdcall raw_Clone ( - /*[in]*/ enum LockTypeEnum LockType, - /*[out,retval]*/ struct _Recordset * * ppvObject ) = 0; - virtual HRESULT __stdcall raw_Resync ( - /*[in]*/ enum AffectEnum AffectRecords, - /*[in]*/ enum ResyncEnum ResyncValues ) = 0; -}; - -struct __declspec(uuid("00001555-0000-0010-8000-00aa006d2ea4")) -Recordset21 : Recordset20 -{ - // - // Property data - // - - __declspec(property(get=GetIndex,put=PutIndex)) - _bstr_t Index; - - // - // Wrapper methods for error-handling - // - - HRESULT Seek ( - const _variant_t & KeyValues, - enum SeekEnum SeekOption ); - void PutIndex ( - _bstr_t pbstrIndex ); - _bstr_t GetIndex ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Seek ( - /*[in]*/ VARIANT KeyValues, - /*[in]*/ enum SeekEnum SeekOption ) = 0; - virtual HRESULT __stdcall put_Index ( - /*[in]*/ BSTR pbstrIndex ) = 0; - virtual HRESULT __stdcall get_Index ( - /*[out,retval]*/ BSTR * pbstrIndex ) = 0; -}; - -struct __declspec(uuid("00001556-0000-0010-8000-00aa006d2ea4")) -_Recordset : Recordset21 -{ - // - // Wrapper methods for error-handling - // - - HRESULT Save ( - const _variant_t & Destination, - enum PersistFormatEnum PersistFormat ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Save ( - /*[in]*/ VARIANT Destination, - /*[in]*/ enum PersistFormatEnum PersistFormat ) = 0; -}; - -struct __declspec(uuid("00001402-0000-0010-8000-00aa006d2ea4")) -ConnectionEventsVt : IUnknown -{ - // - // Wrapper methods for error-handling - // - - HRESULT InfoMessage ( - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Connection * pConnection ); - HRESULT BeginTransComplete ( - long TransactionLevel, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Connection * pConnection ); - HRESULT CommitTransComplete ( - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Connection * pConnection ); - HRESULT RollbackTransComplete ( - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Connection * pConnection ); - HRESULT WillExecute ( - BSTR * Source, - enum CursorTypeEnum * CursorType, - enum LockTypeEnum * LockType, - long * Options, - enum EventStatusEnum * adStatus, - struct _Command * pCommand, - struct _Recordset * pRecordset, - struct _Connection * pConnection ); - HRESULT ExecuteComplete ( - long RecordsAffected, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Command * pCommand, - struct _Recordset * pRecordset, - struct _Connection * pConnection ); - HRESULT WillConnect ( - BSTR * ConnectionString, - BSTR * UserID, - BSTR * Password, - long * Options, - enum EventStatusEnum * adStatus, - struct _Connection * pConnection ); - HRESULT ConnectComplete ( - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Connection * pConnection ); - HRESULT Disconnect ( - enum EventStatusEnum * adStatus, - struct _Connection * pConnection ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_InfoMessage ( - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Connection * pConnection ) = 0; - virtual HRESULT __stdcall raw_BeginTransComplete ( - /*[in]*/ long TransactionLevel, - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Connection * pConnection ) = 0; - virtual HRESULT __stdcall raw_CommitTransComplete ( - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Connection * pConnection ) = 0; - virtual HRESULT __stdcall raw_RollbackTransComplete ( - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Connection * pConnection ) = 0; - virtual HRESULT __stdcall raw_WillExecute ( - /*[in,out]*/ BSTR * Source, - /*[in,out]*/ enum CursorTypeEnum * CursorType, - /*[in,out]*/ enum LockTypeEnum * LockType, - /*[in,out]*/ long * Options, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Command * pCommand, - /*[in]*/ struct _Recordset * pRecordset, - /*[in]*/ struct _Connection * pConnection ) = 0; - virtual HRESULT __stdcall raw_ExecuteComplete ( - /*[in]*/ long RecordsAffected, - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Command * pCommand, - /*[in]*/ struct _Recordset * pRecordset, - /*[in]*/ struct _Connection * pConnection ) = 0; - virtual HRESULT __stdcall raw_WillConnect ( - /*[in,out]*/ BSTR * ConnectionString, - /*[in,out]*/ BSTR * UserID, - /*[in,out]*/ BSTR * Password, - /*[in,out]*/ long * Options, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Connection * pConnection ) = 0; - virtual HRESULT __stdcall raw_ConnectComplete ( - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Connection * pConnection ) = 0; - virtual HRESULT __stdcall raw_Disconnect ( - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Connection * pConnection ) = 0; -}; - -struct __declspec(uuid("00001403-0000-0010-8000-00aa006d2ea4")) -RecordsetEventsVt : IUnknown -{ - // - // Wrapper methods for error-handling - // - - HRESULT WillChangeField ( - long cFields, - const _variant_t & Fields, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); - HRESULT FieldChangeComplete ( - long cFields, - const _variant_t & Fields, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); - HRESULT WillChangeRecord ( - enum EventReasonEnum adReason, - long cRecords, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); - HRESULT RecordChangeComplete ( - enum EventReasonEnum adReason, - long cRecords, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); - HRESULT WillChangeRecordset ( - enum EventReasonEnum adReason, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); - HRESULT RecordsetChangeComplete ( - enum EventReasonEnum adReason, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); - HRESULT WillMove ( - enum EventReasonEnum adReason, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); - HRESULT MoveComplete ( - enum EventReasonEnum adReason, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); - HRESULT EndOfRecordset ( - VARIANT_BOOL * fMoreData, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); - HRESULT FetchProgress ( - long Progress, - long MaxProgress, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); - HRESULT FetchComplete ( - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Recordset * pRecordset ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_WillChangeField ( - /*[in]*/ long cFields, - /*[in]*/ VARIANT Fields, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset * pRecordset ) = 0; - virtual HRESULT __stdcall raw_FieldChangeComplete ( - /*[in]*/ long cFields, - /*[in]*/ VARIANT Fields, - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset * pRecordset ) = 0; - virtual HRESULT __stdcall raw_WillChangeRecord ( - /*[in]*/ enum EventReasonEnum adReason, - /*[in]*/ long cRecords, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset * pRecordset ) = 0; - virtual HRESULT __stdcall raw_RecordChangeComplete ( - /*[in]*/ enum EventReasonEnum adReason, - /*[in]*/ long cRecords, - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset * pRecordset ) = 0; - virtual HRESULT __stdcall raw_WillChangeRecordset ( - /*[in]*/ enum EventReasonEnum adReason, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset * pRecordset ) = 0; - virtual HRESULT __stdcall raw_RecordsetChangeComplete ( - /*[in]*/ enum EventReasonEnum adReason, - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset * pRecordset ) = 0; - virtual HRESULT __stdcall raw_WillMove ( - /*[in]*/ enum EventReasonEnum adReason, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset * pRecordset ) = 0; - virtual HRESULT __stdcall raw_MoveComplete ( - /*[in]*/ enum EventReasonEnum adReason, - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset * pRecordset ) = 0; - virtual HRESULT __stdcall raw_EndOfRecordset ( - /*[in,out]*/ VARIANT_BOOL * fMoreData, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset * pRecordset ) = 0; - virtual HRESULT __stdcall raw_FetchProgress ( - /*[in]*/ long Progress, - /*[in]*/ long MaxProgress, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset * pRecordset ) = 0; - virtual HRESULT __stdcall raw_FetchComplete ( - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset * pRecordset ) = 0; -}; - -struct __declspec(uuid("00001562-0000-0010-8000-00aa006d2ea4")) -_Record : _ADO -{ - // - // Property data - // - - __declspec(property(get=GetFields)) - FieldsPtr Fields; - __declspec(property(get=GetState)) - enum ObjectStateEnum State; - __declspec(property(get=GetMode,put=PutMode)) - enum ConnectModeEnum Mode; - __declspec(property(get=GetParentURL)) - _bstr_t ParentURL; - __declspec(property(get=GetRecordType)) - enum RecordTypeEnum RecordType; - - // - // Wrapper methods for error-handling - // - - _variant_t GetActiveConnection ( ); - void PutActiveConnection ( - _bstr_t pvar ); - void PutRefActiveConnection ( - struct _Connection * pvar ); - enum ObjectStateEnum GetState ( ); - _variant_t GetSource ( ); - void PutSource ( - _bstr_t pvar ); - void PutRefSource ( - IDispatch * pvar ); - enum ConnectModeEnum GetMode ( ); - void PutMode ( - enum ConnectModeEnum pMode ); - _bstr_t GetParentURL ( ); - _bstr_t MoveRecord ( - _bstr_t Source, - _bstr_t Destination, - _bstr_t UserName, - _bstr_t Password, - enum MoveRecordOptionsEnum Options, - VARIANT_BOOL Async ); - _bstr_t CopyRecord ( - _bstr_t Source, - _bstr_t Destination, - _bstr_t UserName, - _bstr_t Password, - enum CopyRecordOptionsEnum Options, - VARIANT_BOOL Async ); - HRESULT DeleteRecord ( - _bstr_t Source, - VARIANT_BOOL Async ); - HRESULT Open ( - const _variant_t & Source, - const _variant_t & ActiveConnection, - enum ConnectModeEnum Mode, - enum RecordCreateOptionsEnum CreateOptions, - enum RecordOpenOptionsEnum Options, - _bstr_t UserName, - _bstr_t Password ); - HRESULT Close ( ); - FieldsPtr GetFields ( ); - enum RecordTypeEnum GetRecordType ( ); - _RecordsetPtr GetChildren ( ); - HRESULT Cancel ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_ActiveConnection ( - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall put_ActiveConnection ( - /*[in]*/ BSTR pvar ) = 0; - virtual HRESULT __stdcall putref_ActiveConnection ( - /*[in]*/ struct _Connection * pvar ) = 0; - virtual HRESULT __stdcall get_State ( - /*[out,retval]*/ enum ObjectStateEnum * pState ) = 0; - virtual HRESULT __stdcall get_Source ( - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall put_Source ( - /*[in]*/ BSTR pvar ) = 0; - virtual HRESULT __stdcall putref_Source ( - /*[in]*/ IDispatch * pvar ) = 0; - virtual HRESULT __stdcall get_Mode ( - /*[out,retval]*/ enum ConnectModeEnum * pMode ) = 0; - virtual HRESULT __stdcall put_Mode ( - /*[in]*/ enum ConnectModeEnum pMode ) = 0; - virtual HRESULT __stdcall get_ParentURL ( - /*[out,retval]*/ BSTR * pbstrParentURL ) = 0; - virtual HRESULT __stdcall raw_MoveRecord ( - /*[in]*/ BSTR Source, - /*[in]*/ BSTR Destination, - /*[in]*/ BSTR UserName, - /*[in]*/ BSTR Password, - /*[in]*/ enum MoveRecordOptionsEnum Options, - /*[in]*/ VARIANT_BOOL Async, - /*[out,retval]*/ BSTR * pbstrNewURL ) = 0; - virtual HRESULT __stdcall raw_CopyRecord ( - /*[in]*/ BSTR Source, - /*[in]*/ BSTR Destination, - /*[in]*/ BSTR UserName, - /*[in]*/ BSTR Password, - /*[in]*/ enum CopyRecordOptionsEnum Options, - /*[in]*/ VARIANT_BOOL Async, - /*[out,retval]*/ BSTR * pbstrNewURL ) = 0; - virtual HRESULT __stdcall raw_DeleteRecord ( - /*[in]*/ BSTR Source, - /*[in]*/ VARIANT_BOOL Async ) = 0; - virtual HRESULT __stdcall raw_Open ( - /*[in]*/ VARIANT Source, - /*[in]*/ VARIANT ActiveConnection, - /*[in]*/ enum ConnectModeEnum Mode, - /*[in]*/ enum RecordCreateOptionsEnum CreateOptions, - /*[in]*/ enum RecordOpenOptionsEnum Options, - /*[in]*/ BSTR UserName, - /*[in]*/ BSTR Password ) = 0; - virtual HRESULT __stdcall raw_Close ( ) = 0; - virtual HRESULT __stdcall get_Fields ( - /*[out,retval]*/ struct Fields * * ppFlds ) = 0; - virtual HRESULT __stdcall get_RecordType ( - /*[out,retval]*/ enum RecordTypeEnum * ptype ) = 0; - virtual HRESULT __stdcall raw_GetChildren ( - /*[out,retval]*/ struct _Recordset * * pprset ) = 0; - virtual HRESULT __stdcall raw_Cancel ( ) = 0; -}; - -struct __declspec(uuid("00000402-0000-0010-8000-00aa006d2ea4")) -ConnectionEventsVt_Deprecated : IUnknown -{ - // - // Wrapper methods for error-handling - // - - HRESULT InfoMessage ( - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Connection_Deprecated * pConnection ); - HRESULT BeginTransComplete ( - long TransactionLevel, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Connection_Deprecated * pConnection ); - HRESULT CommitTransComplete ( - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Connection_Deprecated * pConnection ); - HRESULT RollbackTransComplete ( - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Connection_Deprecated * pConnection ); - HRESULT WillExecute ( - BSTR * Source, - enum CursorTypeEnum * CursorType, - enum LockTypeEnum * LockType, - long * Options, - enum EventStatusEnum * adStatus, - struct _Command_Deprecated * pCommand, - struct _Recordset_Deprecated * pRecordset, - struct _Connection_Deprecated * pConnection ); - HRESULT ExecuteComplete ( - long RecordsAffected, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Command_Deprecated * pCommand, - struct _Recordset_Deprecated * pRecordset, - struct _Connection_Deprecated * pConnection ); - HRESULT WillConnect ( - BSTR * ConnectionString, - BSTR * UserID, - BSTR * Password, - long * Options, - enum EventStatusEnum * adStatus, - struct _Connection_Deprecated * pConnection ); - HRESULT ConnectComplete ( - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Connection_Deprecated * pConnection ); - HRESULT Disconnect ( - enum EventStatusEnum * adStatus, - struct _Connection_Deprecated * pConnection ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_InfoMessage ( - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Connection_Deprecated * pConnection ) = 0; - virtual HRESULT __stdcall raw_BeginTransComplete ( - /*[in]*/ long TransactionLevel, - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Connection_Deprecated * pConnection ) = 0; - virtual HRESULT __stdcall raw_CommitTransComplete ( - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Connection_Deprecated * pConnection ) = 0; - virtual HRESULT __stdcall raw_RollbackTransComplete ( - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Connection_Deprecated * pConnection ) = 0; - virtual HRESULT __stdcall raw_WillExecute ( - /*[in,out]*/ BSTR * Source, - /*[in,out]*/ enum CursorTypeEnum * CursorType, - /*[in,out]*/ enum LockTypeEnum * LockType, - /*[in,out]*/ long * Options, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Command_Deprecated * pCommand, - /*[in]*/ struct _Recordset_Deprecated * pRecordset, - /*[in]*/ struct _Connection_Deprecated * pConnection ) = 0; - virtual HRESULT __stdcall raw_ExecuteComplete ( - /*[in]*/ long RecordsAffected, - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Command_Deprecated * pCommand, - /*[in]*/ struct _Recordset_Deprecated * pRecordset, - /*[in]*/ struct _Connection_Deprecated * pConnection ) = 0; - virtual HRESULT __stdcall raw_WillConnect ( - /*[in,out]*/ BSTR * ConnectionString, - /*[in,out]*/ BSTR * UserID, - /*[in,out]*/ BSTR * Password, - /*[in,out]*/ long * Options, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Connection_Deprecated * pConnection ) = 0; - virtual HRESULT __stdcall raw_ConnectComplete ( - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Connection_Deprecated * pConnection ) = 0; - virtual HRESULT __stdcall raw_Disconnect ( - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Connection_Deprecated * pConnection ) = 0; -}; - -struct __declspec(uuid("00000515-0000-0010-8000-00aa006d2ea4")) -Connection15_Deprecated : _ADO -{ - // - // Property data - // - - __declspec(property(get=GetConnectionString,put=PutConnectionString)) - _bstr_t ConnectionString; - __declspec(property(get=GetCommandTimeout,put=PutCommandTimeout)) - long CommandTimeout; - __declspec(property(get=GetConnectionTimeout,put=PutConnectionTimeout)) - long ConnectionTimeout; - __declspec(property(get=GetVersion)) - _bstr_t Version; - __declspec(property(get=GetErrors)) - ErrorsPtr Errors; - __declspec(property(get=GetDefaultDatabase,put=PutDefaultDatabase)) - _bstr_t DefaultDatabase; - __declspec(property(get=GetIsolationLevel,put=PutIsolationLevel)) - enum IsolationLevelEnum IsolationLevel; - __declspec(property(get=GetAttributes,put=PutAttributes)) - long Attributes; - __declspec(property(get=GetCursorLocation,put=PutCursorLocation)) - enum CursorLocationEnum CursorLocation; - __declspec(property(get=GetMode,put=PutMode)) - enum ConnectModeEnum Mode; - __declspec(property(get=GetProvider,put=PutProvider)) - _bstr_t Provider; - __declspec(property(get=GetState)) - long State; - - // - // Wrapper methods for error-handling - // - - _bstr_t GetConnectionString ( ); - void PutConnectionString ( - _bstr_t pbstr ); - long GetCommandTimeout ( ); - void PutCommandTimeout ( - long plTimeout ); - long GetConnectionTimeout ( ); - void PutConnectionTimeout ( - long plTimeout ); - _bstr_t GetVersion ( ); - HRESULT Close ( ); - _Recordset_DeprecatedPtr Execute ( - _bstr_t CommandText, - VARIANT * RecordsAffected, - long Options ); - long BeginTrans ( ); - HRESULT CommitTrans ( ); - HRESULT RollbackTrans ( ); - HRESULT Open ( - _bstr_t ConnectionString, - _bstr_t UserID, - _bstr_t Password, - long Options ); - ErrorsPtr GetErrors ( ); - _bstr_t GetDefaultDatabase ( ); - void PutDefaultDatabase ( - _bstr_t pbstr ); - enum IsolationLevelEnum GetIsolationLevel ( ); - void PutIsolationLevel ( - enum IsolationLevelEnum Level ); - long GetAttributes ( ); - void PutAttributes ( - long plAttr ); - enum CursorLocationEnum GetCursorLocation ( ); - void PutCursorLocation ( - enum CursorLocationEnum plCursorLoc ); - enum ConnectModeEnum GetMode ( ); - void PutMode ( - enum ConnectModeEnum plMode ); - _bstr_t GetProvider ( ); - void PutProvider ( - _bstr_t pbstr ); - long GetState ( ); - _Recordset_DeprecatedPtr OpenSchema ( - enum SchemaEnum Schema, - const _variant_t & Restrictions = vtMissing, - const _variant_t & SchemaID = vtMissing ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_ConnectionString ( - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall put_ConnectionString ( - /*[in]*/ BSTR pbstr ) = 0; - virtual HRESULT __stdcall get_CommandTimeout ( - /*[out,retval]*/ long * plTimeout ) = 0; - virtual HRESULT __stdcall put_CommandTimeout ( - /*[in]*/ long plTimeout ) = 0; - virtual HRESULT __stdcall get_ConnectionTimeout ( - /*[out,retval]*/ long * plTimeout ) = 0; - virtual HRESULT __stdcall put_ConnectionTimeout ( - /*[in]*/ long plTimeout ) = 0; - virtual HRESULT __stdcall get_Version ( - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall raw_Close ( ) = 0; - virtual HRESULT __stdcall raw_Execute ( - /*[in]*/ BSTR CommandText, - /*[out]*/ VARIANT * RecordsAffected, - /*[in]*/ long Options, - /*[out,retval]*/ struct _Recordset_Deprecated * * ppiRset ) = 0; - virtual HRESULT __stdcall raw_BeginTrans ( - /*[out,retval]*/ long * TransactionLevel ) = 0; - virtual HRESULT __stdcall raw_CommitTrans ( ) = 0; - virtual HRESULT __stdcall raw_RollbackTrans ( ) = 0; - virtual HRESULT __stdcall raw_Open ( - /*[in]*/ BSTR ConnectionString, - /*[in]*/ BSTR UserID, - /*[in]*/ BSTR Password, - /*[in]*/ long Options ) = 0; - virtual HRESULT __stdcall get_Errors ( - /*[out,retval]*/ struct Errors * * ppvObject ) = 0; - virtual HRESULT __stdcall get_DefaultDatabase ( - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall put_DefaultDatabase ( - /*[in]*/ BSTR pbstr ) = 0; - virtual HRESULT __stdcall get_IsolationLevel ( - /*[out,retval]*/ enum IsolationLevelEnum * Level ) = 0; - virtual HRESULT __stdcall put_IsolationLevel ( - /*[in]*/ enum IsolationLevelEnum Level ) = 0; - virtual HRESULT __stdcall get_Attributes ( - /*[out,retval]*/ long * plAttr ) = 0; - virtual HRESULT __stdcall put_Attributes ( - /*[in]*/ long plAttr ) = 0; - virtual HRESULT __stdcall get_CursorLocation ( - /*[out,retval]*/ enum CursorLocationEnum * plCursorLoc ) = 0; - virtual HRESULT __stdcall put_CursorLocation ( - /*[in]*/ enum CursorLocationEnum plCursorLoc ) = 0; - virtual HRESULT __stdcall get_Mode ( - /*[out,retval]*/ enum ConnectModeEnum * plMode ) = 0; - virtual HRESULT __stdcall put_Mode ( - /*[in]*/ enum ConnectModeEnum plMode ) = 0; - virtual HRESULT __stdcall get_Provider ( - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall put_Provider ( - /*[in]*/ BSTR pbstr ) = 0; - virtual HRESULT __stdcall get_State ( - /*[out,retval]*/ long * plObjState ) = 0; - virtual HRESULT __stdcall raw_OpenSchema ( - /*[in]*/ enum SchemaEnum Schema, - /*[in]*/ VARIANT Restrictions, - /*[in]*/ VARIANT SchemaID, - /*[out,retval]*/ struct _Recordset_Deprecated * * pprset ) = 0; -}; - -struct __declspec(uuid("00000550-0000-0010-8000-00aa006d2ea4")) -_Connection_Deprecated : Connection15_Deprecated -{ - // - // Wrapper methods for error-handling - // - - HRESULT Cancel ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Cancel ( ) = 0; -}; - -struct __declspec(uuid("0000050e-0000-0010-8000-00aa006d2ea4")) -Recordset15_Deprecated : _ADO -{ - // - // Property data - // - - __declspec(property(get=GetFields)) - Fields_DeprecatedPtr Fields; - __declspec(property(get=GetPageSize,put=PutPageSize)) - long PageSize; - __declspec(property(get=GetPageCount)) - ADO_LONGPTR PageCount; - __declspec(property(get=GetCursorLocation,put=PutCursorLocation)) - enum CursorLocationEnum CursorLocation; - __declspec(property(get=GetState)) - long State; - __declspec(property(get=GetMarshalOptions,put=PutMarshalOptions)) - enum MarshalOptionsEnum MarshalOptions; - __declspec(property(get=GetCollect,put=PutCollect)) - _variant_t Collect[]; - __declspec(property(get=GetEditMode)) - enum EditModeEnum EditMode; - __declspec(property(get=GetStatus)) - long Status; - __declspec(property(get=GetFilter,put=PutFilter)) - _variant_t Filter; - __declspec(property(get=GetSort,put=PutSort)) - _bstr_t Sort; - __declspec(property(get=GetAbsolutePosition,put=PutAbsolutePosition)) - PositionEnum_Param AbsolutePosition; - __declspec(property(get=GetBOF)) - VARIANT_BOOL BOF; - __declspec(property(get=GetBookmark,put=PutBookmark)) - _variant_t Bookmark; - __declspec(property(get=GetCacheSize,put=PutCacheSize)) - long CacheSize; - __declspec(property(get=GetCursorType,put=PutCursorType)) - enum CursorTypeEnum CursorType; - __declspec(property(get=GetadoEOF)) - VARIANT_BOOL adoEOF; - __declspec(property(get=GetAbsolutePage,put=PutAbsolutePage)) - PositionEnum_Param AbsolutePage; - __declspec(property(get=GetLockType,put=PutLockType)) - enum LockTypeEnum LockType; - __declspec(property(get=GetMaxRecords,put=PutMaxRecords)) - ADO_LONGPTR MaxRecords; - __declspec(property(get=GetRecordCount)) - ADO_LONGPTR RecordCount; - - // - // Wrapper methods for error-handling - // - - PositionEnum_Param GetAbsolutePosition ( ); - void PutAbsolutePosition ( - PositionEnum_Param pl ); - void PutRefActiveConnection ( - IDispatch * pvar ); - void PutActiveConnection ( - const _variant_t & pvar ); - _variant_t GetActiveConnection ( ); - VARIANT_BOOL GetBOF ( ); - _variant_t GetBookmark ( ); - void PutBookmark ( - const _variant_t & pvBookmark ); - long GetCacheSize ( ); - void PutCacheSize ( - long pl ); - enum CursorTypeEnum GetCursorType ( ); - void PutCursorType ( - enum CursorTypeEnum plCursorType ); - VARIANT_BOOL GetadoEOF ( ); - Fields_DeprecatedPtr GetFields ( ); - enum LockTypeEnum GetLockType ( ); - void PutLockType ( - enum LockTypeEnum plLockType ); - ADO_LONGPTR GetMaxRecords ( ); - void PutMaxRecords ( - ADO_LONGPTR plMaxRecords ); - ADO_LONGPTR GetRecordCount ( ); - void PutRefSource ( - IDispatch * pvSource ); - void PutSource ( - _bstr_t pvSource ); - _variant_t GetSource ( ); - HRESULT AddNew ( - const _variant_t & FieldList = vtMissing, - const _variant_t & Values = vtMissing ); - HRESULT CancelUpdate ( ); - HRESULT Close ( ); - HRESULT Delete ( - enum AffectEnum AffectRecords ); - _variant_t GetRows ( - long Rows, - const _variant_t & Start = vtMissing, - const _variant_t & Fields = vtMissing ); - HRESULT Move ( - ADO_LONGPTR NumRecords, - const _variant_t & Start = vtMissing ); - HRESULT MoveNext ( ); - HRESULT MovePrevious ( ); - HRESULT MoveFirst ( ); - HRESULT MoveLast ( ); - HRESULT Open ( - const _variant_t & Source, - const _variant_t & ActiveConnection, - enum CursorTypeEnum CursorType, - enum LockTypeEnum LockType, - long Options ); - HRESULT Requery ( - long Options ); - HRESULT _xResync ( - enum AffectEnum AffectRecords ); - HRESULT Update ( - const _variant_t & Fields = vtMissing, - const _variant_t & Values = vtMissing ); - PositionEnum_Param GetAbsolutePage ( ); - void PutAbsolutePage ( - PositionEnum_Param pl ); - enum EditModeEnum GetEditMode ( ); - _variant_t GetFilter ( ); - void PutFilter ( - const _variant_t & Criteria ); - ADO_LONGPTR GetPageCount ( ); - long GetPageSize ( ); - void PutPageSize ( - long pl ); - _bstr_t GetSort ( ); - void PutSort ( - _bstr_t Criteria ); - long GetStatus ( ); - long GetState ( ); - _Recordset_DeprecatedPtr _xClone ( ); - HRESULT UpdateBatch ( - enum AffectEnum AffectRecords ); - HRESULT CancelBatch ( - enum AffectEnum AffectRecords ); - enum CursorLocationEnum GetCursorLocation ( ); - void PutCursorLocation ( - enum CursorLocationEnum plCursorLoc ); - _Recordset_DeprecatedPtr NextRecordset ( - VARIANT * RecordsAffected ); - VARIANT_BOOL Supports ( - enum CursorOptionEnum CursorOptions ); - _variant_t GetCollect ( - const _variant_t & Index ); - void PutCollect ( - const _variant_t & Index, - const _variant_t & pvar ); - enum MarshalOptionsEnum GetMarshalOptions ( ); - void PutMarshalOptions ( - enum MarshalOptionsEnum peMarshal ); - HRESULT Find ( - _bstr_t Criteria, - ADO_LONGPTR SkipRecords, - enum SearchDirectionEnum SearchDirection, - const _variant_t & Start = vtMissing ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_AbsolutePosition ( - /*[out,retval]*/ PositionEnum_Param * pl ) = 0; - virtual HRESULT __stdcall put_AbsolutePosition ( - /*[in]*/ PositionEnum_Param pl ) = 0; - virtual HRESULT __stdcall putref_ActiveConnection ( - /*[in]*/ IDispatch * pvar ) = 0; - virtual HRESULT __stdcall put_ActiveConnection ( - /*[in]*/ VARIANT pvar ) = 0; - virtual HRESULT __stdcall get_ActiveConnection ( - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall get_BOF ( - /*[out,retval]*/ VARIANT_BOOL * pb ) = 0; - virtual HRESULT __stdcall get_Bookmark ( - /*[out,retval]*/ VARIANT * pvBookmark ) = 0; - virtual HRESULT __stdcall put_Bookmark ( - /*[in]*/ VARIANT pvBookmark ) = 0; - virtual HRESULT __stdcall get_CacheSize ( - /*[out,retval]*/ long * pl ) = 0; - virtual HRESULT __stdcall put_CacheSize ( - /*[in]*/ long pl ) = 0; - virtual HRESULT __stdcall get_CursorType ( - /*[out,retval]*/ enum CursorTypeEnum * plCursorType ) = 0; - virtual HRESULT __stdcall put_CursorType ( - /*[in]*/ enum CursorTypeEnum plCursorType ) = 0; - virtual HRESULT __stdcall get_adoEOF ( - /*[out,retval]*/ VARIANT_BOOL * pb ) = 0; - virtual HRESULT __stdcall get_Fields ( - /*[out,retval]*/ struct Fields_Deprecated * * ppvObject ) = 0; - virtual HRESULT __stdcall get_LockType ( - /*[out,retval]*/ enum LockTypeEnum * plLockType ) = 0; - virtual HRESULT __stdcall put_LockType ( - /*[in]*/ enum LockTypeEnum plLockType ) = 0; - virtual HRESULT __stdcall get_MaxRecords ( - /*[out,retval]*/ ADO_LONGPTR * plMaxRecords ) = 0; - virtual HRESULT __stdcall put_MaxRecords ( - /*[in]*/ ADO_LONGPTR plMaxRecords ) = 0; - virtual HRESULT __stdcall get_RecordCount ( - /*[out,retval]*/ ADO_LONGPTR * pl ) = 0; - virtual HRESULT __stdcall putref_Source ( - /*[in]*/ IDispatch * pvSource ) = 0; - virtual HRESULT __stdcall put_Source ( - /*[in]*/ BSTR pvSource ) = 0; - virtual HRESULT __stdcall get_Source ( - /*[out,retval]*/ VARIANT * pvSource ) = 0; - virtual HRESULT __stdcall raw_AddNew ( - /*[in]*/ VARIANT FieldList = vtMissing, - /*[in]*/ VARIANT Values = vtMissing ) = 0; - virtual HRESULT __stdcall raw_CancelUpdate ( ) = 0; - virtual HRESULT __stdcall raw_Close ( ) = 0; - virtual HRESULT __stdcall raw_Delete ( - /*[in]*/ enum AffectEnum AffectRecords ) = 0; - virtual HRESULT __stdcall raw_GetRows ( - /*[in]*/ long Rows, - /*[in]*/ VARIANT Start, - /*[in]*/ VARIANT Fields, - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall raw_Move ( - /*[in]*/ ADO_LONGPTR NumRecords, - /*[in]*/ VARIANT Start = vtMissing ) = 0; - virtual HRESULT __stdcall raw_MoveNext ( ) = 0; - virtual HRESULT __stdcall raw_MovePrevious ( ) = 0; - virtual HRESULT __stdcall raw_MoveFirst ( ) = 0; - virtual HRESULT __stdcall raw_MoveLast ( ) = 0; - virtual HRESULT __stdcall raw_Open ( - /*[in]*/ VARIANT Source, - /*[in]*/ VARIANT ActiveConnection, - /*[in]*/ enum CursorTypeEnum CursorType, - /*[in]*/ enum LockTypeEnum LockType, - /*[in]*/ long Options ) = 0; - virtual HRESULT __stdcall raw_Requery ( - /*[in]*/ long Options ) = 0; - virtual HRESULT __stdcall raw__xResync ( - /*[in]*/ enum AffectEnum AffectRecords ) = 0; - virtual HRESULT __stdcall raw_Update ( - /*[in]*/ VARIANT Fields = vtMissing, - /*[in]*/ VARIANT Values = vtMissing ) = 0; - virtual HRESULT __stdcall get_AbsolutePage ( - /*[out,retval]*/ PositionEnum_Param * pl ) = 0; - virtual HRESULT __stdcall put_AbsolutePage ( - /*[in]*/ PositionEnum_Param pl ) = 0; - virtual HRESULT __stdcall get_EditMode ( - /*[out,retval]*/ enum EditModeEnum * pl ) = 0; - virtual HRESULT __stdcall get_Filter ( - /*[out,retval]*/ VARIANT * Criteria ) = 0; - virtual HRESULT __stdcall put_Filter ( - /*[in]*/ VARIANT Criteria ) = 0; - virtual HRESULT __stdcall get_PageCount ( - /*[out,retval]*/ ADO_LONGPTR * pl ) = 0; - virtual HRESULT __stdcall get_PageSize ( - /*[out,retval]*/ long * pl ) = 0; - virtual HRESULT __stdcall put_PageSize ( - /*[in]*/ long pl ) = 0; - virtual HRESULT __stdcall get_Sort ( - /*[out,retval]*/ BSTR * Criteria ) = 0; - virtual HRESULT __stdcall put_Sort ( - /*[in]*/ BSTR Criteria ) = 0; - virtual HRESULT __stdcall get_Status ( - /*[out,retval]*/ long * pl ) = 0; - virtual HRESULT __stdcall get_State ( - /*[out,retval]*/ long * plObjState ) = 0; - virtual HRESULT __stdcall raw__xClone ( - /*[out,retval]*/ struct _Recordset_Deprecated * * ppvObject ) = 0; - virtual HRESULT __stdcall raw_UpdateBatch ( - /*[in]*/ enum AffectEnum AffectRecords ) = 0; - virtual HRESULT __stdcall raw_CancelBatch ( - /*[in]*/ enum AffectEnum AffectRecords ) = 0; - virtual HRESULT __stdcall get_CursorLocation ( - /*[out,retval]*/ enum CursorLocationEnum * plCursorLoc ) = 0; - virtual HRESULT __stdcall put_CursorLocation ( - /*[in]*/ enum CursorLocationEnum plCursorLoc ) = 0; - virtual HRESULT __stdcall raw_NextRecordset ( - /*[out]*/ VARIANT * RecordsAffected, - /*[out,retval]*/ struct _Recordset_Deprecated * * ppiRs ) = 0; - virtual HRESULT __stdcall raw_Supports ( - /*[in]*/ enum CursorOptionEnum CursorOptions, - /*[out,retval]*/ VARIANT_BOOL * pb ) = 0; - virtual HRESULT __stdcall get_Collect ( - /*[in]*/ VARIANT Index, - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall put_Collect ( - /*[in]*/ VARIANT Index, - /*[in]*/ VARIANT pvar ) = 0; - virtual HRESULT __stdcall get_MarshalOptions ( - /*[out,retval]*/ enum MarshalOptionsEnum * peMarshal ) = 0; - virtual HRESULT __stdcall put_MarshalOptions ( - /*[in]*/ enum MarshalOptionsEnum peMarshal ) = 0; - virtual HRESULT __stdcall raw_Find ( - /*[in]*/ BSTR Criteria, - /*[in]*/ ADO_LONGPTR SkipRecords, - /*[in]*/ enum SearchDirectionEnum SearchDirection, - /*[in]*/ VARIANT Start = vtMissing ) = 0; -}; - -struct __declspec(uuid("0000054f-0000-0010-8000-00aa006d2ea4")) -Recordset20_Deprecated : Recordset15_Deprecated -{ - // - // Property data - // - - __declspec(property(get=GetDataSource,put=PutRefDataSource)) - IUnknownPtr DataSource; - __declspec(property(get=GetActiveCommand)) - IDispatchPtr ActiveCommand; - __declspec(property(get=GetStayInSync,put=PutStayInSync)) - VARIANT_BOOL StayInSync; - __declspec(property(get=GetDataMember,put=PutDataMember)) - _bstr_t DataMember; - - // - // Wrapper methods for error-handling - // - - HRESULT Cancel ( ); - IUnknownPtr GetDataSource ( ); - void PutRefDataSource ( - IUnknown * ppunkDataSource ); - HRESULT _xSave ( - _bstr_t FileName, - enum PersistFormatEnum PersistFormat ); - IDispatchPtr GetActiveCommand ( ); - void PutStayInSync ( - VARIANT_BOOL pbStayInSync ); - VARIANT_BOOL GetStayInSync ( ); - _bstr_t GetString ( - enum StringFormatEnum StringFormat, - long NumRows, - _bstr_t ColumnDelimeter, - _bstr_t RowDelimeter, - _bstr_t NullExpr ); - _bstr_t GetDataMember ( ); - void PutDataMember ( - _bstr_t pbstrDataMember ); - enum CompareEnum CompareBookmarks ( - const _variant_t & Bookmark1, - const _variant_t & Bookmark2 ); - _Recordset_DeprecatedPtr Clone ( - enum LockTypeEnum LockType ); - HRESULT Resync ( - enum AffectEnum AffectRecords, - enum ResyncEnum ResyncValues ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Cancel ( ) = 0; - virtual HRESULT __stdcall get_DataSource ( - /*[out,retval]*/ IUnknown * * ppunkDataSource ) = 0; - virtual HRESULT __stdcall putref_DataSource ( - /*[in]*/ IUnknown * ppunkDataSource ) = 0; - virtual HRESULT __stdcall raw__xSave ( - /*[in]*/ BSTR FileName, - /*[in]*/ enum PersistFormatEnum PersistFormat ) = 0; - virtual HRESULT __stdcall get_ActiveCommand ( - /*[out,retval]*/ IDispatch * * ppCmd ) = 0; - virtual HRESULT __stdcall put_StayInSync ( - /*[in]*/ VARIANT_BOOL pbStayInSync ) = 0; - virtual HRESULT __stdcall get_StayInSync ( - /*[out,retval]*/ VARIANT_BOOL * pbStayInSync ) = 0; - virtual HRESULT __stdcall raw_GetString ( - /*[in]*/ enum StringFormatEnum StringFormat, - /*[in]*/ long NumRows, - /*[in]*/ BSTR ColumnDelimeter, - /*[in]*/ BSTR RowDelimeter, - /*[in]*/ BSTR NullExpr, - /*[out,retval]*/ BSTR * pRetString ) = 0; - virtual HRESULT __stdcall get_DataMember ( - /*[out,retval]*/ BSTR * pbstrDataMember ) = 0; - virtual HRESULT __stdcall put_DataMember ( - /*[in]*/ BSTR pbstrDataMember ) = 0; - virtual HRESULT __stdcall raw_CompareBookmarks ( - /*[in]*/ VARIANT Bookmark1, - /*[in]*/ VARIANT Bookmark2, - /*[out,retval]*/ enum CompareEnum * pCompare ) = 0; - virtual HRESULT __stdcall raw_Clone ( - /*[in]*/ enum LockTypeEnum LockType, - /*[out,retval]*/ struct _Recordset_Deprecated * * ppvObject ) = 0; - virtual HRESULT __stdcall raw_Resync ( - /*[in]*/ enum AffectEnum AffectRecords, - /*[in]*/ enum ResyncEnum ResyncValues ) = 0; -}; - -struct __declspec(uuid("00000555-0000-0010-8000-00aa006d2ea4")) -Recordset21_Deprecated : Recordset20_Deprecated -{ - // - // Property data - // - - __declspec(property(get=GetIndex,put=PutIndex)) - _bstr_t Index; - - // - // Wrapper methods for error-handling - // - - HRESULT Seek ( - const _variant_t & KeyValues, - enum SeekEnum SeekOption ); - void PutIndex ( - _bstr_t pbstrIndex ); - _bstr_t GetIndex ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Seek ( - /*[in]*/ VARIANT KeyValues, - /*[in]*/ enum SeekEnum SeekOption ) = 0; - virtual HRESULT __stdcall put_Index ( - /*[in]*/ BSTR pbstrIndex ) = 0; - virtual HRESULT __stdcall get_Index ( - /*[out,retval]*/ BSTR * pbstrIndex ) = 0; -}; - -struct __declspec(uuid("00000556-0000-0010-8000-00aa006d2ea4")) -_Recordset_Deprecated : Recordset21_Deprecated -{ - // - // Wrapper methods for error-handling - // - - HRESULT Save ( - const _variant_t & Destination, - enum PersistFormatEnum PersistFormat ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_Save ( - /*[in]*/ VARIANT Destination, - /*[in]*/ enum PersistFormatEnum PersistFormat ) = 0; -}; - -struct __declspec(uuid("00000508-0000-0010-8000-00aa006d2ea4")) -Command15_Deprecated : _ADO -{ - // - // Property data - // - - __declspec(property(get=GetParameters)) - Parameters_DeprecatedPtr Parameters; - __declspec(property(get=GetActiveConnection,put=PutRefActiveConnection)) - _Connection_DeprecatedPtr ActiveConnection; - __declspec(property(get=GetCommandText,put=PutCommandText)) - _bstr_t CommandText; - __declspec(property(get=GetCommandTimeout,put=PutCommandTimeout)) - long CommandTimeout; - __declspec(property(get=GetPrepared,put=PutPrepared)) - VARIANT_BOOL Prepared; - __declspec(property(get=GetCommandType,put=PutCommandType)) - enum CommandTypeEnum CommandType; - __declspec(property(get=GetName,put=PutName)) - _bstr_t Name; - - // - // Wrapper methods for error-handling - // - - _Connection_DeprecatedPtr GetActiveConnection ( ); - void PutRefActiveConnection ( - struct _Connection_Deprecated * ppvObject ); - void PutActiveConnection ( - const _variant_t & ppvObject ); - _bstr_t GetCommandText ( ); - void PutCommandText ( - _bstr_t pbstr ); - long GetCommandTimeout ( ); - void PutCommandTimeout ( - long pl ); - VARIANT_BOOL GetPrepared ( ); - void PutPrepared ( - VARIANT_BOOL pfPrepared ); - _Recordset_DeprecatedPtr Execute ( - VARIANT * RecordsAffected, - VARIANT * Parameters, - long Options ); - _Parameter_DeprecatedPtr CreateParameter ( - _bstr_t Name, - enum DataTypeEnum Type, - enum ParameterDirectionEnum Direction, - ADO_LONGPTR Size, - const _variant_t & Value = vtMissing ); - Parameters_DeprecatedPtr GetParameters ( ); - void PutCommandType ( - enum CommandTypeEnum plCmdType ); - enum CommandTypeEnum GetCommandType ( ); - _bstr_t GetName ( ); - void PutName ( - _bstr_t pbstrName ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_ActiveConnection ( - /*[out,retval]*/ struct _Connection_Deprecated * * ppvObject ) = 0; - virtual HRESULT __stdcall putref_ActiveConnection ( - /*[in]*/ struct _Connection_Deprecated * ppvObject ) = 0; - virtual HRESULT __stdcall put_ActiveConnection ( - /*[in]*/ VARIANT ppvObject ) = 0; - virtual HRESULT __stdcall get_CommandText ( - /*[out,retval]*/ BSTR * pbstr ) = 0; - virtual HRESULT __stdcall put_CommandText ( - /*[in]*/ BSTR pbstr ) = 0; - virtual HRESULT __stdcall get_CommandTimeout ( - /*[out,retval]*/ long * pl ) = 0; - virtual HRESULT __stdcall put_CommandTimeout ( - /*[in]*/ long pl ) = 0; - virtual HRESULT __stdcall get_Prepared ( - /*[out,retval]*/ VARIANT_BOOL * pfPrepared ) = 0; - virtual HRESULT __stdcall put_Prepared ( - /*[in]*/ VARIANT_BOOL pfPrepared ) = 0; - virtual HRESULT __stdcall raw_Execute ( - /*[out]*/ VARIANT * RecordsAffected, - /*[in]*/ VARIANT * Parameters, - /*[in]*/ long Options, - /*[out,retval]*/ struct _Recordset_Deprecated * * ppiRs ) = 0; - virtual HRESULT __stdcall raw_CreateParameter ( - /*[in]*/ BSTR Name, - /*[in]*/ enum DataTypeEnum Type, - /*[in]*/ enum ParameterDirectionEnum Direction, - /*[in]*/ ADO_LONGPTR Size, - /*[in]*/ VARIANT Value, - /*[out,retval]*/ struct _Parameter_Deprecated * * ppiprm ) = 0; - virtual HRESULT __stdcall get_Parameters ( - /*[out,retval]*/ struct Parameters_Deprecated * * ppvObject ) = 0; - virtual HRESULT __stdcall put_CommandType ( - /*[in]*/ enum CommandTypeEnum plCmdType ) = 0; - virtual HRESULT __stdcall get_CommandType ( - /*[out,retval]*/ enum CommandTypeEnum * plCmdType ) = 0; - virtual HRESULT __stdcall get_Name ( - /*[out,retval]*/ BSTR * pbstrName ) = 0; - virtual HRESULT __stdcall put_Name ( - /*[in]*/ BSTR pbstrName ) = 0; -}; - -struct __declspec(uuid("0000054e-0000-0010-8000-00aa006d2ea4")) -Command25_Deprecated : Command15_Deprecated -{ - // - // Property data - // - - __declspec(property(get=GetState)) - long State; - - // - // Wrapper methods for error-handling - // - - long GetState ( ); - HRESULT Cancel ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_State ( - /*[out,retval]*/ long * plObjState ) = 0; - virtual HRESULT __stdcall raw_Cancel ( ) = 0; -}; - -struct __declspec(uuid("b08400bd-f9d1-4d02-b856-71d5dba123e9")) -_Command_Deprecated : Command25_Deprecated -{ - // - // Property data - // - - __declspec(property(get=GetDialect,put=PutDialect)) - _bstr_t Dialect; - __declspec(property(get=GetNamedParameters,put=PutNamedParameters)) - VARIANT_BOOL NamedParameters; - - // - // Wrapper methods for error-handling - // - - void PutRefCommandStream ( - IUnknown * pvStream ); - _variant_t GetCommandStream ( ); - void PutDialect ( - _bstr_t pbstrDialect ); - _bstr_t GetDialect ( ); - void PutNamedParameters ( - VARIANT_BOOL pfNamedParameters ); - VARIANT_BOOL GetNamedParameters ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall putref_CommandStream ( - /*[in]*/ IUnknown * pvStream ) = 0; - virtual HRESULT __stdcall get_CommandStream ( - /*[out,retval]*/ VARIANT * pvStream ) = 0; - virtual HRESULT __stdcall put_Dialect ( - /*[in]*/ BSTR pbstrDialect ) = 0; - virtual HRESULT __stdcall get_Dialect ( - /*[out,retval]*/ BSTR * pbstrDialect ) = 0; - virtual HRESULT __stdcall put_NamedParameters ( - /*[in]*/ VARIANT_BOOL pfNamedParameters ) = 0; - virtual HRESULT __stdcall get_NamedParameters ( - /*[out,retval]*/ VARIANT_BOOL * pfNamedParameters ) = 0; -}; - -struct __declspec(uuid("00000403-0000-0010-8000-00aa006d2ea4")) -RecordsetEventsVt_Deprecated : IUnknown -{ - // - // Wrapper methods for error-handling - // - - HRESULT WillChangeField ( - long cFields, - const _variant_t & Fields, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); - HRESULT FieldChangeComplete ( - long cFields, - const _variant_t & Fields, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); - HRESULT WillChangeRecord ( - enum EventReasonEnum adReason, - long cRecords, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); - HRESULT RecordChangeComplete ( - enum EventReasonEnum adReason, - long cRecords, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); - HRESULT WillChangeRecordset ( - enum EventReasonEnum adReason, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); - HRESULT RecordsetChangeComplete ( - enum EventReasonEnum adReason, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); - HRESULT WillMove ( - enum EventReasonEnum adReason, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); - HRESULT MoveComplete ( - enum EventReasonEnum adReason, - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); - HRESULT EndOfRecordset ( - VARIANT_BOOL * fMoreData, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); - HRESULT FetchProgress ( - long Progress, - long MaxProgress, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); - HRESULT FetchComplete ( - struct Error * pError, - enum EventStatusEnum * adStatus, - struct _Recordset_Deprecated * pRecordset ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall raw_WillChangeField ( - /*[in]*/ long cFields, - /*[in]*/ VARIANT Fields, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset_Deprecated * pRecordset ) = 0; - virtual HRESULT __stdcall raw_FieldChangeComplete ( - /*[in]*/ long cFields, - /*[in]*/ VARIANT Fields, - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset_Deprecated * pRecordset ) = 0; - virtual HRESULT __stdcall raw_WillChangeRecord ( - /*[in]*/ enum EventReasonEnum adReason, - /*[in]*/ long cRecords, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset_Deprecated * pRecordset ) = 0; - virtual HRESULT __stdcall raw_RecordChangeComplete ( - /*[in]*/ enum EventReasonEnum adReason, - /*[in]*/ long cRecords, - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset_Deprecated * pRecordset ) = 0; - virtual HRESULT __stdcall raw_WillChangeRecordset ( - /*[in]*/ enum EventReasonEnum adReason, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset_Deprecated * pRecordset ) = 0; - virtual HRESULT __stdcall raw_RecordsetChangeComplete ( - /*[in]*/ enum EventReasonEnum adReason, - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset_Deprecated * pRecordset ) = 0; - virtual HRESULT __stdcall raw_WillMove ( - /*[in]*/ enum EventReasonEnum adReason, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset_Deprecated * pRecordset ) = 0; - virtual HRESULT __stdcall raw_MoveComplete ( - /*[in]*/ enum EventReasonEnum adReason, - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset_Deprecated * pRecordset ) = 0; - virtual HRESULT __stdcall raw_EndOfRecordset ( - /*[in,out]*/ VARIANT_BOOL * fMoreData, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset_Deprecated * pRecordset ) = 0; - virtual HRESULT __stdcall raw_FetchProgress ( - /*[in]*/ long Progress, - /*[in]*/ long MaxProgress, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset_Deprecated * pRecordset ) = 0; - virtual HRESULT __stdcall raw_FetchComplete ( - /*[in]*/ struct Error * pError, - /*[in,out]*/ enum EventStatusEnum * adStatus, - /*[in]*/ struct _Recordset_Deprecated * pRecordset ) = 0; -}; - -struct __declspec(uuid("00000562-0000-0010-8000-00aa006d2ea4")) -_Record_Deprecated : _ADO -{ - // - // Property data - // - - __declspec(property(get=GetFields)) - Fields_DeprecatedPtr Fields; - __declspec(property(get=GetState)) - enum ObjectStateEnum State; - __declspec(property(get=GetMode,put=PutMode)) - enum ConnectModeEnum Mode; - __declspec(property(get=GetParentURL)) - _bstr_t ParentURL; - __declspec(property(get=GetRecordType)) - enum RecordTypeEnum RecordType; - - // - // Wrapper methods for error-handling - // - - _variant_t GetActiveConnection ( ); - void PutActiveConnection ( - _bstr_t pvar ); - void PutRefActiveConnection ( - struct _Connection_Deprecated * pvar ); - enum ObjectStateEnum GetState ( ); - _variant_t GetSource ( ); - void PutSource ( - _bstr_t pvar ); - void PutRefSource ( - IDispatch * pvar ); - enum ConnectModeEnum GetMode ( ); - void PutMode ( - enum ConnectModeEnum pMode ); - _bstr_t GetParentURL ( ); - _bstr_t MoveRecord ( - _bstr_t Source, - _bstr_t Destination, - _bstr_t UserName, - _bstr_t Password, - enum MoveRecordOptionsEnum Options, - VARIANT_BOOL Async ); - _bstr_t CopyRecord ( - _bstr_t Source, - _bstr_t Destination, - _bstr_t UserName, - _bstr_t Password, - enum CopyRecordOptionsEnum Options, - VARIANT_BOOL Async ); - HRESULT DeleteRecord ( - _bstr_t Source, - VARIANT_BOOL Async ); - HRESULT Open ( - const _variant_t & Source, - const _variant_t & ActiveConnection, - enum ConnectModeEnum Mode, - enum RecordCreateOptionsEnum CreateOptions, - enum RecordOpenOptionsEnum Options, - _bstr_t UserName, - _bstr_t Password ); - HRESULT Close ( ); - Fields_DeprecatedPtr GetFields ( ); - enum RecordTypeEnum GetRecordType ( ); - _Recordset_DeprecatedPtr GetChildren ( ); - HRESULT Cancel ( ); - - // - // Raw methods provided by interface - // - - virtual HRESULT __stdcall get_ActiveConnection ( - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall put_ActiveConnection ( - /*[in]*/ BSTR pvar ) = 0; - virtual HRESULT __stdcall putref_ActiveConnection ( - /*[in]*/ struct _Connection_Deprecated * pvar ) = 0; - virtual HRESULT __stdcall get_State ( - /*[out,retval]*/ enum ObjectStateEnum * pState ) = 0; - virtual HRESULT __stdcall get_Source ( - /*[out,retval]*/ VARIANT * pvar ) = 0; - virtual HRESULT __stdcall put_Source ( - /*[in]*/ BSTR pvar ) = 0; - virtual HRESULT __stdcall putref_Source ( - /*[in]*/ IDispatch * pvar ) = 0; - virtual HRESULT __stdcall get_Mode ( - /*[out,retval]*/ enum ConnectModeEnum * pMode ) = 0; - virtual HRESULT __stdcall put_Mode ( - /*[in]*/ enum ConnectModeEnum pMode ) = 0; - virtual HRESULT __stdcall get_ParentURL ( - /*[out,retval]*/ BSTR * pbstrParentURL ) = 0; - virtual HRESULT __stdcall raw_MoveRecord ( - /*[in]*/ BSTR Source, - /*[in]*/ BSTR Destination, - /*[in]*/ BSTR UserName, - /*[in]*/ BSTR Password, - /*[in]*/ enum MoveRecordOptionsEnum Options, - /*[in]*/ VARIANT_BOOL Async, - /*[out,retval]*/ BSTR * pbstrNewURL ) = 0; - virtual HRESULT __stdcall raw_CopyRecord ( - /*[in]*/ BSTR Source, - /*[in]*/ BSTR Destination, - /*[in]*/ BSTR UserName, - /*[in]*/ BSTR Password, - /*[in]*/ enum CopyRecordOptionsEnum Options, - /*[in]*/ VARIANT_BOOL Async, - /*[out,retval]*/ BSTR * pbstrNewURL ) = 0; - virtual HRESULT __stdcall raw_DeleteRecord ( - /*[in]*/ BSTR Source, - /*[in]*/ VARIANT_BOOL Async ) = 0; - virtual HRESULT __stdcall raw_Open ( - /*[in]*/ VARIANT Source, - /*[in]*/ VARIANT ActiveConnection, - /*[in]*/ enum ConnectModeEnum Mode, - /*[in]*/ enum RecordCreateOptionsEnum CreateOptions, - /*[in]*/ enum RecordOpenOptionsEnum Options, - /*[in]*/ BSTR UserName, - /*[in]*/ BSTR Password ) = 0; - virtual HRESULT __stdcall raw_Close ( ) = 0; - virtual HRESULT __stdcall get_Fields ( - /*[out,retval]*/ struct Fields_Deprecated * * ppFlds ) = 0; - virtual HRESULT __stdcall get_RecordType ( - /*[out,retval]*/ enum RecordTypeEnum * ptype ) = 0; - virtual HRESULT __stdcall raw_GetChildren ( - /*[out,retval]*/ struct _Recordset_Deprecated * * pprset ) = 0; - virtual HRESULT __stdcall raw_Cancel ( ) = 0; -}; - -// -// Wrapper method implementations -// - -#include "c:\users\liyanfeng\documents\浠g爜\hezon_itk\hezon_itk\x64\release\msado15.tli" - -#pragma pack(pop) diff --git a/x64/Release/msado15.tli b/x64/Release/msado15.tli deleted file mode 100644 index 95288e1..0000000 --- a/x64/Release/msado15.tli +++ /dev/null @@ -1,3952 +0,0 @@ -锘// Created by Microsoft (R) C/C++ Compiler Version 11.00.50727.1 (a8dc2009). -// -// c:\users\liyanfeng\documents\浠g爜\hezon_itk\hezon_itk\x64\release\msado15.tli -// -// Wrapper implementations for type library C:/Program Files/Common Files/System/ado/msado15.dll -// compiler-generated file created 03/22/17 at 19:48:35 - DO NOT EDIT! - -#pragma once - -// -// interface _Collection wrapper method implementations -// - -inline long _Collection::GetCount ( ) { - long _result = 0; - HRESULT _hr = get_Count(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline IUnknownPtr _Collection::_NewEnum ( ) { - IUnknown * _result = 0; - HRESULT _hr = raw__NewEnum(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return IUnknownPtr(_result, false); -} - -inline HRESULT _Collection::Refresh ( ) { - HRESULT _hr = raw_Refresh(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface _DynaCollection wrapper method implementations -// - -inline HRESULT _DynaCollection::Append ( IDispatch * Object ) { - HRESULT _hr = raw_Append(Object); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _DynaCollection::Delete ( const _variant_t & Index ) { - HRESULT _hr = raw_Delete(Index); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface Property wrapper method implementations -// - -inline _variant_t Property::GetValue ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_Value(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline void Property::PutValue ( const _variant_t & pval ) { - HRESULT _hr = put_Value(pval); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _bstr_t Property::GetName ( ) { - BSTR _result = 0; - HRESULT _hr = get_Name(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline enum DataTypeEnum Property::GetType ( ) { - enum DataTypeEnum _result; - HRESULT _hr = get_Type(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline long Property::GetAttributes ( ) { - long _result = 0; - HRESULT _hr = get_Attributes(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Property::PutAttributes ( long plAttributes ) { - HRESULT _hr = put_Attributes(plAttributes); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -// -// interface Properties wrapper method implementations -// - -inline PropertyPtr Properties::GetItem ( const _variant_t & Index ) { - struct Property * _result = 0; - HRESULT _hr = get_Item(Index, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return PropertyPtr(_result, false); -} - -// -// interface _ADO wrapper method implementations -// - -inline PropertiesPtr _ADO::GetProperties ( ) { - struct Properties * _result = 0; - HRESULT _hr = get_Properties(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return PropertiesPtr(_result, false); -} - -// -// interface Error wrapper method implementations -// - -inline long Error::GetNumber ( ) { - long _result = 0; - HRESULT _hr = get_Number(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _bstr_t Error::GetSource ( ) { - BSTR _result = 0; - HRESULT _hr = get_Source(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline _bstr_t Error::GetDescription ( ) { - BSTR _result = 0; - HRESULT _hr = get_Description(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline _bstr_t Error::GetHelpFile ( ) { - BSTR _result = 0; - HRESULT _hr = get_HelpFile(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline long Error::GetHelpContext ( ) { - long _result = 0; - HRESULT _hr = get_HelpContext(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _bstr_t Error::GetSQLState ( ) { - BSTR _result = 0; - HRESULT _hr = get_SQLState(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline long Error::GetNativeError ( ) { - long _result = 0; - HRESULT _hr = get_NativeError(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -// -// interface Errors wrapper method implementations -// - -inline ErrorPtr Errors::GetItem ( const _variant_t & Index ) { - struct Error * _result = 0; - HRESULT _hr = get_Item(Index, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ErrorPtr(_result, false); -} - -inline HRESULT Errors::Clear ( ) { - HRESULT _hr = raw_Clear(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface Field20 wrapper method implementations -// - -inline long Field20::GetActualSize ( ) { - long _result = 0; - HRESULT _hr = get_ActualSize(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline long Field20::GetAttributes ( ) { - long _result = 0; - HRESULT _hr = get_Attributes(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline long Field20::GetDefinedSize ( ) { - long _result = 0; - HRESULT _hr = get_DefinedSize(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _bstr_t Field20::GetName ( ) { - BSTR _result = 0; - HRESULT _hr = get_Name(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline enum DataTypeEnum Field20::GetType ( ) { - enum DataTypeEnum _result; - HRESULT _hr = get_Type(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _variant_t Field20::GetValue ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_Value(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline void Field20::PutValue ( const _variant_t & pvar ) { - HRESULT _hr = put_Value(pvar); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline unsigned char Field20::GetPrecision ( ) { - unsigned char _result = 0; - HRESULT _hr = get_Precision(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline unsigned char Field20::GetNumericScale ( ) { - unsigned char _result = 0; - HRESULT _hr = get_NumericScale(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT Field20::AppendChunk ( const _variant_t & Data ) { - HRESULT _hr = raw_AppendChunk(Data); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline _variant_t Field20::GetChunk ( long Length ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = raw_GetChunk(Length, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline _variant_t Field20::GetOriginalValue ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_OriginalValue(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline _variant_t Field20::GetUnderlyingValue ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_UnderlyingValue(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline IUnknownPtr Field20::GetDataFormat ( ) { - IUnknown * _result = 0; - HRESULT _hr = get_DataFormat(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return IUnknownPtr(_result, false); -} - -inline void Field20::PutRefDataFormat ( IUnknown * ppiDF ) { - HRESULT _hr = putref_DataFormat(ppiDF); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void Field20::PutPrecision ( unsigned char pbPrecision ) { - HRESULT _hr = put_Precision(pbPrecision); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void Field20::PutNumericScale ( unsigned char pbNumericScale ) { - HRESULT _hr = put_NumericScale(pbNumericScale); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void Field20::PutType ( enum DataTypeEnum pDataType ) { - HRESULT _hr = put_Type(pDataType); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void Field20::PutDefinedSize ( long pl ) { - HRESULT _hr = put_DefinedSize(pl); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void Field20::PutAttributes ( long pl ) { - HRESULT _hr = put_Attributes(pl); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -// -// interface Field wrapper method implementations -// - -inline long Field::GetStatus ( ) { - long _result = 0; - HRESULT _hr = get_Status(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -// -// interface Fields15 wrapper method implementations -// - -inline FieldPtr Fields15::GetItem ( const _variant_t & Index ) { - struct Field * _result = 0; - HRESULT _hr = get_Item(Index, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return FieldPtr(_result, false); -} - -// -// interface Fields20 wrapper method implementations -// - -inline HRESULT Fields20::_Append ( _bstr_t Name, enum DataTypeEnum Type, long DefinedSize, enum FieldAttributeEnum Attrib ) { - HRESULT _hr = raw__Append(Name, Type, DefinedSize, Attrib); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Fields20::Delete ( const _variant_t & Index ) { - HRESULT _hr = raw_Delete(Index); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface Fields wrapper method implementations -// - -inline HRESULT Fields::Append ( _bstr_t Name, enum DataTypeEnum Type, long DefinedSize, enum FieldAttributeEnum Attrib, const _variant_t & FieldValue ) { - HRESULT _hr = raw_Append(Name, Type, DefinedSize, Attrib, FieldValue); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Fields::Update ( ) { - HRESULT _hr = raw_Update(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Fields::Resync ( enum ResyncEnum ResyncValues ) { - HRESULT _hr = raw_Resync(ResyncValues); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Fields::CancelUpdate ( ) { - HRESULT _hr = raw_CancelUpdate(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface _Parameter wrapper method implementations -// - -inline _bstr_t _Parameter::GetName ( ) { - BSTR _result = 0; - HRESULT _hr = get_Name(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline void _Parameter::PutName ( _bstr_t pbstr ) { - HRESULT _hr = put_Name(pbstr); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _variant_t _Parameter::GetValue ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_Value(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline void _Parameter::PutValue ( const _variant_t & pvar ) { - HRESULT _hr = put_Value(pvar); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum DataTypeEnum _Parameter::GetType ( ) { - enum DataTypeEnum _result; - HRESULT _hr = get_Type(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void _Parameter::PutType ( enum DataTypeEnum psDataType ) { - HRESULT _hr = put_Type(psDataType); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void _Parameter::PutDirection ( enum ParameterDirectionEnum plParmDirection ) { - HRESULT _hr = put_Direction(plParmDirection); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum ParameterDirectionEnum _Parameter::GetDirection ( ) { - enum ParameterDirectionEnum _result; - HRESULT _hr = get_Direction(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void _Parameter::PutPrecision ( unsigned char pbPrecision ) { - HRESULT _hr = put_Precision(pbPrecision); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline unsigned char _Parameter::GetPrecision ( ) { - unsigned char _result = 0; - HRESULT _hr = get_Precision(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void _Parameter::PutNumericScale ( unsigned char pbScale ) { - HRESULT _hr = put_NumericScale(pbScale); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline unsigned char _Parameter::GetNumericScale ( ) { - unsigned char _result = 0; - HRESULT _hr = get_NumericScale(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void _Parameter::PutSize ( long pl ) { - HRESULT _hr = put_Size(pl); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline long _Parameter::GetSize ( ) { - long _result = 0; - HRESULT _hr = get_Size(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT _Parameter::AppendChunk ( const _variant_t & Val ) { - HRESULT _hr = raw_AppendChunk(Val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline long _Parameter::GetAttributes ( ) { - long _result = 0; - HRESULT _hr = get_Attributes(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void _Parameter::PutAttributes ( long plParmAttribs ) { - HRESULT _hr = put_Attributes(plParmAttribs); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -// -// interface Parameters wrapper method implementations -// - -inline _ParameterPtr Parameters::GetItem ( const _variant_t & Index ) { - struct _Parameter * _result = 0; - HRESULT _hr = get_Item(Index, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _ParameterPtr(_result, false); -} - -// -// dispinterface ConnectionEvents wrapper method implementations -// - -inline HRESULT ConnectionEvents::InfoMessage ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x0, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0009\x4003\x0009", pError, adStatus, pConnection); - return _result; -} - -inline HRESULT ConnectionEvents::BeginTransComplete ( long TransactionLevel, struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x0009\x4003\x0009", TransactionLevel, pError, adStatus, pConnection); - return _result; -} - -inline HRESULT ConnectionEvents::CommitTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x3, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0009\x4003\x0009", pError, adStatus, pConnection); - return _result; -} - -inline HRESULT ConnectionEvents::RollbackTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0009\x4003\x0009", pError, adStatus, pConnection); - return _result; -} - -inline HRESULT ConnectionEvents::WillExecute ( BSTR * Source, enum CursorTypeEnum * CursorType, enum LockTypeEnum * LockType, long * Options, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x4, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x4008\x4003\x4003\x4003\x4003\x0009\x0009\x0009", Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection); - return _result; -} - -inline HRESULT ConnectionEvents::ExecuteComplete ( long RecordsAffected, struct Error * pError, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x5, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x0009\x4003\x0009\x0009\x0009", RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection); - return _result; -} - -inline HRESULT ConnectionEvents::WillConnect ( BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x6, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x4008\x4008\x4008\x4003\x4003\x0009", ConnectionString, UserID, Password, Options, adStatus, pConnection); - return _result; -} - -inline HRESULT ConnectionEvents::ConnectComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x7, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0009\x4003\x0009", pError, adStatus, pConnection); - return _result; -} - -inline HRESULT ConnectionEvents::Disconnect ( enum EventStatusEnum * adStatus, struct _Connection * pConnection ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x8, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x4003\x0009", adStatus, pConnection); - return _result; -} - -// -// dispinterface RecordsetEvents wrapper method implementations -// - -inline HRESULT RecordsetEvents::WillChangeField ( long cFields, const _variant_t & Fields, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x9, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x000c\x4003\x0009", cFields, &Fields, adStatus, pRecordset); - return _result; -} - -inline HRESULT RecordsetEvents::FieldChangeComplete ( long cFields, const _variant_t & Fields, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0xa, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x000c\x0009\x4003\x0009", cFields, &Fields, pError, adStatus, pRecordset); - return _result; -} - -inline HRESULT RecordsetEvents::WillChangeRecord ( enum EventReasonEnum adReason, long cRecords, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0xb, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x0003\x4003\x0009", adReason, cRecords, adStatus, pRecordset); - return _result; -} - -inline HRESULT RecordsetEvents::RecordChangeComplete ( enum EventReasonEnum adReason, long cRecords, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0xc, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x0003\x0009\x4003\x0009", adReason, cRecords, pError, adStatus, pRecordset); - return _result; -} - -inline HRESULT RecordsetEvents::WillChangeRecordset ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0xd, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x4003\x0009", adReason, adStatus, pRecordset); - return _result; -} - -inline HRESULT RecordsetEvents::RecordsetChangeComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0xe, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset); - return _result; -} - -inline HRESULT RecordsetEvents::WillMove ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0xf, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x4003\x0009", adReason, adStatus, pRecordset); - return _result; -} - -inline HRESULT RecordsetEvents::MoveComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x10, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset); - return _result; -} - -inline HRESULT RecordsetEvents::EndOfRecordset ( VARIANT_BOOL * fMoreData, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x11, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x400b\x4003\x0009", fMoreData, adStatus, pRecordset); - return _result; -} - -inline HRESULT RecordsetEvents::FetchProgress ( long Progress, long MaxProgress, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x12, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x0003\x4003\x0009", Progress, MaxProgress, adStatus, pRecordset); - return _result; -} - -inline HRESULT RecordsetEvents::FetchComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x13, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0009\x4003\x0009", pError, adStatus, pRecordset); - return _result; -} - -// -// interface ADOConnectionConstruction15 wrapper method implementations -// - -inline IUnknownPtr ADOConnectionConstruction15::GetDSO ( ) { - IUnknown * _result = 0; - HRESULT _hr = get_DSO(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return IUnknownPtr(_result, false); -} - -inline IUnknownPtr ADOConnectionConstruction15::GetSession ( ) { - IUnknown * _result = 0; - HRESULT _hr = get_Session(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return IUnknownPtr(_result, false); -} - -inline HRESULT ADOConnectionConstruction15::WrapDSOandSession ( IUnknown * pDSO, IUnknown * pSession ) { - HRESULT _hr = raw_WrapDSOandSession(pDSO, pSession); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface _Stream wrapper method implementations -// - -inline long _Stream::GetSize ( ) { - long _result = 0; - HRESULT _hr = get_Size(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline VARIANT_BOOL _Stream::GetEOS ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_EOS(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline long _Stream::GetPosition ( ) { - long _result = 0; - HRESULT _hr = get_Position(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void _Stream::PutPosition ( long pPos ) { - HRESULT _hr = put_Position(pPos); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum StreamTypeEnum _Stream::GetType ( ) { - enum StreamTypeEnum _result; - HRESULT _hr = get_Type(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void _Stream::PutType ( enum StreamTypeEnum ptype ) { - HRESULT _hr = put_Type(ptype); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum LineSeparatorEnum _Stream::GetLineSeparator ( ) { - enum LineSeparatorEnum _result; - HRESULT _hr = get_LineSeparator(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void _Stream::PutLineSeparator ( enum LineSeparatorEnum pLS ) { - HRESULT _hr = put_LineSeparator(pLS); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum ObjectStateEnum _Stream::GetState ( ) { - enum ObjectStateEnum _result; - HRESULT _hr = get_State(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline enum ConnectModeEnum _Stream::GetMode ( ) { - enum ConnectModeEnum _result; - HRESULT _hr = get_Mode(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void _Stream::PutMode ( enum ConnectModeEnum pMode ) { - HRESULT _hr = put_Mode(pMode); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _bstr_t _Stream::GetCharset ( ) { - BSTR _result = 0; - HRESULT _hr = get_Charset(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline void _Stream::PutCharset ( _bstr_t pbstrCharset ) { - HRESULT _hr = put_Charset(pbstrCharset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _variant_t _Stream::Read ( long NumBytes ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = raw_Read(NumBytes, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline HRESULT _Stream::Open ( const _variant_t & Source, enum ConnectModeEnum Mode, enum StreamOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) { - HRESULT _hr = raw_Open(Source, Mode, Options, UserName, Password); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Stream::Close ( ) { - HRESULT _hr = raw_Close(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Stream::SkipLine ( ) { - HRESULT _hr = raw_SkipLine(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Stream::Write ( const _variant_t & Buffer ) { - HRESULT _hr = raw_Write(Buffer); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Stream::SetEOS ( ) { - HRESULT _hr = raw_SetEOS(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Stream::CopyTo ( struct _Stream * DestStream, long CharNumber ) { - HRESULT _hr = raw_CopyTo(DestStream, CharNumber); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Stream::Flush ( ) { - HRESULT _hr = raw_Flush(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Stream::SaveToFile ( _bstr_t FileName, enum SaveOptionsEnum Options ) { - HRESULT _hr = raw_SaveToFile(FileName, Options); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Stream::LoadFromFile ( _bstr_t FileName ) { - HRESULT _hr = raw_LoadFromFile(FileName); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline _bstr_t _Stream::ReadText ( long NumChars ) { - BSTR _result = 0; - HRESULT _hr = raw_ReadText(NumChars, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline HRESULT _Stream::WriteText ( _bstr_t Data, enum StreamWriteEnum Options ) { - HRESULT _hr = raw_WriteText(Data, Options); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Stream::Cancel ( ) { - HRESULT _hr = raw_Cancel(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface ADORecordConstruction wrapper method implementations -// - -inline IUnknownPtr ADORecordConstruction::GetRow ( ) { - IUnknown * _result = 0; - HRESULT _hr = get_Row(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return IUnknownPtr(_result, false); -} - -inline void ADORecordConstruction::PutRow ( IUnknown * ppRow ) { - HRESULT _hr = put_Row(ppRow); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void ADORecordConstruction::PutParentRow ( IUnknown * _arg1 ) { - HRESULT _hr = put_ParentRow(_arg1); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -// -// interface ADOStreamConstruction wrapper method implementations -// - -inline IUnknownPtr ADOStreamConstruction::GetStream ( ) { - IUnknown * _result = 0; - HRESULT _hr = get_Stream(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return IUnknownPtr(_result, false); -} - -inline void ADOStreamConstruction::PutStream ( IUnknown * ppStm ) { - HRESULT _hr = put_Stream(ppStm); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -// -// interface ADOCommandConstruction wrapper method implementations -// - -inline IUnknownPtr ADOCommandConstruction::GetOLEDBCommand ( ) { - IUnknown * _result = 0; - HRESULT _hr = get_OLEDBCommand(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return IUnknownPtr(_result, false); -} - -inline void ADOCommandConstruction::PutOLEDBCommand ( IUnknown * ppOLEDBCommand ) { - HRESULT _hr = put_OLEDBCommand(ppOLEDBCommand); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -// -// interface ADORecordsetConstruction wrapper method implementations -// - -inline IUnknownPtr ADORecordsetConstruction::GetRowset ( ) { - IUnknown * _result = 0; - HRESULT _hr = get_Rowset(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return IUnknownPtr(_result, false); -} - -inline void ADORecordsetConstruction::PutRowset ( IUnknown * ppRowset ) { - HRESULT _hr = put_Rowset(ppRowset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline ADO_LONGPTR ADORecordsetConstruction::GetChapter ( ) { - ADO_LONGPTR _result; - HRESULT _hr = get_Chapter(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void ADORecordsetConstruction::PutChapter ( ADO_LONGPTR plChapter ) { - HRESULT _hr = put_Chapter(plChapter); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline IUnknownPtr ADORecordsetConstruction::GetRowPosition ( ) { - IUnknown * _result = 0; - HRESULT _hr = get_RowPosition(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return IUnknownPtr(_result, false); -} - -inline void ADORecordsetConstruction::PutRowPosition ( IUnknown * ppRowPos ) { - HRESULT _hr = put_RowPosition(ppRowPos); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -// -// interface Field15 wrapper method implementations -// - -inline long Field15::GetActualSize ( ) { - long _result = 0; - HRESULT _hr = get_ActualSize(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline long Field15::GetAttributes ( ) { - long _result = 0; - HRESULT _hr = get_Attributes(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline long Field15::GetDefinedSize ( ) { - long _result = 0; - HRESULT _hr = get_DefinedSize(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _bstr_t Field15::GetName ( ) { - BSTR _result = 0; - HRESULT _hr = get_Name(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline enum DataTypeEnum Field15::GetType ( ) { - enum DataTypeEnum _result; - HRESULT _hr = get_Type(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _variant_t Field15::GetValue ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_Value(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline void Field15::PutValue ( const _variant_t & pvar ) { - HRESULT _hr = put_Value(pvar); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline unsigned char Field15::GetPrecision ( ) { - unsigned char _result = 0; - HRESULT _hr = get_Precision(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline unsigned char Field15::GetNumericScale ( ) { - unsigned char _result = 0; - HRESULT _hr = get_NumericScale(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT Field15::AppendChunk ( const _variant_t & Data ) { - HRESULT _hr = raw_AppendChunk(Data); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline _variant_t Field15::GetChunk ( long Length ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = raw_GetChunk(Length, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline _variant_t Field15::GetOriginalValue ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_OriginalValue(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline _variant_t Field15::GetUnderlyingValue ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_UnderlyingValue(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -// -// interface Field20_Deprecated wrapper method implementations -// - -inline ADO_LONGPTR Field20_Deprecated::GetActualSize ( ) { - ADO_LONGPTR _result; - HRESULT _hr = get_ActualSize(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline long Field20_Deprecated::GetAttributes ( ) { - long _result = 0; - HRESULT _hr = get_Attributes(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ADO_LONGPTR Field20_Deprecated::GetDefinedSize ( ) { - ADO_LONGPTR _result; - HRESULT _hr = get_DefinedSize(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _bstr_t Field20_Deprecated::GetName ( ) { - BSTR _result = 0; - HRESULT _hr = get_Name(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline enum DataTypeEnum Field20_Deprecated::GetType ( ) { - enum DataTypeEnum _result; - HRESULT _hr = get_Type(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _variant_t Field20_Deprecated::GetValue ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_Value(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline void Field20_Deprecated::PutValue ( const _variant_t & pvar ) { - HRESULT _hr = put_Value(pvar); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline unsigned char Field20_Deprecated::GetPrecision ( ) { - unsigned char _result = 0; - HRESULT _hr = get_Precision(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline unsigned char Field20_Deprecated::GetNumericScale ( ) { - unsigned char _result = 0; - HRESULT _hr = get_NumericScale(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT Field20_Deprecated::AppendChunk ( const _variant_t & Data ) { - HRESULT _hr = raw_AppendChunk(Data); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline _variant_t Field20_Deprecated::GetChunk ( long Length ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = raw_GetChunk(Length, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline _variant_t Field20_Deprecated::GetOriginalValue ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_OriginalValue(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline _variant_t Field20_Deprecated::GetUnderlyingValue ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_UnderlyingValue(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline IUnknownPtr Field20_Deprecated::GetDataFormat ( ) { - IUnknown * _result = 0; - HRESULT _hr = get_DataFormat(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return IUnknownPtr(_result, false); -} - -inline void Field20_Deprecated::PutRefDataFormat ( IUnknown * ppiDF ) { - HRESULT _hr = putref_DataFormat(ppiDF); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void Field20_Deprecated::PutPrecision ( unsigned char pbPrecision ) { - HRESULT _hr = put_Precision(pbPrecision); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void Field20_Deprecated::PutNumericScale ( unsigned char pbNumericScale ) { - HRESULT _hr = put_NumericScale(pbNumericScale); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void Field20_Deprecated::PutType ( enum DataTypeEnum pDataType ) { - HRESULT _hr = put_Type(pDataType); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void Field20_Deprecated::PutDefinedSize ( ADO_LONGPTR pl ) { - HRESULT _hr = put_DefinedSize(pl); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void Field20_Deprecated::PutAttributes ( long pl ) { - HRESULT _hr = put_Attributes(pl); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -// -// interface Field_Deprecated wrapper method implementations -// - -inline long Field_Deprecated::GetStatus ( ) { - long _result = 0; - HRESULT _hr = get_Status(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -// -// interface Fields15_Deprecated wrapper method implementations -// - -inline Field_DeprecatedPtr Fields15_Deprecated::GetItem ( const _variant_t & Index ) { - struct Field_Deprecated * _result = 0; - HRESULT _hr = get_Item(Index, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return Field_DeprecatedPtr(_result, false); -} - -// -// interface Fields20_Deprecated wrapper method implementations -// - -inline HRESULT Fields20_Deprecated::_Append ( _bstr_t Name, enum DataTypeEnum Type, ADO_LONGPTR DefinedSize, enum FieldAttributeEnum Attrib ) { - HRESULT _hr = raw__Append(Name, Type, DefinedSize, Attrib); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Fields20_Deprecated::Delete ( const _variant_t & Index ) { - HRESULT _hr = raw_Delete(Index); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface Fields_Deprecated wrapper method implementations -// - -inline HRESULT Fields_Deprecated::Append ( _bstr_t Name, enum DataTypeEnum Type, ADO_LONGPTR DefinedSize, enum FieldAttributeEnum Attrib, const _variant_t & FieldValue ) { - HRESULT _hr = raw_Append(Name, Type, DefinedSize, Attrib, FieldValue); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Fields_Deprecated::Update ( ) { - HRESULT _hr = raw_Update(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Fields_Deprecated::Resync ( enum ResyncEnum ResyncValues ) { - HRESULT _hr = raw_Resync(ResyncValues); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Fields_Deprecated::CancelUpdate ( ) { - HRESULT _hr = raw_CancelUpdate(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface _Parameter_Deprecated wrapper method implementations -// - -inline _bstr_t _Parameter_Deprecated::GetName ( ) { - BSTR _result = 0; - HRESULT _hr = get_Name(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline void _Parameter_Deprecated::PutName ( _bstr_t pbstr ) { - HRESULT _hr = put_Name(pbstr); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _variant_t _Parameter_Deprecated::GetValue ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_Value(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline void _Parameter_Deprecated::PutValue ( const _variant_t & pvar ) { - HRESULT _hr = put_Value(pvar); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum DataTypeEnum _Parameter_Deprecated::GetType ( ) { - enum DataTypeEnum _result; - HRESULT _hr = get_Type(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void _Parameter_Deprecated::PutType ( enum DataTypeEnum psDataType ) { - HRESULT _hr = put_Type(psDataType); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void _Parameter_Deprecated::PutDirection ( enum ParameterDirectionEnum plParmDirection ) { - HRESULT _hr = put_Direction(plParmDirection); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum ParameterDirectionEnum _Parameter_Deprecated::GetDirection ( ) { - enum ParameterDirectionEnum _result; - HRESULT _hr = get_Direction(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void _Parameter_Deprecated::PutPrecision ( unsigned char pbPrecision ) { - HRESULT _hr = put_Precision(pbPrecision); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline unsigned char _Parameter_Deprecated::GetPrecision ( ) { - unsigned char _result = 0; - HRESULT _hr = get_Precision(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void _Parameter_Deprecated::PutNumericScale ( unsigned char pbScale ) { - HRESULT _hr = put_NumericScale(pbScale); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline unsigned char _Parameter_Deprecated::GetNumericScale ( ) { - unsigned char _result = 0; - HRESULT _hr = get_NumericScale(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void _Parameter_Deprecated::PutSize ( ADO_LONGPTR pl ) { - HRESULT _hr = put_Size(pl); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline ADO_LONGPTR _Parameter_Deprecated::GetSize ( ) { - ADO_LONGPTR _result; - HRESULT _hr = get_Size(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT _Parameter_Deprecated::AppendChunk ( const _variant_t & Val ) { - HRESULT _hr = raw_AppendChunk(Val); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline long _Parameter_Deprecated::GetAttributes ( ) { - long _result = 0; - HRESULT _hr = get_Attributes(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void _Parameter_Deprecated::PutAttributes ( long plParmAttribs ) { - HRESULT _hr = put_Attributes(plParmAttribs); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -// -// interface Parameters_Deprecated wrapper method implementations -// - -inline _Parameter_DeprecatedPtr Parameters_Deprecated::GetItem ( const _variant_t & Index ) { - struct _Parameter_Deprecated * _result = 0; - HRESULT _hr = get_Item(Index, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _Parameter_DeprecatedPtr(_result, false); -} - -// -// dispinterface ConnectionEvents_Deprecated wrapper method implementations -// - -inline HRESULT ConnectionEvents_Deprecated::InfoMessage ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x0, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0009\x4003\x0009", pError, adStatus, pConnection); - return _result; -} - -inline HRESULT ConnectionEvents_Deprecated::BeginTransComplete ( long TransactionLevel, struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x0009\x4003\x0009", TransactionLevel, pError, adStatus, pConnection); - return _result; -} - -inline HRESULT ConnectionEvents_Deprecated::CommitTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x3, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0009\x4003\x0009", pError, adStatus, pConnection); - return _result; -} - -inline HRESULT ConnectionEvents_Deprecated::RollbackTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0009\x4003\x0009", pError, adStatus, pConnection); - return _result; -} - -inline HRESULT ConnectionEvents_Deprecated::WillExecute ( BSTR * Source, enum CursorTypeEnum * CursorType, enum LockTypeEnum * LockType, long * Options, enum EventStatusEnum * adStatus, struct _Command_Deprecated * pCommand, struct _Recordset_Deprecated * pRecordset, struct _Connection_Deprecated * pConnection ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x4, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x4008\x4003\x4003\x4003\x4003\x0009\x0009\x0009", Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection); - return _result; -} - -inline HRESULT ConnectionEvents_Deprecated::ExecuteComplete ( long RecordsAffected, struct Error * pError, enum EventStatusEnum * adStatus, struct _Command_Deprecated * pCommand, struct _Recordset_Deprecated * pRecordset, struct _Connection_Deprecated * pConnection ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x5, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x0009\x4003\x0009\x0009\x0009", RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection); - return _result; -} - -inline HRESULT ConnectionEvents_Deprecated::WillConnect ( BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x6, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x4008\x4008\x4008\x4003\x4003\x0009", ConnectionString, UserID, Password, Options, adStatus, pConnection); - return _result; -} - -inline HRESULT ConnectionEvents_Deprecated::ConnectComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x7, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0009\x4003\x0009", pError, adStatus, pConnection); - return _result; -} - -inline HRESULT ConnectionEvents_Deprecated::Disconnect ( enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x8, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x4003\x0009", adStatus, pConnection); - return _result; -} - -// -// dispinterface RecordsetEvents_Deprecated wrapper method implementations -// - -inline HRESULT RecordsetEvents_Deprecated::WillChangeField ( long cFields, const _variant_t & Fields, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x9, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x000c\x4003\x0009", cFields, &Fields, adStatus, pRecordset); - return _result; -} - -inline HRESULT RecordsetEvents_Deprecated::FieldChangeComplete ( long cFields, const _variant_t & Fields, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0xa, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x000c\x0009\x4003\x0009", cFields, &Fields, pError, adStatus, pRecordset); - return _result; -} - -inline HRESULT RecordsetEvents_Deprecated::WillChangeRecord ( enum EventReasonEnum adReason, long cRecords, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0xb, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x0003\x4003\x0009", adReason, cRecords, adStatus, pRecordset); - return _result; -} - -inline HRESULT RecordsetEvents_Deprecated::RecordChangeComplete ( enum EventReasonEnum adReason, long cRecords, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0xc, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x0003\x0009\x4003\x0009", adReason, cRecords, pError, adStatus, pRecordset); - return _result; -} - -inline HRESULT RecordsetEvents_Deprecated::WillChangeRecordset ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0xd, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x4003\x0009", adReason, adStatus, pRecordset); - return _result; -} - -inline HRESULT RecordsetEvents_Deprecated::RecordsetChangeComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0xe, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset); - return _result; -} - -inline HRESULT RecordsetEvents_Deprecated::WillMove ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0xf, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x4003\x0009", adReason, adStatus, pRecordset); - return _result; -} - -inline HRESULT RecordsetEvents_Deprecated::MoveComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x10, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset); - return _result; -} - -inline HRESULT RecordsetEvents_Deprecated::EndOfRecordset ( VARIANT_BOOL * fMoreData, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x11, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x400b\x4003\x0009", fMoreData, adStatus, pRecordset); - return _result; -} - -inline HRESULT RecordsetEvents_Deprecated::FetchProgress ( long Progress, long MaxProgress, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x12, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0003\x0003\x4003\x0009", Progress, MaxProgress, adStatus, pRecordset); - return _result; -} - -inline HRESULT RecordsetEvents_Deprecated::FetchComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _result = 0; - _com_dispatch_method(this, 0x13, DISPATCH_METHOD, VT_ERROR, (void*)&_result, - L"\x0009\x4003\x0009", pError, adStatus, pRecordset); - return _result; -} - -// -// interface _Stream_Deprecated wrapper method implementations -// - -inline ADO_LONGPTR _Stream_Deprecated::GetSize ( ) { - ADO_LONGPTR _result; - HRESULT _hr = get_Size(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline VARIANT_BOOL _Stream_Deprecated::GetEOS ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_EOS(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ADO_LONGPTR _Stream_Deprecated::GetPosition ( ) { - ADO_LONGPTR _result; - HRESULT _hr = get_Position(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void _Stream_Deprecated::PutPosition ( ADO_LONGPTR pPos ) { - HRESULT _hr = put_Position(pPos); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum StreamTypeEnum _Stream_Deprecated::GetType ( ) { - enum StreamTypeEnum _result; - HRESULT _hr = get_Type(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void _Stream_Deprecated::PutType ( enum StreamTypeEnum ptype ) { - HRESULT _hr = put_Type(ptype); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum LineSeparatorEnum _Stream_Deprecated::GetLineSeparator ( ) { - enum LineSeparatorEnum _result; - HRESULT _hr = get_LineSeparator(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void _Stream_Deprecated::PutLineSeparator ( enum LineSeparatorEnum pLS ) { - HRESULT _hr = put_LineSeparator(pLS); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum ObjectStateEnum _Stream_Deprecated::GetState ( ) { - enum ObjectStateEnum _result; - HRESULT _hr = get_State(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline enum ConnectModeEnum _Stream_Deprecated::GetMode ( ) { - enum ConnectModeEnum _result; - HRESULT _hr = get_Mode(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void _Stream_Deprecated::PutMode ( enum ConnectModeEnum pMode ) { - HRESULT _hr = put_Mode(pMode); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _bstr_t _Stream_Deprecated::GetCharset ( ) { - BSTR _result = 0; - HRESULT _hr = get_Charset(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline void _Stream_Deprecated::PutCharset ( _bstr_t pbstrCharset ) { - HRESULT _hr = put_Charset(pbstrCharset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _variant_t _Stream_Deprecated::Read ( long NumBytes ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = raw_Read(NumBytes, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline HRESULT _Stream_Deprecated::Open ( const _variant_t & Source, enum ConnectModeEnum Mode, enum StreamOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) { - HRESULT _hr = raw_Open(Source, Mode, Options, UserName, Password); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Stream_Deprecated::Close ( ) { - HRESULT _hr = raw_Close(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Stream_Deprecated::SkipLine ( ) { - HRESULT _hr = raw_SkipLine(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Stream_Deprecated::Write ( const _variant_t & Buffer ) { - HRESULT _hr = raw_Write(Buffer); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Stream_Deprecated::SetEOS ( ) { - HRESULT _hr = raw_SetEOS(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Stream_Deprecated::CopyTo ( struct _Stream_Deprecated * DestStream, ADO_LONGPTR CharNumber ) { - HRESULT _hr = raw_CopyTo(DestStream, CharNumber); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Stream_Deprecated::Flush ( ) { - HRESULT _hr = raw_Flush(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Stream_Deprecated::SaveToFile ( _bstr_t FileName, enum SaveOptionsEnum Options ) { - HRESULT _hr = raw_SaveToFile(FileName, Options); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Stream_Deprecated::LoadFromFile ( _bstr_t FileName ) { - HRESULT _hr = raw_LoadFromFile(FileName); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline _bstr_t _Stream_Deprecated::ReadText ( long NumChars ) { - BSTR _result = 0; - HRESULT _hr = raw_ReadText(NumChars, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline HRESULT _Stream_Deprecated::WriteText ( _bstr_t Data, enum StreamWriteEnum Options ) { - HRESULT _hr = raw_WriteText(Data, Options); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Stream_Deprecated::Cancel ( ) { - HRESULT _hr = raw_Cancel(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface Field15_Deprecated wrapper method implementations -// - -inline ADO_LONGPTR Field15_Deprecated::GetActualSize ( ) { - ADO_LONGPTR _result; - HRESULT _hr = get_ActualSize(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline long Field15_Deprecated::GetAttributes ( ) { - long _result = 0; - HRESULT _hr = get_Attributes(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline ADO_LONGPTR Field15_Deprecated::GetDefinedSize ( ) { - ADO_LONGPTR _result; - HRESULT _hr = get_DefinedSize(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _bstr_t Field15_Deprecated::GetName ( ) { - BSTR _result = 0; - HRESULT _hr = get_Name(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline enum DataTypeEnum Field15_Deprecated::GetType ( ) { - enum DataTypeEnum _result; - HRESULT _hr = get_Type(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _variant_t Field15_Deprecated::GetValue ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_Value(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline void Field15_Deprecated::PutValue ( const _variant_t & pvar ) { - HRESULT _hr = put_Value(pvar); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline unsigned char Field15_Deprecated::GetPrecision ( ) { - unsigned char _result = 0; - HRESULT _hr = get_Precision(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline unsigned char Field15_Deprecated::GetNumericScale ( ) { - unsigned char _result = 0; - HRESULT _hr = get_NumericScale(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT Field15_Deprecated::AppendChunk ( const _variant_t & Data ) { - HRESULT _hr = raw_AppendChunk(Data); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline _variant_t Field15_Deprecated::GetChunk ( long Length ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = raw_GetChunk(Length, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline _variant_t Field15_Deprecated::GetOriginalValue ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_OriginalValue(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline _variant_t Field15_Deprecated::GetUnderlyingValue ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_UnderlyingValue(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -// -// interface Command15 wrapper method implementations -// - -inline _ConnectionPtr Command15::GetActiveConnection ( ) { - struct _Connection * _result = 0; - HRESULT _hr = get_ActiveConnection(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _ConnectionPtr(_result, false); -} - -inline void Command15::PutRefActiveConnection ( struct _Connection * ppvObject ) { - HRESULT _hr = putref_ActiveConnection(ppvObject); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void Command15::PutActiveConnection ( const _variant_t & ppvObject ) { - HRESULT _hr = put_ActiveConnection(ppvObject); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _bstr_t Command15::GetCommandText ( ) { - BSTR _result = 0; - HRESULT _hr = get_CommandText(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline void Command15::PutCommandText ( _bstr_t pbstr ) { - HRESULT _hr = put_CommandText(pbstr); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline long Command15::GetCommandTimeout ( ) { - long _result = 0; - HRESULT _hr = get_CommandTimeout(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Command15::PutCommandTimeout ( long pl ) { - HRESULT _hr = put_CommandTimeout(pl); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL Command15::GetPrepared ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_Prepared(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Command15::PutPrepared ( VARIANT_BOOL pfPrepared ) { - HRESULT _hr = put_Prepared(pfPrepared); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _RecordsetPtr Command15::Execute ( VARIANT * RecordsAffected, VARIANT * Parameters, long Options ) { - struct _Recordset * _result = 0; - HRESULT _hr = raw_Execute(RecordsAffected, Parameters, Options, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _RecordsetPtr(_result, false); -} - -inline _ParameterPtr Command15::CreateParameter ( _bstr_t Name, enum DataTypeEnum Type, enum ParameterDirectionEnum Direction, long Size, const _variant_t & Value ) { - struct _Parameter * _result = 0; - HRESULT _hr = raw_CreateParameter(Name, Type, Direction, Size, Value, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _ParameterPtr(_result, false); -} - -inline ParametersPtr Command15::GetParameters ( ) { - struct Parameters * _result = 0; - HRESULT _hr = get_Parameters(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ParametersPtr(_result, false); -} - -inline void Command15::PutCommandType ( enum CommandTypeEnum plCmdType ) { - HRESULT _hr = put_CommandType(plCmdType); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum CommandTypeEnum Command15::GetCommandType ( ) { - enum CommandTypeEnum _result; - HRESULT _hr = get_CommandType(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _bstr_t Command15::GetName ( ) { - BSTR _result = 0; - HRESULT _hr = get_Name(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline void Command15::PutName ( _bstr_t pbstrName ) { - HRESULT _hr = put_Name(pbstrName); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -// -// interface Command25 wrapper method implementations -// - -inline long Command25::GetState ( ) { - long _result = 0; - HRESULT _hr = get_State(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT Command25::Cancel ( ) { - HRESULT _hr = raw_Cancel(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface _Command wrapper method implementations -// - -inline void _Command::PutRefCommandStream ( IUnknown * pvStream ) { - HRESULT _hr = putref_CommandStream(pvStream); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _variant_t _Command::GetCommandStream ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_CommandStream(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline void _Command::PutDialect ( _bstr_t pbstrDialect ) { - HRESULT _hr = put_Dialect(pbstrDialect); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _bstr_t _Command::GetDialect ( ) { - BSTR _result = 0; - HRESULT _hr = get_Dialect(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline void _Command::PutNamedParameters ( VARIANT_BOOL pfNamedParameters ) { - HRESULT _hr = put_NamedParameters(pfNamedParameters); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL _Command::GetNamedParameters ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_NamedParameters(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -// -// interface Connection15 wrapper method implementations -// - -inline _bstr_t Connection15::GetConnectionString ( ) { - BSTR _result = 0; - HRESULT _hr = get_ConnectionString(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline void Connection15::PutConnectionString ( _bstr_t pbstr ) { - HRESULT _hr = put_ConnectionString(pbstr); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline long Connection15::GetCommandTimeout ( ) { - long _result = 0; - HRESULT _hr = get_CommandTimeout(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Connection15::PutCommandTimeout ( long plTimeout ) { - HRESULT _hr = put_CommandTimeout(plTimeout); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline long Connection15::GetConnectionTimeout ( ) { - long _result = 0; - HRESULT _hr = get_ConnectionTimeout(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Connection15::PutConnectionTimeout ( long plTimeout ) { - HRESULT _hr = put_ConnectionTimeout(plTimeout); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _bstr_t Connection15::GetVersion ( ) { - BSTR _result = 0; - HRESULT _hr = get_Version(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline HRESULT Connection15::Close ( ) { - HRESULT _hr = raw_Close(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline _RecordsetPtr Connection15::Execute ( _bstr_t CommandText, VARIANT * RecordsAffected, long Options ) { - struct _Recordset * _result = 0; - HRESULT _hr = raw_Execute(CommandText, RecordsAffected, Options, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _RecordsetPtr(_result, false); -} - -inline long Connection15::BeginTrans ( ) { - long _result = 0; - HRESULT _hr = raw_BeginTrans(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT Connection15::CommitTrans ( ) { - HRESULT _hr = raw_CommitTrans(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Connection15::RollbackTrans ( ) { - HRESULT _hr = raw_RollbackTrans(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Connection15::Open ( _bstr_t ConnectionString, _bstr_t UserID, _bstr_t Password, long Options ) { - HRESULT _hr = raw_Open(ConnectionString, UserID, Password, Options); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline ErrorsPtr Connection15::GetErrors ( ) { - struct Errors * _result = 0; - HRESULT _hr = get_Errors(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ErrorsPtr(_result, false); -} - -inline _bstr_t Connection15::GetDefaultDatabase ( ) { - BSTR _result = 0; - HRESULT _hr = get_DefaultDatabase(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline void Connection15::PutDefaultDatabase ( _bstr_t pbstr ) { - HRESULT _hr = put_DefaultDatabase(pbstr); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum IsolationLevelEnum Connection15::GetIsolationLevel ( ) { - enum IsolationLevelEnum _result; - HRESULT _hr = get_IsolationLevel(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Connection15::PutIsolationLevel ( enum IsolationLevelEnum Level ) { - HRESULT _hr = put_IsolationLevel(Level); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline long Connection15::GetAttributes ( ) { - long _result = 0; - HRESULT _hr = get_Attributes(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Connection15::PutAttributes ( long plAttr ) { - HRESULT _hr = put_Attributes(plAttr); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum CursorLocationEnum Connection15::GetCursorLocation ( ) { - enum CursorLocationEnum _result; - HRESULT _hr = get_CursorLocation(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Connection15::PutCursorLocation ( enum CursorLocationEnum plCursorLoc ) { - HRESULT _hr = put_CursorLocation(plCursorLoc); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum ConnectModeEnum Connection15::GetMode ( ) { - enum ConnectModeEnum _result; - HRESULT _hr = get_Mode(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Connection15::PutMode ( enum ConnectModeEnum plMode ) { - HRESULT _hr = put_Mode(plMode); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _bstr_t Connection15::GetProvider ( ) { - BSTR _result = 0; - HRESULT _hr = get_Provider(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline void Connection15::PutProvider ( _bstr_t pbstr ) { - HRESULT _hr = put_Provider(pbstr); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline long Connection15::GetState ( ) { - long _result = 0; - HRESULT _hr = get_State(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _RecordsetPtr Connection15::OpenSchema ( enum SchemaEnum Schema, const _variant_t & Restrictions, const _variant_t & SchemaID ) { - struct _Recordset * _result = 0; - HRESULT _hr = raw_OpenSchema(Schema, Restrictions, SchemaID, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _RecordsetPtr(_result, false); -} - -// -// interface _Connection wrapper method implementations -// - -inline HRESULT _Connection::Cancel ( ) { - HRESULT _hr = raw_Cancel(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface Recordset15 wrapper method implementations -// - -inline enum PositionEnum Recordset15::GetAbsolutePosition ( ) { - enum PositionEnum _result; - HRESULT _hr = get_AbsolutePosition(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Recordset15::PutAbsolutePosition ( enum PositionEnum pl ) { - HRESULT _hr = put_AbsolutePosition(pl); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void Recordset15::PutRefActiveConnection ( IDispatch * pvar ) { - HRESULT _hr = putref_ActiveConnection(pvar); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void Recordset15::PutActiveConnection ( const _variant_t & pvar ) { - HRESULT _hr = put_ActiveConnection(pvar); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _variant_t Recordset15::GetActiveConnection ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_ActiveConnection(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline VARIANT_BOOL Recordset15::GetBOF ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_BOF(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _variant_t Recordset15::GetBookmark ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_Bookmark(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline void Recordset15::PutBookmark ( const _variant_t & pvBookmark ) { - HRESULT _hr = put_Bookmark(pvBookmark); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline long Recordset15::GetCacheSize ( ) { - long _result = 0; - HRESULT _hr = get_CacheSize(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Recordset15::PutCacheSize ( long pl ) { - HRESULT _hr = put_CacheSize(pl); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum CursorTypeEnum Recordset15::GetCursorType ( ) { - enum CursorTypeEnum _result; - HRESULT _hr = get_CursorType(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Recordset15::PutCursorType ( enum CursorTypeEnum plCursorType ) { - HRESULT _hr = put_CursorType(plCursorType); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL Recordset15::GetadoEOF ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_adoEOF(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline FieldsPtr Recordset15::GetFields ( ) { - struct Fields * _result = 0; - HRESULT _hr = get_Fields(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return FieldsPtr(_result, false); -} - -inline enum LockTypeEnum Recordset15::GetLockType ( ) { - enum LockTypeEnum _result; - HRESULT _hr = get_LockType(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Recordset15::PutLockType ( enum LockTypeEnum plLockType ) { - HRESULT _hr = put_LockType(plLockType); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline long Recordset15::GetMaxRecords ( ) { - long _result = 0; - HRESULT _hr = get_MaxRecords(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Recordset15::PutMaxRecords ( long plMaxRecords ) { - HRESULT _hr = put_MaxRecords(plMaxRecords); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline long Recordset15::GetRecordCount ( ) { - long _result = 0; - HRESULT _hr = get_RecordCount(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Recordset15::PutRefSource ( IDispatch * pvSource ) { - HRESULT _hr = putref_Source(pvSource); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void Recordset15::PutSource ( _bstr_t pvSource ) { - HRESULT _hr = put_Source(pvSource); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _variant_t Recordset15::GetSource ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_Source(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline HRESULT Recordset15::AddNew ( const _variant_t & FieldList, const _variant_t & Values ) { - HRESULT _hr = raw_AddNew(FieldList, Values); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15::CancelUpdate ( ) { - HRESULT _hr = raw_CancelUpdate(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15::Close ( ) { - HRESULT _hr = raw_Close(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15::Delete ( enum AffectEnum AffectRecords ) { - HRESULT _hr = raw_Delete(AffectRecords); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline _variant_t Recordset15::GetRows ( long Rows, const _variant_t & Start, const _variant_t & Fields ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = raw_GetRows(Rows, Start, Fields, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline HRESULT Recordset15::Move ( long NumRecords, const _variant_t & Start ) { - HRESULT _hr = raw_Move(NumRecords, Start); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15::MoveNext ( ) { - HRESULT _hr = raw_MoveNext(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15::MovePrevious ( ) { - HRESULT _hr = raw_MovePrevious(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15::MoveFirst ( ) { - HRESULT _hr = raw_MoveFirst(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15::MoveLast ( ) { - HRESULT _hr = raw_MoveLast(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15::Open ( const _variant_t & Source, const _variant_t & ActiveConnection, enum CursorTypeEnum CursorType, enum LockTypeEnum LockType, long Options ) { - HRESULT _hr = raw_Open(Source, ActiveConnection, CursorType, LockType, Options); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15::Requery ( long Options ) { - HRESULT _hr = raw_Requery(Options); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15::_xResync ( enum AffectEnum AffectRecords ) { - HRESULT _hr = raw__xResync(AffectRecords); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15::Update ( const _variant_t & Fields, const _variant_t & Values ) { - HRESULT _hr = raw_Update(Fields, Values); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline enum PositionEnum Recordset15::GetAbsolutePage ( ) { - enum PositionEnum _result; - HRESULT _hr = get_AbsolutePage(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Recordset15::PutAbsolutePage ( enum PositionEnum pl ) { - HRESULT _hr = put_AbsolutePage(pl); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum EditModeEnum Recordset15::GetEditMode ( ) { - enum EditModeEnum _result; - HRESULT _hr = get_EditMode(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _variant_t Recordset15::GetFilter ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_Filter(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline void Recordset15::PutFilter ( const _variant_t & Criteria ) { - HRESULT _hr = put_Filter(Criteria); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline long Recordset15::GetPageCount ( ) { - long _result = 0; - HRESULT _hr = get_PageCount(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline long Recordset15::GetPageSize ( ) { - long _result = 0; - HRESULT _hr = get_PageSize(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Recordset15::PutPageSize ( long pl ) { - HRESULT _hr = put_PageSize(pl); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _bstr_t Recordset15::GetSort ( ) { - BSTR _result = 0; - HRESULT _hr = get_Sort(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline void Recordset15::PutSort ( _bstr_t Criteria ) { - HRESULT _hr = put_Sort(Criteria); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline long Recordset15::GetStatus ( ) { - long _result = 0; - HRESULT _hr = get_Status(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline long Recordset15::GetState ( ) { - long _result = 0; - HRESULT _hr = get_State(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _RecordsetPtr Recordset15::_xClone ( ) { - struct _Recordset * _result = 0; - HRESULT _hr = raw__xClone(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _RecordsetPtr(_result, false); -} - -inline HRESULT Recordset15::UpdateBatch ( enum AffectEnum AffectRecords ) { - HRESULT _hr = raw_UpdateBatch(AffectRecords); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15::CancelBatch ( enum AffectEnum AffectRecords ) { - HRESULT _hr = raw_CancelBatch(AffectRecords); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline enum CursorLocationEnum Recordset15::GetCursorLocation ( ) { - enum CursorLocationEnum _result; - HRESULT _hr = get_CursorLocation(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Recordset15::PutCursorLocation ( enum CursorLocationEnum plCursorLoc ) { - HRESULT _hr = put_CursorLocation(plCursorLoc); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _RecordsetPtr Recordset15::NextRecordset ( VARIANT * RecordsAffected ) { - struct _Recordset * _result = 0; - HRESULT _hr = raw_NextRecordset(RecordsAffected, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _RecordsetPtr(_result, false); -} - -inline VARIANT_BOOL Recordset15::Supports ( enum CursorOptionEnum CursorOptions ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = raw_Supports(CursorOptions, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _variant_t Recordset15::GetCollect ( const _variant_t & Index ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_Collect(Index, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline void Recordset15::PutCollect ( const _variant_t & Index, const _variant_t & pvar ) { - HRESULT _hr = put_Collect(Index, pvar); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum MarshalOptionsEnum Recordset15::GetMarshalOptions ( ) { - enum MarshalOptionsEnum _result; - HRESULT _hr = get_MarshalOptions(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Recordset15::PutMarshalOptions ( enum MarshalOptionsEnum peMarshal ) { - HRESULT _hr = put_MarshalOptions(peMarshal); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline HRESULT Recordset15::Find ( _bstr_t Criteria, long SkipRecords, enum SearchDirectionEnum SearchDirection, const _variant_t & Start ) { - HRESULT _hr = raw_Find(Criteria, SkipRecords, SearchDirection, Start); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface Recordset20 wrapper method implementations -// - -inline HRESULT Recordset20::Cancel ( ) { - HRESULT _hr = raw_Cancel(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline IUnknownPtr Recordset20::GetDataSource ( ) { - IUnknown * _result = 0; - HRESULT _hr = get_DataSource(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return IUnknownPtr(_result, false); -} - -inline void Recordset20::PutRefDataSource ( IUnknown * ppunkDataSource ) { - HRESULT _hr = putref_DataSource(ppunkDataSource); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline HRESULT Recordset20::_xSave ( _bstr_t FileName, enum PersistFormatEnum PersistFormat ) { - HRESULT _hr = raw__xSave(FileName, PersistFormat); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline IDispatchPtr Recordset20::GetActiveCommand ( ) { - IDispatch * _result = 0; - HRESULT _hr = get_ActiveCommand(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return IDispatchPtr(_result, false); -} - -inline void Recordset20::PutStayInSync ( VARIANT_BOOL pbStayInSync ) { - HRESULT _hr = put_StayInSync(pbStayInSync); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL Recordset20::GetStayInSync ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_StayInSync(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _bstr_t Recordset20::GetString ( enum StringFormatEnum StringFormat, long NumRows, _bstr_t ColumnDelimeter, _bstr_t RowDelimeter, _bstr_t NullExpr ) { - BSTR _result = 0; - HRESULT _hr = raw_GetString(StringFormat, NumRows, ColumnDelimeter, RowDelimeter, NullExpr, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline _bstr_t Recordset20::GetDataMember ( ) { - BSTR _result = 0; - HRESULT _hr = get_DataMember(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline void Recordset20::PutDataMember ( _bstr_t pbstrDataMember ) { - HRESULT _hr = put_DataMember(pbstrDataMember); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum CompareEnum Recordset20::CompareBookmarks ( const _variant_t & Bookmark1, const _variant_t & Bookmark2 ) { - enum CompareEnum _result; - HRESULT _hr = raw_CompareBookmarks(Bookmark1, Bookmark2, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _RecordsetPtr Recordset20::Clone ( enum LockTypeEnum LockType ) { - struct _Recordset * _result = 0; - HRESULT _hr = raw_Clone(LockType, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _RecordsetPtr(_result, false); -} - -inline HRESULT Recordset20::Resync ( enum AffectEnum AffectRecords, enum ResyncEnum ResyncValues ) { - HRESULT _hr = raw_Resync(AffectRecords, ResyncValues); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface Recordset21 wrapper method implementations -// - -inline HRESULT Recordset21::Seek ( const _variant_t & KeyValues, enum SeekEnum SeekOption ) { - HRESULT _hr = raw_Seek(KeyValues, SeekOption); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline void Recordset21::PutIndex ( _bstr_t pbstrIndex ) { - HRESULT _hr = put_Index(pbstrIndex); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _bstr_t Recordset21::GetIndex ( ) { - BSTR _result = 0; - HRESULT _hr = get_Index(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -// -// interface _Recordset wrapper method implementations -// - -inline HRESULT _Recordset::Save ( const _variant_t & Destination, enum PersistFormatEnum PersistFormat ) { - HRESULT _hr = raw_Save(Destination, PersistFormat); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface ConnectionEventsVt wrapper method implementations -// - -inline HRESULT ConnectionEventsVt::InfoMessage ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) { - HRESULT _hr = raw_InfoMessage(pError, adStatus, pConnection); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ConnectionEventsVt::BeginTransComplete ( long TransactionLevel, struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) { - HRESULT _hr = raw_BeginTransComplete(TransactionLevel, pError, adStatus, pConnection); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ConnectionEventsVt::CommitTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) { - HRESULT _hr = raw_CommitTransComplete(pError, adStatus, pConnection); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ConnectionEventsVt::RollbackTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) { - HRESULT _hr = raw_RollbackTransComplete(pError, adStatus, pConnection); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ConnectionEventsVt::WillExecute ( BSTR * Source, enum CursorTypeEnum * CursorType, enum LockTypeEnum * LockType, long * Options, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) { - HRESULT _hr = raw_WillExecute(Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ConnectionEventsVt::ExecuteComplete ( long RecordsAffected, struct Error * pError, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) { - HRESULT _hr = raw_ExecuteComplete(RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ConnectionEventsVt::WillConnect ( BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) { - HRESULT _hr = raw_WillConnect(ConnectionString, UserID, Password, Options, adStatus, pConnection); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ConnectionEventsVt::ConnectComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) { - HRESULT _hr = raw_ConnectComplete(pError, adStatus, pConnection); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ConnectionEventsVt::Disconnect ( enum EventStatusEnum * adStatus, struct _Connection * pConnection ) { - HRESULT _hr = raw_Disconnect(adStatus, pConnection); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface RecordsetEventsVt wrapper method implementations -// - -inline HRESULT RecordsetEventsVt::WillChangeField ( long cFields, const _variant_t & Fields, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _hr = raw_WillChangeField(cFields, Fields, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT RecordsetEventsVt::FieldChangeComplete ( long cFields, const _variant_t & Fields, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _hr = raw_FieldChangeComplete(cFields, Fields, pError, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT RecordsetEventsVt::WillChangeRecord ( enum EventReasonEnum adReason, long cRecords, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _hr = raw_WillChangeRecord(adReason, cRecords, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT RecordsetEventsVt::RecordChangeComplete ( enum EventReasonEnum adReason, long cRecords, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _hr = raw_RecordChangeComplete(adReason, cRecords, pError, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT RecordsetEventsVt::WillChangeRecordset ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _hr = raw_WillChangeRecordset(adReason, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT RecordsetEventsVt::RecordsetChangeComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _hr = raw_RecordsetChangeComplete(adReason, pError, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT RecordsetEventsVt::WillMove ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _hr = raw_WillMove(adReason, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT RecordsetEventsVt::MoveComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _hr = raw_MoveComplete(adReason, pError, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT RecordsetEventsVt::EndOfRecordset ( VARIANT_BOOL * fMoreData, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _hr = raw_EndOfRecordset(fMoreData, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT RecordsetEventsVt::FetchProgress ( long Progress, long MaxProgress, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _hr = raw_FetchProgress(Progress, MaxProgress, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT RecordsetEventsVt::FetchComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) { - HRESULT _hr = raw_FetchComplete(pError, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface _Record wrapper method implementations -// - -inline _variant_t _Record::GetActiveConnection ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_ActiveConnection(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline void _Record::PutActiveConnection ( _bstr_t pvar ) { - HRESULT _hr = put_ActiveConnection(pvar); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void _Record::PutRefActiveConnection ( struct _Connection * pvar ) { - HRESULT _hr = putref_ActiveConnection(pvar); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum ObjectStateEnum _Record::GetState ( ) { - enum ObjectStateEnum _result; - HRESULT _hr = get_State(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _variant_t _Record::GetSource ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_Source(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline void _Record::PutSource ( _bstr_t pvar ) { - HRESULT _hr = put_Source(pvar); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void _Record::PutRefSource ( IDispatch * pvar ) { - HRESULT _hr = putref_Source(pvar); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum ConnectModeEnum _Record::GetMode ( ) { - enum ConnectModeEnum _result; - HRESULT _hr = get_Mode(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void _Record::PutMode ( enum ConnectModeEnum pMode ) { - HRESULT _hr = put_Mode(pMode); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _bstr_t _Record::GetParentURL ( ) { - BSTR _result = 0; - HRESULT _hr = get_ParentURL(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline _bstr_t _Record::MoveRecord ( _bstr_t Source, _bstr_t Destination, _bstr_t UserName, _bstr_t Password, enum MoveRecordOptionsEnum Options, VARIANT_BOOL Async ) { - BSTR _result = 0; - HRESULT _hr = raw_MoveRecord(Source, Destination, UserName, Password, Options, Async, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline _bstr_t _Record::CopyRecord ( _bstr_t Source, _bstr_t Destination, _bstr_t UserName, _bstr_t Password, enum CopyRecordOptionsEnum Options, VARIANT_BOOL Async ) { - BSTR _result = 0; - HRESULT _hr = raw_CopyRecord(Source, Destination, UserName, Password, Options, Async, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline HRESULT _Record::DeleteRecord ( _bstr_t Source, VARIANT_BOOL Async ) { - HRESULT _hr = raw_DeleteRecord(Source, Async); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Record::Open ( const _variant_t & Source, const _variant_t & ActiveConnection, enum ConnectModeEnum Mode, enum RecordCreateOptionsEnum CreateOptions, enum RecordOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) { - HRESULT _hr = raw_Open(Source, ActiveConnection, Mode, CreateOptions, Options, UserName, Password); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Record::Close ( ) { - HRESULT _hr = raw_Close(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline FieldsPtr _Record::GetFields ( ) { - struct Fields * _result = 0; - HRESULT _hr = get_Fields(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return FieldsPtr(_result, false); -} - -inline enum RecordTypeEnum _Record::GetRecordType ( ) { - enum RecordTypeEnum _result; - HRESULT _hr = get_RecordType(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _RecordsetPtr _Record::GetChildren ( ) { - struct _Recordset * _result = 0; - HRESULT _hr = raw_GetChildren(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _RecordsetPtr(_result, false); -} - -inline HRESULT _Record::Cancel ( ) { - HRESULT _hr = raw_Cancel(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface ConnectionEventsVt_Deprecated wrapper method implementations -// - -inline HRESULT ConnectionEventsVt_Deprecated::InfoMessage ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) { - HRESULT _hr = raw_InfoMessage(pError, adStatus, pConnection); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ConnectionEventsVt_Deprecated::BeginTransComplete ( long TransactionLevel, struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) { - HRESULT _hr = raw_BeginTransComplete(TransactionLevel, pError, adStatus, pConnection); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ConnectionEventsVt_Deprecated::CommitTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) { - HRESULT _hr = raw_CommitTransComplete(pError, adStatus, pConnection); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ConnectionEventsVt_Deprecated::RollbackTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) { - HRESULT _hr = raw_RollbackTransComplete(pError, adStatus, pConnection); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ConnectionEventsVt_Deprecated::WillExecute ( BSTR * Source, enum CursorTypeEnum * CursorType, enum LockTypeEnum * LockType, long * Options, enum EventStatusEnum * adStatus, struct _Command_Deprecated * pCommand, struct _Recordset_Deprecated * pRecordset, struct _Connection_Deprecated * pConnection ) { - HRESULT _hr = raw_WillExecute(Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ConnectionEventsVt_Deprecated::ExecuteComplete ( long RecordsAffected, struct Error * pError, enum EventStatusEnum * adStatus, struct _Command_Deprecated * pCommand, struct _Recordset_Deprecated * pRecordset, struct _Connection_Deprecated * pConnection ) { - HRESULT _hr = raw_ExecuteComplete(RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ConnectionEventsVt_Deprecated::WillConnect ( BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) { - HRESULT _hr = raw_WillConnect(ConnectionString, UserID, Password, Options, adStatus, pConnection); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ConnectionEventsVt_Deprecated::ConnectComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) { - HRESULT _hr = raw_ConnectComplete(pError, adStatus, pConnection); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT ConnectionEventsVt_Deprecated::Disconnect ( enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) { - HRESULT _hr = raw_Disconnect(adStatus, pConnection); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface Connection15_Deprecated wrapper method implementations -// - -inline _bstr_t Connection15_Deprecated::GetConnectionString ( ) { - BSTR _result = 0; - HRESULT _hr = get_ConnectionString(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline void Connection15_Deprecated::PutConnectionString ( _bstr_t pbstr ) { - HRESULT _hr = put_ConnectionString(pbstr); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline long Connection15_Deprecated::GetCommandTimeout ( ) { - long _result = 0; - HRESULT _hr = get_CommandTimeout(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Connection15_Deprecated::PutCommandTimeout ( long plTimeout ) { - HRESULT _hr = put_CommandTimeout(plTimeout); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline long Connection15_Deprecated::GetConnectionTimeout ( ) { - long _result = 0; - HRESULT _hr = get_ConnectionTimeout(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Connection15_Deprecated::PutConnectionTimeout ( long plTimeout ) { - HRESULT _hr = put_ConnectionTimeout(plTimeout); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _bstr_t Connection15_Deprecated::GetVersion ( ) { - BSTR _result = 0; - HRESULT _hr = get_Version(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline HRESULT Connection15_Deprecated::Close ( ) { - HRESULT _hr = raw_Close(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline _Recordset_DeprecatedPtr Connection15_Deprecated::Execute ( _bstr_t CommandText, VARIANT * RecordsAffected, long Options ) { - struct _Recordset_Deprecated * _result = 0; - HRESULT _hr = raw_Execute(CommandText, RecordsAffected, Options, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _Recordset_DeprecatedPtr(_result, false); -} - -inline long Connection15_Deprecated::BeginTrans ( ) { - long _result = 0; - HRESULT _hr = raw_BeginTrans(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT Connection15_Deprecated::CommitTrans ( ) { - HRESULT _hr = raw_CommitTrans(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Connection15_Deprecated::RollbackTrans ( ) { - HRESULT _hr = raw_RollbackTrans(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Connection15_Deprecated::Open ( _bstr_t ConnectionString, _bstr_t UserID, _bstr_t Password, long Options ) { - HRESULT _hr = raw_Open(ConnectionString, UserID, Password, Options); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline ErrorsPtr Connection15_Deprecated::GetErrors ( ) { - struct Errors * _result = 0; - HRESULT _hr = get_Errors(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return ErrorsPtr(_result, false); -} - -inline _bstr_t Connection15_Deprecated::GetDefaultDatabase ( ) { - BSTR _result = 0; - HRESULT _hr = get_DefaultDatabase(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline void Connection15_Deprecated::PutDefaultDatabase ( _bstr_t pbstr ) { - HRESULT _hr = put_DefaultDatabase(pbstr); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum IsolationLevelEnum Connection15_Deprecated::GetIsolationLevel ( ) { - enum IsolationLevelEnum _result; - HRESULT _hr = get_IsolationLevel(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Connection15_Deprecated::PutIsolationLevel ( enum IsolationLevelEnum Level ) { - HRESULT _hr = put_IsolationLevel(Level); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline long Connection15_Deprecated::GetAttributes ( ) { - long _result = 0; - HRESULT _hr = get_Attributes(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Connection15_Deprecated::PutAttributes ( long plAttr ) { - HRESULT _hr = put_Attributes(plAttr); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum CursorLocationEnum Connection15_Deprecated::GetCursorLocation ( ) { - enum CursorLocationEnum _result; - HRESULT _hr = get_CursorLocation(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Connection15_Deprecated::PutCursorLocation ( enum CursorLocationEnum plCursorLoc ) { - HRESULT _hr = put_CursorLocation(plCursorLoc); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum ConnectModeEnum Connection15_Deprecated::GetMode ( ) { - enum ConnectModeEnum _result; - HRESULT _hr = get_Mode(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Connection15_Deprecated::PutMode ( enum ConnectModeEnum plMode ) { - HRESULT _hr = put_Mode(plMode); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _bstr_t Connection15_Deprecated::GetProvider ( ) { - BSTR _result = 0; - HRESULT _hr = get_Provider(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline void Connection15_Deprecated::PutProvider ( _bstr_t pbstr ) { - HRESULT _hr = put_Provider(pbstr); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline long Connection15_Deprecated::GetState ( ) { - long _result = 0; - HRESULT _hr = get_State(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _Recordset_DeprecatedPtr Connection15_Deprecated::OpenSchema ( enum SchemaEnum Schema, const _variant_t & Restrictions, const _variant_t & SchemaID ) { - struct _Recordset_Deprecated * _result = 0; - HRESULT _hr = raw_OpenSchema(Schema, Restrictions, SchemaID, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _Recordset_DeprecatedPtr(_result, false); -} - -// -// interface _Connection_Deprecated wrapper method implementations -// - -inline HRESULT _Connection_Deprecated::Cancel ( ) { - HRESULT _hr = raw_Cancel(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface Recordset15_Deprecated wrapper method implementations -// - -inline PositionEnum_Param Recordset15_Deprecated::GetAbsolutePosition ( ) { - PositionEnum_Param _result; - HRESULT _hr = get_AbsolutePosition(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Recordset15_Deprecated::PutAbsolutePosition ( PositionEnum_Param pl ) { - HRESULT _hr = put_AbsolutePosition(pl); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void Recordset15_Deprecated::PutRefActiveConnection ( IDispatch * pvar ) { - HRESULT _hr = putref_ActiveConnection(pvar); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void Recordset15_Deprecated::PutActiveConnection ( const _variant_t & pvar ) { - HRESULT _hr = put_ActiveConnection(pvar); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _variant_t Recordset15_Deprecated::GetActiveConnection ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_ActiveConnection(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline VARIANT_BOOL Recordset15_Deprecated::GetBOF ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_BOF(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _variant_t Recordset15_Deprecated::GetBookmark ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_Bookmark(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline void Recordset15_Deprecated::PutBookmark ( const _variant_t & pvBookmark ) { - HRESULT _hr = put_Bookmark(pvBookmark); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline long Recordset15_Deprecated::GetCacheSize ( ) { - long _result = 0; - HRESULT _hr = get_CacheSize(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Recordset15_Deprecated::PutCacheSize ( long pl ) { - HRESULT _hr = put_CacheSize(pl); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum CursorTypeEnum Recordset15_Deprecated::GetCursorType ( ) { - enum CursorTypeEnum _result; - HRESULT _hr = get_CursorType(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Recordset15_Deprecated::PutCursorType ( enum CursorTypeEnum plCursorType ) { - HRESULT _hr = put_CursorType(plCursorType); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL Recordset15_Deprecated::GetadoEOF ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_adoEOF(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline Fields_DeprecatedPtr Recordset15_Deprecated::GetFields ( ) { - struct Fields_Deprecated * _result = 0; - HRESULT _hr = get_Fields(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return Fields_DeprecatedPtr(_result, false); -} - -inline enum LockTypeEnum Recordset15_Deprecated::GetLockType ( ) { - enum LockTypeEnum _result; - HRESULT _hr = get_LockType(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Recordset15_Deprecated::PutLockType ( enum LockTypeEnum plLockType ) { - HRESULT _hr = put_LockType(plLockType); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline ADO_LONGPTR Recordset15_Deprecated::GetMaxRecords ( ) { - ADO_LONGPTR _result; - HRESULT _hr = get_MaxRecords(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Recordset15_Deprecated::PutMaxRecords ( ADO_LONGPTR plMaxRecords ) { - HRESULT _hr = put_MaxRecords(plMaxRecords); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline ADO_LONGPTR Recordset15_Deprecated::GetRecordCount ( ) { - ADO_LONGPTR _result; - HRESULT _hr = get_RecordCount(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Recordset15_Deprecated::PutRefSource ( IDispatch * pvSource ) { - HRESULT _hr = putref_Source(pvSource); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void Recordset15_Deprecated::PutSource ( _bstr_t pvSource ) { - HRESULT _hr = put_Source(pvSource); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _variant_t Recordset15_Deprecated::GetSource ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_Source(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline HRESULT Recordset15_Deprecated::AddNew ( const _variant_t & FieldList, const _variant_t & Values ) { - HRESULT _hr = raw_AddNew(FieldList, Values); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15_Deprecated::CancelUpdate ( ) { - HRESULT _hr = raw_CancelUpdate(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15_Deprecated::Close ( ) { - HRESULT _hr = raw_Close(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15_Deprecated::Delete ( enum AffectEnum AffectRecords ) { - HRESULT _hr = raw_Delete(AffectRecords); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline _variant_t Recordset15_Deprecated::GetRows ( long Rows, const _variant_t & Start, const _variant_t & Fields ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = raw_GetRows(Rows, Start, Fields, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline HRESULT Recordset15_Deprecated::Move ( ADO_LONGPTR NumRecords, const _variant_t & Start ) { - HRESULT _hr = raw_Move(NumRecords, Start); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15_Deprecated::MoveNext ( ) { - HRESULT _hr = raw_MoveNext(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15_Deprecated::MovePrevious ( ) { - HRESULT _hr = raw_MovePrevious(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15_Deprecated::MoveFirst ( ) { - HRESULT _hr = raw_MoveFirst(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15_Deprecated::MoveLast ( ) { - HRESULT _hr = raw_MoveLast(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15_Deprecated::Open ( const _variant_t & Source, const _variant_t & ActiveConnection, enum CursorTypeEnum CursorType, enum LockTypeEnum LockType, long Options ) { - HRESULT _hr = raw_Open(Source, ActiveConnection, CursorType, LockType, Options); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15_Deprecated::Requery ( long Options ) { - HRESULT _hr = raw_Requery(Options); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15_Deprecated::_xResync ( enum AffectEnum AffectRecords ) { - HRESULT _hr = raw__xResync(AffectRecords); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15_Deprecated::Update ( const _variant_t & Fields, const _variant_t & Values ) { - HRESULT _hr = raw_Update(Fields, Values); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline PositionEnum_Param Recordset15_Deprecated::GetAbsolutePage ( ) { - PositionEnum_Param _result; - HRESULT _hr = get_AbsolutePage(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Recordset15_Deprecated::PutAbsolutePage ( PositionEnum_Param pl ) { - HRESULT _hr = put_AbsolutePage(pl); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum EditModeEnum Recordset15_Deprecated::GetEditMode ( ) { - enum EditModeEnum _result; - HRESULT _hr = get_EditMode(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _variant_t Recordset15_Deprecated::GetFilter ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_Filter(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline void Recordset15_Deprecated::PutFilter ( const _variant_t & Criteria ) { - HRESULT _hr = put_Filter(Criteria); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline ADO_LONGPTR Recordset15_Deprecated::GetPageCount ( ) { - ADO_LONGPTR _result; - HRESULT _hr = get_PageCount(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline long Recordset15_Deprecated::GetPageSize ( ) { - long _result = 0; - HRESULT _hr = get_PageSize(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Recordset15_Deprecated::PutPageSize ( long pl ) { - HRESULT _hr = put_PageSize(pl); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _bstr_t Recordset15_Deprecated::GetSort ( ) { - BSTR _result = 0; - HRESULT _hr = get_Sort(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline void Recordset15_Deprecated::PutSort ( _bstr_t Criteria ) { - HRESULT _hr = put_Sort(Criteria); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline long Recordset15_Deprecated::GetStatus ( ) { - long _result = 0; - HRESULT _hr = get_Status(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline long Recordset15_Deprecated::GetState ( ) { - long _result = 0; - HRESULT _hr = get_State(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _Recordset_DeprecatedPtr Recordset15_Deprecated::_xClone ( ) { - struct _Recordset_Deprecated * _result = 0; - HRESULT _hr = raw__xClone(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _Recordset_DeprecatedPtr(_result, false); -} - -inline HRESULT Recordset15_Deprecated::UpdateBatch ( enum AffectEnum AffectRecords ) { - HRESULT _hr = raw_UpdateBatch(AffectRecords); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT Recordset15_Deprecated::CancelBatch ( enum AffectEnum AffectRecords ) { - HRESULT _hr = raw_CancelBatch(AffectRecords); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline enum CursorLocationEnum Recordset15_Deprecated::GetCursorLocation ( ) { - enum CursorLocationEnum _result; - HRESULT _hr = get_CursorLocation(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Recordset15_Deprecated::PutCursorLocation ( enum CursorLocationEnum plCursorLoc ) { - HRESULT _hr = put_CursorLocation(plCursorLoc); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _Recordset_DeprecatedPtr Recordset15_Deprecated::NextRecordset ( VARIANT * RecordsAffected ) { - struct _Recordset_Deprecated * _result = 0; - HRESULT _hr = raw_NextRecordset(RecordsAffected, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _Recordset_DeprecatedPtr(_result, false); -} - -inline VARIANT_BOOL Recordset15_Deprecated::Supports ( enum CursorOptionEnum CursorOptions ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = raw_Supports(CursorOptions, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _variant_t Recordset15_Deprecated::GetCollect ( const _variant_t & Index ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_Collect(Index, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline void Recordset15_Deprecated::PutCollect ( const _variant_t & Index, const _variant_t & pvar ) { - HRESULT _hr = put_Collect(Index, pvar); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum MarshalOptionsEnum Recordset15_Deprecated::GetMarshalOptions ( ) { - enum MarshalOptionsEnum _result; - HRESULT _hr = get_MarshalOptions(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Recordset15_Deprecated::PutMarshalOptions ( enum MarshalOptionsEnum peMarshal ) { - HRESULT _hr = put_MarshalOptions(peMarshal); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline HRESULT Recordset15_Deprecated::Find ( _bstr_t Criteria, ADO_LONGPTR SkipRecords, enum SearchDirectionEnum SearchDirection, const _variant_t & Start ) { - HRESULT _hr = raw_Find(Criteria, SkipRecords, SearchDirection, Start); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface Recordset20_Deprecated wrapper method implementations -// - -inline HRESULT Recordset20_Deprecated::Cancel ( ) { - HRESULT _hr = raw_Cancel(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline IUnknownPtr Recordset20_Deprecated::GetDataSource ( ) { - IUnknown * _result = 0; - HRESULT _hr = get_DataSource(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return IUnknownPtr(_result, false); -} - -inline void Recordset20_Deprecated::PutRefDataSource ( IUnknown * ppunkDataSource ) { - HRESULT _hr = putref_DataSource(ppunkDataSource); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline HRESULT Recordset20_Deprecated::_xSave ( _bstr_t FileName, enum PersistFormatEnum PersistFormat ) { - HRESULT _hr = raw__xSave(FileName, PersistFormat); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline IDispatchPtr Recordset20_Deprecated::GetActiveCommand ( ) { - IDispatch * _result = 0; - HRESULT _hr = get_ActiveCommand(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return IDispatchPtr(_result, false); -} - -inline void Recordset20_Deprecated::PutStayInSync ( VARIANT_BOOL pbStayInSync ) { - HRESULT _hr = put_StayInSync(pbStayInSync); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL Recordset20_Deprecated::GetStayInSync ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_StayInSync(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _bstr_t Recordset20_Deprecated::GetString ( enum StringFormatEnum StringFormat, long NumRows, _bstr_t ColumnDelimeter, _bstr_t RowDelimeter, _bstr_t NullExpr ) { - BSTR _result = 0; - HRESULT _hr = raw_GetString(StringFormat, NumRows, ColumnDelimeter, RowDelimeter, NullExpr, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline _bstr_t Recordset20_Deprecated::GetDataMember ( ) { - BSTR _result = 0; - HRESULT _hr = get_DataMember(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline void Recordset20_Deprecated::PutDataMember ( _bstr_t pbstrDataMember ) { - HRESULT _hr = put_DataMember(pbstrDataMember); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum CompareEnum Recordset20_Deprecated::CompareBookmarks ( const _variant_t & Bookmark1, const _variant_t & Bookmark2 ) { - enum CompareEnum _result; - HRESULT _hr = raw_CompareBookmarks(Bookmark1, Bookmark2, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _Recordset_DeprecatedPtr Recordset20_Deprecated::Clone ( enum LockTypeEnum LockType ) { - struct _Recordset_Deprecated * _result = 0; - HRESULT _hr = raw_Clone(LockType, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _Recordset_DeprecatedPtr(_result, false); -} - -inline HRESULT Recordset20_Deprecated::Resync ( enum AffectEnum AffectRecords, enum ResyncEnum ResyncValues ) { - HRESULT _hr = raw_Resync(AffectRecords, ResyncValues); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface Recordset21_Deprecated wrapper method implementations -// - -inline HRESULT Recordset21_Deprecated::Seek ( const _variant_t & KeyValues, enum SeekEnum SeekOption ) { - HRESULT _hr = raw_Seek(KeyValues, SeekOption); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline void Recordset21_Deprecated::PutIndex ( _bstr_t pbstrIndex ) { - HRESULT _hr = put_Index(pbstrIndex); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _bstr_t Recordset21_Deprecated::GetIndex ( ) { - BSTR _result = 0; - HRESULT _hr = get_Index(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -// -// interface _Recordset_Deprecated wrapper method implementations -// - -inline HRESULT _Recordset_Deprecated::Save ( const _variant_t & Destination, enum PersistFormatEnum PersistFormat ) { - HRESULT _hr = raw_Save(Destination, PersistFormat); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface Command15_Deprecated wrapper method implementations -// - -inline _Connection_DeprecatedPtr Command15_Deprecated::GetActiveConnection ( ) { - struct _Connection_Deprecated * _result = 0; - HRESULT _hr = get_ActiveConnection(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _Connection_DeprecatedPtr(_result, false); -} - -inline void Command15_Deprecated::PutRefActiveConnection ( struct _Connection_Deprecated * ppvObject ) { - HRESULT _hr = putref_ActiveConnection(ppvObject); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void Command15_Deprecated::PutActiveConnection ( const _variant_t & ppvObject ) { - HRESULT _hr = put_ActiveConnection(ppvObject); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _bstr_t Command15_Deprecated::GetCommandText ( ) { - BSTR _result = 0; - HRESULT _hr = get_CommandText(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline void Command15_Deprecated::PutCommandText ( _bstr_t pbstr ) { - HRESULT _hr = put_CommandText(pbstr); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline long Command15_Deprecated::GetCommandTimeout ( ) { - long _result = 0; - HRESULT _hr = get_CommandTimeout(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Command15_Deprecated::PutCommandTimeout ( long pl ) { - HRESULT _hr = put_CommandTimeout(pl); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL Command15_Deprecated::GetPrepared ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_Prepared(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void Command15_Deprecated::PutPrepared ( VARIANT_BOOL pfPrepared ) { - HRESULT _hr = put_Prepared(pfPrepared); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _Recordset_DeprecatedPtr Command15_Deprecated::Execute ( VARIANT * RecordsAffected, VARIANT * Parameters, long Options ) { - struct _Recordset_Deprecated * _result = 0; - HRESULT _hr = raw_Execute(RecordsAffected, Parameters, Options, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _Recordset_DeprecatedPtr(_result, false); -} - -inline _Parameter_DeprecatedPtr Command15_Deprecated::CreateParameter ( _bstr_t Name, enum DataTypeEnum Type, enum ParameterDirectionEnum Direction, ADO_LONGPTR Size, const _variant_t & Value ) { - struct _Parameter_Deprecated * _result = 0; - HRESULT _hr = raw_CreateParameter(Name, Type, Direction, Size, Value, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _Parameter_DeprecatedPtr(_result, false); -} - -inline Parameters_DeprecatedPtr Command15_Deprecated::GetParameters ( ) { - struct Parameters_Deprecated * _result = 0; - HRESULT _hr = get_Parameters(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return Parameters_DeprecatedPtr(_result, false); -} - -inline void Command15_Deprecated::PutCommandType ( enum CommandTypeEnum plCmdType ) { - HRESULT _hr = put_CommandType(plCmdType); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum CommandTypeEnum Command15_Deprecated::GetCommandType ( ) { - enum CommandTypeEnum _result; - HRESULT _hr = get_CommandType(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _bstr_t Command15_Deprecated::GetName ( ) { - BSTR _result = 0; - HRESULT _hr = get_Name(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline void Command15_Deprecated::PutName ( _bstr_t pbstrName ) { - HRESULT _hr = put_Name(pbstrName); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -// -// interface Command25_Deprecated wrapper method implementations -// - -inline long Command25_Deprecated::GetState ( ) { - long _result = 0; - HRESULT _hr = get_State(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline HRESULT Command25_Deprecated::Cancel ( ) { - HRESULT _hr = raw_Cancel(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface _Command_Deprecated wrapper method implementations -// - -inline void _Command_Deprecated::PutRefCommandStream ( IUnknown * pvStream ) { - HRESULT _hr = putref_CommandStream(pvStream); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _variant_t _Command_Deprecated::GetCommandStream ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_CommandStream(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline void _Command_Deprecated::PutDialect ( _bstr_t pbstrDialect ) { - HRESULT _hr = put_Dialect(pbstrDialect); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _bstr_t _Command_Deprecated::GetDialect ( ) { - BSTR _result = 0; - HRESULT _hr = get_Dialect(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline void _Command_Deprecated::PutNamedParameters ( VARIANT_BOOL pfNamedParameters ) { - HRESULT _hr = put_NamedParameters(pfNamedParameters); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline VARIANT_BOOL _Command_Deprecated::GetNamedParameters ( ) { - VARIANT_BOOL _result = 0; - HRESULT _hr = get_NamedParameters(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -// -// interface RecordsetEventsVt_Deprecated wrapper method implementations -// - -inline HRESULT RecordsetEventsVt_Deprecated::WillChangeField ( long cFields, const _variant_t & Fields, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _hr = raw_WillChangeField(cFields, Fields, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT RecordsetEventsVt_Deprecated::FieldChangeComplete ( long cFields, const _variant_t & Fields, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _hr = raw_FieldChangeComplete(cFields, Fields, pError, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT RecordsetEventsVt_Deprecated::WillChangeRecord ( enum EventReasonEnum adReason, long cRecords, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _hr = raw_WillChangeRecord(adReason, cRecords, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT RecordsetEventsVt_Deprecated::RecordChangeComplete ( enum EventReasonEnum adReason, long cRecords, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _hr = raw_RecordChangeComplete(adReason, cRecords, pError, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT RecordsetEventsVt_Deprecated::WillChangeRecordset ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _hr = raw_WillChangeRecordset(adReason, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT RecordsetEventsVt_Deprecated::RecordsetChangeComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _hr = raw_RecordsetChangeComplete(adReason, pError, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT RecordsetEventsVt_Deprecated::WillMove ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _hr = raw_WillMove(adReason, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT RecordsetEventsVt_Deprecated::MoveComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _hr = raw_MoveComplete(adReason, pError, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT RecordsetEventsVt_Deprecated::EndOfRecordset ( VARIANT_BOOL * fMoreData, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _hr = raw_EndOfRecordset(fMoreData, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT RecordsetEventsVt_Deprecated::FetchProgress ( long Progress, long MaxProgress, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _hr = raw_FetchProgress(Progress, MaxProgress, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT RecordsetEventsVt_Deprecated::FetchComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) { - HRESULT _hr = raw_FetchComplete(pError, adStatus, pRecordset); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -// -// interface _Record_Deprecated wrapper method implementations -// - -inline _variant_t _Record_Deprecated::GetActiveConnection ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_ActiveConnection(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline void _Record_Deprecated::PutActiveConnection ( _bstr_t pvar ) { - HRESULT _hr = put_ActiveConnection(pvar); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void _Record_Deprecated::PutRefActiveConnection ( struct _Connection_Deprecated * pvar ) { - HRESULT _hr = putref_ActiveConnection(pvar); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum ObjectStateEnum _Record_Deprecated::GetState ( ) { - enum ObjectStateEnum _result; - HRESULT _hr = get_State(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _variant_t _Record_Deprecated::GetSource ( ) { - VARIANT _result; - VariantInit(&_result); - HRESULT _hr = get_Source(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _variant_t(_result, false); -} - -inline void _Record_Deprecated::PutSource ( _bstr_t pvar ) { - HRESULT _hr = put_Source(pvar); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline void _Record_Deprecated::PutRefSource ( IDispatch * pvar ) { - HRESULT _hr = putref_Source(pvar); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline enum ConnectModeEnum _Record_Deprecated::GetMode ( ) { - enum ConnectModeEnum _result; - HRESULT _hr = get_Mode(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline void _Record_Deprecated::PutMode ( enum ConnectModeEnum pMode ) { - HRESULT _hr = put_Mode(pMode); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); -} - -inline _bstr_t _Record_Deprecated::GetParentURL ( ) { - BSTR _result = 0; - HRESULT _hr = get_ParentURL(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline _bstr_t _Record_Deprecated::MoveRecord ( _bstr_t Source, _bstr_t Destination, _bstr_t UserName, _bstr_t Password, enum MoveRecordOptionsEnum Options, VARIANT_BOOL Async ) { - BSTR _result = 0; - HRESULT _hr = raw_MoveRecord(Source, Destination, UserName, Password, Options, Async, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline _bstr_t _Record_Deprecated::CopyRecord ( _bstr_t Source, _bstr_t Destination, _bstr_t UserName, _bstr_t Password, enum CopyRecordOptionsEnum Options, VARIANT_BOOL Async ) { - BSTR _result = 0; - HRESULT _hr = raw_CopyRecord(Source, Destination, UserName, Password, Options, Async, &_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _bstr_t(_result, false); -} - -inline HRESULT _Record_Deprecated::DeleteRecord ( _bstr_t Source, VARIANT_BOOL Async ) { - HRESULT _hr = raw_DeleteRecord(Source, Async); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Record_Deprecated::Open ( const _variant_t & Source, const _variant_t & ActiveConnection, enum ConnectModeEnum Mode, enum RecordCreateOptionsEnum CreateOptions, enum RecordOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) { - HRESULT _hr = raw_Open(Source, ActiveConnection, Mode, CreateOptions, Options, UserName, Password); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline HRESULT _Record_Deprecated::Close ( ) { - HRESULT _hr = raw_Close(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -} - -inline Fields_DeprecatedPtr _Record_Deprecated::GetFields ( ) { - struct Fields_Deprecated * _result = 0; - HRESULT _hr = get_Fields(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return Fields_DeprecatedPtr(_result, false); -} - -inline enum RecordTypeEnum _Record_Deprecated::GetRecordType ( ) { - enum RecordTypeEnum _result; - HRESULT _hr = get_RecordType(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _result; -} - -inline _Recordset_DeprecatedPtr _Record_Deprecated::GetChildren ( ) { - struct _Recordset_Deprecated * _result = 0; - HRESULT _hr = raw_GetChildren(&_result); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _Recordset_DeprecatedPtr(_result, false); -} - -inline HRESULT _Record_Deprecated::Cancel ( ) { - HRESULT _hr = raw_Cancel(); - if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); - return _hr; -}