Re: Requested API Structure and constants
Posted: Mon Dec 05, 2016 6:44 am
god that issue has been fixed like a year ago. how about using an updated version, before posting stuff?
c ya,
nco2k
c ya,
nco2k
http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
Interface IMMDeviceEnumerator Extends IUnknown
EnumAudioEndpoints(a, b, c)
GetDefaultAudioEndpoint(a, b, c)
GetDevice(a, b)
RegisterEndpointNotificationCallback(a)
UnregisterEndpointNotificationCallback(a)
EndInterface
Interface IMMDevice Extends IUnknown
Activate(a, b, c, d)
OpenPropertyStore(a, b)
GetId(a)
GetState(a)
EndInterface
Interface IPropertyStore Extends IUnknown
GetCount(a)
GetAt(a, b)
GetValue(a, b)
SetValue(a, b)
Commit()
EndInterface
#eRender = 0
#eCapture = 1
#eAll = 2
#EDataFlow_enum_count = 3
#eConsole = 0
#eMultimedia = 1
#eCommunications = 2
#ERole_enum_count = 3
Code: Select all
#TBPF_NOPROGRESS = 0
#TBPF_INDETERMINATE = 1
#TBPF_NORMAL = 2
#TBPF_ERROR = 4
#TBPF_PAUSED = 8
Code: Select all
typedef struct _devicemode { /* dvmd */
TCHAR dmDeviceName[32];
WORD dmSpecVersion;
WORD dmDriverVersion;
WORD dmSize;
WORD dmDriverExtra;
DWORD dmFields;
short dmOrientation;
short dmPaperSize;
short dmPaperLength;
short dmPaperWidth;
short dmScale;
short dmCopies;
short dmDefaultSource;
short dmPrintQuality;
short dmColor;
short dmDuplex;
short dmYResolution;
short dmTTOption;
short dmCollate;
TCHAR dmFormName[32];
WORD dmUnusedPadding;
USHORT dmBitsPerPel;
DWORD dmPelsWidth;
DWORD dmPelsHeight;
DWORD dmDisplayFlags;
DWORD dmDisplayFrequency;
} DEVMODE;
Code: Select all
\dmPosition ---> \Display\dmPosition
\dmDisplayOrientation ---> \Display\dmDisplayOrientation
\dmDisplayFixedOutput ---> \Display\dmDisplayFixedOutput
\dmOrientation ---> \Printer\dmOrientation
\dmPaperSize ---> \Printer\dmPaperSize
\dmPaperLength ---> \Printer\dmPaperLength
\dmPaperWidth ---> \Printer\dmPaperWidth
\dmScale ---> \Printer\dmScale
\dmCopies ---> \Printer\dmCopies
\dmDefaultSource ---> \Printer\dmDefaultSource
\dmPrintQuality ---> \Printer\dmPrintQuality
Code: Select all
Enumeration
#DWMWA_NCRENDERING_ENABLED=1
#DWMWA_NCRENDERING_POLICY
#DWMWA_TRANSITIONS_FORCEDISABLED
#DWMWA_ALLOW_NCPAINT
#DWMWA_CAPTION_BUTTON_BOUNDS
#DWMWA_NONCLIENT_RTL_LAYOUT
#DWMWA_FORCE_ICONIC_REPRESENTATION
#DWMWA_FLIP3D_POLICY
#DWMWA_EXTENDED_FRAME_BOUNDS
#DWMWA_HAS_ICONIC_BITMAP
#DWMWA_DISALLOW_PEEK
#DWMWA_EXCLUDED_FROM_PEEK
#DWMWA_CLOAK
#DWMWA_CLOAKED
#DWMWA_FREEZE_REPRESENTATION
#DWMWA_LAST
EndEnumeration
#DWMNCRP_USEWINDOWSTYLE=0
#DWMNCRP_DISABLED=1
#DWMNCRP_ENABLED=2
Code: Select all
Structure MARGINS
cxLeftWidth.l
cxRightWidth.l
cyTopHeight.l
cyBottomHeight.l
EndStructure
Code: Select all
; Flags for USER_INFO_3, USER_INFO_23 and similar structures (usri3_flags field)
EnumerationBinary UF
#UF_SCRIPT
#UF_ACCOUNTDISABLE
#UF_HOMEDIR_REQUIRED
#UF_PASSWD_NOTREQD
#UF_PASSWD_CANT_CHANGE
#UF_LOCKOUT
#UF_DONT_EXPIRE_PASSWD
#UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED
#UF_NOT_DELEGATED
#UF_SMARTCARD_REQUIRED
#UF_USE_DES_KEY_ONLY
#UF_DONT_REQUIRE_PREAUTH
#UF_TRUSTED_FOR_DELEGATION
#UF_PASSWORD_EXPIRED ; Windows 2000: This value is not supported.
#UF_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION ; Windows XP/2000: This value is not supported.
EndEnumeration
Code: Select all
#DISPID_UNKNOWN = -1
#DISPID_VALUE = 0
#DISPID_PROPERTYPUT = -3
#DISPID_NEWENUM = -4
#DISPID_EVALUATE = -5
#DISPID_CONSTRUCTOR = -6
#DISPID_DESTRUCTOR = -7
#DISPID_COLLECT = -8
From DispEx.hmk-soft wrote:DISPID Constants
https://msdn.microsoft.com/en-us/librar ... s.85).aspxCode: Select all
#DISPID_UNKNOWN = -1 #DISPID_VALUE = 0 #DISPID_PROPERTYPUT = -3 #DISPID_NEWENUM = -4 #DISPID_EVALUATE = -5 #DISPID_CONSTRUCTOR = -6 #DISPID_DESTRUCTOR = -7 #DISPID_COLLECT = -8
Code: Select all
#DISPID_STARTENUM = #DISPID_UNKNOWN
#DISPID_THIS = -613
Code: Select all
#TVM_GETBKCOLOR = #TV_FIRST + 31
#TVM_GETEXTENDEDSTYLE = #TV_FIRST + 45
#TVM_GETINSERTMARKCOLOR = #TV_FIRST + 38
#TVM_GETITEMHEIGHT = #TV_FIRST + 28
#TVM_GETITEMPARTRECT = #TV_FIRST + 72
#TVM_GETITEMSTATE = #TV_FIRST + 39
#TVM_GETLINECOLOR = #TV_FIRST + 41
#TVM_GETSCROLLTIME = #TV_FIRST + 34
#TVM_GETSELECTEDCOUNT = #TV_FIRST + 70
#TVM_GETTEXTCOLOR = #TV_FIRST + 32
#TVM_GETTOOLTIPS = #TV_FIRST + 25
#TVM_GETUNICODEFORMAT = #CCM_GETUNICODEFORMAT
#TVM_MAPACCIDTOHTREEITEM = #TV_FIRST + 42
#TVM_MAPHTREEITEMTOACCID = #TV_FIRST + 43
#TVM_SETAUTOSCROLLINFO = #TV_FIRST + 59
#TVM_SETBKCOLOR = #TV_FIRST + 29
#TVM_SETBORDER = #TV_FIRST + 35
#TVM_SETEXTENDEDSTYLE = #TV_FIRST + 44
#TVM_SETHOT = #TV_FIRST + 58
#TVM_SETINSERTMARK = #TV_FIRST + 26
#TVM_SETINSERTMARKCOLOR = #TV_FIRST + 37
#TVM_SETITEMHEIGHT = #TV_FIRST + 27
#TVM_SETLINECOLOR = #TV_FIRST + 40
#TVM_SETSCROLLTIME = #TV_FIRST + 33
#TVM_SETTEXTCOLOR = #TV_FIRST + 30
#TVM_SETTOOLTIPS = #TV_FIRST + 24
#TVM_SETUNICODEFORMAT = #CCM_SETUNICODEFORMAT
#TVM_SHOWINFOTIP = #TV_FIRST + 71
Code: Select all
#TVM_EDITLABEL
#TVM_EDITLABELA
#TVM_EDITLABELW
You can use GetPBInfo from Danilo on windows and use the outputLebostein wrote:Is it possible to load all structures and constants for Windows in the Mac OS IDE? Sometimes I work on Mac OS, and later while testing on Windows I see that some structures I defined already used by Windows (for example the structure "coord"). In that case I have to rename all these things in the code.... Thanks!