Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
edbe6571
Kaydet (Commit)
edbe6571
authored
May 01, 2006
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Markup fixes; add some XXX comments noting problems
üst
d22c6dbd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
27 deletions
+29
-27
libmsilib.tex
Doc/lib/libmsilib.tex
+29
-27
No files found.
Doc/lib/libmsilib.tex
Dosyayı görüntüle @
edbe6571
...
...
@@ -43,14 +43,14 @@ MSI routines, and standard table structures.
\begin{funcdesc}
{
UUIDCreate
}{}
Return the string representation of a new unique identifier.
This wraps the Windows API functions
\c
ode
{
UuidCreate
}
and
\c
ode
{
UuidToString
}
.
This wraps the Windows API functions
\c
function
{
UuidCreate
}
and
\c
function
{
UuidToString
}
.
\end{funcdesc}
\begin{funcdesc}
{
OpenDatabase
}{
path, persist
}
Return a new database object by calling MsiOpenDatabase.
\var
{
path
}
is the file name of the
MSI file;
persist
can be one of the constants
MSI file;
\var
{
persist
}
can be one of the constants
\code
{
MSIDBOPEN
_
CREATEDIRECT
}
,
\code
{
MSIDBOPEN
_
CREATE
}
,
\code
{
MSIDBOPEN
_
DIRECT
}
,
\code
{
MSIDBOPEN
_
READONLY
}
, or
\code
{
MSIDBOPEN
_
TRANSACT
}
, and may include the flag
...
...
@@ -60,7 +60,7 @@ MSI routines, and standard table structures.
\end{funcdesc}
\begin{funcdesc}
{
CreateRecord
}{
count
}
Return a new record object by calling
MSICreateRecord
.
Return a new record object by calling
\cfunction
{
MSICreateRecord
}
.
\var
{
count
}
is the number of fields of the record.
\end{funcdesc}
...
...
@@ -88,7 +88,7 @@ MSI routines, and standard table structures.
\end{funcdesc}
\begin{classdesc}
{
Binary
}{
filename
}
Represents entries in
to
the Binary table; inserting such
Represents entries in the Binary table; inserting such
an object using
\function
{
add
_
data
}
reads the file named
\var
{
filename
}
into the table.
\end{classdesc}
...
...
@@ -100,6 +100,7 @@ MSI routines, and standard table structures.
and one attribute per table that has the actual content.
This is typically used to install the sequence
% XXX unfinished sentence
\end{funcdesc}
\begin{funcdesc}
{
add
_
stream
}{
database, name, path
}
...
...
@@ -122,18 +123,18 @@ MSI routines, and standard table structures.
\subsection
{
Database Objects
\label
{
database-objects
}}
\begin{methoddesc}
{
OpenView
}{
sql
}
Return a view object, by calling
MSIDatabaseOpenView
.
Return a view object, by calling
\cfunction
{
MSIDatabaseOpenView
}
.
\var
{
sql
}
is the SQL statement to execute.
\end{methoddesc}
\begin{methoddesc}
{
Commit
}{}
Commit the changes pending in the current transaction,
by calling
MSIDatabaseCommit
.
by calling
\cfunction
{
MSIDatabaseCommit
}
.
\end{methoddesc}
\begin{methoddesc}
{
GetSummaryInformation
}{
count
}
Return a new summary information object, by calling
MsiGetSummaryInformation
.
\var
{
count
}
is the maximum number of
\cfunction
{
MsiGetSummaryInformation
}
.
\var
{
count
}
is the maximum number of
updated values.
\end{methoddesc}
...
...
@@ -146,24 +147,24 @@ MSI routines, and standard table structures.
\subsection
{
View Objects
\label
{
view-objects
}}
\begin{methoddesc}
{
Execute
}{
\optional
{
params=None
}}
Execute the SQL query of the view, through
MSIViewExecute
.
Execute the SQL query of the view, through
\cfunction
{
MSIViewExecute
}
.
\var
{
params
}
is an optional record describing actual values
of the parameter tokens in the query.
\end{methoddesc}
\begin{methoddesc}
{
GetColumnInfo
}{
kind
}
Return a record describing the columns of the view, through
calling
MsiViewGetColumnInfo
.
\var
{
kind
}
can be either
\code
{
MSICOLINFO
_
NAMES
}
or
\code
{
MSICOLINFO
_
TYPES
}
calling
\cfunction
{
MsiViewGetColumnInfo
}
.
\var
{
kind
}
can be either
\code
{
MSICOLINFO
_
NAMES
}
or
\code
{
MSICOLINFO
_
TYPES
}
.
\end{methoddesc}
\begin{methoddesc}
{
Fetch
}{}
Return a result record of the query, through calling
MsiViewFetch
.
\cfunction
{
MsiViewFetch
}
.
\end{methoddesc}
\begin{methoddesc}
{
Modify
}{
kind, data
}
Modify the view, by calling
MsiViewModify
.
\var
{
kind
}
Modify the view, by calling
\cfunction
{
MsiViewModify
}
.
\var
{
kind
}
can be one of
\code
{
MSIMODIFY
_
SEEK
}
,
\code
{
MSIMODIFY
_
REFRESH
}
,
\code
{
MSIMODIFY
_
INSERT
}
,
\code
{
MSIMODIFY
_
UPDATE
}
,
\code
{
MSIMODIFY
_
ASSIGN
}
,
\code
{
MSIMODIFY
_
REPLACE
}
,
\code
{
MSIMODIFY
_
MERGE
}
,
\code
{
MSIMODIFY
_
DELETE
}
,
...
...
@@ -175,7 +176,7 @@ MSI routines, and standard table structures.
\end{methoddesc}
\begin{methoddesc}
{
Close
}{}
Close the view, through
MsiViewClose
.
Close the view, through
\cfunction
{
MsiViewClose
}
.
\end{methoddesc}
\begin{seealso}
...
...
@@ -189,7 +190,7 @@ MSI routines, and standard table structures.
\subsection
{
Summary Information Objects
\label
{
summary-objects
}}
\begin{methoddesc}
{
GetProperty
}{
field
}
Return a property of the summary, through
MsiSummaryInfoGetProperty
.
Return a property of the summary, through
\cfunction
{
MsiSummaryInfoGetProperty
}
.
\var
{
field
}
is the name of the property, and can be one of the
constants
\code
{
PID
_
CODEPAGE
}
,
\code
{
PID
_
TITLE
}
,
\code
{
PID
_
SUBJECT
}
,
...
...
@@ -202,11 +203,11 @@ MSI routines, and standard table structures.
\begin{methoddesc}
{
GetPropertyCount
}{}
Return the number of summary properties, through
MsiSummaryInfoGetPropertyCount
.
\cfunction
{
MsiSummaryInfoGetPropertyCount
}
.
\end{methoddesc}
\begin{methoddesc}
{
SetProperty
}{
field, value
}
Set a property through
MsiSummaryInfoSetProperty
.
\var
{
field
}
Set a property through
\cfunction
{
MsiSummaryInfoSetProperty
}
.
\var
{
field
}
can have the same values as in
\method
{
GetProperty
}
,
\var
{
value
}
is the new value of the property. Possible value types are integer
and string.
...
...
@@ -214,7 +215,7 @@ MSI routines, and standard table structures.
\begin{methoddesc}
{
Persist
}{}
Write the modified properties to the summary information stream,
using
MsiSummaryInfoPersist
.
using
\cfunction
{
MsiSummaryInfoPersist
}
.
\end{methoddesc}
\begin{seealso}
...
...
@@ -227,27 +228,27 @@ MSI routines, and standard table structures.
\subsection
{
Record Objects
\label
{
record-objects
}}
\begin{methoddesc}
{
GetFieldCount
}{}
Return the number of fields of the record, through
MsiRecordGetFieldCount
.
Return the number of fields of the record, through
\cfunction
{
MsiRecordGetFieldCount
}
.
\end{methoddesc}
\begin{methoddesc}
{
SetString
}{
field, value
}
Set
\var
{
field
}
to
\var
{
value
}
through
MsiRecordSetString
.
Set
\var
{
field
}
to
\var
{
value
}
through
\cfunction
{
MsiRecordSetString
}
.
\var
{
field
}
must be an integer;
\var
{
value
}
a string.
\end{methoddesc}
\begin{methoddesc}
{
SetStream
}{
field, value
}
Set
\var
{
field
}
to the contents of the file named
\var
{
value
}
,
through
MsiRecordSetStream
.
through
\cfunction
{
MsiRecordSetStream
}
.
\var
{
field
}
must be an integer;
\var
{
value
}
a string.
\end{methoddesc}
\begin{methoddesc}
{
SetInteger
}{
field, value
}
Set
\var
{
field
}
to
\var
{
value
}
through
MsiRecordSetInteger
.
Both
\var
{
field
}
and
\var
{
value
}
must be an integer
s
.
Set
\var
{
field
}
to
\var
{
value
}
through
\cfunction
{
MsiRecordSetInteger
}
.
Both
\var
{
field
}
and
\var
{
value
}
must be an integer.
\end{methoddesc}
\begin{methoddesc}
{
ClearData
}{}
Set all fields of the record to 0, through
MsiRecordClearData
.
Set all fields of the record to 0, through
\cfunction
{
MsiRecordClearData
}
.
\end{methoddesc}
\begin{seealso}
...
...
@@ -295,13 +296,14 @@ the string inside the exception will contain more detail.
logical, default, component,
\optional
{
flags
}}
Create a new directory in the Directory table. There is a current
component at each point in time for the directory, which is either
explicitly created through
start
_
component
, or implicitly when files
explicitly created through
\function
{
start
_
component
}
, or implicitly when files
are added for the first time. Files are added into the current
component, and into the cab file. To create a directory, a base
directory object needs to be specified (can be
None
), the path to
the physical directory, and a logical directory name.
Default
directory object needs to be specified (can be
\code
{
None
}
), the path to
the physical directory, and a logical directory name.
\var
{
default
}
specifies the DefaultDir slot in the directory table. componentflags
specifies the default flags that new components get.
% XXX signature says 'component', 'flags'; text says 'componentflags'.
\end{classdesc}
\begin{methoddesc}
[Directory]
{
start
_
component
}{
\optional
{
component
\optional
{
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment