typedef LONG SCODE
时间: 2024-04-01 11:29:32 浏览: 88
typedef LONG SCODE是一种C++语言中的类型定义,它将LONG类型重新命名为SCODE。SCODE通常用于表示错误码或状态码。在Windows编程中,SCODE常用于COM(Component Object Model)编程中,用于表示COM接口的返回值或方法的返回值。SCODE的取值范围与LONG类型相同,通常使用负数表示错误码,正数表示成功或其他状态。
相关问题
typedef struct tagVARIANT VARIANT
typedef struct tagVARIANT {
union {
struct {
VARTYPE vt;
WORD wReserved1;
WORD wReserved2;
WORD wReserved3;
union {
LONGLONG llVal;
LONG lVal;
BYTE bVal;
SHORT iVal;
FLOAT fltVal;
DOUBLE dblVal;
VARIANT_BOOL boolVal;
SCODE scode;
CY cyVal;
DATE date;
BSTR bstrVal;
IUnknown *punkVal;
IDispatch *pdispVal;
SAFEARRAY *parray;
BYTE *pbVal;
SHORT *piVal;
LONG *plVal;
LONGLONG *pllVal;
FLOAT *pfltVal;
DOUBLE *pdblVal;
VARIANT_BOOL *pboolVal;
SCODE *pscode;
CY *pcyVal;
DATE *pdate;
BSTR *pbstrVal;
IUnknown **ppunkVal;
IDispatch **ppdispVal;
SAFEARRAY **pparray;
VARIANT *pvarVal;
PVOID byref;
CHAR cVal;
USHORT uiVal;
ULONG ulVal;
ULONGLONG ullVal;
INT intVal;
UINT uintVal;
DECIMAL *pdecVal;
CHAR *pcVal;
USHORT *puiVal;
ULONG *pulVal;
ULONGLONG *pullVal;
INT *pintVal;
UINT *puintVal;
} n3;
} n2;
DECIMAL decVal;
} n1;
} VARIANT;
阅读全文