0001 """Constants used by COM Controls 0002 0003 Hand created version of OLECTL.H constants. 0004 """ 0005 0006 import winerror 0007 0008 FACILITY_CONTROL = 0xa 0009 0010 def MAKE_SCODE(sev, fac, code): 0011 return int((long(-sev)<<31) | ((fac)<<16) | ((code))) 0012 0013 def STD_CTL_SCODE(n): 0014 return MAKE_SCODE(winerror.SEVERITY_ERROR, FACILITY_CONTROL, n) 0015 0016 CTL_E_ILLEGALFUNCTIONCALL = STD_CTL_SCODE(5) 0017 CTL_E_OVERFLOW = STD_CTL_SCODE(6) 0018 CTL_E_OUTOFMEMORY = STD_CTL_SCODE(7) 0019 CTL_E_DIVISIONBYZERO = STD_CTL_SCODE(11) 0020 CTL_E_OUTOFSTRINGSPACE = STD_CTL_SCODE(14) 0021 CTL_E_OUTOFSTACKSPACE = STD_CTL_SCODE(28) 0022 CTL_E_BADFILENAMEORNUMBER = STD_CTL_SCODE(52) 0023 CTL_E_FILENOTFOUND = STD_CTL_SCODE(53) 0024 CTL_E_BADFILEMODE = STD_CTL_SCODE(54) 0025 CTL_E_FILEALREADYOPEN = STD_CTL_SCODE(55) 0026 CTL_E_DEVICEIOERROR = STD_CTL_SCODE(57) 0027 CTL_E_FILEALREADYEXISTS = STD_CTL_SCODE(58) 0028 CTL_E_BADRECORDLENGTH = STD_CTL_SCODE(59) 0029 CTL_E_DISKFULL = STD_CTL_SCODE(61) 0030 CTL_E_BADRECORDNUMBER = STD_CTL_SCODE(63) 0031 CTL_E_BADFILENAME = STD_CTL_SCODE(64) 0032 CTL_E_TOOMANYFILES = STD_CTL_SCODE(67) 0033 CTL_E_DEVICEUNAVAILABLE = STD_CTL_SCODE(68) 0034 CTL_E_PERMISSIONDENIED = STD_CTL_SCODE(70) 0035 CTL_E_DISKNOTREADY = STD_CTL_SCODE(71) 0036 CTL_E_PATHFILEACCESSERROR = STD_CTL_SCODE(75) 0037 CTL_E_PATHNOTFOUND = STD_CTL_SCODE(76) 0038 CTL_E_INVALIDPATTERNSTRING = STD_CTL_SCODE(93) 0039 CTL_E_INVALIDUSEOFNULL = STD_CTL_SCODE(94) 0040 CTL_E_INVALIDFILEFORMAT = STD_CTL_SCODE(321) 0041 CTL_E_INVALIDPROPERTYVALUE = STD_CTL_SCODE(380) 0042 CTL_E_INVALIDPROPERTYARRAYINDEX = STD_CTL_SCODE(381) 0043 CTL_E_SETNOTSUPPORTEDATRUNTIME = STD_CTL_SCODE(382) 0044 CTL_E_SETNOTSUPPORTED = STD_CTL_SCODE(383) 0045 CTL_E_NEEDPROPERTYARRAYINDEX = STD_CTL_SCODE(385) 0046 CTL_E_SETNOTPERMITTED = STD_CTL_SCODE(387) 0047 CTL_E_GETNOTSUPPORTEDATRUNTIME = STD_CTL_SCODE(393) 0048 CTL_E_GETNOTSUPPORTED = STD_CTL_SCODE(394) 0049 CTL_E_PROPERTYNOTFOUND = STD_CTL_SCODE(422) 0050 CTL_E_INVALIDCLIPBOARDFORMAT = STD_CTL_SCODE(460) 0051 CTL_E_INVALIDPICTURE = STD_CTL_SCODE(481) 0052 CTL_E_PRINTERERROR = STD_CTL_SCODE(482) 0053 CTL_E_CANTSAVEFILETOTEMP = STD_CTL_SCODE(735) 0054 CTL_E_SEARCHTEXTNOTFOUND = STD_CTL_SCODE(744) 0055 CTL_E_REPLACEMENTSTOOLONG = STD_CTL_SCODE(746) 0056 0057 CONNECT_E_FIRST = MAKE_SCODE(winerror.SEVERITY_ERROR, winerror.FACILITY_ITF, 0x0200) 0058 CONNECT_E_LAST = MAKE_SCODE(winerror.SEVERITY_ERROR, winerror.FACILITY_ITF, 0x020F) 0059 CONNECT_S_FIRST = MAKE_SCODE(winerror.SEVERITY_SUCCESS, winerror.FACILITY_ITF, 0x0200) 0060 CONNECT_S_LAST = MAKE_SCODE(winerror.SEVERITY_SUCCESS, winerror.FACILITY_ITF, 0x020F) 0061 0062 CONNECT_E_NOCONNECTION = CONNECT_E_FIRST+0 0063 CONNECT_E_ADVISELIMIT = CONNECT_E_FIRST+1 0064 CONNECT_E_CANNOTCONNECT = CONNECT_E_FIRST+2 0065 CONNECT_E_OVERRIDDEN = CONNECT_E_FIRST+3 0066 0067 CLASS_E_NOTLICENSED = winerror.CLASSFACTORY_E_FIRST+2 0068 0069
Generated by PyXR 0.9.4