msi: automation: Use proper parameter names.

This fixes the parameter names to match native as they are required by
some scripting languages and by the exceptions that are thrown.
This commit is contained in:
Misha Koshelev 2007-05-07 17:49:17 -05:00 committed by Alexandre Julliard
parent 56a1326a8b
commit 757e617ec2
2 changed files with 16 additions and 19 deletions

View File

@ -45,8 +45,8 @@ library WindowsInstaller
methods: methods:
[id(DISPID_INSTALLER_OPENPACKAGE)] [id(DISPID_INSTALLER_OPENPACKAGE)]
Session* OpenPackage( Session* OpenPackage(
[in] VARIANT Path, [in] VARIANT PackagePath,
[in, optional, defaultvalue(0)] long OptionalOption); [in, optional, defaultvalue(0)] long Options);
} }
[ uuid(000C1093-0000-0000-C000-000000000046) ] [ uuid(000C1093-0000-0000-C000-000000000046) ]
@ -55,10 +55,10 @@ library WindowsInstaller
properties: properties:
methods: methods:
[id(DISPID_RECORD_STRINGDATA), propget] [id(DISPID_RECORD_STRINGDATA), propget]
BSTR StringData([in] long FieldNumber); BSTR StringData([in] long Field);
[id(DISPID_RECORD_STRINGDATA), propput] [id(DISPID_RECORD_STRINGDATA), propput]
void StringData( void StringData(
[in] long FieldNumber, [in] long Field,
[in] BSTR rhs); [in] BSTR rhs);
} }
@ -96,7 +96,7 @@ library WindowsInstaller
properties: properties:
methods: methods:
[id(DISPID_VIEW_EXECUTE)] [id(DISPID_VIEW_EXECUTE)]
void Execute([in, optional, defaultvalue(0)] Record *OptionalRecord); void Execute([in, optional, defaultvalue(0)] Record *Params);
[id(DISPID_VIEW_FETCH)] [id(DISPID_VIEW_FETCH)]
Record* Fetch(); Record* Fetch();
[id(DISPID_VIEW_CLOSE)] [id(DISPID_VIEW_CLOSE)]
@ -109,7 +109,7 @@ library WindowsInstaller
properties: properties:
methods: methods:
[id(DISPID_DATABASE_OPENVIEW)] [id(DISPID_DATABASE_OPENVIEW)]
View* OpenView([in] BSTR QueryString); View* OpenView([in] BSTR Sql);
} }
typedef enum { typedef enum {
@ -166,33 +166,33 @@ library WindowsInstaller
[id(DISPID_SESSION_INSTALLER), propget] [id(DISPID_SESSION_INSTALLER), propget]
Installer *Installer(); Installer *Installer();
[id(DISPID_SESSION_PROPERTY), propget] [id(DISPID_SESSION_PROPERTY), propget]
BSTR Property([in] BSTR PropertyName); BSTR Property([in] BSTR Name);
[id(DISPID_SESSION_PROPERTY), propput] [id(DISPID_SESSION_PROPERTY), propput]
void Property( void Property(
[in] BSTR PropertyName, [in] BSTR Name,
[in] BSTR rhs); [in] BSTR rhs);
[id(DISPID_SESSION_LANGUAGE), propget] [id(DISPID_SESSION_LANGUAGE), propget]
long Language(); long Language();
[id(DISPID_SESSION_MODE), propget] [id(DISPID_SESSION_MODE), propget]
VARIANT_BOOL Mode([in] MsiRunMode runMode); VARIANT_BOOL Mode([in] MsiRunMode Flag);
[id(DISPID_SESSION_MODE), propput] [id(DISPID_SESSION_MODE), propput]
void Mode( void Mode(
[in] MsiRunMode runMode, [in] MsiRunMode Flag,
[in] VARIANT_BOOL rhs); [in] VARIANT_BOOL rhs);
[id(DISPID_SESSION_DATABASE), propget] [id(DISPID_SESSION_DATABASE), propget]
Database* Database(); Database* Database();
[id(DISPID_SESSION_DOACTION)] [id(DISPID_SESSION_DOACTION)]
MsiDoActionStatus DoAction([in] BSTR ActionString); MsiDoActionStatus DoAction([in] BSTR Action);
[id(DISPID_SESSION_FEATURECURRENTSTATE), propget] [id(DISPID_SESSION_FEATURECURRENTSTATE), propget]
MsiInstallState FeatureCurrentState([in] BSTR FeatureName); MsiInstallState FeatureCurrentState([in] BSTR Feature);
[id(DISPID_SESSION_FEATUREREQUESTSTATE), propget] [id(DISPID_SESSION_FEATUREREQUESTSTATE), propget]
MsiInstallState FeatureRequestState([in] BSTR FeatureName); MsiInstallState FeatureRequestState([in] BSTR Feature);
[id(DISPID_SESSION_FEATUREREQUESTSTATE), propput] [id(DISPID_SESSION_FEATUREREQUESTSTATE), propput]
void FeatureRequestState( void FeatureRequestState(
[in] BSTR FeatureName, [in] BSTR Feature,
[in] MsiInstallState rhs); [in] MsiInstallState rhs);
[id(DISPID_SESSION_SETINSTALLLEVEL)] [id(DISPID_SESSION_SETINSTALLLEVEL)]
void SetInstallLevel([in] long InstallLevel); void SetInstallLevel([in] long Level);
} }
[ uuid(000C109F-0000-0000-C000-000000000046) ] [ uuid(000C109F-0000-0000-C000-000000000046) ]

View File

@ -298,11 +298,8 @@ static WCHAR szSource[] = {'M','s','i',' ','A','P','I',' ','E','r','r','o','r',0
len = WideCharToMultiByte(CP_ACP, 0, szDescription, -1, string2, MAX_PATH, NULL, NULL); \ len = WideCharToMultiByte(CP_ACP, 0, szDescription, -1, string2, MAX_PATH, NULL, NULL); \
ok(len, "WideCharToMultiByteChar returned error %d\n", GetLastError()); \ ok(len, "WideCharToMultiByteChar returned error %d\n", GetLastError()); \
\ \
todo_wine { \
/* Our parameter names are different so the descriptions will not match */ \
ok(0, "Exception description was \"%s\" but expected to be \"%s\"\n", string1, string2); \ ok(0, "Exception description was \"%s\" but expected to be \"%s\"\n", string1, string2); \
} \ } \
} \
} }
static DISPID get_dispid( IDispatch *disp, const char *name ) static DISPID get_dispid( IDispatch *disp, const char *name )