GetQMFObjectInfoEx()


" "

short GetQMFObjectInfoEx(BSTR OwnerAndName, short Type, short Time).

Description

This function returns information about a QMF object. The information that will be returned is specified by the Type and Time parameters. After calling this function, the QMFObjectInfo() property can be interrogated for the returned value.

Parameters

Name Description
OwnerAndName A string containing the object for which you want to retrieve information, in owner.name format. For example, John.Query2
Type

Specifies the type of information to get. You can select the foloowing information:

0 (RSI_COMMENT) -- Comment
1 (RSI_LEVEL) -- Level
2 (RSI_TYPE) -- Type
3 (RSI_SUBTYPE) -- Sub type
4 (RSI_RESTRICTED) -- Restricted
5 (RSI_MODEL) -- Model
6 (RSI_TIMESUSED) -- Number of times used
7 (RSI_TIMESRUN) -- Number of times run
8 (RSI_TIMESCANCELED) -- Number of times canceled
9 (RSI_DATE) -- Date first used, last used, or last modified
10 (RSI_TIME) -- Time first used, last used, or last modified
1 (RSI_USERID) -- User ID first used, last used, or last modified
12 (RSI_SQLID) -- SQL ID first used, last used, or last modified
13 (RSI_ENVIRONMENT) -- Environment first used, last used, or last modified
14 (RSI_MODE) -- Mode first used, last used, or last modified
15 (RSI_COMMAND) -- Command first used, last used, or last modified

Time

Specifies first used, last used, or last modified:

0 (RST_FIRSTUSED) -- First used
1 (RST_LASTUSED) -- Last used
2 (RST_LASTMODIFIED) -- Last modified

Return Value

The return value will be zero, if successful and non-zero if unsuccessful. If the return value is non-zero, you can call GetLastErrorString(), GetLastErrorType(), GetLastSQLCode(), GetLastSQLError(), or GetLastSQLState() to get additional error information.